This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
from collections import Counter | |
def load_csv(csv_file_path): | |
with open(csv_file_path) as csv_file: | |
csv_reader = csv.reader(csv_file, delimiter=',') | |
first_line_read = False | |
items = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <unordered_map> | |
class Bar { | |
public: | |
Bar()= default; | |
}; | |
class Foo { | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Random; | |
import java.util.Set; | |
public class OyunAlani { | |
public static final int MAX_DENEME_SAYISI = 10000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected int locate(int key) { | |
int slot = hash(key) & modulo; | |
int pointer = -1; | |
while (true) { | |
final int k = keys[slot]; | |
if (k == EMPTY) { | |
return pointer < 0 ? (-slot - 1) : (-pointer - 1); | |
} | |
if (k == DELETED) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package zemberek.core.collections; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
/** | |
* A simple hashmap with integer keys and T values. | |
* Implementation is open address linear probing with some heuristics on | |
* expansion limits. Some parts of the map is optimized for tiny maps. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CopyStuff { | |
public static void main(String[] args) throws IOException { | |
Path sourceRoot = Paths.get("/home/aaaa/prototip/exec"); // normalde kullanılan dosyalar bu exec dizininde | |
Path kaldiSrcRoot = Paths.get("/home/aaaa/apps/kaldi/src"); // kaldi src dizini yolu. | |
Path targetRoot = Paths.get("/home/aaaa/prototip/exec-new"); // yeni dosyaların kaydedileceği dizin. | |
// dosya isimlerini topla. | |
Set<String> paths = Files.walk(sourceRoot) | |
.filter(s -> s.toFile().isFile()) | |
.map(s -> s.toFile().getName()) | |
.collect(Collectors.toSet()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yap | |
yapa | |
yapabil | |
yapabildi | |
yapabildiği | |
yapabildiğidir | |
yapabildiğim | |
yapabildiğimce | |
yapabildiğimde | |
yapabildiğimden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package suskun.nn; | |
public class SigmoidLookup { | |
public static final float SCALE_FACTOR = 50.0f; | |
public static final int LOOKUP_SIZE = 1024; | |
int[] lookup; | |
static final float SIGMOID_QUANTIZATION_MULTIPLIER = 255.0f; | |
static final int SIGMOID_QUANTIZATION_MULTIPLIER_UCHAR = 255; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.nio.charset.StandardCharsets; | |
import java.nio.file.Files; | |
import java.util.HashMap; | |
import java.util.Locale; | |
import java.util.Map; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
#include <immintrin.h> | |
// gcc -Wall -O3 -march=native -mtune=native -mavx avx_simple.c -o avx | |
void check_alloc(int alloc_result); | |
void initialize(int amount); |
NewerOlder