<commit_before>//
//  untitled.m
//  musicGame
//
//  Created by <NAME> on 4/14/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "EditorScene.hh"
#import "HODCircle.h"
#import "osu-import.h.mm"
#import "CCNodeExtension.h"
#import "MenuScene.h"
#import "GameScene.h"
#import "SqlHandler.h"

#include <sstream>
#include <iostream>
using std::ostringstream;
using std::cout;
using std::endl;

@implementation EditorScene




+(id) sceneWithMediaItem: (MPMediaItemCollection*)item {
	// 'scene' is an autorelease object.
	CCScene *scene = [CCScene node];
	
	// 'layer' is an autorelease object.
	EditorScene *layer = [EditorScene node];
	
	// add layer as a child to scene
	[scene addChild: layer];
	
	// tell the layer we're using this beatmap, and start animation
	[layer startSceneWithMediaItem:item];
	
	// return the scene
	return scene;
}

- (id) init {
	if ( (self = [super init]) ) {
		
		disappearDurationMs = 1000;
		self.isTouchEnabled = YES;
		touchBeganAtTime = INT_MAX;
		CCSprite * skipFiveSprite = [CCSprite spriteWithFile:@"PlusFive.png"];
		CCSprite * playPauseSprite = [CCSprite spriteWithFile:@"PlayPause.png"];
		CCSprite * backFiveSprite = [CCSprite spriteWithFile:@"MinusFive.png"];
		CCMenuItemSprite *skipFive = [CCMenuItemSprite itemFromNormalSprite:skipFiveSprite selectedSprite:nil target:self selector:@selector(skip)];
		CCMenuItemSprite *playPause = [CCMenuItemSprite itemFromNormalSprite:playPauseSprite selectedSprite:nil target:self selector:@selector(play)];
		CCMenuItemSprite *backFive = [CCMenuItemSprite itemFromNormalSprite:backFiveSprite selectedSprite:nil target:self selector:@selector(back)];
		newCombo = [CCMenuItemLabel itemWithLabel:[CCLabelBMFont labelWithString:@"COMBO" fntFile:@"zerofourbee-32.fnt"] target: self selector:@selector(newComboMode)] ;
		deleter = [CCMenuItemLabel itemWithLabel:[CCLabelBMFont labelWithString:@"DEL" fntFile:@"zerofourbee-32.fnt"] target: self selector:@selector(deleterMode)];		
		back = [CCMenuItemLabel itemWithLabel:[CCLabelBMFont labelWithString:@"BACK" fntFile:@"zerofourbee-32.fnt"] target: self selector:@selector(backToMain)];
		save = [CCMenuItemLabel itemWithLabel:[CCLabelBMFont labelWithString:@"SAVE" fntFile:@"zerofourbee-32.fnt"] target: self selector:@selector(handleSave)];

		
		skipFive.scale = 2;
		playPause.scale = 2;
		backFive.scale = 2;
		newCombo.scaleX = 0.6;<commit_msg>fixed editor a bit more - combo button can't be scaled<commit_after>//
//  untitled.m
//  musicGame
//
//  Created by <NAME> on 4/14/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "EditorScene.hh"
#import "HODCircle.h"
#import "osu-import.h.mm"
#import "CCNodeExtension.h"
#import "MenuScene.h"
#import "GameScene.h"
#import "SqlHandler.h"

#include <sstream>
#include <iostream>
using std::ostringstream;
using std::cout;
using std::endl;

@implementation EditorScene




+(id) sceneWithMediaItem: (MPMediaItemCollection*)item {
	// 'scene' is an autorelease object.
	CCScene *scene = [CCScene node];
	
	// 'layer' is an autorelease object.
	EditorScene *layer = [EditorScene node];
	
	// add layer as a child to scene
	[scene addChild: layer];
	
	// tell the layer we're using this beatmap, and start animation
	[layer startSceneWithMediaItem:item];
	
	// return the scene
	return scene;
}

- (id) init {
	if ( (self = [super init]) ) {
		
		disappearDurationMs = 1000;
		self.isTouchEnabled = YES;
		touchBeganAtTime = INT_MAX;
		CCSprite * skipFiveSprite = [CCSprite spriteWithFile:@"PlusFive.png"];
		CCSprite * playPauseSprite = [CCSprite spriteWithFile:@"PlayPause.png"];
		CCSprite * backFiveSprite = [CCSprite spriteWithFile:@"MinusFive.png"];
		CCMenuItemSprite *skipFive = [CCMenuItemSprite itemFromNormalSprite:skipFiveSprite selectedSprite:nil target:self selector:@selector(skip)];
		CCMenuItemSprite *playPause = [CCMenuItemSprite itemFromNormalSprite:playPauseSprite selectedSprite:nil target:self selector:@selector(play)];
		CCMenuItemSprite *backFive = [CCMenuItemSprite itemFromNormalSprite:backFiveSprite selectedSprite:nil target:self selector:@selector(back)];
		newCombo = [CCMenuItemLabel itemWithLabel:[CCLabelBMFont labelWithString:@"COM" fntFile:@"zerofourbee-32.fnt"] target: self selector:@selector(newComboMode)] ;
		deleter = [CCMenuItemLabel itemWithLabel:[CCLabelBMFont labelWithString:@"DEL" fntFile:@"zerofourbee-32.fnt"] target: self selector:@selector(deleterMode)];		
		back = [CCMenuItemLabel itemWithLabel:[CCLabelBMFont labelWithString:@"BACK" fntFile:@"zerofourbee-32.fnt"] target: self selector:@selector(backToMain)];
		save = [CCMenuItemLabel itemWithLabel:[CCLabelBMFont labelWithString:@"SAVE" fntFile:@"zerofourbee-32.fnt"] target: self selector:@selector(handleSave)];

		
		skipFive.scale = 2;
		playPause.scale = 2;
		backFive.scale = 2;
		//newCombo.scaleX = 0.6;
{'fraction_non_alphanumeric': 0.12585104188157623, 'fraction_numerical': 0.010728285537445844, 'mean_word_length': 5.8474576271186445, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6018885', 'n_tokens_mistral': 1751, 'n_tokens_neox': 1580, 'n_words': 354}