blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
85022d5a064299f638e65f28a7890afad235bdfe
09aa40466244455c4b62bfd18917f8d840d68a9f
/encyclopedia/arboretum.py
60adee512c02b2c25cb5dda4b10a9ad6eeac3400
[ "Apache-2.0" ]
permissive
scott-howard-james/encyclopedia
b5df4058479dc616d5cb2250551bb7a884ddd95c
0eb03c6505252584cf4f4320e38d92a9ec092e17
refs/heads/master
2023-03-11T04:16:26.638794
2023-02-24T22:50:04
2023-02-24T22:50:04
117,380,082
0
0
null
null
null
null
UTF-8
Python
false
false
2,193
py
arboretum.py
# standard import unittest # external # internal from encyclopedia.relate import Function from encyclopedia.forest import Forest class Arboretum(Forest): ''' A Forest with inhertiable attributes. Note: as attributes are assigned using setitem syntax, tuples cannot be used as node aliases ''' def ...
3221dbd834e6c70fd74e991b4d626e3600c19e07
39bde18f9679470b61a513f32baa306a955adaf3
/AI_single_display.py
f2f039621e1aac53f21592c9bbaa1151c1963f7a
[]
no_license
rahul7iitk/Game-API
d8239852284d1fbe8a7e4f70ac05509cfa29bd6d
48aae102b3867a40989001c29efcad25aafb4ff4
refs/heads/master
2021-01-21T12:20:06.270226
2017-07-08T16:34:22
2017-07-08T16:34:22
91,787,149
0
1
null
2017-05-25T15:51:31
2017-05-19T09:00:46
null
UTF-8
Python
false
false
6,604
py
AI_single_display.py
from pprint import pprint import pygame,sys from pygame.locals import * import copy import pickle import time FPS = 1000 windowwidth = 1200 windowheight = 800 revealspeed = 8 boxsize = 50 gapsize = 5 boardwidth = 10 boardheight = 10 xmargin = 300 ymargin = 100 white = (255,255,255) blue = (0,0,255) yellow = (255...
022fb3d117869bdd110a26be91163de797e23de2
a1e420cd04511c52fe28acbc7e9a0ee67422267f
/server/controllers/boards.py
088c720aded7e8c18820ca22ee21965a4b3125cd
[]
no_license
rasPanda/GA-Project4
385fd2f353686f2f4bd6f888d2ee8fbdd6eb8b57
8fcff2c2d1239a74ffa9c059d731833a4e1e56d7
refs/heads/main
2023-04-05T21:04:20.391987
2021-04-19T14:40:37
2021-04-19T14:40:37
346,305,571
0
0
null
null
null
null
UTF-8
Python
false
false
2,586
py
boards.py
# pylint: disable=import-error from app import db from flask import Blueprint, request, g from models.board import Board from models.products_boards import Products_Boards from serializers.board import BoardSchema from decorators.secure_route import secure_route board_schema = BoardSchema() router = Blueprint(__name_...
9dc38c433343a3119f8d63afbb5202ecd9578042
ebbe7688e70a91903b6e1b0d3f46dd7839b5d32b
/forms/migrations/0008_auto_20190627_2218.py
8d1812935e89f6bd736aba0e7114d052d721410b
[]
permissive
art-re-art/art-re-art-web
bd56f199ad3654bb672fb7bb669ceded263b2bce
af32fb80801824ccdf96762054144c81f2649a43
refs/heads/master
2023-01-10T22:26:37.090215
2019-12-04T23:11:04
2020-01-19T23:42:15
201,573,590
1
0
BSD-2-Clause
2019-08-27T09:55:47
2019-08-10T03:24:14
JavaScript
UTF-8
Python
false
false
639
py
0008_auto_20190627_2218.py
# Generated by Django 2.2.2 on 2019-06-28 02:18 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [("forms", "0007_auto_20190622_1719")] operations = [ migrations.AlterModelOptions( name="mailchimpsignup", options...
a5918b685e7d037e4c42424832790ff8ccbd5a2a
39eccfecd305187f17686d118f6e86709adeea88
/Titanic - Machine Learning from Disaster/.ipynb_checkpoints/Titanic - Machine Learning from Disaster-checkpoint.py
263965857bb5dd35a25498d4291fdcc49c6f41b3
[]
no_license
jgoni90/Kaggle
69bec0de37affd99114c6a98b32956aae0d4ac30
eb4c89c41fc1adb08ebae139150336a01d22ac01
refs/heads/master
2021-03-30T21:01:34.292055
2018-03-24T21:13:10
2018-03-24T21:13:10
124,691,664
0
0
null
null
null
null
UTF-8
Python
false
false
1,141
py
Titanic - Machine Learning from Disaster-checkpoint.py
# Titanic - Machine Learning from disaster # -*- coding: utf-8 -*- """ Created on Mon Feb 19 15:30:28 2018 @author: Jon Goni """ # Import relevant libraries import pandas as pd import numpy as np from sklearn.linear_model import LogisticRegression from sklearn.cross_validation import train_test_split from sklearn.me...
03a060463529084a97a664965183941099156e2c
21d315677f1bee1fa894238e8c05bae6bbe6670c
/ev3dev/bin/format-usb
b1c789d28bed9b567e3375430a8b36ff202f2559
[ "Apache-2.0" ]
permissive
laszewsk/mindstorm
4e255461ac126ffcccdcfbf787f3a5975f0c4f7f
ffa9e7113cd4de44513e375b81e180d1d336eff4
refs/heads/master
2018-12-28T07:29:36.533915
2015-11-22T23:19:44
2015-11-22T23:19:44
40,698,991
1
1
null
null
null
null
UTF-8
Python
false
false
3,887
format-usb
#! /usr/bin/env python from __future__ import division from __future__ import print_function from pprint import pprint from sh import diskutil import os from pprint import pprint from BeautifulSoup import BeautifulSoup import urllib2 import re import wget import zipfile # ############################################...
bb3dcfe31f36ff3c9ddf88528a6870fe501fb94d
91846719f83684fb61d5c9e4d80212a4dd518702
/hello_world.py
36001033a93c55e518416c4e1d0df9be909c4383
[]
no_license
koreahong/study_Python_OOP
d683c278d5f2673a65356adee3ff7180e7ecbbb1
6128c18e7e4882abc822bfab573c5ce90a24b61f
refs/heads/main
2023-07-13T22:55:49.786971
2021-08-23T08:00:33
2021-08-23T08:00:33
399,007,901
0
0
null
null
null
null
UTF-8
Python
false
false
67
py
hello_world.py
print("hello world") def hello(ss): return ss hello("ss")
cfd9df8739df6e9f51485365821d6a8031855fe1
b3cf54275531088bdf533713a5869a792b823d18
/world_map.py
a5987e362fd6c5ef7b26c4696d993a12a94d8800
[]
no_license
fury473/pirates
0a7c423b804e58da9bc8be81f4eaf121ebef544c
034bbbcf5302f4e4e80fe0a4cbe73efe7968d5f8
refs/heads/master
2021-01-12T12:47:58.386975
2016-11-26T02:34:45
2016-11-26T02:34:45
69,282,917
0
0
null
null
null
null
UTF-8
Python
false
false
1,950
py
world_map.py
from cell import Cell from numpy import add, subtract from util import tuple_to_str from pprint import pprint from sys import exit as die class WorldMap(object): UNMAPPED_CELLS = [(0,0), (5,0), (7,0), (7,1), (0,4), (6,4)] EARTH_CELLS = [(1,0), (3,0), (6,0), (8,0), (0,1), (4,1), (2,2), (0,3), (2,4), (4,4)] ...
232db60f32b6a2aafef1ffd3380d069e1cd53f19
dcd25cbd65fbad9dcd0bc9fffabd11169cbb919e
/questions/views.py
63499634c6a8a19d6f663ba6fe3007d2d505d758
[]
no_license
mattsmithtaiko/worksheetmate
f5288a305301debdeffb57975944711ffc21b34f
c526c7e9409b4cbc6cf845927a973d03e073296d
refs/heads/master
2023-03-15T08:43:28.757637
2021-03-08T19:30:16
2021-03-08T19:30:16
345,768,047
0
0
null
null
null
null
UTF-8
Python
false
false
4,555
py
views.py
import subprocess import os import time from django.http import HttpRequest from django.shortcuts import render, redirect from django.urls import reverse from django.contrib import messages from django.db.models.query import QuerySet from .models import * from .forms import * # Create your views here. def index(reque...
44efbf661a56b11a2b0a646249856096e1d74553
401308eb8a706dec6d88eb4692bc38e822fc24bc
/brush_merge.py
0d0931173e9adbbe6ab27e77bd6aa9e4ecdbb9c0
[]
no_license
xiaopanliang/brushstroke-style-recognition
120e944d5462e3ccf18e5e3f946efa65f2fa779c
1a2b415c4d260ac68f23c9b4442a9b6f0d4603a6
refs/heads/master
2021-07-12T03:42:53.338490
2020-07-11T15:26:58
2020-07-11T15:26:58
146,140,810
2
1
null
2018-11-17T01:52:34
2018-08-26T01:03:08
Matlab
UTF-8
Python
false
false
7,460
py
brush_merge.py
# -*- coding: utf-8 -*- """ Created on Thu Oct 11 00:50:58 2018 @author: jpansh """ import os import numpy as np import cv2 import collections # import matplotlib.pyplot as plt # import math input_height = 1024 # 768 input_width = 1024 # 1024 total_height = input_height*4 total_width = input_widt...
8512dfa23cc4132eb016f36389ccadcd8c1b3a61
2c2a9f362c7949cbfa989cf79527e63b1616596b
/[WEB][누뗄라][talk2slides]/record/views.py
f7286159ad8e53a0acec76c993a8eb74c622ef63
[]
no_license
blesk011/AI-Burning-Day_Result
5fa1e3c0029293d8d1d8661ffd4cb1f210aee7e1
98d19f4fe043e28158efd94da12d452be77f63d6
refs/heads/master
2022-10-09T02:50:22.849979
2020-02-15T04:11:28
2020-02-15T04:11:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,385
py
views.py
from django.shortcuts import render from django.http import JsonResponse from django.template import RequestContext from record import naver_api_utils as naive from record import slide_generator as slidegen import configparser import os config = configparser.ConfigParser() config.read('record/config.ini') ...
de1b57e6a370e2efa362755b1358759ed978deb6
8785e48e39be45eca63e1cf705a01e4b2be5394b
/ebay-api-scraper/parallel-requests.py
bdebbaf5b26bee8085741806898fb885807ce89a
[]
no_license
cuulee/ebay-price-predictor
08baca873210c3f9d449e2b9c71ebff4b79f727c
9e2055fd7b1c96c6715d7dcbd2882da4403048c5
refs/heads/master
2020-08-28T01:21:53.304680
2017-04-27T06:13:45
2017-04-27T06:13:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,755
py
parallel-requests.py
# Based on http://www.eamonnbell.com/blog/2015/10/05/the-right-way-to-use-requests-in-parallel-in-python/ import sys import requests from multiprocessing import Pool import psycopg2 from scrapy.selector import Selector from scrapy.http import HtmlResponse import math start_index = input('Which index are you starting ...
0e754f581e8c0f47e81291f59cf006d2c078c89f
4510789b16f8d0da70afa8144877573e4d3a1708
/src/kafka_helper.py
18823449de77920f23033163832d8613fc68e755
[]
no_license
Guitar1st/site_monitoring
8adf655533cb1fe652ccd80a5d5742f654023dd0
64afa4ac366b47ece5448f076cd40ee1ecec11c8
refs/heads/master
2023-01-24T06:13:18.994321
2020-11-16T08:01:52
2020-11-16T08:01:52
313,228,951
0
0
null
null
null
null
UTF-8
Python
false
false
723
py
kafka_helper.py
import os from kafka import KafkaProducer, KafkaConsumer def get_security(ssl_folder): return { 'security_protocol': 'SSL', 'ssl_cafile': os.path.join(ssl_folder, 'ca.pem'), 'ssl_certfile': os.path.join(ssl_folder, 'service.cert'), 'ssl_keyfile': os.path.join(ssl_folder, 'service....
cd009b4006ce1c4edd96e2681dde17c334bb0727
3e892341640ce351163c1fb289bb94146b50af41
/Crypteur Décrypteur.py
29b780d4a9c7b20dc3d2ddaa6921c299991b3f8f
[ "MIT" ]
permissive
Baitoven/chua-diod-emulator
59c62342f06e3d0b65ef01732fac126b3c74ff95
b26747d14cf20eea56ccaba66503db8054380d99
refs/heads/master
2022-11-28T16:25:32.766263
2020-08-14T12:13:07
2020-08-14T12:13:07
287,524,656
0
0
null
null
null
null
UTF-8
Python
false
false
16,585
py
Crypteur Décrypteur.py
import math from scipy import * from pylab import * from scipy.integrate import odeint import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import random """Parametre systeme""" m0 = -0.41 m1 = -0.79 m2 = 4.54 #valeur théorique m3 = -0.45 #valeur théorique pc1 = 1.8 #valeur théorique, pc1 = 1.957...
576b4a248045ba6601bcc04a26dd3a2d2a969348
37bb50df328acced43afa1ba276e10ea49f2cf38
/lesson1/task6.py
6ed9eed4aa2224e00ad9f0e752440e098af36fab
[]
no_license
ba6a-yaga/pythonlessons
3145c2639c4eb25ace22a59c42470dd82f579580
7572d5daa7621225bb9d18d47acc6f434e44e409
refs/heads/master
2020-04-11T18:55:25.253928
2019-02-05T20:37:31
2019-02-05T20:37:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
612
py
task6.py
# Пользователь вводит номер буквы в алфавите. # Определить, какая это буква. import string num = input('Введите номер буквы: \n') if num.isnumeric(): if int(num) > string.ascii_uppercase.__len__(): print(f'Букв в алфавите {string.ascii_uppercase.__len__()}, попробуйте снова') else: ch = string...
00778381f8bcab86a43a09708c773daa6f0137b3
c2c31fd50665faac3723b453ba053ff59cb418db
/__main__.py
237d8e53764b6df84cfb15c46cb574b0dd92b373
[ "Apache-2.0" ]
permissive
trolleway/scanimage-book
a837bd4cd1275cd1d3cc1c306494aa547f3301b8
06ed1a8cd044d81d7c271d04fd5fcf01b391a06f
refs/heads/master
2020-07-21T11:56:05.253011
2019-09-06T19:09:37
2019-09-06T19:09:37
206,856,865
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
__main__.py
import os cmd = 'scanimage --format tiff --batch --progress --verbose --mode Color --resolution 300' os.system(cmd)
e234b335ac7dec5ecde8468f837f3e54c7eeb895
935999ba83d1130d2b4d74166dfa16ec4fcb4233
/utils/caffe_model_utils.py
5515866742139df5b894129adad1b5eb62c7a582
[]
no_license
DatHuynh/latent-noise-icnm
adc887c1e5641628d779d3b82987ac2c85eefdae
6d9067a0ed4e302f2a5b02f3f85f2b2b3335036c
refs/heads/master
2021-04-06T01:07:09.205100
2016-08-14T13:55:01
2016-08-14T13:55:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,517
py
caffe_model_utils.py
import numpy as np import re import os ''' Simple utilities for making life with caffe easier Includes - parsing solver without needing to import protobuf - parsing caffe logs for reading loss/lr values ''' __author__ = "Ishan Misra <ishanmisra@gmail.com>" __date__ = "2015.07.12" def parseSolverProto(solverPath, rem...
cf629c89a5ef1682499c0196a3e01bbbc7533f91
c99dd79a419dc652962e16fc8d0f1c25143c8471
/entrenar.py
09216939fce40d0babc5a9b10a8dc9fa12b45107
[ "MIT" ]
permissive
fiecup/ia-clasificador-imagenes
0e9acba0dd2fa2291fe270ca436d40ae5d3b2337
f38d78a1aff4f885b67bb5bee9af605f3469e5b9
refs/heads/master
2020-06-23T15:04:14.075611
2019-07-26T04:40:31
2019-07-26T04:40:31
198,657,842
3
6
null
null
null
null
UTF-8
Python
false
false
3,002
py
entrenar.py
import sys import os from tensorflow.python.keras.preprocessing.image import ImageDataGenerator from tensorflow.python.keras import optimizers from tensorflow.python.keras.models import Sequential # Nos permite hacer redes neuronales secuenciales from tensorflow.python.keras.layers import Dropout, Flatten, Dense, Activ...
21f56cbc393ed37ab654901d611905fbc580bf31
32dbcb9905d3ad193dded2a01d5b7006f4a4264e
/2/main.py
108a5708c41863e86ab7898d47be676b5cb6dfb0
[ "MIT" ]
permissive
felixb/advent-of-code-2017
2d53c7b0ce34e00ba058b7737262c9b0c543e5e8
634d98e8887b12e269374a713185c81ec940cca1
refs/heads/master
2021-09-02T00:41:21.683802
2017-12-29T13:12:25
2017-12-29T13:12:25
115,003,451
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
main.py
#! /usr/bin/env python3 import sys from functools import reduce def parse_line(line): if len(line) == 0: return 0 input = [int(i) for i in filter(lambda i: i != '', line)] return max(input) - min(input) def run(input): input_matrix = list(map(lambda i: i.split(' '), input.split("\n"))) r...
80ff296aa52db46c9ef0c5c77f0c65f82d5f2374
275e665eaac3216065d88fc74719e6a034c6e0b5
/baylor_denovo_qc/compareDeNovo.py
ed8402b989a2810f50ffd933b42b73f696c1b272
[]
no_license
asalomatov/misc_scripts
c23a6a3476c68f69cddcc951c0a9b9685411aa0d
aca316a07a3bd67d34cd7dddda3c27a06496ad5e
refs/heads/master
2020-12-31T01:23:16.069292
2017-08-24T19:18:44
2017-08-24T19:18:44
34,534,029
0
0
null
null
null
null
UTF-8
Python
false
false
20,427
py
compareDeNovo.py
import pandas as pd import numpy as np import os geneDX = pd.DataFrame({'chr':['20', '4', '14', '4', '14'],'pos':['31021623', '501248', '21854332', '501248', '21854332'],'ref':['-', 'G', 'G', 'G', 'G'],'alt':['AAAAGAAGCCCCG', 'A', 'T', 'A', 'T'],'descr':['frameshift', 'missense', 'missense', 'missense', 'missense'],'g...
e740a7a0865ff78174fcb47f39301a9f8ccb19fd
1ea2b6c7ac590eccc4671ac819922ad2360771a0
/spider7-北大BBS/spider7-北大BBS.py
9b69683e858decfff60c8252ec895dfc4af3d842
[ "MIT" ]
permissive
zzhaoch/MyPythonSpiders
36e266eec60f2ac446560b9724153e31438cc975
6112797ac67aa6c00c65f7bd0226225ffc429ccd
refs/heads/master
2023-01-07T15:24:53.201846
2020-11-09T08:45:28
2020-11-09T08:45:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,599
py
spider7-北大BBS.py
# -*- coding: utf-8 -*- # 0. # 模拟登录,获取session # 1. # 爬取十大的帖子 # 所有文本内容,正则分词给出关键词 # 参与讨论的用户,查看用户的特点 # 2. # 爬取所有版面 # 每个版面当前在线人数,倒叙排序,显示总贴数 # 点击之后显示,该版面的发帖数量随时间的变化,爬取10页,数量太多太慢 from flask import Flask,render_template,jsonify import hashlib import requests from requests import RequestException import json from bs4 impor...
b0a7d7ee728b6d27a202e404519356173681dbfe
84c68bfad0f6644c2013f7bb9f36eaf4c5febb6a
/fetch/fetch_aiohttp.py
88464c33fecb936e88ab00f18aecbb773852c27d
[]
no_license
benjaminrumble-tc/asyncio-ttt
0a842ec116d812633e5a9281495a8ae3c3af45e6
894e444252dfb9cfe0a6043f460633f22d1c6d63
refs/heads/master
2022-12-12T03:31:08.122208
2019-08-21T19:51:08
2019-08-21T19:51:08
171,498,314
0
0
null
2022-12-08T05:47:06
2019-02-19T15:27:36
Python
UTF-8
Python
false
false
538
py
fetch_aiohttp.py
#!/usr/bin/env python3 """fetchs a bunch of HTTP resources using aiohttp""" import asyncio import time import aiohttp async def main(): """an async function""" start = time.time() urls = [ f'https://httpbin.org/get?request={i}' for i in range(20) ] async with aiohttp.ClientSession() as s...
a1a39bd6915b79a54ffcf43aa0ada573d491fe47
e310be0e50a0cfd2a18ff8a4ba90bb1833cd0f5f
/fractals/venv/cantor.py
62e825d4e9e18250d68df0426e5b5ca6837e923f
[]
no_license
scottbing/SB_5410_Final_Project
d2010bf06b1e1632c64543c241a330283a6c362b
45bf567ce093cafa33ae18285ff6df0ba5d75d12
refs/heads/master
2023-02-03T04:31:41.161223
2020-11-27T05:15:33
2020-11-27T05:15:33
310,676,104
0
0
null
null
null
null
UTF-8
Python
false
false
3,763
py
cantor.py
import numpy as np import matplotlib.pylab as plt def vicsek(a, b, c, d, iterations, offset=np.array([0, 0])): ab = (a + b) / 3. ba = 2 * (a + b) / 3. bc = (2 * b + c) / 3. cb = (b + 2 * c) / 3. dc = (c + 2 * d) / 3. cd = (2 * c + d) / 3. ad = (d + a) / 3. da = 2 * (d + a) / 3. ab...
aa9758a6fced2c188e43a1764322d92063a35641
4ec6ed4ebcb9346042669e6aa03be0e502ed48b3
/leetcode/base-7.py
415659b351401b1e1508ef07c7718e01a93131b2
[]
no_license
shonihei/road-to-mastery
79ed41cb1ad0dc2d0b454db2ccc7dd9567b03801
312bdf5101c3c1fc9a4d0b6762b5749ca57efe08
refs/heads/master
2021-01-22T19:59:17.038641
2017-11-16T15:21:55
2017-11-16T15:21:55
85,266,186
0
0
null
null
null
null
UTF-8
Python
false
false
599
py
base-7.py
""" Given an integer, return its base 7 string representation. """ def convertToBase7(num): if num == 0: return "0" neg = False if num < 0: neg = True num *= -1 out = "" while num > 0: out = str(num % 7) + out num //= 7 return out if not neg else "-" + ou...
caccd4c62d149d306fb3fe4fd0b9dd15976b52a6
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/word-count/db58aa407a13444680993624ac8f030f.py
e2a076eac58a764daf6d673e2a05b36093c3aead
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
378
py
db58aa407a13444680993624ac8f030f.py
def word_count(phrase): counts = {} # Split the phrase up into a list containing each word for word in phrase.split(): # If the word is in our dict, increment its count if word in counts: counts[word] += 1 # If the word is NOT in our dict, add it with a count of one ...
5aa0b865d9f7b77d27355e4cc6f8899e76bd3642
21f34c61ce7f3ca154b37aeb5dfd32d9ac3236e5
/leetcode/1528_shuffle_string.py
fed995b3345726e026d56f8dd7b22bcd162b7e22
[]
no_license
codingbbq/python-katas
b3b5fa15419766b37390e40e864ce90be2664f55
44241dae4394939f963787aab08d5e7c290dbb9a
refs/heads/master
2021-06-27T15:28:57.775778
2021-01-05T10:17:53
2021-01-05T10:17:53
184,697,423
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
1528_shuffle_string.py
# 1528. Shuffle String # https://leetcode.com/problems/shuffle-string/ from typing import List class Solution: def restoreString(self, s: str, indices: List[int]) -> str: # Create a dictionary to store indices as key and s[indices] as value o = {} # crate a list where shuffled values will ...
34c86f6c0219bf7874d56ebf85b54f242a41c87a
2702985c5fe38738425a29e75a098d661fb899b0
/UNet.py
70ac9c0468a4f1836f97a44ddd1e3626d68bdebf
[ "MIT" ]
permissive
kkothari93/fionet
86597903bc5bb1137adcc01a1d133686e3c7a1b9
7dbeb2a97b062167cc70f50fe885e1e6de1b4985
refs/heads/main
2023-03-10T16:23:49.208824
2021-03-01T14:36:41
2021-03-01T14:36:41
306,303,227
14
0
null
null
null
null
UTF-8
Python
false
false
5,129
py
UNet.py
import tensorflow as tf from tensorflow.contrib.layers import conv2d, max_pool2d, avg_pool2d class UNet(object): """ This is a UNet class that sets up a regular UNet with different number of channels, pooling options and output options """ config_def = { 'pool_type': 'max', 'start...
e8380444d9dc5b0536c0a2f6fbbfd8a6552af0c5
858361e405b69ad1c9868c72ed88236e90893b1a
/boards/fetcher/exceptions.py
532b9e4e5eb9dfa3d65da3f01cb40425163e0bc4
[ "BSD-3-Clause" ]
permissive
m1yag1/zenhub_charts
e97145941aa0ee18b7b978ae9eabf6a9a75e626f
69046e2955f33e67e48401e10bb9428149b20411
refs/heads/master
2020-04-04T11:42:27.336770
2018-11-02T17:41:27
2018-11-02T17:41:27
155,901,408
1
0
null
null
null
null
UTF-8
Python
false
false
205
py
exceptions.py
class PipelineNotFoundError(Exception): def __init__(self, board, name): message = f'Pipeline ({name}) not found in {board} boards' super(PipelineNotFoundError, self).__init__(message)
6665c5e8164a93e2a17eac397af6339beca98321
c46754b9600a12df4f9d7a6320dfc19aa96b1e1d
/src/transformers/models/marian/tokenization_marian.py
96a1f47bf762125e3649d2291b8594c890a241c1
[ "Apache-2.0" ]
permissive
huggingface/transformers
ccd52a0d7c59e5f13205f32fd96f55743ebc8814
4fa0aff21ee083d0197a898cdf17ff476fae2ac3
refs/heads/main
2023-09-05T19:47:38.981127
2023-09-05T19:21:33
2023-09-05T19:21:33
155,220,641
102,193
22,284
Apache-2.0
2023-09-14T20:44:49
2018-10-29T13:56:00
Python
UTF-8
Python
false
false
17,662
py
tokenization_marian.py
# Copyright 2020 The HuggingFace Team. 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 applicabl...
ec19e4693d7c0807ecb023b4ea755f7561ecdc8d
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_155/3505.py
1bfaee23ef801881fbc09b5fbab29229a681a0cf
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,578
py
3505.py
# read input import fileinput num_tests = -1 tests = [] for line in fileinput.input(): line = line.strip() if num_tests == -1: num_tests = int(line) continue test_case = line.split() max_shy = test_case[0] # Not sure I need this tests.append([int(d) for d in test_case[1]]) # ch...
52a55e15cc708fedde44447eaa7d4ae4d4244667
428f2ed6db3cbc99d28c5a867f58c0d3c4a93522
/russ/lstm.py
7ca5b63318f5c9b4f774474a0163f768a7cbcff0
[ "Apache-2.0" ]
permissive
IlyaGusev/russ
bbb5ebd5f7659999f263eead838de00859ccc303
1ab9339b3984927b8c493d731c3d5b67dcb73ae0
refs/heads/master
2023-02-05T09:31:01.776834
2023-01-27T23:16:13
2023-01-27T23:16:13
174,317,419
8
0
null
null
null
null
UTF-8
Python
false
false
2,558
py
lstm.py
import copy import torch from torch.nn.functional import pad from torch.nn import CrossEntropyLoss, Embedding, Dropout, LSTM, Linear from transformers import PretrainedConfig, PreTrainedModel from transformers import AutoConfig, AutoModel, AutoModelForTokenClassification class LstmModelConfig(PretrainedConfig): ...
f02111956cf6b268e3250765a366e0c3738511ce
16b9a6bfc707b0ab84c3ea6f9f81510f0d272c62
/pong/pong.py
a0875762960ac7523b9779abe77e973ece46f80d
[]
no_license
pchhina/interactive-programming
5d3a6d222680e662f0574f6b54b7c4d077579d5e
bb26f2337b4ef29cf3678731f91989fb900b1d2f
refs/heads/master
2020-06-02T01:51:48.174896
2019-06-30T18:52:19
2019-06-30T18:52:19
190,997,998
0
0
null
null
null
null
UTF-8
Python
false
false
5,110
py
pong.py
import tkinter as tk import time import random root = tk.Tk() root.title("Pong") class Pong: """Represents the game of pong. """ def __init__(self, master): self.width = 1000 self.height = 800 self.window = tk.Canvas(master, width = self.width, height = self.height) self.w...
ef83c4c7f0847d55cbf122fcd48b099116390f61
d4d506b7e9e74d775565d533483fa2a81b2c7cdc
/monocular_camera_depth.py
68ce2b8c5d2e9126f8ce69fe635fd9e1093d3f5c
[ "MIT" ]
permissive
DavieWu/monocular_camera_depth_mydemo
a2940783d18c241c091c8b37083e86aa0d173856
bcf7980a9578fe724db3f1c0b1b41b2db5fa59ff
refs/heads/main
2023-03-20T03:05:24.360416
2021-03-10T03:15:10
2021-03-10T03:15:10
346,212,181
1
1
null
null
null
null
UTF-8
Python
false
false
3,708
py
monocular_camera_depth.py
# !usr/bin/python # -*- coding: utf-8 -*- # 定义编码,中文注释 # import the necessary packages import numpy as np import cv2 # import toybrick as toy2 # 找到目标函数 def find_marker(image): # convert the image to grayscale, blur it, and detect edges gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) ...
6666e4d55e0f0dd4e746a2f2443f008d784877aa
ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb
/examples/docs_snippets/docs_snippets/intro_tutorial/basics/testing/custom_types_test.py
ee6451b484e74e3011a98145ff835a6840923252
[ "Apache-2.0" ]
permissive
dagster-io/dagster
6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a
fe21995e0402878437a828c6a4244025eac8c43b
refs/heads/master
2023-09-05T20:46:08.203794
2023-09-05T19:54:52
2023-09-05T19:54:52
131,619,646
8,565
1,154
Apache-2.0
2023-09-14T21:57:37
2018-04-30T16:30:04
Python
UTF-8
Python
false
false
3,023
py
custom_types_test.py
import csv import os import typing from dagster import ( DagsterType, Failure, Field, String, check_dagster_type, dagster_type_loader, job, op, ) def less_simple_data_frame_type_check(_, value): if not isinstance(value, list): raise Failure( "LessSimpleDataFram...
fd90af4c2da757f2298eb0b4c5a804e8388f00af
e684dddf58d19f129584ea1e7edad7c889aa49d7
/client/adcclient.py
af677d18d1e26ef2d0ccc39497651e4d3e5088cd
[ "BSD-3-Clause" ]
permissive
dasadc/adc2019
be204821dbfba5d34f87efc488d5fe88f7fecc97
7fdc2306a959391e88a81d2703e75d4665df98b1
refs/heads/master
2023-07-20T19:22:43.370345
2023-02-13T22:57:15
2023-02-13T22:57:15
200,173,975
1
2
BSD-3-Clause
2023-08-29T02:04:14
2019-08-02T05:55:13
Python
UTF-8
Python
false
false
32,173
py
adcclient.py
# coding: utf-8 # """ a client library for ADC service """ import http.cookies as Cookie import json import os import stat import sys import urllib.error import urllib.request import yaml import re import base64 import pickle class ADCClient: """ client of ADC service """ states = ('init', 'im0...
ea75f22e8b2cc2ac3f4cf7853551fb43b6c7ed81
e854495b81dfad2ecdd1ae0dfdd22c54ed15b4d4
/crowd_app/station_crowd/views.py
d9ffdc9edd87822e681cff31a9d92abc57c6d4ac
[]
no_license
WenqingZhong/MassTransit
1c20eb6c59ba00c9db8020e7c19d29defa901503
189e8cdf09bb03b844ce5137d54c7e6e2b7b030c
refs/heads/master
2022-12-04T21:55:53.581599
2020-08-21T08:13:56
2020-08-21T08:13:56
275,008,819
3
2
null
null
null
null
UTF-8
Python
false
false
288
py
views.py
from django.shortcuts import render from django.http import HttpResponse from .models import station_call # Create your views here. def index(request): all_station_items = station_call.objects.all() return render(request,'station.html', {'all_items': all_station_items})
6048f7ed21eae09af41d2a43211677f9bfa771ef
9cc5c031460eda82b29da2cff37c2ce47732b6c2
/model/xgboost/main.py
aabee9fadbc4395bed6778467f9ecde91bdc2886
[]
no_license
carlos-bologna/auto-machine-learning
fc55296a674ef80a4acba286e16b25fe13f107e0
52e057eb3b14d104b75679ccaf241759c2406c1c
refs/heads/master
2023-07-01T00:25:56.141595
2021-08-07T18:33:52
2021-08-07T18:33:52
393,756,369
0
0
null
null
null
null
UTF-8
Python
false
false
5,311
py
main.py
# Modules import argparse import logging import json import pandas as pd import joblib import scorecardpy as sc import shap import matplotlib.pyplot as plt from sklearn.pipeline import Pipeline from sklearn.metrics import accuracy_score, roc_auc_score, confusion_matrix from scipy.stats import uniform, randint from cust...
d7e71d71632d276ccc22c9044f07a0253b56f46b
8350ed8175ec3f43553535cbd2428e774ed3b2fd
/train.py
69620a594f176bcb03af6e8d9f87af5b13dbc9c8
[]
no_license
IThzf/SetE_Pytorch
0220b9b83813ba4b9202a3d716d7646e7fb85a20
323e4a21e07b3c001308e9dc040366eaa31727b0
refs/heads/master
2023-06-10T21:13:41.596888
2021-07-06T12:41:31
2021-07-06T12:41:31
383,408,595
0
0
null
null
null
null
UTF-8
Python
false
false
7,683
py
train.py
import argparse from datetime import datetime import argparse import torch from tqdm import tqdm import random import numpy as np import logging from gensim.models import KeyedVectors import re from collections import defaultdict import os from os.path import join, exists from torch.utils.data import Dataset, DataLoade...
91432a535b6a75c9ba32379ab85ad29a9de0a653
304da55817b547ca2b4cab9c70a883fcf616261e
/day8/ex-2.py
3ac44d28ec807973fd1824e80d13987a40af4a86
[]
no_license
jeshu/Python-learning
aaad811a4685a5302fe168508b6464eeba9260da
3a10f2b09d37d12fc2e78e9e22cf99afa4717b0d
refs/heads/main
2023-03-11T17:35:12.576729
2021-02-22T16:26:28
2021-02-22T16:26:28
336,346,690
1
0
null
null
null
null
UTF-8
Python
false
false
362
py
ex-2.py
# Prime numbers checkered n = int(input('Check this number: ')) def prime_checker(number): isPrime = True if number <= 1: isPrime = False for i in range(2, number): if n % i == 0: isPrime = False if not isPrime: print('Not Prime number') else: print(...
4f8008bd6fe44f08867ed0e575f9f11fc50f9556
2be3fd36240aad909aa49e58fb087f3420787a0c
/config/config.py
86b6428e70e14f2346a0b93615915a49268ab36c
[]
no_license
spencereir/dai-chan
c4df7a5e2d83148abfd7e09bf4def45ff0154f77
4a97e6b0b23e0909b01d204e2c8ee04239f737f5
refs/heads/master
2021-10-14T08:47:28.451265
2017-12-19T00:00:07
2017-12-19T00:00:07
113,642,223
0
0
null
2017-12-18T23:52:33
2017-12-09T04:41:16
Python
UTF-8
Python
false
false
548
py
config.py
from commands import random, general, admin, games, sound, fun bot_names = ['dai', 'dai-chan', 'daichan', 'daiyousei', 'small cirno'] command_map = { 'choose|pick': random.choose, 'roll|calc|calculate': random.roll, 'reorder|shuffle': random.reorder, 'say': general.say } interactive_command_map = { ...
545794cf4f0b2ab63b6a90951a78f8bdaca3c9e6
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/rbeuWab36FAiLj65m_8.py
acefa118e546cdcdca809a6912da010d16a7d953
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
rbeuWab36FAiLj65m_8.py
from collections import defaultdict as dd def grouping(w): d = dd(list) for k,v in ((len([y for y in x if y.isupper()]), x) for x in sorted(w,key=str.casefold)): d[k].append(v) return dict(sorted(d.items()))
ab844143ceddf32982682f5092762af0c97db577
b1629420113e3a2f7ab89eb85c381d10ba62c81e
/parse/translators/c_trans.py
13cd8bef65ff78f75e96a9105578d791d0383d62
[]
no_license
csboling/pdftoregs
dee466ddf67e4fa82ff9875477224bcb0f1314c5
2dd618d9be42eb7a3319a57d76627afc3984772f
refs/heads/master
2021-01-22T10:02:37.933187
2015-08-18T19:40:36
2015-08-18T19:40:36
35,638,627
0
0
null
null
null
null
UTF-8
Python
false
false
48
py
c_trans.py
from ..translators.translator import Translator
0762c5bec2d796bb7888e3de45e29fb20f88f491
04a643a77927bc56ab58c7df91d4733321e61e51
/browser_plots/GE_pearson.py
59e5749afea76232a90960eed91ac32fbe6474f9
[]
no_license
dcollins4096/p19_newscripts
d2fae1807170a4d70cf4c87222a6258211f993ff
23c780dd15b60944ed354406706de85282d0bee6
refs/heads/master
2023-07-21T11:53:55.188383
2023-07-18T17:38:21
2023-07-18T17:38:21
215,159,839
0
3
null
null
null
null
UTF-8
Python
false
false
5,245
py
GE_pearson.py
from starter2 import * from collections import defaultdict import scipy import colors import hair_dryer reload(hair_dryer) import three_loopers_u500 as TL import movie_frames def GE_pearson(this_looper,core_list=None): if core_list is None: core_list = np.unique(this_looper.tr.core_ids) name = th...
7bbbd30ba1578c1165ccf5c2fff22609c16dfd64
683b726ff29e0263e369f615eddcdd72792779de
/Aula11b.py
575605827dfb46b53d5d3cb01703d062ea86c06f
[ "MIT" ]
permissive
katiareis/Python-Learning-Lab
e882c995eaafa3566be2ee5a03e0a752f0b696e0
f3ee9ab8fbe65018ae00f892b807c2a438fdf556
refs/heads/master
2022-12-04T22:40:38.901675
2020-09-03T03:35:31
2020-09-03T03:35:31
256,342,605
1
0
null
null
null
null
UTF-8
Python
false
false
437
py
Aula11b.py
""" Cores no terminal """ a = 3 b = 5 print('Os valores são \033[32m{}\033[m e \033[31m{}\033[m !!!'.format(a, b)) # Dicionário de cores: nome = 'Kátia' cores = {'limpa':'\033]m', 'azul':'\033[34m', 'amarelo':'\033[33m', 'pretoebranco':'\033[7;30m'} print('Prazer em te conhe...
8ca77ed608108a9aa693acb686156e661794d7ab
d06a84782bd3a022de11fcc9dd634b514257a3d3
/023 - Sum integers that aren't the sum of 2 Abundant numbers.py
e56033288ef1808a4c1b41e0d6acd57a18fa3ab0
[]
no_license
jsundram/euler
0c301ad09fd95173ea9751f8e108f302e347b3b8
907e636f6d6e34dad5a228087baae4c8d0b09f30
refs/heads/master
2016-09-06T12:03:44.012502
2013-02-01T06:22:03
2013-02-01T06:22:03
1,256,230
1
1
null
null
null
null
UTF-8
Python
false
false
2,761
py
023 - Sum integers that aren't the sum of 2 Abundant numbers.py
# A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. # For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, # which means that 28 is a perfect number. # # A number whose proper divisors are less than the number is called deficient a...
b5ac3695a224d531f5baa53a07d3c894d44e8c4c
a659c2f45350cd1750238eda65b650b2cdcc9d1d
/UART_py3/ADC_INL.py
5407c9577540f1a4073ba05eef51bcaaeed72d19
[]
no_license
MaryKBoss/GUI-lpGBT
866db95986dbc3c4e1b158b9c2ad1eb605b423eb
6ef72c73bd211fe516eb03dec9f9ec57d07a203a
refs/heads/main
2023-06-24T04:58:20.324319
2021-07-22T16:06:42
2021-07-22T16:06:42
386,376,535
0
0
null
null
null
null
UTF-8
Python
false
false
2,075
py
ADC_INL.py
import matplotlib.pyplot as plt Ci_MSB = [32,16,8,4,2,1] Ci_LSB = [16,8,4,2,1] CB = 1 CP_B = 0 CP_LSB = (32-1)*(CB+CP_B-1)+10 print(CP_LSB) CP_MSB = 0 Csum_LSB = sum(Ci_LSB)+CP_LSB Csum_MSB = sum(Ci_MSB)+CP_MSB Cx = Csum_LSB*Csum_MSB+(CB+CP_B)*Csum_LSB+(CB+CP_B)*Csum_MSB Wi_MSB = [Ci_MSB[i]*(CB+CP_B+Csum_LSB)/Cx for i...
c9d12f14fa0e46e4590746d45862fe255b415a1d
2f1bde1788642b637da63471495fb47102dc5b0b
/chcemvediet/apps/obligees/templatetags/chcemvediet/obligees.py
d8ecde93ea9ce95dd10f0492423dcba5c3f9abca
[]
no_license
martinmacko47/chcemvediet
841c9c8529f1e1a552138ec23c715e9750a127db
945cb89f37272d79dc38370c7fb481380a3d8472
refs/heads/master
2022-07-14T19:31:46.448495
2022-05-31T17:01:53
2022-05-31T17:01:53
13,114,888
6
5
null
2022-05-31T17:01:53
2013-09-26T06:41:40
Python
UTF-8
Python
false
false
538
py
obligees.py
# vim: expandtab # -*- coding: utf-8 -*- from poleno.utils.template import Library from chcemvediet.apps.obligees.models import Obligee register = Library() @register.simple_tag def gender(gender, masculine, feminine, neuter, plurale): if gender == Obligee.GENDERS.MASCULINE: return masculine elif gen...
58e023c3c453d1e190fdb5bc457358f42d1bd93f
c1468b2478d6aa5d632fea9e91461327e3b33511
/Arrays/smallerNumbersThanCurrent.py
f8c16c1186d232b22ee61b7e006749bd827c4326
[]
no_license
AbdussamadYisau/ds-and-algos
d2d4e6dccc7ae91f0bcdfc99778efd2b6b48c5df
73c2d6a2416109807f31698a8ae508407fbb3996
refs/heads/master
2021-11-29T14:16:07.072987
2021-11-11T10:20:18
2021-11-11T10:20:18
220,220,927
3
0
null
null
null
null
UTF-8
Python
false
false
920
py
smallerNumbersThanCurrent.py
# https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number/ # BruteForce class BruteForceSolution: def smallerNumbersThanCurrent(self, nums): answer = [] for num in nums: counter = 0 for i in range(len(nums)): if n...
b4b7e20c9558bd1b29a1c1fa24bfca8a2d292b27
6a8165c268ed873a7a92bfa4417968a472442de9
/join_routes.py
85562d3690b697b36e975fe178576d53f05c41bc
[]
no_license
storress/MasterScripts
9e172dec14808d2c3b144a9ea5697eb8555ba653
3ed46711e64846bd8994a7c6a2ca48842f3528c3
refs/heads/master
2023-06-03T19:04:04.643487
2018-12-07T18:11:55
2018-12-07T18:11:55
155,873,977
0
0
null
null
null
null
UTF-8
Python
false
false
1,358
py
join_routes.py
import xml.etree.ElementTree as ET #tree = ET.parse('rutas/rutas_prueba.xml') #treeToAdd = ET.parse('rutas/rutas_prueba_agregar.xml') #root = tree.getroot() #git rootToAdd = treeToAdd.getroot() #for child in root: # for test in child: # print(test.tag, test.attrib) #for elem in root.iter(): # print(...
97bbb181cbc0f5bfbf0b2298133fc226b6217d91
60860b1716b075936f1564cdff465cf5d6d6fd06
/faceRecognition/Triplet Loss/train_triplet_batchnorm.py
b5830470b6cdc1bd927f2c12e73c280514ddafda
[]
no_license
qzq2514/DNNCode
98661184d7656054d027982dcfd2d032fe048153
e40c98a00ecc28ae6ebe74719cad964b7f64c9d7
refs/heads/master
2022-03-12T20:40:06.628328
2019-12-08T08:10:18
2019-12-08T08:10:18
190,164,703
4
1
null
null
null
null
UTF-8
Python
false
false
7,018
py
train_triplet_batchnorm.py
import tensorflow as tf from tensorflow.python.framework import graph_util from net import siameseNet_batchnorm as siameseNet import dataset import numpy as np import cv2 import os batch_size=64 input_height=32 input_width=32 total_epoch_num=50 snapshot=100 support_image_extensions=[".jpg",".png",".jpeg",".bmp"] margi...
1d81280d10921b012e4bfb04830e3381d5914746
ab0d82836b1dc5950058018afaac037aa526ffda
/src/run.py
211517c8b207fa68b1f145fae11cfad1de19ff9f
[]
no_license
rtrive/flatten-arrays
77e80f7172bbcaf90069da319ba018bcb3c340db
d6e83dfa6d3fa27147063dae8e20491a5a1ab51a
refs/heads/master
2023-04-01T14:10:47.805158
2021-04-12T17:04:45
2021-04-12T17:38:50
357,275,360
0
0
null
null
null
null
UTF-8
Python
false
false
903
py
run.py
import logging logging.basicConfig(level=logging.INFO) def flatten_array(array: list) -> list: """ Take array as input and check if there are arrays inside. Transform array of array into single array and return it Parameters ---------- array: list """ if len(array) == 0: ret...
0cb5c60689ad3de28ea9bcdfa17f796a05505775
959f0ae386dae7a2aff8fb77c6ed793f778b63aa
/courses/admin.py
8cf608b5702d128e9507c3f6f22dbba719851c35
[]
no_license
milan090/col
9c512bdda26556f3ab622fdf961eb02b89396426
f07408b3cd5d3387b6a143febc277d559595ce97
refs/heads/master
2022-06-22T02:04:47.461178
2019-12-20T03:59:04
2019-12-20T03:59:04
224,069,526
0
0
null
null
null
null
UTF-8
Python
false
false
211
py
admin.py
from django.contrib import admin from .models import Course, CourseLesson, UserCourses # Register your models here. admin.site.register(Course) admin.site.register(CourseLesson) admin.site.register(UserCourses)
6a7a49f79ca6d74f827815dd775b5c9d7442e69b
805c15042ce1014fd5c557574c203179d797de7d
/CV_semantic.py
67bcbfef46ea2e4838485dbdb113452b2d7739ae
[]
no_license
abhaypuri/StreamAI
5c5e76c0f98b4e83225f61b273e220aefd2d1193
6d2aba0af67839a96051b4d165f6d83d22a77980
refs/heads/main
2023-01-29T12:12:08.543234
2020-12-14T20:22:02
2020-12-14T20:22:02
319,606,156
0
0
null
null
null
null
UTF-8
Python
false
false
3,851
py
CV_semantic.py
import numpy as np import imutils import time import cv2 import streamlit as st import matplotlib.pyplot as plt def semantic_segmentation(): st.title("Semantic Segmentation") st.write("Semantic Segmentation using OpenCV. Can detect various aspects adn parts of an cityscape image using enet.") # load the cl...
4c58e1d045b3bf03a70bb6fe86eb2cde34224c8e
b0e6e1d37560d10ba1b7e517f264953a067aab9c
/Connecttoadevice.py
3f3a45571550547bdf99f8f44f2667f3b5c679f6
[]
no_license
dtmilano/MySpotifyTestScript
77017c8d3fd492683fb24cf6515388c9cb2f2e59
33e5a3b15ad646c134279ae1e6e1a97ee8960294
refs/heads/master
2023-07-31T18:35:15.189639
2018-01-30T13:15:07
2018-01-30T13:15:07
119,570,562
1
0
null
2018-01-30T17:33:41
2018-01-30T17:33:41
null
UTF-8
Python
false
false
8,304
py
Connecttoadevice.py
# # find the device in id/device_list # def find_device(vc,arg,touch=None): # arg tgt_device_display_name: ATTEMPTS = 4 # refer AndroidViewClient-13.6.2/src/com/dtmilano/android/viewclient.py line 2045 for i in range(ATTEMPTS): # android___id_list = vc.findViewByIdOrRaise("android:id/list")...
ea410e0b0c2f7d66aedbe5230ebd425bf5823142
41960a07a8118cf99236972c1e94a36ef00c55c9
/user_input/management/commands/populatehrrforuser.py
c0162453ec1f9c87dc3890e805f1fd647764e67a
[ "MIT" ]
permissive
wahello/jvb
7288f3fc8099dbbdfa5cdac86b251d4d739f4dca
c87fdf49ae040668323d1a034aa407cfe23c4a1d
refs/heads/bug/aa_ranges/chart2
2022-11-29T12:58:37.561674
2019-06-17T10:50:17
2019-06-17T10:50:17
211,479,327
0
1
MIT
2022-11-19T02:54:15
2019-09-28T09:52:28
null
UTF-8
Python
false
false
4,402
py
populatehrrforuser.py
from datetime import datetime import logging from django.core.management.base import BaseCommand, CommandError from django.contrib.auth import get_user_model from hrr.views import hrr_data logger = logging.getLogger(__name__) def _str_to_datetime(str_date): ''' Convert date string to datetime object Args: st...
271e23824786ae8c22d34cf65aa227d9078c56f9
4f5c5117366929d51f282f2caf003ca6f5afc2fa
/All20/Air/intent_xml_generator.py
54bade6ea63fddadeb36d183bd8283a071448a4b
[]
no_license
firebitsbr/Visualization-ICC-attacks-in-Android-apps-ecosystem
f534396ecd9e9edf6391915ab11a346a3aa76bbd
e24adde19f5adb2947647a91d2dec15ea517b958
refs/heads/master
2020-06-04T12:56:36.669667
2017-06-14T21:43:38
2017-06-14T21:43:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,045
py
intent_xml_generator.py
import lxml.etree import lxml.builder E = lxml.builder.ElementMaker() ROOT = E.root DOC = E.doc intent = E.intent sender = E.sender action = E.action intentname = E.intentname the_doc = ROOT( DOC(intent( intentname('com.sand.airdroid'), sender('com.sand.airdroid.view.SDWebView'), action('"android.intent.action.VIEW"')...
8d3237d216b0fe38344262313146e80a44bd906a
f682a843605bbd550457d387d94478535f6e244f
/webchecker/cafeteria_parser.py
4087dc739c0d2872ef3015b81c351e1b0ba4f168
[]
no_license
Beomi/UpdateNoticeBOT
4dd51ce81b415a9ee031d55a6347e4447d290a66
8d989014311d2751fc9d7a21e37957fadfc6a6c7
refs/heads/master
2022-12-11T19:42:23.273376
2017-01-23T13:38:03
2017-01-23T13:38:03
77,928,283
1
0
null
2022-12-07T23:40:05
2017-01-03T15:18:25
Python
UTF-8
Python
false
false
923
py
cafeteria_parser.py
import requests from bs4 import BeautifulSoup as bs import re from datetime import datetime def _get_menus(): html = requests.get('http://portal.snue.ac.kr/enview/2015/food.jsp').text soup = bs(html, 'html.parser') daily = soup.select( 'tr' ) re_date = re.compile('(\d{2}[/]\d{2})') me...
b3948ffb2d57699875ea821ab1d75845327a60c5
5d3af71c0f6ac507270bdacc377d5ec7451b9480
/attendance_request/views.py
aa01340d295d81377b786aa5c5fe6bdb63755964
[]
no_license
KedarisettiSreeVamsi/crportal
1b9bd8456f5fb1336b35b69592dcbf662b923328
af3f24d0ca4a5723ee752266ca08163c07b9a8e3
refs/heads/master
2023-02-25T19:08:38.906445
2021-01-18T11:18:15
2021-01-18T11:18:15
330,643,198
0
0
null
null
null
null
UTF-8
Python
false
false
3,830
py
views.py
from django.shortcuts import render, redirect, get_object_or_404 from .forms import * from django.contrib import messages from django.contrib.auth.decorators import login_required import random import string from .models import AttendanceRequest from django.contrib.auth.models import User from django.views.generic impo...
7684f4b697682792c37b73b53d9888e0cf74d720
b53128afc5af6aca59a161214ebd383b2a275658
/alembic/versions/2f648f6f738c_create_stratux_table.py
284f8e18f178c45503063bc1dc4c1647db7ced56
[]
no_license
frankzhao/pystratux
47b153746b8f221d825be011785e8427788bc085
610eb1a1ba79eda536935cbae4a6add923fdac62
refs/heads/master
2020-03-12T14:49:56.261171
2018-08-24T06:39:54
2018-08-24T06:39:54
130,677,212
0
0
null
null
null
null
UTF-8
Python
false
false
3,634
py
2f648f6f738c_create_stratux_table.py
"""create traffic table Revision ID: 2f648f6f738c Revises: Create Date: 2018-04-25 20:54:56.571121 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects.postgresql import UUID # revision identifiers, used by Alembic. revision = '2f648f6f738c' down_revision = None branch_labels = None depends_...
7f2a54f02519ad982a9024f2f4c861f3b5823505
d5351d0e95105bd01a69e983dfccd0a62ed17009
/app.py
e79df1a737eaad401fe0451fcfe7b83192664a62
[ "MIT" ]
permissive
purwnt/customer-service-chatbot-app
f0e03f33fbc14e9f01946b45e9849b053bc2dc8d
519caacc8557de04e1557456b852e66fea641ff4
refs/heads/master
2022-12-09T23:10:18.659317
2018-07-23T23:32:03
2018-07-23T23:32:03
140,462,619
0
1
MIT
2022-11-22T21:14:44
2018-07-10T16:52:39
Python
UTF-8
Python
false
false
1,953
py
app.py
# -*- coding: utf-8 -*- from flask import Flask, render_template, request from chatterbot import ChatBot from chatterbot.trainers import ChatterBotCorpusTrainer, ListTrainer from Sastrawi.Stemmer.StemmerFactory import StemmerFactory from flask_pymongo import PyMongo #Flask app = Flask(__name__) mongo = PyMongo(app) ...
ce7044b7ca74fe23bf936b882c45bee10dfe1780
cbee2fee9d91559b0db43c1050feeb1cd278183d
/plot/plot_janik.py
cc6d4d9e4a0ee2dfa7f54931d61de4b85282245e
[]
no_license
cbernet/fcc-ee-higgs
dec6e7963d640cd20eea65b7e8cbfa1d370b4e6d
8f7ebdae52b19ad1829173f08145a81e0d090aa9
refs/heads/master
2021-01-20T07:43:12.188590
2018-10-18T14:53:36
2018-10-18T14:53:36
90,035,545
0
3
null
null
null
null
UTF-8
Python
false
false
863
py
plot_janik.py
import sys from cpyroot import * from ROOT import TGaxis, TFile from tdrstyle.tdrstyle import setTDRStyle setTDRStyle(square=True) from fitter2 import TemplateFitter rootfile = TFile("Janik/histos_noscaling.root") histos = dict() histos['ZH'] = rootfile.Get('HS') histos['ZZ'] = rootfile.Get('ZZ') histos['qqbar'] =...
f5dbe079e308e5f2386e0fada958c7a2ac0e1108
2d6937b17670af429daf23eb5145296611c8789c
/pandas/tests/generic/test_panel.py
73b8798661011cebe8aed8c67f5ab3688edd6b74
[ "BSD-3-Clause" ]
permissive
vladserkoff/pandas
44fb187cf36739298dc4da25d5605137f9558f8d
5f73594d49ea06ada4c6779006c00aaf41935595
refs/heads/master
2020-04-22T03:32:47.784186
2019-02-09T23:38:55
2019-02-09T23:38:55
170,091,225
0
0
BSD-3-Clause
2019-02-11T08:11:43
2019-02-11T08:11:42
null
UTF-8
Python
false
false
1,195
py
test_panel.py
# -*- coding: utf-8 -*- # pylint: disable-msg=E1101,W0612 from warnings import catch_warnings, simplefilter from pandas import Panel from pandas.util.testing import assert_panel_equal from .test_generic import Generic class TestPanel(Generic): _typ = Panel _comparator = lambda self, x, y: assert_panel_equa...
3e8936cee51864313dbbdecad8dd95517a92e387
8f48d12b88048e424ebb0d72ca6dfab5cf12ae0f
/0001_0599/461.py
4ffc707a50056edae751806c865f32b3d1dc81e3
[]
no_license
renjieliu/leetcode
e1caf13c18a8107ed9252588b339fb76bcb1b246
4668b64fcb9320b6c316d8608fc61911ce43b6c7
refs/heads/master
2023-03-18T18:16:06.187741
2023-03-14T20:31:59
2023-03-14T20:31:59
128,823,819
7
0
null
null
null
null
UTF-8
Python
false
false
769
py
461.py
class Solution: def hammingDistance(self, x: int, y: int) -> int: cnt = 0 x^=y while x > 0 : cnt += x%2 x >>= 1 return cnt # previous approach # def hammingDistance(self, x: int, y: int) -> int: # return bin(x ^ y).count('1') # def hammingDista...
0c7afdbfc61338b93f15daaa6bc70ccafe071cca
d37305d6c7cde93f22d6d9649424ec16857f01d9
/24q.py
8c6f2e30d8ac51b1aa03465eec296367e711cc1d
[]
no_license
poojageorge/sample
1275c5968ff323682f2da3940fe5a9fcb1142682
0871d4385b070d4d0012df8fe981c12ab1b79278
refs/heads/main
2023-03-15T01:55:50.706935
2021-03-26T08:45:33
2021-03-26T08:45:33
351,710,226
0
0
null
2021-03-26T08:45:34
2021-03-26T08:20:14
Python
UTF-8
Python
false
false
68
py
24q.py
num1 = 1.5 num2 = 6.3 num3 = 5.3 sum = num1 + num2 + num3 print(sum)
cc6442bd5ac3442142718a76350fcfddc039e1ac
9972da3e1cc8fdab3e2f43fcde3a4aecac6e041a
/current_rot.py
ef756a6e8faf45eb73b725642b3858cd969f2b11
[]
no_license
sgill2/mc
b61628ab8349c6245cc2d1a8aafa9d3d3d819950
08cbc358c42417bf69517fc90ea7a63c3af580a3
refs/heads/master
2020-04-17T15:18:31.610956
2016-09-12T19:18:35
2016-09-12T19:18:35
66,963,017
0
0
null
null
null
null
UTF-8
Python
false
false
39,352
py
current_rot.py
from simtk.openmm.app import * from simtk.openmm import * from simtk.unit import * from ncmc_switching import * import mdtraj as md #from alCorrect import * from openmmtools import testsystems import math from alchemy import AbsoluteAlchemicalFactory, AlchemicalState import numpy as np from mdtraj.reporters import HDF5...
342a6d29e84d9d57d48b1bf7eab32677449cbca7
e4069707880aa6848627d29cd800bb900c6e746a
/Python_basics/18. Intro to Bitwise Operators/13. just Flip Out.py
8008d38d553e68d977a978f0f64eb41d02473379
[]
no_license
akhil9tiet/Learn_Python_on_the_go
721438cd8a403b00c8213ac780108ec64acfbeef
8dd01e849ea822d86953669a2418af757ce1266f
refs/heads/master
2021-01-18T21:07:36.993478
2016-06-13T19:04:55
2016-06-13T19:04:55
53,606,930
1
0
null
null
null
null
UTF-8
Python
false
false
224
py
13. just Flip Out.py
# 13. just flip out """Using the XOR (^) operator is very useful for flipping bits. Using ^ on a bit with the number one will return a result where that bit is flipped. """ a = 0b11101110 mask = 0b11111111 print(bin(a^mask))
4dd3f060b189ba7b0626050ef97ea29af4bda7b1
24c45c23a90c4b7114853a5e3cab72e9d9214777
/apps/movies/mixins.py
74457ca05c500fca1fc5292cc6847ab198bb3df3
[]
no_license
ierika/sf_movie_locations
29928f480a4b2dcfaa275c9559883e1515a10061
9725c1f34b8254bd0100f159c151ac250820fcdf
refs/heads/master
2022-12-15T01:09:01.065047
2018-05-30T14:17:25
2018-05-30T14:17:25
128,761,198
0
0
null
2022-12-08T00:52:29
2018-04-09T11:26:47
Python
UTF-8
Python
false
false
320
py
mixins.py
from .api import MovieApi class GetApiMixin: api_error = None keyword_name = None def get(self, request, *args, **kwargs): keyword = request.GET.get(self.keyword_name) if keyword: self.api = MovieApi.fetch(request) return super().get(self.api.request, *args, **kwargs)
8b8a11f58b513e5ec89688e3034e7c9ce5242ab6
c1c7214e1f9230f19d74bb9776dac40d820da892
/call_selenium.py
963e566d0d04c97aba470af058391460336f2e4e
[]
no_license
FujitaHirotaka/djangoruler3
cb326c80d9413ebdeaa64802c5e5f5daadb00904
9a743fbc12a0efa73dbc90f93baddf7e8a4eb4f8
refs/heads/master
2020-04-01T13:32:28.078110
2018-12-13T00:39:56
2018-12-13T00:39:56
153,256,642
0
0
null
null
null
null
UTF-8
Python
false
false
420
py
call_selenium.py
from selenium import webdriver import time import sys args=sys.argv with open(str(args[2])+"\\footer_origin.html", "r",encoding="utf-8_sig") as f: lines=f.read().replace("----***----***----", str(args[1])) with open(str(args[2])+"\\footer.html", "w",encoding="utf-8_sig") as f: f.write(lines) driver = webdriv...
b9ace7da907668b24112a7c7939354a1e3a00b45
6fec6b5538f499f94cdda3da7ffc2e3310758191
/ocra/admin.py
f145bd066119ed3759c05c85104817e9becf7548
[]
no_license
icantero1975/deposito
ec2556632d077eb51baf4b5dfb95754d49e6b5b2
e6afb8b63fd8413c96f9a4b560a2cdc4c9f14e3e
refs/heads/master
2023-05-01T05:11:09.069804
2019-07-15T19:04:15
2019-07-15T19:04:15
197,054,400
0
0
null
2023-04-21T20:37:12
2019-07-15T18:49:15
HTML
UTF-8
Python
false
false
1,182
py
admin.py
from django.contrib import admin from ocra.models import * # Register your models here. admin.site.register(remite) admin.site.register(vigilante) admin.site.register(grua) admin.site.register(deposito) admin.site.register(Oficio) admin.site.register(vehiculo) admin.site.register(devolucion) #class adminautoridad(ad...
4cd3d6b4ae257668d7d421312b9c1dd349fd07ca
90d285f3e3386c037abd673c584e94fbe3c29e44
/Demos/HC05-Controle-Exemplo/python-pyautogui/youtube_controller.py
1e0f3ac433271655ce7d90f37d079b53320d3ce6
[]
no_license
Insper/SAME70-examples
56311eee853d1f70599466da2a6e203a0eb5c794
03d898852ffc0e59a70b7fc93d5d7fc699953d4d
refs/heads/master
2023-08-02T22:41:56.640303
2023-07-26T22:24:23
2023-07-26T22:24:23
144,058,688
9
42
null
2022-12-14T15:21:45
2018-08-08T19:27:26
C
UTF-8
Python
false
false
2,339
py
youtube_controller.py
import pyautogui import serial import argparse import time import logging class MyControllerMap: def __init__(self): self.button = {'A': 'L'} # Fast forward (10 seg) pro Youtube class SerialControllerInterface: # Protocolo # byte 1 -> Botão 1 (estado - Apertado 1 ou não 0) # byte 2 -> EOP - En...
39a19f8b613269808124025341a5d9be82c836f9
6ef8e69f7903a15572a496f8e247ee5dc00979b7
/modified/wordpair_processing.py
268de80d38a816df14695ec022aa05efee5eca98
[]
no_license
csl-622/concept_graph
55f3343dcbf195cc457a2dddbbc41a204470aa6f
417d172a4957a50eb647fb4677ad11cc1b9b13b0
refs/heads/master
2020-04-01T07:06:21.442272
2018-12-01T15:32:37
2018-12-01T15:32:37
152,976,603
3
0
null
null
null
null
UTF-8
Python
false
false
7,356
py
wordpair_processing.py
import os from collections import Counter from multiprocessing import Pool import util import multi_processing class WordPairsProcessing(object): def __init__(self, max_vocab_size, min_count, window_size, dicts_folder, edges_folder, graph_folder, safe_files_number_per_processor): self.max_vocab_size = max_voc...
4fde59cc06b0eccb28b8c0671b6491ef56ab2275
d0dc6429c5d4e3c299dac727de05095c451d5b3d
/src/models/omdb.py
f826e6ae3575f28e9c3cb9b59d17135d5387418c
[]
no_license
goldenrati0/newscred-movie-catalog-backend
1b80a94548d0a517d5de7e53a222f3207a1b519a
e03951125bb575dcbc26ca4e3a9a83539e70fa16
refs/heads/master
2022-02-10T20:18:29.103384
2019-07-14T08:03:12
2019-07-14T08:03:12
194,417,354
4
1
null
null
null
null
UTF-8
Python
false
false
2,777
py
omdb.py
import json from typing import Dict, List, Any, Union, Optional import requests from requests.models import Response from src.models.movie import MovieFactory from src.core.flask_app import app class OMDBClient(object): _params: Dict[str, Any] = {} _headers: Dict[str, Any] = {} def __init__(self, **kwa...
1d5b7dbc4a00bcc4e9242579913a3a940a7aa42c
d53d98e6e476ad008d2250d6b1465cba1e931053
/01-크롤링과_스크레이핑/1.데이터_다운로드하기/download_forecast_argv.py
70ccf35daae13823093653f20b36197a15040089
[]
no_license
Hyo-Seong/machine_learning_tutorial
1a052325fa25a028cac13354111acd98f16a0040
56694fd3631140abcf858737887792a0f52e9880
refs/heads/master
2020-04-11T16:11:04.101825
2019-01-15T19:50:39
2019-01-15T19:50:39
161,915,458
1
0
null
null
null
null
UTF-8
Python
false
false
831
py
download_forecast_argv.py
import sys import urllib.request as req import urllib.parse as parse # 여기서 as는 alias(별칭)을 뜻함. if len(sys.argv) <= 1: print("USAGE: download_forecast_argv <Region Number>") sys.exit() regionNumber = sys.argv[1] API = "http://www.kma.go.kr/weather/forecast/mid-term-rss3.jsp" values = { 'stnId' : regionNumbe...
a0b5d451491d2c899fc1d24d2e8424b8896656ab
e63acec789f51712c64e7399cad33e864bc5809d
/closest_centrality.py
84f4fa0eae51d3014a108f0f0d5905f3ff8b02ea
[]
no_license
x-Shen/graph_problems
e107dbd0721fc01ac1eb5051949e0b6b65cb45f1
99a8c8a385e27ca1a58443862b7527419b6b2d27
refs/heads/master
2021-01-24T07:16:33.554036
2017-06-08T20:07:52
2017-06-08T20:07:52
93,337,186
0
0
null
null
null
null
UTF-8
Python
false
false
1,093
py
closest_centrality.py
from queue import PriorityQueue import math class closest_centrality: def __init__(self,graph): # graph in python dictionary representation self.graph = graph def dijkstra(self, v): d = {} pq = PriorityQueue() for vertex in self.graph: d[vertex]...
c635580dbe8a4711393eeaac49151ec9cf1f912d
252974316cf3b44afa550ea202abe67b474d698e
/recipies/python/paulwinex/projectManager/widgets/projectManager_UI.py
ad4c87b690b66784a59c93c324d4876e79cbaab6
[]
no_license
igor-si/shared
22892dc1c93d97591495ed48dbeecd741bdd6dfd
45301c31814e87a6e5a28d857e9b2ef6421b5c16
refs/heads/master
2020-07-17T12:35:33.425496
2019-12-17T08:36:48
2019-12-17T08:36:48
206,020,718
1
2
null
null
null
null
UTF-8
Python
false
false
4,663
py
projectManager_UI.py
# Importing everything from hou py plugins # if(__name__=='__main__'): # import os # os.environ['PATH']+='/studio/tools/hou/builds/hfs16.0.600/bin' # from PySide2.QtCore import * # from PySide2 import QtCore, QtGui, QtWidgets, QtUiTools, QtUiTools from PyQt4 import QtCore, QtGui try: _fromUt...
e63eef2e0ef71ac6c2073c37ae589c93e5e95245
1c2b38f28abcc73da88127e6ca5b8c50ec6e2cb0
/src/timeline/views.py
43e38a11dcf84f48e607d8a888f93b2c7d40af08
[]
no_license
muhammad-mamdouh/wall-app
646d000732391ca4c8fa78b7add2f360e570d055
e8aeb081fd7164e9a02eed1456735e7e7fd851cc
refs/heads/master
2022-06-14T14:19:33.944170
2019-09-05T16:18:07
2019-09-07T14:32:31
206,570,121
0
0
null
2022-05-25T03:26:14
2019-09-05T13:25:47
Python
UTF-8
Python
false
false
4,525
py
views.py
from django.views.generic import ( ListView, DetailView, CreateView, DeleteView, UpdateView, RedirectView, ) from django.contrib.auth.mixins import LoginRequiredMixin from django.urls import reverse_lazy, reverse from django.shortcuts import get_object_or_404 from django.contrib import messages ...
3c294bfdb78b3d3570dbeb0da98a3feb01f5f3b2
815340218d6290adbfbd57c591e17eb4d4411cf5
/google_data/map.py
3f83a72bd31a18257d5d68d37d039bcd21c234f4
[]
no_license
briron/chatbot
ca915490163994b401b12d254c2a8f70bfdfd55c
0a4d1957e5446d4e36f9659c6903dd0523fe8e0d
refs/heads/master
2022-12-19T18:42:53.244648
2020-10-09T14:02:18
2020-10-09T14:02:18
291,486,932
1
0
null
null
null
null
UTF-8
Python
false
false
11,738
py
map.py
import requests import json import folium from folium.plugins import HeatMap import pandas as pd import datetime from typing import Tuple, List import numpy as np class GeoDataHandler: def __init__(self): with open("./etc/tmap_key.txt") as lf: self.__TMAP_KEY = lf.read() self.__GEOCODI...
e772236c9adc34d56d990c98d0ab55364cd8c9b3
59d3ac9c6681dc1ab59e4b0b2757b2c9c458d70a
/hdp.py
f91c9e918ece42d59be5bbc085c9e4de120f7fdc
[]
no_license
ai-se/HDP_pyjnius
a9d7180e17b8c691393c2e415c60e4dcaa805f6c
cf7b8620da5d25ad14cf20fcecbcfb371e163bbd
refs/heads/master
2020-05-29T11:01:03.307856
2015-07-01T18:32:34
2015-07-01T18:32:34
38,166,853
1
2
null
null
null
null
UTF-8
Python
false
false
7,606
py
hdp.py
# __author__ = 'WeiFu' from __future__ import print_function, division import random, math from utility import * # import org.apache.commons.math3.stat.inference.KolmogorovSmirnovTest as KS # from bipartite import maxWeightMatching # from scipy import stats import numpy as np import networkx as nx def transform(d, sel...
2ad9a3c1d2cdef8e3fb23d0d0659c85783055dea
9d2d1285a9467248a5bda2190ad1fec0762cad99
/RPI/cupoy_rpi/cupoy_rpi/tmp.py
1d4259dcf698a8c39bb031a2c47ef3bde31f6074
[]
no_license
June103310110/MachineLearning
b05f39c215ffcdf1df35578ec34ec557fd261aac
200f3d97202c1cc4b6db021d063ca2ad20d66c2e
refs/heads/master
2021-07-05T17:27:39.353084
2020-12-30T08:01:46
2020-12-30T08:01:46
216,804,364
0
0
null
null
null
null
UTF-8
Python
false
false
342
py
tmp.py
import time a = [('Tug', 0.8104438781738281, (57.11275863647461, 68.79114532470703, 105.61766815185547, 105.97710418701172))] text0 = 'detect: '+a[0][0]+'\t-confidence: '+str(a[0][1]) text1 = '\ntime is: '+time.asctime(time.localtime(time.time())) text2 = '\ntime is: '+time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(...
0424938f7723024bb7ff460e69c257d0203fd2bd
a60a261ebd53a7da0d319a098068f6fc35b5f2a1
/src/OnlineLibraryApp/models.py
920385ab794511665646d284b320331d498599e4
[]
no_license
ShipuW/OnlineLibrary-by-Django
3ee5441f6e23005b368e2bc69e971444b7ea7330
f0159f71f5e91fa8f282eaba5126ffe5e01d1ff1
refs/heads/master
2016-09-12T12:15:22.373162
2016-05-21T16:05:50
2016-05-21T16:05:50
58,534,684
1
0
null
null
null
null
UTF-8
Python
false
false
3,281
py
models.py
from django.db import models from django.contrib.auth.models import AbstractUser # Create your models here. ''' class Student(models.Model): # id = models.IntegerField(primary_key=True) name = models.CharField(max_length = 50) age = models.IntegerField() class Meta: db_table = 'student' def ...
6cc8ddc6999d9aae94db9881682aeace32b602c7
3777658387aa9e78d7c04202d7fd47d59b9e1271
/MachineLearning/DeepLearning/basicDL.py
724ad941d804070dd04e40cc354e23465916ebf0
[]
no_license
jocoder22/PythonDataScience
709363ada65b6db61ee73c27d8be60587a74f072
c5a9af42e41a52a7484db0732ac93b5945ade8bb
refs/heads/master
2022-11-08T17:21:08.548942
2022-10-27T03:21:53
2022-10-27T03:21:53
148,178,242
4
0
null
null
null
null
UTF-8
Python
false
false
3,352
py
basicDL.py
import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn import datasets plt.style.use('ggplot') def print2(*args): for arg in args: print(arg, end='\n\n') sp = {"sep":"\n\n", "end":"\n\n"} input_data = np.array([1, 2, 3]) weights = np.array([0, 2, 1]) target = 0 def relu(...
440fde328481bef4b49752ec0343942fd2b2f1c7
50c04396f81f7ebf3c6382a735e26b8ba7f92df1
/Menu.py
963dfa5e24f9f267b0858346501ae4ab9a34296d
[]
no_license
Alexander2111/Proyecto-Final-TS1
61b8823b71864aa9846a70b7b5d9d0abe4b261ef
816f7ebc2c8f649083c2549aef65639345803585
refs/heads/master
2020-08-16T21:25:46.668298
2019-11-13T13:34:38
2019-11-13T13:34:38
215,555,480
0
0
null
null
null
null
UTF-8
Python
false
false
9,119
py
Menu.py
import os,sys import random os.system("cls") def pedirNumeroEntero(): correcto=False num=0 while(not correcto): try: num = int(input("Introduce un numero entero: ")) correcto=True except ValueError: print('Error, introduce un numero entero') re...
f3caf1058494ee7e334d41c4869d045db27a79b4
535c10506dd774b388ec7b9702b8545e58a869ce
/train.py
3ef425be1cba5698ee906e99f65662b0eaced04f
[ "MIT" ]
permissive
chae9214/pytorch-sgns
aef95e770ad885bfaab0f2fdbfab2e27b919bc08
321cf762c353d038362803d22a86e61c48a61e95
refs/heads/master
2021-07-14T20:14:03.874900
2017-10-19T14:52:29
2017-10-19T14:52:29
107,073,504
0
0
null
2017-10-16T03:24:19
2017-10-16T03:24:18
null
UTF-8
Python
false
false
3,557
py
train.py
# -*- coding: utf-8 -*- import time import pickle import numpy as np import matplotlib.pyplot as plt from torch.optim import SGD from torch.utils.data import Dataset, DataLoader from model import Word2Vec, SGNS from sklearn.decomposition import PCA class PermutedCorpus(Dataset): def __init__(self, dataset): ...
362413893aa90d29fc8f35dd318fa47bffa59aaf
94e3a9d1cd6fd556557ecaa4209f8aed82ade943
/Hackathon 10/prueba.py
339c097884e13ba15283761e4d4e43e8fa3a478e
[]
no_license
ecustodio123/Hackathon-10
ccc119162ca1bd6cbad09ff0bc1a15d8671fea63
59c54340d317fe32d5f5cc0453d178979ff2bb44
refs/heads/master
2022-12-28T02:58:59.305618
2020-10-11T11:33:45
2020-10-11T11:33:45
303,106,019
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
prueba.py
fecha = '2020/2/20' fecha = fecha.split('/') print(fecha[1])
8aadcd783c4908774c4aaf1f50e3b08f540dd306
2845fd85b8903ac7a37f86b87d1c0f62cf94730b
/service/mediaTool_content.py
f0e36ddf0aaec71d4299f606718f188e16613e24
[]
no_license
cash2one/remark
ec886f6495b217a5a76ae1bc392a1c37dc420979
c7b48fd8f9bcd42e01162329e42bac0d67996c8f
refs/heads/master
2021-01-12T06:09:39.926380
2016-11-13T01:43:10
2016-11-13T01:43:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,095
py
mediaTool_content.py
# -*- coding:utf-8 -*- import base class service(base.baseService): def __init__(self, _model, param): base.baseService.__init__(self, _model, param) self.mediaContentModel = self.importModel('mediaTool_content') self.mediaCommentModel = self.importModel('mediaTool_comment') def cre...
517ad6f1bef3eb32cb0f2f72a5f7c4e5a1446523
64f5daa345d6f57ab51d7c8731f29f62c6753e50
/registrations/migrations/0012_registration_external_id.py
0bbdab488d361c51c92454fbe847d139f3702af8
[ "BSD-3-Clause" ]
permissive
praekeltfoundation/ndoh-hub
8201e97326aaa39a4624841287e83b08a53204a8
e1ea0beaf079f4f4d5f9562fb9d9a4f0670f459f
refs/heads/develop
2023-08-31T04:36:58.516334
2023-08-29T10:35:29
2023-08-29T10:35:29
61,732,760
0
3
BSD-3-Clause
2023-09-05T08:01:06
2016-06-22T16:04:09
Python
UTF-8
Python
false
false
737
py
0012_registration_external_id.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-03-08 13:41 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("registrations", "0011_auto_20180227_1517")] operations = [ migrations.AddField( ...
a77bdbe3f97d747a93399b0358fe63efe278636f
2e66cfa233451659a0405cb30e301dcfd1df69d5
/maze_generators.py
535bc63fee726c77a10717f0a0f5a90f83a66bea
[]
no_license
dominika-perz/maze_world
844f06bebb7ddaa81303a05bed4998805300f551
19a05a048b5111a51fbce60963a53cc41b8bda93
refs/heads/master
2022-11-11T23:17:21.139849
2020-07-01T13:33:20
2020-07-01T13:33:20
273,057,657
0
0
null
null
null
null
UTF-8
Python
false
false
1,300
py
maze_generators.py
from helper import * def simple_generator_5x5(): maze = [[Legend.START, Legend.WALL, Legend.WALL, Legend.CORRIDOR, Legend.CORRIDOR], [Legend.CORRIDOR, Legend.CORRIDOR, Legend.WALL, Legend.CORRIDOR, Legend.WALL], [Legend.CORRIDOR, Legend.WALL, Legend.WALL, Legend.CORRIDOR, Legend.WALL], ...
5d9f39b450f8cea1738af262ffe517a79ef794d2
33a7105b6bec3f08ad6f047e5de54ba2bb0cde33
/blog/models.py
eb9c7351f6c55db4046fedb2822116fe630a2feb
[]
no_license
Raftor74/ejudge-web-app
66a8d5d23445df15fd385c86ac4a7e880c5419d2
773fdc02439c2b43443ad58693356228eb696c70
refs/heads/master
2020-12-30T13:20:00.487033
2019-02-24T17:44:19
2019-02-24T17:44:19
91,329,762
0
0
null
null
null
null
UTF-8
Python
false
false
1,705
py
models.py
from __future__ import unicode_literals from django.db import models from ckeditor_uploader.fields import RichTextUploadingField """Модели для работы с курсами, темами, уроками""" # Класс новостей class News(models.Model): title = models.CharField(max_length=200) text = RichTextUploadingField(blank=True, def...
05071124956868dda066f6221f826a7f6a5eaa7b
747fbd1d62514fa5879ccb65ab9e0d505bc9a57d
/TweeColi/Output/TweeColi_Output.py
02efe8f5067c2c9dcf92897d11bf1ed853ea9720
[]
no_license
CIDARLAB/Bioelectronics
d9f4c894e09e7c580bd259a9c1bce2c17e11726a
671eef3d42ec76888ba8288f37f8caeb1cd5341b
refs/heads/master
2021-06-24T07:22:04.965029
2016-05-09T00:41:54
2016-05-09T00:41:54
24,390,823
0
0
null
null
null
null
UTF-8
Python
false
false
2,270
py
TweeColi_Output.py
import ast import Parse_Tweet from pump_control import Pump from time import sleep import RPi.GPIO as gpio from twython import TwythonStreamer # Keys for @BUBacteria apiKey = 'hbkblS9wvLUroL7tRI6MIO3Hj' apiSecret = 'EwVdnrn1DJzuxuyRDbzgoy1eh6it7x3PMesUoqIaDGstob3FPI' accessToken = '2860939569-oVLMyzz7TeQ3A5ji5WNPROIYQ...
d299d6931e4348c2c66d49a975a812d4de0ea4b8
8218d0e793178acb18edc0d8154b127e8b10b727
/RSCdump.py
d706986e9ee6832dd94341dc298cd3197ad345ff
[ "MIT" ]
permissive
RenolY2/warioRSC
42cb16f24d13631fb2603aa892a470ad17b239de
7881ede713a30fd52b4c717e28e930194ba9d0f8
refs/heads/master
2021-05-09T02:11:03.936894
2018-01-27T21:38:20
2018-01-27T21:38:20
119,199,903
2
0
null
null
null
null
UTF-8
Python
false
false
1,947
py
RSCdump.py
import struct import os import json import argparse def read_uint32(f): return struct.unpack(">I", f.read(4))[0] def read_entry(f): unknown, size, offset_nextentry = struct.unpack(">III", f.read(4*3)) padding = f.read(0x20-4*3) return unknown, size, offset_nextentry def make_entry_filename(inde...
03ba1d1c2fabfaaca260b169bc0afe967290d562
4a3f2ffe3baa9ffd9618fa346733ea592989768b
/conanfile.py
b85b9fd7b7d39e238dd78ca9606ef259b457c1bf
[ "MIT" ]
permissive
lucienboillod/conan-llvmcore
f36fc3c76ce24c972f8248d6bf4feac7e56fffae
805db4c11fe877d5312bcce936068699637c2526
refs/heads/master
2020-03-18T14:29:44.116531
2018-05-27T17:08:22
2018-05-27T17:08:22
134,851,336
2
0
null
null
null
null
UTF-8
Python
false
false
2,645
py
conanfile.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from conans import ConanFile, CMake, tools import os, platform class llvmConan(ConanFile): name = "llvm" version = "5.0.1" description = "Conan.io package for LLVM Core library." url = "https://github.com/lucienboillod/conan-llvmcore" license = "http:/...
c147ec43b7fb5dbbc64086ae8a3d0251c1cf7ad1
2a981c9596f7bdbf4abc438c41023092ec4cf14f
/plots.py
842bfe874959668669c42540e5f97f1b0a4b4a64
[]
no_license
selBaez/nlp-multimodal-language-models
2d348e272b2d9ca63dc82e4b85c6d78afea10593
11b25850915237ada15822b9546206d267786a7f
refs/heads/master
2021-05-01T04:25:02.381706
2017-05-15T06:09:00
2017-05-15T06:09:00
74,066,210
0
1
null
null
null
null
UTF-8
Python
false
false
4,957
py
plots.py
import argparse import numpy as np import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt SETTING_DEFAULT = 'ff' PLOT_TYPE_DEFAULT = 'all' def plot_loss(): # Read data from CSV train_data = np.genfromtxt('./'+FLAGS.setting+'/results.csv', delimiter=',', usecols=(0,1), names=True) test_dat...
3685306c25ea78934c44c68fccdac4334eb08bc2
a3e86193eb50d90b01135a8a1f51330e10624d7d
/chainMetric/6p03292106/plotconfig.py
d85022a4ff31c277b299648daab94812da172940
[]
no_license
yangyutu/Diffusion-mapping
b1f461b5c3d37e4b07a733eb28674b7dde140fa4
2e6b151dc7ced1c66589b4e56383a08764e52319
refs/heads/master
2021-01-11T03:05:47.610753
2019-08-23T12:23:13
2019-08-23T12:23:13
71,095,710
1
0
null
null
null
null
UTF-8
Python
false
false
941
py
plotconfig.py
# -*- coding: utf-8 -*- """ Created on Mon Oct 26 11:01:08 2015 @author: yuugangyang """ import pylab import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np for i in range(5,9): folder = str(i)+'b/' filename = '03_29_2016-6p-2Hzb' + str(i) +'.txt' da...
4f7d9233c290a0d098652ce1d16f37eabc5a378b
e4f62cbfcd9a88f08e5b3c9aa8810a42cb6d28ac
/main_cifar.py
12ac858acfa4bc13f6827d93f0afc9f739bb0d39
[ "BSD-3-Clause" ]
permissive
IP-Augmentation/ME-ADA
0fad74eeccbaa51ccc075414c624f1cd07c13443
b02ccb6dde9108e2e6ff3a7dabbc8c64530ecf6e
refs/heads/main
2023-03-17T04:54:22.178601
2020-11-27T04:37:28
2020-11-27T04:37:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,458
py
main_cifar.py
from __future__ import print_function, absolute_import import argparse from model_cifar import ModelBaseline, ModelADA, ModelMEADA def main(): train_arg_parser = argparse.ArgumentParser(description="parser") train_arg_parser.add_argument("--seed", type=int, default=1, help=...
84abca587904347af62d44aaba0d1a1901abb355
7dd9ca3abb280e05ac77299e35deef5006cc7e80
/pyomo/dae/initialization.py
c10ccb023d18d32e46aae3f179ec1e5ec794f3df
[ "BSD-3-Clause" ]
permissive
mrmundt/pyomo
e30acaa17e73abc4c27773fddb2d0327a012351c
05ed25d76d244d983a3aee3ebc84545b276688a1
refs/heads/main
2023-08-17T16:08:35.655163
2023-08-11T19:47:47
2023-08-11T19:47:47
237,232,932
2
1
NOASSERTION
2023-03-02T18:33:21
2020-01-30T14:40:21
Python
UTF-8
Python
false
false
6,029
py
initialization.py
# ___________________________________________________________________________ # # Pyomo: Python Optimization Modeling Objects # Copyright (c) 2008-2022 # National Technology and Engineering Solutions of Sandia, LLC # Under the terms of Contract DE-NA0003525 with National Technology and # Engineering Solutions of ...
5c9cd08f13c4b1eb0c3a60e7f704200d61c74a28
6dedbcff0af848aa979574426ad9fa3936be5c4a
/cengal/code_flow_control/chained_flow/versions/v_0/smart_chain.py
6f8f6afb0e4319c0d2983c9c58360825652adbc4
[ "Apache-2.0" ]
permissive
FI-Mihej/Cengal
558d13541865e22006431bd1a1410ad57261484a
d36c05f4c90dfdac7296e87cf682df2f4d367e4b
refs/heads/master
2023-06-08T00:39:39.414352
2023-06-05T21:35:50
2023-06-05T21:35:50
68,829,562
10
1
null
null
null
null
UTF-8
Python
false
false
36,470
py
smart_chain.py
#!/usr/bin/env python # coding=utf-8 # Copyright © 2012-2023 ButenkoMS. All rights reserved. Contacts: <gtalk@butenkoms.space> # # 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:...
6581ecabba7ed36a31e608a11f13240804a81057
17f8df5f143456cedfd83101bcc01eb402acf60a
/indexfile/index.py
0b37ae2b9cd1c0fc5f5d6558280804fc92d3941e
[]
no_license
thasso/indexfile
7267b550896ea5fbaebbd6b90696e42786a503ad
04cd3746a0d12edbf3fe9e312be08fed43944d72
refs/heads/master
2020-12-25T15:50:51.321553
2013-08-19T14:55:09
2013-08-19T14:55:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,951
py
index.py
"""Index module. The module provide classes to perform operations on index files. """ import re import os import json import sys import warnings # utils methods def warning_on_one_line(message, category, filename, lineno, file=None, line=None): return ' %s:%s: %s: %s\n' % (filename, lineno, category.__name__, m...
4a45356d570806b0148d484dd8df4e9ca47a11d8
c09632bfc2fca609782074177767e78f2ae8858f
/tests/test_etl.py
5b8dec9c53498ea578c487e95801951f65e81f1e
[]
no_license
mirrys/ImageMatching
cffe33993eb9bca0b79f1b6f0dc1ff602496c240
6149d86e9d6f45cf035d89e6874b5ad7d1fdb5a7
refs/heads/main
2023-08-26T05:55:21.108813
2021-11-15T21:00:10
2021-11-15T21:00:10
333,780,395
2
4
null
2021-11-15T21:00:11
2021-01-28T14:17:54
Jupyter Notebook
UTF-8
Python
false
false
2,561
py
test_etl.py
from etl.transform import ImageRecommendation from pyspark.sql import functions as F from pyspark import Row from conftest import assert_shallow_equals def test_etl(raw_data): assert raw_data.count() == 3 ddf = ImageRecommendation(raw_data).transform() assert ( len( set(ddf.columns).d...
3b371f2285405eb6c245dc5d1ec3b750d20546e7
8f1dd0175ac788fe723a7d6482e508733dd55023
/pref/loss.py
006032c5513807bb93a685dbad5ac28f78c8aad4
[]
no_license
tjacek/ml_utils
dbce24a186e89f72026d5d94e9315597fc3899de
9c20d523221c5ffdd9c69adcbd2e0f76ac729e68
refs/heads/master
2022-09-16T11:29:52.550995
2022-08-24T00:27:05
2022-08-24T00:27:05
43,132,794
0
0
null
null
null
null
UTF-8
Python
false
false
927
py
loss.py
import sys sys.path.append("..") sys.path.append("../optim") from sklearn.metrics import roc_auc_score import pref class AcuracyLoss(object): def __init__(self,train_dict): self.train_dict=train_dict self.n_calls=0 def __call__(self,score): result=pref.eval_score(score,self.train_dict)...
48bc031e87bab0ed0a600f6e30732681edd4ad41
659c313c915c405627fb4d69550f1fcbd09dd8c1
/code/test.py
b2d620c5c41ec21374c3ba4cf2e7cc3e34e773d6
[]
no_license
IE-group/study_record_xsq
c4bcb2599e2e06ef80cbec667935764e2f04821e
ac7451892b4b3efd3b18b233f347bef637208462
refs/heads/master
2021-02-06T23:07:37.265253
2020-10-27T07:55:07
2020-10-27T07:55:07
243,950,774
0
0
null
null
null
null
UTF-8
Python
false
false
930
py
test.py
from keras.models import load_model import numpy as np import matplotlib.pyplot as plt import os import cv2 model = load_model('V1_828.h5') X = [] for info in os.listdir(r'G:\\haihan\\Segmentation\\data\\test'): A = cv2.imread("data\\test\\" + info) X.append(A) # i += 1 X = np.array(X) print(X.shape) Y = ...