<commit_before>#include<stdio.h>
#include <GLUT/glut.h>
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
float toradian(float degree){
    return (3.14159/180)*degree;
}

void draw_rectangle(float x, float y, float w, float h, int fill){
    if (fill)
        glBegin(GL_POLYGON);
    else
        glBegin(GL_LINE_LOOP);

        glVertex2f(x, y);
        glVertex2f(x+w, y);
        glVertex2f(x+w, y+h);
        glVertex2f(x, y+h);
    glEnd();
    glFlush();

}


void draw_circle(float x, float y, float r, int fill){
    float i;
    float x_cord, y_cord;
    if (fill)
        glBegin(GL_POLYGON);
    else
        glBegin(GL_POINTS);

    for (i = 0; i < 360; i+= 0.6){
        x_cord = x + r*cos(toradian((float)i));
        y_cord = y + r*sin(toradian((float)i));
        glVertex2f(x_cord, y_cord);
    }
    glEnd();
    glFlush();
}


class mountain{
public:
   mountain(){
    printf("object created\n" );
  }
  void draw_mountain() {
    float a = 300,r = 0.15;
    for(int i =0;i<1000;i++){
      float width_gp = a+(i-1)*r;
      // printf("%f\n",width_gp);
      if(1000.0-1*i < 600 && 1000.0-1*i > 580){
        int factors = (20-(i*2)%20);
        // printf("colored\n");
        // glColor3ub(255,163,245);
        a = a + factors;
        draw_rectangle(0.0,1000.0-1*i,width_gp,10.0,1);
      }
      else if(1000.0-1*i < 700 && 1000.0-1*i > 680){
        printf("colored\n");
        glColor3ub(255,163,245);
        draw_rectangle(0.0,1000.0-1*i,width_gp,10.0,1);
      }
      else {
        glColor3ub(161,104,0);
        draw_rectangle(0.0,1000.0-1*i,width_gp,10.0,1);
      }
    }
  }
  void draw_road() {
    float a = 300,r = 0.15,i,width_gp;
    for(i =590; i<610;i++) {
      width_gp = a+(i-1)*r;
      glColor3ub(0,0,0);
      draw_rectangle(width_gp-30,i,180-(i-590),1,1);
    }
    printf("final number:(%f,%f)\n",width_gp-30+180-(i-590),i);
  }
  void draw_plastic() {
    int x = 521,y = 610;
    glBegin(GL_QUADS);
      glVertex2f(x,y);
      glVertex2f(x,y+5);
      glVertex2f(x-5,y+15);
      glVertex2f(x-5,y+35);
      glVertex2f(x+7,y+35);
      glVertex2f(x+7,y+15);
      glVertex2f(x+2,y+15);
      glVertex2f(x,y);
      glEnd();
  }
  void draw_fense() {
    int x = 559,y = 590;
    // glColor3ub(255,165,0);

    glColor3ub(255,255,255);
    glBegin(GL_POLYGON);
      glVertex2f(x,y);
      glVertex2f(x,y+5);
      glVertex2f(x-5,y+5);
      glVertex2f(x-5,y+25);
      glVertex2f(x+7,y+25);
      glVertex2f(x+7,y+5);
      glVertex2f(x+2,y+5);
      glVertex2f(x,y);
    glEnd();
    glColor3ub(255,165,0);
    glBegin(GL_QUADS);
      glVertex2f(x-5,y+15);
      glVertex2f(x+7,y+25);
      glVertex2f(x+7,y+20);
      glVertex2f(x-5,y+20);
    glEnd();
    glBegin(GL_QUADS);
      glVertex2f(x-5,y+15-7);
      glVertex2f(x+7,y+25-7);
      glVertex2f(x+7,y+20-7);
      glVertex2f(x-5,y+20-7);
    glEnd();
  }
  void sky_full_of_stars() {
    glColor3ub(255,255,255);
    glPointSize(1);
    glBegin(GL_POINTS);

    for(int i=0;i<1000;i++){<commit_msg>scene 6 cloned<commit_after>#include<stdio.h>
#include <GLUT/glut.h>
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
float toradian(float degree){
    return (3.14159/180)*degree;
}

void draw_rectangle(float x, float y, float w, float h, int fill){
    if (fill)
        glBegin(GL_POLYGON);
    else
        glBegin(GL_LINE_LOOP);

        glVertex2f(x, y);
        glVertex2f(x+w, y);
        glVertex2f(x+w, y+h);
        glVertex2f(x, y+h);
    glEnd();
    glFlush();

}


void draw_circle(float x, float y, float r, int fill){
    float i;
    float x_cord, y_cord;
    if (fill)
        glBegin(GL_POLYGON);
    else
        glBegin(GL_POINTS);

    for (i = 0; i < 360; i+= 0.6){
        x_cord = x + r*cos(toradian((float)i));
        y_cord = y + r*sin(toradian((float)i));
        glVertex2f(x_cord, y_cord);
    }
    glEnd();
    glFlush();
}


class mountain{
public:
   mountain(){
    printf("object created\n" );
  }
  void draw_mountain() {
    float a = 300,r = 0.15;
    for(int i =0;i<1000;i++){
      float width_gp = a+(i-1)*r;
      // printf("%f\n",width_gp);
      if(1000.0-1*i < 600 && 1000.0-1*i > 580){
        int factors = (20-(i*2)%20);
        // printf("colored\n");
        // glColor3ub(255,163,245);
        a = a + factors;
        draw_rectangle(0.0,1000.0-1*i,width_gp,10.0,1);
      }
      else if(1000.0-1*i < 700 && 1000.0-1*i > 680){
        printf("colored\n");
        glColor3ub(255,163,245);
        draw_rectangle(0.0,1000.0-1*i,width_gp,10.0,1);
      }
      else {
        glColor3ub(161,104,0);
        draw_rectangle(0.0,1000.0-1*i,width_gp,10.0,1);
      }
    }
  }
  void draw_road() {
    float a = 300,r = 0.15,i,width_gp;
    for(i =590; i<610;i++) {
      width_gp = a+(i-1)*r;
      glColor3ub(0,0,0);
      draw_rectangle(width_gp-30,i,180-(i-590),1,1);
    }
    printf("final number:(%f,%f)\n",width_gp-30+180-(i-590),i);
  }
  void draw_plastic() {
    int x = 521,y = 610;
    glBegin(GL_QUADS);
      glVertex2f(x,y);
      glVertex2f(x,y+5);
      glVertex2f(x-5,y+15);
      glVertex2f(x-5,y+35);
      glVertex2f(x+7,y+35);
      glVertex2f(x+7,y+15);
      glVertex2f(x+2,y+15);
      glVertex2f(x,y);
      glEnd();
  }
  void draw_fense() {
    int x = 559,y = 590;
    // glColor3ub(255,165,0);

    glColor3ub(255,255,255);
    glBegin(GL_POLYGON);
      glVertex2f(x,y);
      glVertex2f(x,y+5);
      glVertex2f(x-5,y+5);
      glVertex2f(x-5,y+25);
      glVertex2f(x+7,y+25);
      glVertex2f(x+7,y+5);
      glVertex2f(x+2,y+5);
      glVertex2f(x,y);
    glEnd();
    glColor3ub(255,165,0);
    glBegin(GL_QUADS);
      glVertex2f(x-5,y+15);
      glVertex2f(x+7,y+25);
      glVertex2f(x+7,y+20);
      glVertex2f(x-5,y+20);
    glEnd();
    glBegin(GL_QUADS);
      glVertex2f(x-5,y+15-7);
      glVertex2f(x+7,y+25-7);
      glVertex2f(x+7,y+20-7);
      glVertex2f(x-5,y+20-7);
    glEnd();
  }
  void sky_full_of_stars() {
    glColor3ub(255,255,255);
    glPointSize(1.5);
    glBegin(GL_POINTS);

    for(int i=0;i<1000;i++){
{'fraction_non_alphanumeric': 0.19046831044183352, 'fraction_numerical': 0.10193612444150256, 'mean_word_length': 2.48558246828143, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '555839', 'n_tokens_mistral': 3039, 'n_tokens_neox': 2718, 'n_words': 371}