repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
dogancantorun8/python-application | pandas/pandas_4_dataframe_giris.py | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 9 20:42:21 2021
@author: <NAME>
"""
#Dataframe:her sütunu farklı dtypedan oluşan yapılardır. Matrissel bir yapıdır ve sütunların her biri series nesnesidir
#dataframeler genelde dosyalardan okunur.
#ndarrayden,iterable nesneden veya herhangi bir datframeden okunup ye... |
dogancantorun8/python-application | GUI_tkinter_all/veri_tabani_tkinter_conn.py | import tkinter as tk
import sqlite3
#bu kodda ögrenci adı ve numarasıyla consoledan kayıt islemi yapacagım
import tkinter as tk
import sqlite3
class GUIDatabase:
def __init__(self, master): #root self yerine geciyor
self.master = master
master.geometry('360x180')
master.resizable(width=False... |
dogancantorun8/python-application | XML_operation/xml_olusturup_dosyaya_yazma.py | <gh_stars>0
# -*- coding: utf-8 -*-
"""
Created on Sat Apr 17 18:07:22 2021
@author: dogancan
"""
##xmlden bir dosyayı okuyup başka bir dosyaya yazmak istersek;
import xml.etree.ElementTree as ET
et = ET.parse('sample.xml')
root = et.getroot()
ET.dump(root)
print('-----------------------------------')
root.set('te... |
dogancantorun8/python-application | cryptograpy&exe_creation/crypto_intro.py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 17 18:57:58 2021
@author: dogancan
"""
#cryptografik library
#büyük bilgiden özet bilgi elde edilmesine hash işlemi denir
#temel hash fonksiyonu özellikleri :
#Kısa bir hash degeri üretmesi
#asıl bilgideki değişikliklere adapte olması
#hızlı olması
#b... |
dogancantorun8/python-application | PYQT/cizim_PYQT_5_scratchpad_uygulama.py | <gh_stars>0
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 11 17:28:19 2021
@author: dogancan
"""
#Scratchpad uygulaması:
import sys
from PyQt5.Qt import *
class MainWindow(QWidget):
def __init__(self):
super().__init__()
self.resize(1024, 768)
self.currentLine = None
self.lines ... |
dogancantorun8/python-application | mysql_config/mysql.py | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 17 16:52:06 2020
@author: <NAME>
"""
import mysql.connector as mysqlc
conn = None
try:
conn = mysqlc.connect(host='localhost', user='root', passwd='<PASSWORD>', database='student')
cur = conn.cursor()
while True:
no = int(input('No:'))
if no ... |
dogancantorun8/python-application | Numpy/numpy_6.py | #numpyda lineer cebir işlemleri
#dot fonksiynu matris çarpımının yanında birçok özelliğe sahiptir.
import numpy as np
a = np.array([2, 5, 6])
b = np.array([3, 4, 2])
c = np.dot(a, b) #çarpıp toplama işlemi yapacak
print(c)
##satır ve sütun vektörü tanımlayarak dot fonksiyonu kullanımı
a = np.array([[2, 5, 6], [1, 2, ... |
dogancantorun8/python-application | matplotlib/matplot3.py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 17 17:12:38 2021
@author: <NAME>
"""
#birden fazla veri setinin histogramını çizmek istersem :
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv(r'Covid-19-Datasets\covid_19_data.csv')
x = np.random.randn(2000).reshape(1000, 2)
plt.... |
dogancantorun8/python-application | PYQT/pyqt_10_listbox_islemleri_2.py | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 21 17:49:48 2021
@author: <NAME>
"""
#listboxta ilgili elemana double click yapıldığında elemanı silebilirim
#istediğim ile çift tıkladığımda silme işlemi yapabilirim
import sys
import pandas as pd
from PyQt5.QtWidgets import *
from PyQt5.Qt import *
class MainWin... |
dogancantorun8/python-application | GUI_tkinter_all/grid_geometrisi.py | import tkinter as tk
class GUI:
def __init__(self, master):
master.title('Sample Messagebox')
self.button1 = tk.Button(master, text='1', width=10)
self.button1.grid(row=0, column=0)
self.button2 = tk.Button(master, text='2', width=10)
self.button2.grid(row=0, column=1)
... |
dogancantorun8/python-application | XML_operation/xml_intro_1.py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 15 11:52:01 2021
@author: dogancan
"""
#Xml:Bir dökümanın belirli formatlarda aktarılmasını sağlamak ve iletmek için XML'den yararlanılır.[Rich text dil]
#Xml de bir root elemanı olmalı.
#XML syntaxı;
#XML dökümanına başlarken versiyon numarası ile başlanır şu anda ... |
dogancantorun8/python-application | GUI_tkinter_all/context_munu_binding.py | import tkinter as tk
import tkinter.filedialog
import tkinter.messagebox
import tkinter as tk
from tkinter import messagebox
from tkinter import filedialog
import os
from PIL import Image
from PIL import ImageTk
# binding_not_defterime uyarlama
class GUI:
def __init__(self, master):
master.geometry('800x... |
dogancantorun8/python-application | Scipy&Sympy/scipy_intro.py | #scipy:python üzerine kurulmuş bir kütüphanedir
#scipy ile olasılık hesapları, fourier transform gibi bilimsel işlem yapılır
from scipy.stats import norm
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import linregress
#standart normal dağılımda - sonsuzdan 0 a kadar kalan alanı veriyor
result = n... |
dogancantorun8/python-application | PYQT/pyqt_7_image_add.py | <reponame>dogancantorun8/python-application
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 20 19:17:21 2021
@author: <NAME>
"""
#Resim ekleme islemi:QPixmap sınıfının kullanıyorum
import sys
from PyQt5.QtWidgets import *
from PyQt5.Qt import *
class MainWindow(QWidget):
def __init__(self):
super().__i... |
dogancantorun8/python-application | pandas/pandas_2.py |
#Kazanımlar:Series methodlarım ;
#value methodu
#isna() isnull()
#sum()
#count()
#shape()
#fillna(x)
#dropna()
#s.std() =>standart sapma
#s.var() => varyans alıyor
#s.median() => medyanı verir
#mode() => serinin modunu verir
#unique() => serinin unique değerlerini veriyor
#pop() => belirli bir indexi silmek... |
dogancantorun8/python-application | Scipy&Sympy/scipy_2.py |
#scipy ile belirli integral almak
import numpy as np
from scipy.integrate import quad
def f(x): return x **2 - 4
result = quad(f, -4, 4)
print(result)
#olasılık yoğunluk fonksiyonu:eğri altında kalan alan
from scipy.integrate import quad
def f(x, mu, sd):
return 1 / (sd * np.sqrt(2 * np.pi)) * np.e ** (- 0.5 *... |
dogancantorun8/python-application | PYQT/cizimPYQT_4.py | <filename>PYQT/cizimPYQT_4.py
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 11 17:10:29 2021
@author: dogancan
"""
#cizimlerde Antialising : kullanıcıya çizimlerin daha pürüzsüz gözükmesini istersek antialiasing yapacağız.
import sys
from PyQt5.Qt import *
class MainWindow(QWidget):
def __init__(self):
... |
dogancantorun8/python-application | PYQT/pyqt_15_menu_olusturma.py | <reponame>dogancantorun8/python-application
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 26 18:17:49 2021
@author: dogancan
"""
##Bir menü yaratmak için önce Qmenübar nesnesi yaratmalıyım
#2.olarak QMenü nesnelerini yaratacağım 3.olarakta QAction nesnelerini yaratacağım.
#Menü ve toolbar yaratırken ana penceremi ... |
dogancantorun8/python-application | GUI_tkinter_all/calculator_example.py | import tkinter as tk
class GUI:
def __init__(self, master):
master.title('Calculator')
master.resizable(width=False, height=False)
#master penceremi GUI'ye baslamadan konumlandırıyorum bunun üzerine frameleri insa ediyorum
self.frame_main = tk.Frame(master)
#konumlandırma i... |
dogancantorun8/python-application | Numpy/numpy_intro.py | #numpy nümerik islemleri yapabilmek icin yazılmıştır.string ve numerik olmayan ifadelerin analizinde numpy kullanılmaz
#Scipy pandas ve keras numpy üzerine kurulmuştur.
#en önemli veri yapısı ndarray :numpy dizisi
#tüm vektörel işlemleri yapmamızı sağlayan ndarray
#numpy üzerindeki tüm fonksiyonlar ndarray ile işlem ya... |
dogancantorun8/python-application | PYQT/pyqt_27_csv_okuyup_widgette_gosterme.py | <gh_stars>0
# -*- coding: utf-8 -*-
"""
Created on Sat Apr 3 17:22:23 2021
@author: dogancan
"""
#bir dosyadan veri okuyup arayüzde anlamlandırma
#table widget
import sys
import csv
from PyQt5.Qt import *
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.resize(640,... |
dogancantorun8/python-application | Scipy&Sympy/sympy_2.py | <reponame>dogancantorun8/python-application
import sympy as sym
import numpy as np
sym.init_printing()
x = sym.Symbol('x')
result = sym.solve(x ** 3 - 3 * x ** 2 + 2)
print(result)
e = x ** 2 * (1 - sym.cos(2 / x))
print(e)
#limit hesaplaması
result = sym.limit(e, x, np.inf)
print(result)
result = sym.limit(e, x, 0... |
dogancantorun8/python-application | Scipy&Sympy/scipy_3.py | #numerik analiz yöntemiyle kök bulma
import numpy as np
from scipy.optimize import root
def f(x):
return x ** 5 - x ** 3 - x ** 2
result = root(f, [-10, 10])
print(result)
|
dogancantorun8/python-application | Numpy/numpy_5.py | <gh_stars>0
#numpy dizileri üzerinde vektörel işlemler :işleme girerken karşılıklı elemanlar işleme giriyor
#her elemana aynı skaler işlemleri yap ak istersem np array ierisinde işlem yaptırmalıyım
#numpy mantığı:veri setini al sütunlar feature olsun satırlar item olsun bu şekilde analiz et. ####
import numpy as np
... |
cibu/language-resources | my/grapheme_cluster.py | <reponame>cibu/language-resources
#! /usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/lice... |
cibu/language-resources | my/codepoints.py | <gh_stars>100-1000
#! /usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... |
cibu/language-resources | third_party/unicode/utn11_test.py | from __future__ import unicode_literals
import unittest
import utn11
CANONICAL_PAIRS = [
('\u1010\u102D\u103A', '\u1010\u103A\u102D'),
('\u1010\u103A\u102D', '\u1010\u103A\u102D'),
('\u101B\u1031\u1037\u103E', '\u101B\u103E\u1031\u1037'),
('\u101B\u1031\u103E\u1037', '\u101B\u103E\u1031\u1037'),
('\u101B\... |
cibu/language-resources | si/prompt_words_in_lexicon.py | #! /usr/bin/env python
"""Checks that all words in a prompt file occur in the corresponding lexicon.
"""
import codecs
import io
import sys
STDOUT = io.open(1, 'wb')
STDERR = io.open(2, 'wb')
def Print(*objects, **kwargs):
sep = kwargs.get('sep', u' ')
end = kwargs.get('end', u'\n')
buf = kwargs.get('file',... |
cibu/language-resources | my/text_to_symbols.py | #! /usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | mul_034/build_defs.bzl | <reponame>cibu/language-resources
# Copyright 2017 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... |
cibu/language-resources | utils/utf8_test.py | <filename>utils/utf8_test.py<gh_stars>100-1000
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE... |
cibu/language-resources | my/tokenize.py | #! /usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | hi_ur/tsv2html.py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
cibu/language-resources | festival_utils/generate_hts_questions.py | <gh_stars>100-1000
#! /usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... |
cibu/language-resources | bn/zero_width.py | <filename>bn/zero_width.py<gh_stars>100-1000
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2015, 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the Lice... |
cibu/language-resources | mul_034/make_grm_fragment.py | <reponame>cibu/language-resources
# Copyright 2017 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... |
cibu/language-resources | utils/freq.py | <filename>utils/freq.py<gh_stars>100-1000
# Copyright 2016, 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... |
cibu/language-resources | festival_utils/festival_lexicon_from_tsv.py | <reponame>cibu/language-resources
#! /usr/bin/env python
# Copyright 2016, 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/... |
cibu/language-resources | mul_034/Malayalam_InterIndic_test.py | # -*- coding: utf-8 -*-
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | is/clean_pron_dict_csv.py | #! /usr/bin/env python
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | festival_utils/festival_prompts_from_tsv.py | <filename>festival_utils/festival_prompts_from_tsv.py
#! /usr/bin/env python
# Copyright 2016, 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ht... |
cibu/language-resources | my/binom_test.py | #! /usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | utils/utf8.py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
cibu/language-resources | utils/utf8_dump.py | #! /usr/bin/env python
"""Pretty print a byte stream suspected to be UTF-8 text.
This should work with most versions of Python on Posix systems. In particular
it works with CPython 2.6, CPython 2.7, and CPython 3.3+, on Linux and Darwin,
with narrow (16 bits per character) and wide (21 or more bits per character)
Uni... |
cibu/language-resources | bn/tools/munge_iiit_ben.py | <filename>bn/tools/munge_iiit_ben.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... |
cibu/language-resources | utils/eval_lex.py | <filename>utils/eval_lex.py
#! /usr/bin/env python
# Copyright 2008, 2009, 2016, 2017, 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... |
cibu/language-resources | my/bigrams.py | #! /usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | utils/grapheme_util.py | # Copyright 2015, 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... |
cibu/language-resources | si/normalize_text.py | <filename>si/normalize_text.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:... |
cibu/language-resources | mul_034/make_grapheme_syms.py | <filename>mul_034/make_grapheme_syms.py
# Copyright 2017 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
... |
cibu/language-resources | utils/edist.py | #! /usr/bin/env python
# Copyright 2008, 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... |
cibu/language-resources | utils/uniquely_decodable.py | # Copyright 2015, 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... |
cibu/language-resources | utils/sample.py | <gh_stars>100-1000
# Copyright 2016, 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | my/check_myanmar_text.py | # Copyright 2016, 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... |
cibu/language-resources | my/cluster_to_unicode.py | #! /usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | my/graphemes.py | <filename>my/graphemes.py<gh_stars>100-1000
#! /usr/bin/env python
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apach... |
cibu/language-resources | si/graphemes.py | #! /usr/bin/env python
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | festival_utils/build_f0_model.py | #! /usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | bn/tools/munge_enwiktionary.py | #! /usr/bin/env python
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
cibu/language-resources | hi_ur/hi2ur.py | <filename>hi_ur/hi2ur.py
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | utils/eval_dictionary_simple.py | <gh_stars>100-1000
# Copyright 2016, 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | hi_ur/symbolize.py | # -*- coding: utf-8 -*-
#
# Copyright 2016, 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... |
cibu/language-resources | si/zero_width.py | <filename>si/zero_width.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2015, 2016, 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... |
cibu/language-resources | es/logits2fsts.py | #! /usr/bin/env python
#
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | my/betabinom_test.py | #! /usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | xh/tokenize.py | <reponame>cibu/language-resources
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ht... |
cibu/language-resources | third_party/unicode/utn11.py | <reponame>cibu/language-resources<gh_stars>100-1000
"""Myanmar diacritic storage order according to Unicode Technical Note #11.
"""
from __future__ import unicode_literals
import re
# BEGIN QUOTE
#
# The code after this comment and up to END QUOTE is taken from Unicode
# Technical Note #11, version 4, page 15, avail... |
cibu/language-resources | FONIPA/ipa.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2018 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... |
cibu/language-resources | utils/evaluate_pronunciation_rules.py | # Copyright 2016, 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... |
cibu/language-resources | festival_utils/build_mcep_model.py | <filename>festival_utils/build_mcep_model.py
#! /usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apac... |
cibu/language-resources | my/extract_text.py | <filename>my/extract_text.py
#! /usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/... |
cibu/language-resources | utils/test_icu_transform.py | <gh_stars>100-1000
# Copyright 2016, 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | festival_utils/merlin_confs.py | #! /usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... |
cibu/language-resources | festival_utils/apply_phonology.py | <reponame>cibu/language-resources<filename>festival_utils/apply_phonology.py
#! /usr/bin/env python
#
# Copyright 2016, 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of ... |
cibu/language-resources | festival_utils/phonology_json_validator.py | <filename>festival_utils/phonology_json_validator.py
#! /usr/bin/env python
# Copyright 2016, 2017 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ht... |
cibu/language-resources | mul_034/make_script_syms.py | <gh_stars>100-1000
# Copyright 2017 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... |
cibu/language-resources | utils/python_version.py | #! /usr/bin/env python
"""Print Python interpreter path, version and Unicode-related diagnostics."""
from __future__ import unicode_literals
import sys
sys.stdout.write('executable: %s\n' % sys.executable)
sys.stdout.write('version: %s\n' % sys.version)
sys.stdout.write('stdout encoding: %s\n' % sys.stdout.encoding... |
cibu/language-resources | FONIPA/ipa_test.py | <gh_stars>100-1000
# -*- coding: utf-8 -*-
# Copyright 2018 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... |
cibu/language-resources | my/split_sentences.py | <reponame>cibu/language-resources
#! /usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/lice... |
cibu/language-resources | my/make_comparison_table.py | <reponame>cibu/language-resources
#! /usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/lice... |
cibu/language-resources | pi_sa/symbolize.py | #! /usr/bin/env python
# Copyright 2017 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... |
cibu/language-resources | utils/merge_lexicons.py | # Copyright 2016, 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... |
cibu/language-resources | festival_utils/prepare_prompts.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICEN... |
cibu/language-resources | my/my_encoding.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICEN... |
cibu/language-resources | mul_034/script_util.py | <gh_stars>100-1000
# Copyright 2017 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... |
joao-paulo-alves/carla_vts | PythonAPI/my_workplace/get_loc.py | import carla
import carla_agents
from carla import *
import numpy
import pygame
import random
import keyboard
import time
# ---------------------------------------Global-----------------------------
# SETTING CLIENT
client = carla.Client('localhost', 2000)
client.set_timeout(300.0)
# SET A SPECIFIED SCENARIO
world = ... |
joao-paulo-alves/carla_vts | PythonAPI/my_workplace/slam_trajectory.py | <reponame>joao-paulo-alves/carla_vts
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy
import math
from sklearn.preprocessing import scale
fig, ax1 = plt.subplots()
# ax = fig.add_subplot(111)
f = open("KeyFrameTrajectory.txt", "r")
lines = f.readlines()
resultx = []
resulty = []
r... |
joao-paulo-alves/carla_vts | PythonAPI/my_workplace/repository/teste.py | import carla
import carla_agents
from carla import *
import numpy
import pygame
import random
from carla.agents.navigation.basic_agent import BasicAgent
from carla.agents.navigation.behavior_agent import BehaviorAgent
# ---------------------------------------Global-----------------------------
# SETTING CLIENT
clien... |
joao-paulo-alves/carla_vts | PythonAPI/my_workplace/repository/static_procedural_generation.py | <reponame>joao-paulo-alves/carla_vts<gh_stars>0
import carla
from carla import *
import numpy
import pygame
import argparse
import random
import time
class Walker:
def __init__(self):
self.total_number = 20
self.total_blueprint = 48
def random_attribution(total_number, total_blueprint, library, ... |
joao-paulo-alves/carla_vts | PythonAPI/my_workplace/repository/teste2.py | <gh_stars>0
import glob
import os
import sys
import glob
import os
import sys
import time
from math import cos, sin, atan2
import carla
import imageio
from carla import VehicleLightState as vls
import logging
from numpy import random
from queue import Queue
from configparser import ConfigParser
from concurrent.futures ... |
joao-paulo-alves/carla_vts | PythonAPI/my_workplace/repository/save_to_m4.py |
import imageio
import os
fileList = []
for file in os.listdir('output/'):
complete_path = 'output/' + file
fileList.append(complete_path)
kargs = {'macro_block_size': 1}
writer = imageio.get_writer('test.mp4', fps=10, **kargs)
for im in fileList:
writer.append_data(imageio.imread(im))
writer.clos... |
joao-paulo-alves/carla_vts | PythonAPI/my_workplace/slamgen.py | import glob
import os
import sys
import time
from math import cos, sin, atan2
import carla
import imageio
from carla import VehicleLightState as vls
import logging
from numpy import random
from queue import Queue
from configparser import ConfigParser
from concurrent.futures import ThreadPoolExecutor
import os
import ra... |
joao-paulo-alves/carla_vts | PythonAPI/my_workplace/loop_test.py | <reponame>joao-paulo-alves/carla_vts
import glob
import os
import sys
import time
from math import cos, sin, atan2
import carla
import imageio
from carla import VehicleLightState as vls
import logging
from numpy import random
from queue import Queue
from configparser import ConfigParser
from concurrent.futures import T... |
joao-paulo-alves/carla_vts | PythonAPI/my_workplace/repository/procgen_backup.py | <filename>PythonAPI/my_workplace/repository/procgen_backup.py
import glob
import os
import sys
import time
import carla
from carla import VehicleLightState as vls
import argparse
import logging
import math
from numpy import random
import imageio
from queue import Queue
from queue import Empty
try:
sys.path.append(... |
joao-paulo-alves/carla_vts | PythonAPI/my_workplace/repository/configcreation.py | <filename>PythonAPI/my_workplace/repository/configcreation.py
from configparser import ConfigParser
import random
config = ConfigParser()
config['worldsettings'] = {
'host': '127.0.0.1',
'port': 2000,
'safe': True,
'filterv': 'vehicle.*',
'generationv': 'All',
'filterw': 'walker.pede... |
joao-paulo-alves/carla_vts | PythonAPI/my_workplace/repository/client.py | import carla
from carla import *
import numpy
import pygame
import argparse
import random
def main():
vehicles_list = []
walkers_list = []
all_id = []
# SETTING CLIENT
client = carla.Client('localhost', 2000)
client.set_timeout(30.0)
# SET A SPECIFIED SCENARIO
world = client.load_wo... |
joao-paulo-alves/carla_vts | PythonAPI/my_workplace/repository/teste1.py | import glob
import os
import sys
import time
from math import cos, sin, atan2
import carla
import imageio
from carla import VehicleLightState as vls
import logging
from numpy import random
from queue import Queue
from configparser import ConfigParser
from concurrent.futures import ThreadPoolExecutor
import numpy as np
... |
joao-paulo-alves/carla_vts | PythonAPI/my_workplace/repository/class.py | import carla
from carla import *
import numpy
import pygame
import argparse
import random
class Data(object):
class Pawn:
daf = 0
class Vehicle:
daf = 0
class Building:
daf = 0
def main():
vehicles_list = []
walkers_list = []
all_id = []
# SETTING CLIENT
cl... |
joao-paulo-alves/carla_vts | PythonAPI/my_workplace/repository/procgen.py | <reponame>joao-paulo-alves/carla_vts<filename>PythonAPI/my_workplace/repository/procgen.py
import glob
import os
import sys
import time
import carla
from carla import VehicleLightState as vls
import logging
import math
from numpy import random
##import imageio
from queue import Queue
from queue import Empty
from config... |
ecanzonieri/kafka-python | kafka/consumer/kafka.py | <filename>kafka/consumer/kafka.py
from __future__ import absolute_import
from collections import namedtuple
from copy import deepcopy
import logging
import random
import sys
import time
import six
from kafka.client import KafkaClient
from kafka.common import (
OffsetFetchRequest, OffsetCommitRequest, OffsetReque... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.