repo_name
stringlengths
7
111
__id__
int64
16.6k
19,705B
blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
151
content_id
stringlengths
40
40
detected_licenses
list
license_type
stringclasses
2 values
repo_url
stringlengths
26
130
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
42
visit_date
timestamp[ns]
revision_date
timestamp[ns]
committer_date
timestamp[ns]
github_id
int64
14.6k
687M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
12 values
gha_fork
bool
2 classes
gha_event_created_at
timestamp[ns]
gha_created_at
timestamp[ns]
gha_updated_at
timestamp[ns]
gha_pushed_at
timestamp[ns]
gha_size
int64
0
10.2M
gha_stargazers_count
int32
0
178k
gha_forks_count
int32
0
88.9k
gha_open_issues_count
int32
0
2.72k
gha_language
stringlengths
1
16
gha_archived
bool
1 class
gha_disabled
bool
1 class
content
stringlengths
10
2.95M
src_encoding
stringclasses
5 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
10
2.95M
extension
stringclasses
19 values
num_repo_files
int64
1
202k
filename
stringlengths
4
112
num_lang_files
int64
1
202k
alphanum_fraction
float64
0.26
0.89
alpha_fraction
float64
0.2
0.89
hex_fraction
float64
0
0.09
num_lines
int32
1
93.6k
avg_line_length
float64
4.57
103
max_line_length
int64
7
931
Kangaru94/search_for_element_in_list_test
1,340,029,818,582
25d2ddde54c14ca85fccc6ea222f16b6a194ae38
bbb28047042fd415361e2202495d2bd85b6fdb36
/search_for_element_in_list.py
da65bd45b2757d311f1626bcd7d7e56fb46a7e0c
[]
no_license
https://github.com/Kangaru94/search_for_element_in_list_test
f296911daab5ad95dbb091ce3496031ff7f12441
1c333ad2acb39739820e4b0e4e0935aec1e51df0
refs/heads/master
2020-06-19T14:32:24.619860
2019-07-13T16:45:11
2019-07-13T16:45:11
196,744,580
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#testing "in" START def returns_True_or_False(list): if 1 in list: print("True") else: print("False") list1 = [1, "a", "b"] list2 = ["a", "b", "c"] list3 = list1 + list2 returns_True_or_False(list1) returns_True_or_False(list2) returns_True_or_False(list3) #teting "in" END
UTF-8
Python
false
false
282
py
1
search_for_element_in_list.py
1
0.64539
0.609929
0
16
16.6875
32
ArchyCillp/VinceJudgeChatRoom
4,621,384,812,484
2cd7841717b26b3d2323953b8f4f96a88eb0d32f
be5cd9756a6426a4ca7e240d9c4b2a16b7c0ff28
/src/client.py
27ca2a5a6da880fe1cde03e400fa8fc53aa27e3a
[ "MIT" ]
permissive
https://github.com/ArchyCillp/VinceJudgeChatRoom
718d2753cd722777f8b7ca26f2960706de3a0447
1b4ad1e3ca8ffe97faf5e15cf7e2e1c59e827a99
refs/heads/master
2021-06-23T13:46:45.725408
2019-08-08T03:36:30
2019-08-08T03:36:30
148,513,659
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import socket import threading import select def connect_to_server(addr): server_socket = socket.socket() server_socket.connect(addr) return server_socket def listen_to_server(server_socket): listening = [server_socket] while True: active_socket_list, w, e = select.select(listening, [], ...
UTF-8
Python
false
false
1,387
py
4
client.py
2
0.573901
0.570296
0
48
27.895833
81
brython-dev/brython
7,885,559,956,763
c63ccc364e5cef5f26cc35ea205b2dd6dc79566d
8d402df39c18eba7e1c86c762f205c944357c5df
/www/speed/benchmarks/set_dict_item.py
39b19d57ebf5a4fac2a97c7077b4d2574d355555
[ "BSD-3-Clause" ]
permissive
https://github.com/brython-dev/brython
87cc023e25550dec9ce459ba68774189f33712b6
b33958bff0e8c7a280babc30232dc389a2500a7a
refs/heads/master
2023-09-04T04:49:29.156209
2023-09-01T06:36:08
2023-09-01T06:36:08
24,046,239
6,569
625
BSD-3-Clause
false
2023-07-05T06:13:32
2014-09-15T06:58:21
2023-07-05T01:48:46
2023-07-05T06:13:31
247,074
6,052
499
35
Python
false
false
a = {0: 0} for i in range(1000000): a[0] = i JS_CODE = ''' var a = {0: 0} for (var i = 0; i < 1000000; i++) { a[0] = i } '''
UTF-8
Python
false
false
135
py
772
set_dict_item.py
454
0.414815
0.259259
0
11
11.272727
35
dtbhatt/Python
16,810,502,021,873
4e3a42f578744f5b1deb02f7f7c95cc41a575f03
7d6406b6ba112b69fd1d0b5387793703e4220137
/animals.py
9fad44fdf391c24720e87f11f6158f412613ee93
[]
no_license
https://github.com/dtbhatt/Python
6113fd007d02bb03d10fe996d570d12e28063ea3
c7cee8a5dd8bda9987e8918f2e4581c8585e2b50
refs/heads/master
2021-01-25T07:55:22.909000
2017-06-08T19:54:05
2017-06-08T19:54:05
93,695,407
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Animal(object): def __init__(self, name, health): self.name = name self.health = health def walk(self): self.health -= 1 return self def run(self): self.health -= 5 return self def display(self): print self.health return self ...
UTF-8
Python
false
false
824
py
15
animals.py
15
0.536408
0.515777
0
42
18.642857
47
Quik-e/PSK-Simulation
12,000,138,655,385
c73531a230f051d665e3de34bd057a5c36d100cc
6ed345123cc8dd4766b2386e7ceef99feef70cd6
/8PSK_ModDemod_FC/8PSK_ModDemod_FC/E8PSK_ModDemod_FC.py
c24f460c55c87172ae2e7a28827600232eb35d5f
[ "MIT" ]
permissive
https://github.com/Quik-e/PSK-Simulation
23052921811d194d6cbe6adde7e9885a52225833
4dd96e9aba41d7ace96b2b2f5a828741600eb27e
refs/heads/master
2023-03-02T22:03:01.178738
2022-03-12T01:54:41
2022-03-12T01:54:41
259,562,893
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ################################################## # GNU Radio Python Flow Graph # Title: 8PSK Modulation and Demodulation with Frequency Correction Simulation # Author: Enrique Quik-e Cametti # Generated: Fri Mar 13 15:27:15 2020 ##########################################...
UTF-8
Python
false
false
21,338
py
12
E8PSK_ModDemod_FC.py
3
0.601743
0.56786
0
459
45.488017
281
cgrobbin/Recipe-Master
8,839,042,728,624
b936f2b38c7e06d6319ce57f4639785b8c8dc066
181159d7534f23db7fd3478c1346a8d5b76ad5e8
/main_app/migrations/0003_auto_20210405_1922.py
deb66b72978e9dec587d1f264e35243567b7602d
[]
no_license
https://github.com/cgrobbin/Recipe-Master
87523a860b790da9e6cfe4e7843d421e57c421cb
619e9d5dc8f0cb0afca8163f79cbf9cb7d1b52db
refs/heads/main
2023-03-29T16:53:34.152054
2021-04-12T16:03:32
2021-04-12T16:03:32
354,648,846
0
0
null
false
2021-04-11T16:09:34
2021-04-04T21:19:05
2021-04-11T15:59:17
2021-04-11T16:09:33
791
0
0
0
HTML
false
false
# Generated by Django 3.1.7 on 2021-04-05 19:22 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main_app', '0002_auto_20210405_1855'), ] operations = [ migrations.AlterField( model_name=...
UTF-8
Python
false
false
495
py
24
0003_auto_20210405_1922.py
6
0.642424
0.575758
0
19
25.052632
115
kimballa/stitch
17,136,919,533,600
41a8de27d9b163b2a397d336f5a361e422b5e921
fb68aae4c91fb889fe0e6654289a0e0ff3ded258
/src/stitch/util/output.py
befa6acb6b62595374993d2ccbd22f6487ce4dd4
[ "Apache-2.0" ]
permissive
https://github.com/kimballa/stitch
e5b8028e2f48bb9ad906c665d491dd4b142abc97
5b7fec4c08514ed6ec1bd06920d29d9eeb33c98e
refs/heads/master
2021-01-18T04:06:09.448877
2009-07-17T23:30:13
2009-07-17T23:30:13
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# (c) Copyright 2009 Cloudera, Inc. # # 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 agree...
UTF-8
Python
false
false
11,063
py
66
output.py
60
0.725662
0.724758
0
331
32.416918
80
dougheea/ECE434
10,806,137,741,486
4a828325ba7c16ae6394da5785159dc67ed6af26
609e140a7b7ea757ce573e945a9eb5d109d77936
/hw07/etch_a_sketch_blynk.py
66900fb886b1df3837bda68393997e63c766dec9
[]
no_license
https://github.com/dougheea/ECE434
a09cba79ece7c17010e3467d7eb4f8e3cec31b9f
05e98fefd90c3d8117b38ddb7a0b909c5d0a9e60
refs/heads/master
2023-01-20T11:46:08.328136
2020-11-16T18:25:19
2020-11-16T18:25:19
292,934,476
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # From: https://towardsdatascience.com/python-webserver-with-flask-and-raspberry-pi-398423cc6f5d ''' Raspberry Pi GPIO Status and Control ''' import sys import numpy as np import Adafruit_BBIO.GPIO as GPIO import time import smbus import os import blynklib import blynktimer global newcur_x glob...
UTF-8
Python
false
false
4,011
py
36
etch_a_sketch_blynk.py
19
0.635253
0.589629
0
152
25.394737
112
huzuohuyou/AutoArticle
8,263,517,091,827
70e139a652c0ce7fedd6ad72ae15df811c94d01f
b084ef3bc3c63a11699d7c3bac3481bc1e16ceaa
/washManuscript.py
2f496c7282c08d925fda6f8215df4f7b17fb7931
[]
no_license
https://github.com/huzuohuyou/AutoArticle
f1cdb8b8a67117dafaafa9fd1857255d9a00321c
459b27af19a5e6226597d83be7ab268a4acbfe25
refs/heads/master
2022-12-15T05:47:10.326543
2020-09-18T09:01:48
2020-09-18T09:01:48
296,262,116
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import urllib import http.cookiejar import ssl import requests import json def washAiticle(article): headers = { 'POST http':'http://18.217.155.9/api/open/xi HTTP/1.1', 'Host':'18.217.155.9', 'Connection':'keep-alive', 'Content-Length':'733', 'Originv':'http://mutou888.com'...
UTF-8
Python
false
false
1,732
py
4
washManuscript.py
4
0.702079
0.558314
0
29
58.758621
737
lindo-zy/leetcode
7,885,559,959,398
5335188e74c75407977102aec6bb4d706ba4c10a
a606893da1e354c7c617d0c9247b23118be2813a
/easy/e15.py
222bdef06016c055b462096a9410bc86373da2ed
[]
no_license
https://github.com/lindo-zy/leetcode
4ce6cb9ded7eeea0a6953b6d8152b5a9657965da
f4277c11e620ddd748c2a2f3d9f5f05ee58e5716
refs/heads/master
2023-07-22T06:19:00.589026
2023-07-16T12:35:14
2023-07-16T12:35:14
229,958,065
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 # -*- coding:utf-8 -*- class Solution: def plusOne(self, digits): return list(map(int, str(int(''.join([str(i) for i in digits])) + 1))) if __name__ == '__main__': s = Solution() digits = [1, 2, 3] # [1,2,4] digits = [4, 3, 2, 1] # [4,3,2,2] # digits = [0] # [1] #...
UTF-8
Python
false
false
402
py
324
e15.py
321
0.487562
0.422886
0
15
25.8
78
CamiPon/MemPy
4,947,802,343,278
811bc927e880900aeec4ae73dc2d212e92e0073d
028bf06db19b584bc6322d8427bb27bf77f54469
/ActividadGrupal1/src/windows/v_configuraciones.py
9136cb6b5d36a901ea3282b587d250f0fa2f7623
[]
no_license
https://github.com/CamiPon/MemPy
241189c0a16cdd27b6f7296d4bd295003438d17e
46eaa106709e8fdd46d7f1c4b82a1fddaaa9d0dc
refs/heads/master
2023-06-05T23:32:23.270248
2021-06-22T02:45:48
2021-06-22T02:45:48
361,834,846
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import PySimpleGUI as sg from ..windows import Utilidades as u def build(configuracion): pad_t = ((0,0),(0,15)) pad_i = ((10,0),(0,15)) l_cont_form = [ u.texts("Textos",17, pad = pad_t), u.texts("Tiempo maximo",17, pad = pad_t) + [sg.Spin([i for i in range(120,300)], initial_value= configura...
UTF-8
Python
false
false
2,256
py
17
v_configuraciones.py
11
0.595745
0.534131
0
39
56.871795
209
caotianwei/learning-ML-DL
12,799,002,577,755
5f57d76817cb7f0784637daec92ac9336c643241
c8d29ad4dc1835ce4d4af1d76262cd01aa89178e
/mnist_softmax.py
a1f6b9d18adc98830e7d434cf83333b98dd08ae0
[]
no_license
https://github.com/caotianwei/learning-ML-DL
e60b86474d82574e5f6796638463fb5e3426409d
f62b43a92bdbfead5127278a026f8f90998e7c0e
refs/heads/master
2021-01-22T21:38:24.120814
2017-03-19T12:44:43
2017-03-19T12:44:43
85,457,493
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('MNIST_data/', one_hot=True) X = tf.placeholder(tf.float32, [None, 28 * 28]) W = tf.Variable(tf.zeros([28 * 28, 10])) b = tf.Variable(tf.zeros([10])) Y = tf.nn.softmax(tf.matmul(X, W) + b) Y_ = tf.pla...
UTF-8
Python
false
false
1,183
py
3
mnist_softmax.py
2
0.67202
0.639899
0
34
33.823529
86
marceljungle/label-releases-explorer
18,554,258,753,805
6ef552ee959e0a91f1d662bcdcf6829c3497d80d
a7df89aaf01a0e449aff006b073c502ed95cb1ce
/principal/models.py
caa71ef755de94123fea689a5509e77c78462cc6
[]
no_license
https://github.com/marceljungle/label-releases-explorer
3aa26f88be89790f91889f2cd43b3ca1f8bdce4e
c70b68e83d0150b2fec9e2061bafde8f4395f893
refs/heads/master
2023-06-03T23:38:30.106815
2021-06-21T09:37:02
2021-06-21T09:37:02
376,323,685
0
0
null
false
2021-06-21T09:37:03
2021-06-12T15:27:27
2021-06-19T15:22:09
2021-06-21T09:37:02
12,691
0
0
0
JavaScript
false
false
# encoding:utf-8 from django.db import models class ReleasesBeatport(models.Model): artist = models.TextField(verbose_name='Artist') catalog_number = models.TextField(verbose_name='Catalog Number') title = models.TextField(verbose_name='Title') year = models.TextField(verbose_name='Year') image = ...
UTF-8
Python
false
false
1,716
py
17
models.py
14
0.672494
0.671911
0
58
28.586207
68
260980/260980_Daily_Commits
17,592,186,083,943
e2dd7f855d9e0c1f46bf03a81319d2fe8ea9aa43
d1a7531c04b08e133d39b8cad3e2b561236b85d3
/Assignment/If-elif-else/If-elif-else_2.py
722635cbe9dbb9d0e52531a78acf7f8da9f45917
[]
no_license
https://github.com/260980/260980_Daily_Commits
8759d81e703b56a96677f9697851cb68088e8f7e
20e38e5a20cf51e6c941bf95696c5aa84f1a7849
refs/heads/master
2023-04-03T13:48:07.010808
2021-04-25T15:00:08
2021-04-25T15:00:08
359,049,154
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Write a python program to check the user input abbreviation. str1 = input('Enter the abbreviation') if str1 == 'lol': print("laughing out loud") elif str1 == 'rofl': print("rolling on the floor laughing") elif str1 == 'lmk': print("let me know") elif str1 == 'smh': print("shaking my head") else: p...
UTF-8
Python
false
false
352
py
17
If-elif-else_2.py
16
0.661932
0.647727
0
12
28.333333
62
Dodzik/Language_Python
19,585,050,900,473
2d044c7eb7c16c307f7efcebec7d6f40a59a6b6d
8d6b9b914f91ed4dfe7000cdca764a35f0ff7daf
/lab09/mojmodul.py
a7985ccde7a06acd9eb70d26eb41d56e8ea3a6b7
[]
no_license
https://github.com/Dodzik/Language_Python
7c991226284d4085fd9d22b8a8cbd5411053ca8a
bf869322e739e6b5ef4c96b61e702168c4aaf629
refs/heads/main
2023-05-08T00:05:59.909117
2021-05-19T17:23:05
2021-05-19T17:23:05
368,875,667
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import matplotlib.pyplot as plt def fun1 (n,los): x = random.random() y = random.random() argumenty=[] wartosci=[] with open('wyniki1.txt','w') as f: f.write(str(x) + " "+ str(y)+'\n') argumenty.append(x) wartosci.append(y) for i in range(n): chos = random.choices(los,[1,7,7,85]) cho...
UTF-8
Python
false
false
2,069
py
13
mojmodul.py
11
0.627422
0.604651
0
76
26.171053
150
mtlynch/GreenPiThumb
11,278,584,156,256
9e974ec7b6f6ae61837e14508ab2870c19b4065a
48290742dd0bb2cf6186bdd891bf0728dcf53dd1
/greenpithumb/clock.py
f8bd42e91c1991e457d9ca29bbae34b57850323e
[ "Apache-2.0" ]
permissive
https://github.com/mtlynch/GreenPiThumb
08363f660513ccdc8e7956936da0471da8fa328c
e824f3d3b5298b6fbbff97e1a709929d27d294e7
refs/heads/master
2021-01-17T23:46:32.632630
2017-01-10T17:27:20
2017-01-10T17:27:20
56,197,493
3
0
null
true
2016-05-14T17:47:38
2016-04-14T01:21:54
2016-04-17T19:11:02
2016-05-14T17:46:12
34
0
0
0
Python
null
null
import datetime import time import pytz import tzlocal class Clock(object): """A wrapper for managing clock time functions.""" def wait(self, wait_time_seconds): """Wait for the specified number of seconds. Args: wait_time_seconds: Number of seconds to wait. """ ...
UTF-8
Python
false
false
801
py
40
clock.py
36
0.619226
0.616729
0
31
24.83871
74
rileyjohngibbs/ICS-PA-2018-2019
1,125,281,437,174
59dae669b495b663de1010f0bae396c4efd4443c
01b402a1637918b27ac5343c757d551c49b1acc4
/inclass_scratchwork/2018-11-30_pokemon.py
37faaeaf0b10feb6978fc3ce03842427818b6abe
[]
no_license
https://github.com/rileyjohngibbs/ICS-PA-2018-2019
7670d7f1eeb87d62af108a08326c953625071a1f
b53def4fd655a2defb09006ad8951d78a7fc3402
refs/heads/master
2020-03-28T11:56:05.779537
2019-06-13T16:45:52
2019-06-13T16:45:52
148,257,287
0
3
null
null
null
null
null
null
null
null
null
null
null
null
null
from random import randint STRENGTHS = { "grass": "water", "water": "fire", "fire": "grass" } class Pokemon(object): def __init__(self, name, type_): self.name = name self.type_ = type_ self.hp = 50 def attack(self, target): base_damage = self.roll_damage() ...
UTF-8
Python
false
false
1,155
py
59
2018-11-30_pokemon.py
36
0.58355
0.57316
0
44
25.272727
72
lianruiying/TranscriptProcessing
8,315,056,730,040
bc1a934da688c74061ad69e8445583dbc6767211
d5e18d55b40964b5bf08e5097db127b5c6fbefee
/__init__.py
5dcb0bb560873d297e4a1583fb074f975970cd29
[]
no_license
https://github.com/lianruiying/TranscriptProcessing
de8c4ae7a0fd5caf5812d9e7ee4657cfaaebfd8a
94a1c32f4cc7ab373936529df9baeee3fca63a39
refs/heads/master
2020-03-23T14:12:45.600063
2018-07-20T01:04:46
2018-07-20T01:04:46
141,663,213
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import Get_Trans import raw_url import urlhub file = open("scripts.txt",'a') index = 0 url = "http://www.ted.com/" raw_urlhub =raw_url.raw_url(url) urlhub = urlhub.refine(raw_urlhub) #print(urlhub) for url in urlhub: try: script = Get_Trans.transcript(url) index += 1 file.write(form...
UTF-8
Python
false
false
429
py
5
__init__.py
4
0.624709
0.620047
0
24
16.875
44
Feteya/AaronTools.py
9,560,597,204,710
9a2e20c4ae8440bd3873e54986420aa84985dc35
fc1ce41908b2734d30f0bf8cf9e1f9906e5bbd88
/test/test_trajectory.py
cf82c85daa488164326792fcda32f29d5b593cf1
[]
no_license
https://github.com/Feteya/AaronTools.py
0acbe94e323aed4a222c920a20c4cc776d90a586
1e104e1ceec46486120c85e8bb0d590575ebf097
refs/heads/master
2020-09-06T07:35:01.477275
2019-11-07T21:53:56
2019-11-07T21:53:56
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import unittest from AaronTools.trajectory import Pathway from AaronTools.geometry import Geometry from AaronTools.test import TestWithTimer, prefix, rmsd_tol from numpy.linalg import inv from numpy import dot, finfo class TestPathway(TestWithTimer): t60 = Geometry(prefix + "test_files/tors...
UTF-8
Python
false
false
1,819
py
42
test_trajectory.py
39
0.595932
0.547004
0
54
32.685185
70
RideGreg/LeetCode
584,115,554,105
0b796a4a65b149c8a22776bea9db3b9b64256277
fc75506dc1f278585630a9d7d3b70cbb92d3d9f5
/Python/perfect-squares.py
fc656373544214677ddf010f0f8cb1984659f7f8
[ "MIT" ]
permissive
https://github.com/RideGreg/LeetCode
a533b5193b2680f23c08572391eecaa3866c3cef
e1d19b5e18ece5190277317595b554ab50efb900
refs/heads/master
2022-08-24T16:16:03.392756
2022-08-12T23:17:53
2022-08-12T23:17:53
115,889,638
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Time: O(n * sqrt(n)) # Space: O(n) # 279 # Given a positive integer n, find the least number of perfect # square numbers (for example, 1, 4, 9, 16, ...) which sum to n. # # For example, given n = 12, return 3 because 12 = 4 + 4 + 4; # given n = 13, return 2 because 13 = 4 + 9. # class Solution(object): def num...
UTF-8
Python
false
false
645
py
822
perfect-squares.py
821
0.537984
0.466667
0
24
25.916667
73
fmirandaTN/Api_TN
3,539,053,090,500
e114359e194368860cba66a044467a71c448971a
0d3698d107efe9b1e17311ba5f44bbcd6ebe4b27
/api/models/user_token.py
7cdc67a7aed0ba99de6c45a23acbd7aaa649f2ff
[]
no_license
https://github.com/fmirandaTN/Api_TN
5406921977011a6693d560c47ab5958544a509e4
5665d90d6f2bf09969bd833d64ab8a9e24957641
refs/heads/master
2022-12-08T23:07:01.617341
2020-09-17T14:07:57
2020-09-17T14:07:57
293,366,842
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from datetime import datetime, date, timedelta from django.db import models class UserToken (models.Model): token = models.CharField(max_length=500) owner = models.ForeignKey( 'api.User', related_name="token_register", on_delete=models.CASCADE, null=True) validation = models.BooleanField(default=Fa...
UTF-8
Python
false
false
374
py
161
user_token.py
149
0.745989
0.737968
0
9
40.666667
87
btg1998/Information-Systems
13,056,700,616,473
c271b29cfe659728e3d8cfc9c39218c2b7861209
7634b9e9b1b78dd08ef7a629ea7bb6b07713b9bb
/Eigen Values and Eigen Vectors.py
8ec690593a863e148b0f78e909bcfc263df9105a
[]
no_license
https://github.com/btg1998/Information-Systems
74e7f3a09d0f25a14d30890944ff853b9386bdc2
481cec62fc9510082bd5b3d24febc3f3283f1a39
refs/heads/master
2020-03-26T05:56:52.599814
2018-08-13T13:31:53
2018-08-13T13:31:53
144,582,191
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Aug 23 19:22:15 2017 @author: bharg """ import scipy from scipy import linalg import numpy as np a=np.array([[1,8,-9,7,5], [0,1,0,4,4], [0,0,1,2,5], [0,0,0,1,-5], [0,0,0,0,1]]) print("Determinant: ") print(scipy.li...
UTF-8
Python
false
false
587
py
48
Eigen Values and Eigen Vectors.py
41
0.572402
0.505963
0
27
19.666667
38
walberjose/COOL
17,300,128,299,071
9559bb1bb49f1fb55e2c84d9576cd26fb65baa9d
ee340a4025f1b041410a06e1794632e1108257ad
/mininet_topo/simple_linear_2links.py
a0265690b6afebcdef452387aed2ccd138424a03
[]
no_license
https://github.com/walberjose/COOL
37264431b5bb07a55d194276988c3fa7967952e8
0e878f4a868095140a4c7757766e460abb45e81a
refs/heads/master
2020-03-29T04:09:24.448947
2018-09-19T22:11:14
2018-09-19T22:11:14
149,518,099
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python """ This example shows how to add an interface (for example a real hardware interface) to a network after the network is created. """ import re import sys from mininet.topo import Topo from mininet.cli import CLI from mininet.log import setLogLevel, info, error from mininet.net import Mininet from ...
UTF-8
Python
false
false
4,545
py
46
simple_linear_2links.py
38
0.5967
0.546755
0
130
33.969231
117
2019-jbedu-g2/Test_Server
11,115,375,376,139
5e85b06aee595018f44b5c64f413ed3e1877dd72
e26463722143c2fd18f4e78b47e1d42aa53c6c7c
/store/store/models.py
a1de7c4e2226d0698a401e0395e7684334f483e6
[]
no_license
https://github.com/2019-jbedu-g2/Test_Server
5b1aeaabfc732bd8bfc61fa05c0d596447f1abc7
a85d9f65355380f51554adf7e3ecf29d752e51aa
refs/heads/master
2020-06-18T13:34:12.050325
2019-08-15T05:48:26
2019-08-15T05:48:26
196,300,820
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# This is an auto-generated Django model module. # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with primary_key=True # * Make sure each ForeignKey has `on_delete` set to the desired behavior. # * Remove `managed = False` lines if ...
UTF-8
Python
false
false
2,505
py
20
models.py
17
0.707784
0.687425
0
64
38.15625
104
akeilox/FYP-Face_Recognition_Based_Attendance_System
18,897,856,111,838
50bf08058fa02f37f5a51dcd8ef0ce7638739140
8dbea32bdfd830782cab1ff42320d4d9fcdf70e3
/Final Year Project - 022319/bin/Debug/benchmarker_DS6.py
ca900ff4f8f51cbecb9450ab459355d4b9cca07f
[]
no_license
https://github.com/akeilox/FYP-Face_Recognition_Based_Attendance_System
0702c9bd17ea847eca4f3f40177b4c311141a038
d502c82353de5f1712ba3028fd3654829b584d60
refs/heads/master
2020-06-06T08:04:30.479065
2019-02-25T13:17:03
2019-02-25T13:17:03
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import random import cv2 from PIL import Image import numpy as np import shutil import importlib import imp testset_amount = 5 selected_Dataset = None trainingSeq = 0 testSeq = 0 test_Question = [] test_Dir = [] bm = None MajorDataset = "Dataset 5" def fetchTrainingData(DS_DIR, TRAIN_DIR = "Training Image")...
UTF-8
Python
false
false
7,969
py
35
benchmarker_DS6.py
1
0.559041
0.553394
0
232
33.293103
130
rehadhawan/WWR-Data-Vis
19,112,604,506,577
43848c309bf933d2bd0d1f23b06fcf296ec55f61
ade61fdefb397ea0944914b0250bf9314de180ca
/WWR Assignment 2 Yearly rainfall and temp (1).py
9e16e40add0023b0a3ab2672647c9c7a73d5bf76
[]
no_license
https://github.com/rehadhawan/WWR-Data-Vis
ba34b2a388476afbd8c13aeff48f7db377bb0312
cf7917d2e778c4c69a591e6349df9bb43f52c353
refs/heads/main
2023-05-25T16:44:13.796976
2023-05-16T13:08:22
2023-05-16T13:08:22
305,786,538
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[14]: import pandas as pd import csv path = r"C:\Users\reha_\Downloads\rainYearly.csv" file = open(path) df = pd.read_csv(file) print (df) result = df.dtypes print(result) df["Year"] = df[ 'Year'].astype(float) df.dtypes # In[15]: path2 = r"C:\Users\reha_\Downloads...
UTF-8
Python
false
false
690
py
2
WWR Assignment 2 Yearly rainfall and temp (1).py
1
0.643068
0.617994
0
46
13.652174
65
WebDevBren/SimpaticoTAEServer
6,760,278,546,655
ff9f77ddb68546caaea7450c8cdd64e72aa63a0d
1bcd70ca4fa48004a363061d4f312c950b56a8bd
/main_TAE_server/tests/Syntactic_Spanish_Test.py
b9630a89e6b05261b53ee1a3db38dcee45e859e1
[]
no_license
https://github.com/WebDevBren/SimpaticoTAEServer
5c0a4d09159100b99fb3d5f5d9d81ce54b31bb41
152efe99c6df8de9c538f303d734b61552bbdddb
refs/heads/master
2021-04-12T10:51:53.942628
2017-08-10T13:19:34
2017-08-10T13:19:34
94,534,959
0
0
null
true
2017-06-16T10:47:38
2017-06-16T10:47:38
2017-01-11T13:11:56
2017-05-14T12:33:34
33,355
0
0
0
null
null
null
# -*- coding: utf-8 -*- import urllib2 url = 'http://localhost:8080/?type=syntactic&sentence=Si%20la%20persona%20beneficiaria%20abandonase%20la%20estancia%20una%20vez%20iniciada%20,%20no%20tendrá%20derecho%20a%20ningún%20tipo%20de%20devolución%20.' content = urllib2.urlopen(url).read() print content
UTF-8
Python
false
false
308
py
18
Syntactic_Spanish_Test.py
14
0.777049
0.629508
0
9
32.888889
209
Swanson-Hysell/EPS88_Jupyter_Book
12,498,354,872,039
276d85df77487bb64c6cededdc965a2a235db1c9
08c93f0d50621bb3b85bbbae753cc3b3e92de93e
/_build/jupyter_execute/folder_01/W1_tabular_data.py
086ffcd35a5d5d5c08d64c0f983220697874ccfd
[]
no_license
https://github.com/Swanson-Hysell/EPS88_Jupyter_Book
b9244c403127fe441f0ba85c2728d7a406acac69
4b32ab147e1b512425663d28187f94baf32806e9
refs/heads/master
2023-03-15T22:33:39.505706
2020-11-29T17:59:29
2020-11-29T17:59:29
586,075,599
2
0
null
true
2023-01-06T21:54:26
2023-01-06T21:54:25
2020-11-29T17:59:42
2020-11-29T17:59:39
146,016
0
0
0
null
false
false
# 1.2 What is Data Science? **Goals:** Introduce the broad concepts of data science and data structures. Prepare to look at tabular data. **Outline:** * Tables * Indexing ## Additional Assigned Reading (or Review) Data 8 textbook "Computational and Inferential Thinking: The Foundations of Data Science" By Ani Ad...
UTF-8
Python
false
false
4,551
py
87
W1_tabular_data.py
25
0.662272
0.595913
0
65
69
679
tmichalak/actions
7,138,235,651,553
3f55c2de1bd8cbb6d96d0cde1c3bf00cdfc209f2
681116601c01d08fbbe190f4d5974ff0bc085d4a
/includes/actions/python/run-installed-tests/get-pytest-ini-and-run-tests.py
a7895abada5532e882cd5e8d1cdfe8c708092294
[ "ISC" ]
permissive
https://github.com/tmichalak/actions
923c99956c5372b80fee91d8a3fa46ee2a35d50f
fab6b84075e4aab10b505e257cc1237b5343247d
refs/heads/main
2023-05-26T19:32:19.261524
2021-04-27T16:57:42
2021-04-27T16:57:42
375,796,008
0
0
ISC
true
2021-06-10T18:39:38
2021-06-10T18:39:38
2021-04-29T15:26:16
2021-06-09T15:55:45
91
0
0
0
null
false
false
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2021 The SymbiFlow Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC from __future__ import print_function import...
UTF-8
Python
false
false
1,356
py
22
get-pytest-ini-and-run-tests.py
5
0.69174
0.683628
0
54
24.111111
88
niazzaki/ce888labs
6,674,379,225,111
d6c4fcdd76b17f56ed3a2c4bb33751ef82927566
4bc99a2dc0db339f3e1e3eeacb01fa48b78fb165
/lab8/mycode.py
2bfb8e4f73cc3d9d7c0ebe809d974a2cf5e5c096
[]
no_license
https://github.com/niazzaki/ce888labs
a7c4d451fd79a75c0275d432a4793ec2d74ed3bb
d2cc126ba81325227c70947ce53afb1af8db5c98
refs/heads/master
2021-05-05T18:50:41.411265
2018-04-26T00:20:35
2018-04-26T00:20:35
117,615,116
0
0
null
false
2018-01-16T02:15:28
2018-01-16T01:32:43
2018-01-16T01:32:43
2018-01-16T02:15:27
0
0
0
0
null
false
null
from keras.layers import Dense, Activation, Embedding, Flatten, Input, Dropout, Conv1D, GlobalMaxPooling1D, LSTM from keras.datasets import imdb from __future__ import print_function import numpy as np np.random.seed(1337) from keras.preprocessing import sequence from keras.models import Model, Sequential max_featu...
UTF-8
Python
false
false
1,379
py
28
mycode.py
11
0.696157
0.677302
0
46
29
112
hn4002/streamer
2,508,260,935,155
17358e6198741cb77da8ab483fd34181ab962ace
02fc3d0fe20bb3d30b39fc92d4e595f234550b06
/mysite/common/stockcheckup.py
17c71b1f7a08a2b0670ab8578c3cbabf7224cf7b
[]
no_license
https://github.com/hn4002/streamer
e4e0acb292a1f35eb36c57ee2d74c30e50b40244
140035ebfd53a559ecd7d89fb47896d37efabd43
refs/heads/master
2017-12-18T15:48:19.687825
2017-11-13T06:34:41
2017-11-13T06:34:41
77,081,814
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import os import mysite.settings as settings stockcheckupJsonFile = "stocks.json" stockcheckupJsonFilePath = os.path.join(settings.WORKING_DIR, stockcheckupJsonFile) data = None def getStockDetail(symbol): loadData() stocks = data["stocks"] if symbol in stocks: stock = stocks[symbol...
UTF-8
Python
false
false
5,580
py
110
stockcheckup.py
61
0.546774
0.534946
0
128
42.601563
288
gautamdayal/USACO
5,669,356,832,348
acd7b3440e7be156bd162057718fd6fcae658687
62cd41a215c50f62c5ae43abc91367a7df6198ef
/notlast.py
6db2c03fdc503eca78d4b9f628e2c57d33855263
[]
no_license
https://github.com/gautamdayal/USACO
7f66d4cbfe43011defe4ae07a5c3b725c5207a8c
3aacb083cb47c7d44dff79a16ceb724aaff44ecc
refs/heads/master
2020-04-11T15:47:24.211061
2019-02-23T16:27:35
2019-02-23T16:27:35
161,903,050
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# All test cases correct. inFile = open('notlast.in', 'r') outFile = open('notlast.out', 'w') cows = [s.split() for s in inFile.readlines()[1::]] for l in cows: l[1] = int(l[1]) totalmilk = {} for cow in cows: name = cow[0] amount = cow[1] if name not in totalmilk: totalmilk[name] = 0 ...
UTF-8
Python
false
false
994
py
10
notlast.py
9
0.589537
0.572435
0
52
18.115385
51
nagar-omer/Dafna_ex4_vecation
15,573,551,417,412
d582c7168c496ef12c9c028f5d2421f8f5d24f68
6c2674ca51055d931f9a22590137eb81c85f9081
/activator/activator_params.py
85aaf74db93095f8906a913467655a7541eb5782
[]
no_license
https://github.com/nagar-omer/Dafna_ex4_vecation
5c677ed584505dcd7cfcbf93433802ef51196657
ba094a7b146baa547e581403165a3ce81203bb58
refs/heads/master
2023-06-09T18:52:39.725509
2019-06-24T16:36:46
2019-06-24T16:36:46
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from torch.nn.functional import cross_entropy class VoiceActivatorParams: def __init__(self): self.LOSS = cross_entropy # relu self.BATCH_SIZE = 64 self.GPU = False self.EPOCHS = 30 self.VALIDATION_RATE = 200 self.PIN_MEMORY = True self.NUM_WORKE...
UTF-8
Python
false
false
327
py
7
activator_params.py
6
0.608563
0.584098
0
13
24.153846
45
dhruvshrivastava/Flask-segmentation-application
14,156,212,220,783
d8593e1e7f17062367a054802812cc184e1b12ce
2b402523c32b8a9fa4c8a94dedc06bee51e83977
/routes/segmentation.py
9f974d53e82e3ba9a59c514cc350dbbe9e3ca182
[ "MIT" ]
permissive
https://github.com/dhruvshrivastava/Flask-segmentation-application
3204af566dd2e457cf405acb08e579549d24816c
305baa1c9b407516f826f5ef59b37288e16e6779
refs/heads/main
2023-05-09T19:08:05.047832
2021-04-27T11:51:53
2021-04-27T11:51:53
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from python.config import app import simplejson as json from flask import render_template, request, session import pandas as pd from io import StringIO from controllers.segmentation import segmentation @app.route('/segmentation', methods=["POST", "GET"]) def dashboard(): if request.method == 'POST': index...
UTF-8
Python
false
false
855
py
11
segmentation.py
6
0.683041
0.683041
0
23
36.173913
110
suningwz/odoo-bebepolis
18,485,539,250,947
b1bc913747a2541568bcdd54669dfe7a10c8075f
4d01b758fb3e491d1fba9ead224742189818fb82
/prestashop_connector_gt/models/sale_shop.py
cf18bf203c69d12b55143a027fa43f20e94204d7
[]
no_license
https://github.com/suningwz/odoo-bebepolis
3945e5835203c1503db71a8859ba8a8bb5835943
18b5812360f5ceb42d9d85eae4a5aa2912ace724
refs/heads/main
2023-04-27T17:50:39.936503
2021-05-04T18:42:26
2021-05-04T18:42:26
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- ############################################################################# # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # ...
UTF-8
Python
false
false
144,491
py
52
sale_shop.py
25
0.641184
0.636194
0
3,011
46.987047
257
chscheller/sc2_imitation_learning
2,078,764,217,310
087fe5ffb50f0ed8a4a640a826453c41aaa41f84
5c0e9170fc8a05d1e30777fb708757ce0944b1b6
/sc2_imitation_learning/behaviour_cloning/learner.py
250cab1853f6d296a92bdd2b50a2987d4a52766d
[ "MIT" ]
permissive
https://github.com/chscheller/sc2_imitation_learning
770cad1af0398b2983e4eb0508f04ecd732debc9
8dca03e9be92e2d8297a4bc34248939af5c7ec3b
refs/heads/master
2023-06-11T22:13:23.100108
2021-07-02T00:25:22
2021-07-02T00:25:22
372,315,766
10
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging import math import os import time import timeit from typing import Optional, Callable, Dict import numpy as np import tensorflow as tf from sonnet.src.types import TensorNest from sc2_imitation_learning.agents import Agent, build_saved_agent from sc2_imitation_learning.common import utils from sc2_imit...
UTF-8
Python
false
false
13,444
py
40
learner.py
38
0.649212
0.644079
0
324
40.493827
117
igavriil/two-player-ai
14,783,277,439,856
8014db81176e1eba8335bf7638f616fcd6f8d8f2
b32a2663be4842f652f0189759b86d1a4be9d93d
/src/two_player_ai/alpha_beta.py
f6fba9945f75386064d5e42da7f296988ec7b5b7
[ "MIT" ]
permissive
https://github.com/igavriil/two-player-ai
8d71449720d13f7a52946af4ca1c270cb15aa57e
f5e2ae9d714370da11650676f8619ea055730ad5
refs/heads/master
2018-07-10T05:18:52.902669
2018-07-01T13:40:31
2018-07-01T13:40:31
121,112,128
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from two_player_ai.utils import benchmark class AlphaBeta(object): def __init__(self, game=None, heuristic=None): self.game = game self.heuristic = heuristic @benchmark def run(self, state, player, maximize, alpha=-np.inf, beta=np.inf, depth=10): if depth == 0 o...
UTF-8
Python
false
false
1,770
py
25
alpha_beta.py
22
0.461582
0.458192
0
49
35.122449
81
saris20038/programacion01
884,763,274,969
15b3f03973cf7edcfd666c36cda8d9b39a099e7f
098a069f5870216caf2983ccaa6a9795fb742ca6
/TALLERES/TALLER2.py
6c7e446e03c704ebd04d8be4518191a6b9b9b884
[]
no_license
https://github.com/saris20038/programacion01
6adc4fc3a90001333aa65f25a958cf6868daa08f
62183a88f6c8cf174a456f761d3ed8489770ea61
refs/heads/main
2023-05-07T23:32:34.720216
2021-05-27T12:51:52
2021-05-27T12:51:52
335,283,326
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
## Usando el mismo codigo del taller 1, haré un mayor y menor. print("Segundo taller, con el codigo del primero") print("--Los dos numeros que tendré seran un supuesto de la nota de calculo que tengo y la nota necesaria para aprobar--") miNota = 2.8 notaMinima = 3 notaMaxima= 5 print("¿con la nota que tengo, gano la ma...
UTF-8
Python
false
false
1,938
py
37
TALLER2.py
35
0.765226
0.758459
0
45
41.711111
122
Helsinki-NLP/Opus-MT
16,587,163,711,102
cb207cf80a5712ee69bd4ce96733ce969992ebbd
b67e2939225aa8446ea8f367b1023217d8ae4a54
/telegram_bot/keyboards.py
04cf9807bb5e485b4b5e86856476ecb9b41d1885
[ "MIT", "CC-BY-4.0" ]
permissive
https://github.com/Helsinki-NLP/Opus-MT
7d8968f1208e89ea67866ef66e47d14b0f9f4c8d
c1980b571d3a34f963102b1460d5f78ce8bf4d55
refs/heads/master
2023-08-17T05:58:04.606847
2023-08-15T18:32:03
2023-08-15T18:32:03
203,664,345
387
55
MIT
false
2023-08-15T18:32:05
2019-08-21T21:05:30
2023-08-14T07:43:08
2023-08-15T18:32:03
38,458
382
54
41
Python
false
false
from aiogram import types KEYBOARDS = { 'hide': types.ReplyKeyboardRemove(selective=False), 'lang': { 'options': ['English', 'Finnish', 'German', 'Swedish', 'Ukrainian'], 'markup': None, }, } def fill_keyboards(): # scales markup = types.ReplyKeyboardMarkup(resize_keyboard=True) ...
UTF-8
Python
false
false
474
py
49
keyboards.py
22
0.64346
0.64346
0
17
26.882353
92
dgjung0220/deepLearing_tensorflow
9,440,338,155,024
bf0a796d85a4759f6046c9807f9c4f9d99dc4483
f01a0412d19d0434d088a6d902dbe8a2f659f644
/DL_Source/Day_05_03_tensorboard.py
c3c524514acaff8a43c9183e68be8f5fd8917f16
[]
no_license
https://github.com/dgjung0220/deepLearing_tensorflow
eccf6cf519ce98ef2c130834d5bcf810bb4de8e0
8cd759dfb0384702dc96d8895bde12b9056cc378
refs/heads/master
2020-03-18T08:05:04.530830
2018-05-27T13:31:26
2018-05-27T13:31:26
134,488,732
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Day_05_03_tensorboard.py import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('mnist', one_hot=True) with tf.name_scope('input'): x = tf.placeholder(tf.float32, name='x') y = tf.placeholder(tf.float32, name='y') with tf.name_scope('weight'): ...
UTF-8
Python
false
false
1,487
py
39
Day_05_03_tensorboard.py
30
0.611298
0.590451
0
60
23.683333
62
humnaawan/3D-galaxies-kavli
8,546,984,922,359
e9b6f54a031725bbb497e61f9287c0f47eab51eb
02422b9e360118021f5eaa63c477b189c2305268
/runscripts/get_data/get_illustris_data.py
f75b9cbb97187dafbe36c60c8ce300a45bcecd68
[]
no_license
https://github.com/humnaawan/3D-galaxies-kavli
4235604ab54d71aa437da58e79f96ce34a6693df
5c011319fe32924a98f4adca8b0f432128ff6950
refs/heads/master
2020-06-20T20:46:51.889748
2019-09-19T00:31:28
2019-09-19T00:31:28
197,243,502
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import datetime, time, socket, os import numpy as np from d3g2d import get_data, get_time_passed, readme as readme_obj # ------------------------------------------------------------------------------ illustris_z0 = False # True for z=0.0 data; False for z=0.4 one # ----------------------------------------------------...
UTF-8
Python
false
false
1,951
py
33
get_illustris_data.py
26
0.573552
0.558175
0
52
36.519231
94
mozilla/ansible-junos-stdlib
1,941,325,258,373
bbc2d256948d4074af6494ee6513fa0b87bd67ff
7cf86e0b0a68d53c73f7cd144a0195a5ec1e840b
/version.py
6b78ccab0d3edc21f263c61c56733b64fe0ab0f2
[ "Apache-2.0" ]
permissive
https://github.com/mozilla/ansible-junos-stdlib
d59b464dfd787c0631054ca419db8a78461dfb76
79e65f3626c38e002ee0bf3e0656a0fba00c5f40
refs/heads/master
2023-07-04T02:23:08.237969
2017-01-29T23:46:59
2017-07-07T10:01:57
96,518,054
1
0
null
true
2017-07-07T08:38:42
2017-07-07T08:38:42
2017-06-27T14:36:45
2017-06-28T11:46:12
1,201
0
0
0
null
null
null
VERSION = "2.0.0+dev0" DATE = "2017-April-24"
UTF-8
Python
false
false
46
py
1
version.py
1
0.630435
0.413043
0
2
22
22
inlpi/anci_nn
10,797,547,789,564
58943c276476d77247bec44bc0f303eb49ddeb11
50d25e7059f99d16217da790c198f6c200f684b4
/extract_embeddings.py
aa235023db2d485abe0c2da1ac3f82303133d00b
[ "MIT" ]
permissive
https://github.com/inlpi/anci_nn
6ded0712d3db49a61fe956799ea0e2b8a83a26c0
81c23406ef983e403be9c71450dae987f3233da7
refs/heads/master
2022-09-27T13:59:34.099100
2020-06-03T20:39:30
2020-06-03T20:39:30
269,162,346
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Python 3.7.6 # -*- coding: utf-8 -*- # Author: Ines Pisetta import os import gensim import numpy as np extracted_embeddings_path = 'extracted_embeddings/' if not os.path.exists(extracted_embeddings_path+'tratz/'): os.makedirs(extracted_embeddings_path+'tratz') if not os.path.exists(extracted_embe...
UTF-8
Python
false
false
6,660
py
24
extract_embeddings.py
6
0.54783
0.538069
0
188
33.37766
133
jiyudonggithub/WebSpider
10,402,410,832,729
ad66136d0afc5183549919c6ca80ce73a933af45
c55758fe1b61828d4e8e46787e6c1683a5244c9b
/First/multithreading.py
42fc950739d9d3be42f7b27c60ab257223b5e7fd
[]
no_license
https://github.com/jiyudonggithub/WebSpider
b5625bb2a2c4b448ff4d7c66ebb70c0e16da1e8d
cf171e501ed75efedadeff80abcf33605041cd58
refs/heads/master
2023-01-03T11:10:47.516326
2020-11-04T03:26:38
2020-11-04T03:26:38
306,371,802
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # @Time : 2020/9/24 19:53 # @Author : Jiyudong # @FileName: multithreading.py # @Software: PyCharm import time import threading tasks = ['move1', 'move2', 'move3', 'move4', 'move5', 'move6', 'move7', 'move8', 'move9', 'move10'] def download(move): print(f'start downloading {move}') ti...
UTF-8
Python
false
false
510
py
50
multithreading.py
48
0.613725
0.566667
0
20
24.5
99
sbaguirr/Selenium-Test
1,142,461,321,024
0b6f0577fecf0bd063a2d0c9b8b2cc87712c3d32
4322a33a538be997b54fda4bd6057fb270fd3ca4
/Selenium/locators.py
fe917ed33820f4d98708296af9812822d7acecbc
[]
no_license
https://github.com/sbaguirr/Selenium-Test
3c9f07045802dc0cde18d108d56bc3538c6af546
583872149dac4c4676bdc8973333e6b7cfa9f7f5
refs/heads/master
2021-01-04T15:56:25.898261
2020-02-17T03:07:26
2020-02-17T03:07:26
240,624,183
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Selenium Test""" class EspolPageLocators: """ Class for Espol page locators. """ faculty_list_xpath = "//div[@id='accordion']/div/div/h4/a/strong" ul_list_xpath = "//div[@class='panel-body']/ul[2]" li_list_xpath = ".//li" career_link_xpath = ".//a" class BonusPageLocators: """ ...
UTF-8
Python
false
false
653
py
6
locators.py
5
0.591118
0.58193
0
22
28.681818
83
JaviS1997/ie_python_course
6,760,278,528,224
0b56f51a691701736f9c84872057c10421ac07c0
b9a94ca39f346d21d5d5e63b7dc8fc83a84f44f2
/HW.py
3dd9f569a3457f536e20ad00f679fac23410a4b9
[]
no_license
https://github.com/JaviS1997/ie_python_course
cb0d39c02faa8706467afd02c5e1a7909a65e2f7
9d1aaf7619790b1b48b5b19c8a40e11825ceb295
refs/heads/master
2020-12-20T20:05:03.456979
2020-02-09T19:33:47
2020-02-09T19:33:47
236,196,235
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np def askName(): print("What's your name ?") name = input() print("Nice to meet you {} !".format(name)) return 1 def division(): print("Input two integer numbers for the division. \nNumerator :") num = int(input()) print("Denominator :") denominator = int(input()) ...
UTF-8
Python
false
false
1,891
py
2
HW.py
1
0.538095
0.531217
0
74
24.540541
84
aikram24/S3-Restore
12,489,764,939,456
fbb5e2ae6906073af1635039e6332ae3b4e3dae9
d4ff11e89fddbaeac676a2231bc90e1940b602a2
/s3_restore.py
d0fc91d5c331bee2f9a30adb927f9e13dc99c8d7
[]
no_license
https://github.com/aikram24/S3-Restore
261c62ad932852ff46d5335f6bd96e4b0929dd1c
a12b33af59a23e166b17dbbd2c3f71e48ab4b9de
refs/heads/master
2020-07-01T06:44:25.754151
2017-06-16T17:22:33
2017-06-16T17:22:33
74,093,047
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python2.7 # Ali Ikram # import os, sys, argparse from s3_functions import s3 parser = argparse.ArgumentParser(description='S3 Restore Script') parser.add_argument('-b','--bucketname', help='Bucket Name ex. s3-io-test-2292',required=True) parser.add_argument('-v','--version',help='Version ID', required=Fals...
UTF-8
Python
false
false
788
py
3
s3_restore.py
2
0.746193
0.730964
0
23
33.217391
99
wyanlord/MyCode
2,843,268,352,465
871007239788e519ea16ff5f5fe85e36a02d20aa
1cf340eb13aed56263cfdc82326c78882026d743
/Linux/Ubuntu/安装.py
3c5f95c3de537703ea429ce4f37a6d26597dabf3
[]
no_license
https://github.com/wyanlord/MyCode
b9bb3a36a1f4f18ca49424993618f1640c87f5dd
225d744101e5ab339ff47770e13f52b4c1176f65
refs/heads/master
2017-12-21T17:23:43.946122
2017-02-23T09:28:03
2017-02-23T09:28:03
72,913,669
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#更新apt-get源 apt-get update #更新现有软件 apt-get upgrade #安装vim apt-get install vim #去掉系统的错误报告 vim /etc/default/apport enabled=0 reboot #首先安装ssh apt-get install ssh #安装 vm-tools mkdir /media/mnt && mount /dev/cdrom /media/mnt && cp /media/mnt/VMware* /root && umount /dev/cdrom && cd ~ && tar zxvf VMwareTools* &&...
UTF-8
Python
false
false
5,506
py
76
安装.py
65
0.752557
0.738395
0
140
34.314286
183
andyglez/external_access
4,269,197,522,733
0c46a0a78662e8dbd7cfbb94a21c3a6d6b19da0b
d42f4965db75d36464ddc013538c911fa00074cc
/controllers/search_ctr.py
3a3ffa6d75b6f471975cd631f5488c1c08f61d0d
[]
no_license
https://github.com/andyglez/external_access
13fe21f1cc167c3aa8c4f54a989297390a16e0e5
2ca68d6efdea87741c6070237efe1b6fa6694b06
refs/heads/master
2020-04-28T13:08:52.266332
2019-09-06T19:52:30
2019-09-06T19:52:30
175,299,247
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from settings import database as db from utils.cookies import Cookies def dont_have_permissions(roles): return roles['is_default'] def search(cookies, query, category): data = ([(u, n, a, e, p) for u, n, a, e, p in get_users(category) if by_category(query, category, u, n, a, e, p) and a == cookies.get('info')...
UTF-8
Python
false
false
1,072
py
37
search_ctr.py
23
0.633396
0.63153
0
26
40.269231
150
tijugeorge/Python-code-practice
9,878,424,784,980
7ddd8e1cae8af70abcb1c7ae3100afc74c8d38d7
b57152633d14bac5889aad76c0b233f6e3b9c720
/sum-of-array.py
55bb39d3d7eb53cb0dfeebe5443bdac7a34258ef
[]
no_license
https://github.com/tijugeorge/Python-code-practice
2f01fbaf88238a0e72d18cae4adb23fab3d6625d
8967a03a560160fa04e4801b3d7f0046687daf03
refs/heads/master
2022-10-21T02:10:28.784617
2022-10-09T22:56:26
2022-10-09T22:56:26
74,500,629
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import os def sum(numbers): ret=0 for i in numbers: ret += i return ret print sum([1,2,3,4,5]) #f= open(os.environ['OUTPUT_PATH'],'w')
UTF-8
Python
false
false
177
py
70
sum-of-array.py
68
0.553672
0.519774
0
14
11.571429
39
ducoquelicot/python_files
3,848,290,745,430
97e9cdcb10a3d73e8d4c4f4e956670d07385a21b
da7b4d8d632278a7e793590095c2e3940fdaff0d
/fuckery.py
0cd78b424cf89a15898dfc9733327515a3f0593a
[]
no_license
https://github.com/ducoquelicot/python_files
6a0519c637714e19fa3e3f85f2a4d88b33f747c5
aa3a070df16d04594f5e8645a05dc0a6853be73b
refs/heads/master
2022-12-31T19:17:57.068541
2019-11-05T12:40:37
2019-11-05T12:40:37
168,590,154
0
0
null
false
2022-12-08T05:56:52
2019-01-31T20:17:42
2019-11-05T12:41:00
2022-12-08T05:56:51
552,942
0
0
2
HTML
false
false
from bs4 import BeautifulSoup import csv import os import requests pa_agenda = {2019: 'https://www.cityofpaloalto.org/gov/depts/cou/council_agendas.asp', 2018:'https://www.cityofpaloalto.org/gov/agendas/council/2018.asp'} for year in pa_agenda.keys(): print(pa_agenda[2019]) for i in range(2002,2019): print(i...
UTF-8
Python
false
false
1,366
py
140
fuckery.py
19
0.693997
0.644217
0
47
28.085106
154
cthamilton/BootCamp2017
566,935,726,753
49ba6fbc8a8cd45d3190a560d1f9da77a3a183cf
90a979361002fd832ad0b1cee03adc8467dc1726
/ProbSets/Comp/Week4/CondStab/1.py
26c38d879f5c33a4ef39dd4a902fddc5dc735a76
[]
no_license
https://github.com/cthamilton/BootCamp2017
50a2c4fb96209983a08647a5933a4d456ae1c9ea
e50927a79f5031318b9d12c6a30a475d7e5f637e
refs/heads/master
2017-07-30T10:48:46.106675
2017-07-30T09:11:51
2017-07-30T09:11:51
94,893,563
0
0
null
true
2017-06-20T13:21:20
2017-06-20T13:21:19
2017-06-20T11:18:16
2017-06-20T13:15:29
11,430
0
0
0
null
null
null
import numpy as np import scipy.linalg as la def condcalc(A): x,y,z = la.svd(A) ma = np.max(y) mi = np.min(y) return ma / mi
UTF-8
Python
false
false
147
py
164
1.py
139
0.564626
0.564626
0
8
16.75
25
f981113587/Python
2,542,620,656,451
233fea320f14b1f57f79afe790369e8e2a574fa5
eee2e2c19867b8500a0176442084e35361a51475
/Aula 08/Desafios/018.py
46f2a764f0d25aa2cd4feef4c7f718875834ecb6
[]
no_license
https://github.com/f981113587/Python
71a30d1ddd9317571f20f7abb735e94997604a08
ef76f72c9caec4b4ba15315d1366f5fb1bbb42f0
refs/heads/main
2023-07-16T16:25:36.037368
2021-08-28T14:17:15
2021-08-28T14:17:15
400,808,061
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Faça um programa que leia um ângulo # qualquer e mostre na tela o valor # do seno, cosseno e tangete desse ângulo. from math import cos, sin, tan, radians angulo = float(input('Informe o valor do ângulo: ')) print('Cos({}) = {}'.format(angulo, cos(radians(angulo)))) print('Sin({}) = {}'.format(angulo, sin(radians(a...
UTF-8
Python
false
false
393
py
83
018.py
83
0.676093
0.676093
0
10
37.9
58
neviim/_commandos_
4,887,672,813,412
f371359e2093d1ce79f2ff4d1d0a28d64c7cd6ad
8c95394615cd1c4d973c43baa6fdb74aa4834993
/fcn/doc-script/[mongodb_install_config.py
b1d7147c8bf3965d8599a57917b20055f55f14e6
[]
no_license
https://github.com/neviim/_commandos_
fa250dc8198f178a36664a60c37cbcbd8b01e29c
6fb9c5dbe4b646f816d12e54f15529fe53859546
refs/heads/master
2021-05-14T12:32:18.116512
2020-02-28T18:35:50
2020-02-28T18:35:50
116,411,489
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# instalando mongodb centos 7 ::: Colocar repositorio MongoDB $ nano /etc/yum.repos.d/mongodb-org.repo [mongodb-org-4.0] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.0/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc ...
UTF-8
Python
false
false
460
py
283
[mongodb_install_config.py
144
0.704348
0.673913
0
21
20.809524
72
gitshaozhong/VideoSearchEngine
8,856,222,608,881
c6575a4a7df31f3de669cb9ee5691538c119dc95
5d0fe6e6210bfd3dcc149da08dd6f347d8cfb0a1
/VideoSearchEngine/NoisyFrameFilter.py
cc9e84160c4b3940c9748676d7b0df23a4a92bef
[ "MIT" ]
permissive
https://github.com/gitshaozhong/VideoSearchEngine
1d36aef87a62ab04f0cddeff9eab0c1fb9eba4b9
48281688fc1abcad7e81121f38a87ab88c91dc90
refs/heads/master
2020-05-30T02:57:26.588291
2019-05-31T01:25:14
2019-05-31T01:25:14
189,505,669
0
0
null
true
2019-05-31T01:22:22
2019-05-31T01:22:21
2019-05-30T13:17:38
2018-09-26T23:26:06
182,992
0
0
0
null
false
false
# Main file for given a frame, filter the noisy frames # Main API is here, more files may be used for the implementation def get_frame_filter(): ''' return the version specified in the configuration to use e.g. if there is a basic one and a complex one, the configuration should be able to decide which...
UTF-8
Python
false
false
392
py
50
NoisyFrameFilter.py
41
0.701531
0.701531
0
15
25.2
84
blakecheng/stylegan_reimplementation
16,947,940,963,400
c187ca3955dd34dfad7d0a1395e0bf4b2c060bca
e42bd2a672c335cfd6192962be49677e80259703
/train.py
5f2436214e69bdc2cb24f1f842ca23405ebac8f2
[ "Apache-2.0" ]
permissive
https://github.com/blakecheng/stylegan_reimplementation
c57d2464946767c097c976037a6eddcab3da6583
f365a6fab9dd08c15480f76fee78da26ac942c9d
refs/heads/master
2022-11-11T19:57:41.394343
2020-06-24T02:08:57
2020-06-24T02:08:57
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import ast from collections import namedtuple #from tensorflow.python import debug as tf_debug from shutil import copy, copytree from tqdm import trange import csv import random import tensorflow as tf import numpy as np from data import get_dataset from models import Generator, Discriminator, MappingNetwor...
UTF-8
Python
false
false
38,380
py
14
train.py
13
0.564982
0.558494
0
722
52.157895
162
protimaru/roma
8,778,913,188,721
831de6484c64a9eab3388c3956f04625b7e293cb
d99f9f3d5ee79ec5283320d9ce6a79570f5eea8a
/posts/views.py
df421a00b9ce72487fc4dab8f7974bf0cdaf416a
[]
no_license
https://github.com/protimaru/roma
72c648ffd3bee81dd2584d8056397034d9775c23
6531ba1d6a697c5182ba1c00240dc7cccdbaad04
refs/heads/master
2017-11-20T01:15:07.504443
2017-06-19T18:20:40
2017-06-19T18:20:40
94,805,944
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db.models import Q from django.http import HttpResponse from django.shortcuts import render, render_to_response, get_object_or_404 from posts.models import Post, Comment, Category, SubCategory from posts.forms import CommentForm def home(request): posts = Post.objects.all() category_ = Category.ob...
UTF-8
Python
false
false
3,243
py
15
views.py
6
0.610854
0.606229
0
102
30.794118
94
leggitta/Analysis
8,083,128,498,088
e21553d6623270f85166a2a12bfc39b05bf7fb23
2c5cb98b22b6e4a0aa3e5c6df3f3c421a45a2d46
/merge_epochs.py
776094a9a29b348782d23599ce29f8397273810a
[]
no_license
https://github.com/leggitta/Analysis
8e26a691a621e220f8c7f952c4d9aa73e6b0e563
9f4b6b86dd47a4d5ed0b3c8d4b3242cb809855af
refs/heads/master
2016-09-03T06:39:39.072373
2015-11-30T23:14:23
2015-11-30T23:14:23
41,761,735
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import mne import os import numpy as np # suppress text output mne.set_log_level(False) # define the data directory data_dir = "../Data" # define the participants pids = range(1001, 1042) # additional parameters nt = 1638 # number of times nch = 69 # number of channels npa = len(pids) # number of participants #...
UTF-8
Python
false
false
1,287
py
81
merge_epochs.py
49
0.591298
0.559441
0
51
24.235294
75
cpaszul/advent-of-code-2018
19,473,381,724,776
05f0f3f972669617456544c4392c94667ebbc84e
75bddb587f00d67084f06d12810c1f2a797800c7
/day10.py
0fa32bc5fe4c542ae9a08b7153fe6e20c8df3508
[]
no_license
https://github.com/cpaszul/advent-of-code-2018
742cd95f870c93ac0d31d42ff3bcf163c5bb0193
0444d93cb9e40713e20fbe8dc4ea1ed06e221a23
refs/heads/master
2021-06-23T01:07:55.875462
2020-12-08T19:35:53
2020-12-08T19:35:53
160,435,926
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import re DEFAULT_INPUT = 'day10.txt' class Point: def __init__(self, x, y, vx, vy): self.x = x self.y = y self.time = 0 self.vx = vx self.vy = vy def advance(self, n=1): for _ in range(n): self.x += self.vx self.y += self.vy ...
UTF-8
Python
false
false
2,345
py
25
day10.py
25
0.479318
0.470362
0
86
26.267442
84
diemol/programming_foundations_with_python
3,427,383,907,649
76df96e44625011f951ecb61e6542965eb64a960
338fc107b70382bfd425c9b5663a70472fd0b061
/movies/entertainment_center.py
9b1032b37ff5f1756555c30072393e8e657aaf7e
[]
no_license
https://github.com/diemol/programming_foundations_with_python
6ca978b4a503a96b67196257f306687a067c2394
6663b76b1f2054acc1c823c6aed06901e90a07a9
refs/heads/master
2016-08-11T11:11:23.953304
2016-02-09T19:46:54
2016-02-09T19:46:54
51,385,486
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import media import fresh_tomatoes toy_story = media.Movie("Toy Story", "A story of a boy and his toys that come to life", "https://upload.wikimedia.org/wikipedia/en/1/13/Toy_Story.jpg", "https://www.youtube.com/watch?v=4KPTXpQehio") avatar = me...
UTF-8
Python
false
false
669
py
8
entertainment_center.py
6
0.587444
0.575486
0
16
40.625
95
nanome-ai/plugin-matryx
17,592,186,062,244
1c935cb7b3fec2e2245ace6011f3834fb87b6b4b
69875004057402c50f428f3ada7d9a00559633e7
/nanome_matryx/menus/select_winners/UpdateRoundMenu.py
2d1359d59d211d7e291b0c72878b3611f9cf0ae9
[ "MIT" ]
permissive
https://github.com/nanome-ai/plugin-matryx
20ad971da14860672dab4c0952d20c570fe58421
4030afd81348610e16c0787a74fca29aea601f33
refs/heads/master
2020-06-24T20:57:01.046999
2020-01-14T18:48:16
2020-01-14T18:48:16
199,087,399
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests from functools import partial from datetime import datetime, timedelta import calendar import math from components.Calendar import Calendar import nanome import utils from nanome.util import Logs class UpdateRoundMenu: def __init__(self, _plugin, select_winners_menu, on_close): self._plug...
UTF-8
Python
false
false
2,449
py
40
UpdateRoundMenu.py
23
0.658636
0.652511
0
66
36.121212
89
dyh1998/djangoweb
8,864,812,519,070
d2302a399de7ed3a493776258da8b49c7b4af04f
c3b96f6f23370c5d99667a7bf2e5b30679e990fc
/user/models.py
b8bd7a9428f7b898d0c640a9a0a16703fcfade0f
[]
no_license
https://github.com/dyh1998/djangoweb
5c25012da101571db906ef63d3dd50387658ac0f
5156651b197acc788daaf22d2e58329294c3acf8
refs/heads/main
2023-03-13T02:22:18.475184
2021-03-08T14:47:59
2021-03-08T14:47:59
341,481,731
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from django.contrib.auth.models import User # Create your models here. # class Profile(models.Model): # GENDER_CHOICES = (('M', 'Male'), ('F', 'Female')) # user = models.OneToOneField(User, on_delete=models.CASCADE, verbose_name='用户') # gender = models.CharField(max_le...
UTF-8
Python
false
false
547
py
33
models.py
21
0.676301
0.67052
0
11
45.181818
94
chea-young/Financial-Statistics-Practice-Using-Python
9,620,726,772,177
d7132925d9402e9f75ab3e1acb289e0c9e8ab49d
ed5d4fcb6566030a491911dcb89a85c823cf0f7f
/13주차/45.py
8347bab89ea585c92725eb74be960e336f7fd75d
[]
no_license
https://github.com/chea-young/Financial-Statistics-Practice-Using-Python
8d02fa66e33e4ccdf1761467d586f4b49237e4b8
eac6a51b8798750117c1bd2d497e8ccf6e9caf3b
refs/heads/master
2023-07-01T00:16:01.662422
2021-08-11T10:27:42
2021-08-11T10:27:42
356,812,926
0
0
null
false
2021-07-10T13:39:48
2021-04-11T08:36:54
2021-07-04T05:32:39
2021-07-10T13:39:47
6,814
0
0
0
Python
false
false
""" ----------------------- 파이썬 금융통계 실습 ---------------------------""" # 지난 시간에 간단히 계산했던 평균과 기대값을 조금 더 살펴봅시다. #%% 1. 평균과 기대값 # 평균: 어떤 데이터를 하나로 요약할 수 있는 대표값으로서 일반적으로 산술평균을 의미 # average=1/n*sum(x_i)=sum(1/n*x_i) # 여기서 x_i는 i번째 데이터, # n은 자료의 갯수, 즉 x_i들의 갯수 # # 기대값: 데이터의 값에 데이터가 발생할 확률을 곱해서 구한 평균 # E(x)=sum(p_i*x_i) # 여기서...
UTF-8
Python
false
false
5,684
py
90
45.py
78
0.666667
0.623686
0
89
35.325843
88
rlbyrne/rlb_MWA
5,884,105,236,531
5d6a0d328f472a4a35169b2f2ad4cf8a2590f4b1
dec55c8820480cc4bb227fab7130f90104113de9
/sky_imaging/load_healpix_map_basic.py
a8fea3ff4e7ea808a415d4003c29212b2b50795a
[]
no_license
https://github.com/rlbyrne/rlb_MWA
0b59d540dd93f01c98c3c031c5088503636c4b7f
aa80e1c461493bf4182f366551edf7affdef3e67
refs/heads/master
2022-08-22T12:24:18.054575
2022-08-08T21:18:45
2022-08-08T21:18:45
41,505,677
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python from astropy.io import fits import numpy as np import healpy as hp contents = fits.open('/Users/ruby/Astro/diffuse_map.healfits') nside = contents[0].header['nside'] ordering = contents[0].header['ordering'] signal_data = contents[0].data freq = contents[0].header['crval2'] # Frequency in MHz pixe...
UTF-8
Python
false
false
1,081
py
150
load_healpix_map_basic.py
50
0.711378
0.694727
0
35
29.885714
97
RCOSDP/RDM-osf.io
14,396,730,403,294
f84eced411b3567205b2715c9c978004b5f27ddb
a394b1053f018ff8be63221c61682df03af4937b
/osf_tests/users/test_last_login_date.py
7115b2dbd1dc6ac66bbb3599dac39af53366a852
[ "Apache-2.0", "LGPL-2.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "MIT", "AGPL-3.0-only", "LicenseRef-scancode-unknown-license-reference", "MPL-1.1", "CPAL-1.0", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
https://github.com/RCOSDP/RDM-osf.io
81b11d9511f6248ec9bccb6c586b54a58429e1e7
5d632eb6d4566d7d31cd8d6b40d1bc93c60ddf5e
refs/heads/develop
2023-09-01T09:10:17.297444
2023-08-28T04:59:04
2023-08-28T04:59:04
123,298,542
12
24
Apache-2.0
true
2023-09-12T08:58:28
2018-02-28T14:46:05
2022-06-01T04:27:04
2023-09-12T08:58:28
220,791
10
20
18
Python
false
false
import mock import pytz import pytest import itsdangerous from datetime import datetime, timedelta from django.utils import timezone from website import settings from osf_tests.factories import ( AuthUserFactory, SessionFactory ) from tests.base import OsfTestCase @pytest.mark.django_db @pytest.mark.enable_...
UTF-8
Python
false
false
2,815
py
1,129
test_last_login_date.py
916
0.661812
0.654707
0
77
35.558442
103
ekazyam/Study
4,466,766,023,440
1b01688fcd559c04dd69c0c1635e816f4d8e94c5
fe647f264d49f240fe9e1d03270025900ec474ef
/パーフェクトPython/pp_057_グローバル変数.py
326084e9bb1dbae4cbe74271b1ceb1aaa19bc3c2
[ "MIT" ]
permissive
https://github.com/ekazyam/Study
0c61d8e5d5cfc3e51a80d0dccf9a71bb6cb16fdc
bd4d6bae8624c7b6e166881c898afa0afd3b0c70
refs/heads/master
2021-01-15T16:14:34.889391
2016-03-31T08:19:11
2016-03-31T08:19:11
34,328,191
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# グローバル変数という概念はpythonにはない # 最大スコープはモジュール単位である。 # globalを指定すると、モジュール無いの変数に直接アクセスできるようになる。 def globaltest(): global hogehoge hogehoge = 'hogehoge' return True globaltest() print(hogehoge)
UTF-8
Python
false
false
337
py
103
pp_057_グローバル変数.py
82
0.761194
0.761194
0
12
15.75
41
xutian2/hello-world
17,892,833,775,806
e47bcc2f63f6090bbfe090aa6381edab3f97b64f
0dbdb4917628967c77219310e0002cbdc6d83291
/py1.py
83dc1d1118649c5f9a79d13f8a615318687f84d4
[]
no_license
https://github.com/xutian2/hello-world
940b304aac0fe150964a97baf54f03c058de27ff
5dc23bb767b640d50aacb3c46a46de4384c0b96c
refs/heads/master
2020-03-28T16:39:36.238018
2018-09-14T02:34:21
2018-09-14T02:34:21
148,716,484
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def fibs(): a=0 b=1 iwhile a<100: a,b=b,a+b return a f=fibs() print(fibs)
UTF-8
Python
false
false
103
py
1
py1.py
1
0.456311
0.407767
0
10
9.3
15
ebrahimsalehi1/frontend_projects
5,291,399,729,558
607dc78f3b695194e37a5a018c71d373d01e8415
026f69fb57cda18def5720f3f2ded3b13b2a131a
/Python/ShekarAbadSky.py
a80594108c00d566bcfa1876c72c5b73aef3ffe4
[]
no_license
https://github.com/ebrahimsalehi1/frontend_projects
54962b0a2447c23f09e40fc50f906f8ed6226886
20fb76a6f8411499332c5d8487fc1d45770e598c
refs/heads/master
2023-04-18T04:51:22.516129
2023-04-08T20:48:03
2023-04-08T20:48:03
245,576,365
3
0
null
false
2023-03-06T23:12:12
2020-03-07T05:49:25
2021-11-23T20:03:18
2023-03-06T23:12:11
38,151
2
0
24
JavaScript
false
false
line1 = input('').strip().split(' '); m=int(line1[0]) n=int(line1[0]) countAll = 0 for i in range(m): line=input(''); countAll = countAll+line.count('*') print(countAll)
UTF-8
Python
false
false
189
py
243
ShekarAbadSky.py
208
0.571429
0.539683
0
10
17.4
39
Prateek478/ds_algo_problem_solving_python-
14,766,097,607,056
e490a024fe238d855655ae084b10b1b4626b035f
353c64425f87980101aa733088218da6187b8c75
/37_group_anagrams.py
4a2239110190d6859e0fe892dc067854b83df4e2
[]
no_license
https://github.com/Prateek478/ds_algo_problem_solving_python-
1187a92e336fd092de74fd1052d8d1c544ed1445
55e638f284297a7b64ba7a9c6b1240afe894704a
refs/heads/master
2020-09-26T19:12:09.510421
2020-03-04T18:35:52
2020-03-04T18:35:52
226,322,080
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Group Anagrams from given list Anagrams are the words that are formed by similar elements but the orders in which these characters occur differ Example: The original list : ['lump', 'eat', 'me', 'tea', 'em', 'plum'] The grouped Anagrams : [['me', 'em'], ['lump', 'plum'], ['eat', 'tea']] """ def group_anagrams(lst)...
UTF-8
Python
false
false
1,034
py
28
37_group_anagrams.py
27
0.601547
0.599613
0
30
33.466667
112
olsonm16/python
8,117,488,229,619
be983d5e3a74e0959fc863e1e9ebc4c91cca6009
314f438766488135c67af70607bf3817a8206260
/CS112/Lab 5/lab5_1.py
6886d8fde2a40b50db42b70fe567ec87b1fab7e6
[]
no_license
https://github.com/olsonm16/python
b649dc871e5c863e47eecd9ba66fe648ff41e76e
bf83d6313ad2824cb7c4a52f57ba65f4c24cab25
refs/heads/master
2016-08-04T21:49:12.645932
2014-01-12T18:59:54
2014-01-12T18:59:54
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from array_set import ArraySet from edit_distance import * from hash_set import HashSet import string File = open("wordsEn.txt", "r") A = HashSet(9973) for line in File: line = line.strip('\n') A.add(hash(line)) File.close() def find_closest(word): File = open("wordsEn.txt", "r") #word = str(word) currentdis...
UTF-8
Python
false
false
844
py
47
lab5_1.py
44
0.664692
0.654028
0
38
21.157895
80
binh234/eBookstore
11,768,210,442,432
8765d1b3b4179b96e3d2748e68b8c91549690039
ad3426da477c57f78934ca57f4aa61a035bf7293
/customer/customer_app/filters.py
273edc03ef2faca618f2ec1cc18b46fafaa330aa
[]
no_license
https://github.com/binh234/eBookstore
fbac09a09e8b71766cd95c60175cbbcfe5ecc743
a1fc9daf1aaa347b54a3f227bef2727697627551
refs/heads/main
2023-04-03T19:06:37.961356
2023-03-31T08:50:18
2023-03-31T08:50:18
314,125,130
0
0
null
false
2023-03-25T06:48:08
2020-11-19T03:24:16
2023-02-28T03:43:57
2023-03-25T06:47:59
41,713
0
0
1
CSS
false
false
from django_filters import * from django_filters.widgets import * from django_filters.fields import * from django import forms from django.db import models from django.db.models import Q from .models import * class MultiValueCharFilter(filters.BaseCSVFilter, filters.CharFilter): def filter(self, qs, value): ...
UTF-8
Python
false
false
6,225
py
70
filters.py
20
0.57255
0.572223
0
203
29.1133
134
serj162218/schoolprogram
17,944,373,385,847
c0954be0d069ec8fe489b1608398aedc6b5e72af
b768363d4eff367959fd4489564641651227e7e2
/programming language/Married.py
0025c0e5a6cee0cf35365153c501b9bfc10de448
[]
no_license
https://github.com/serj162218/schoolprogram
6496e0693e9af5b799f7aefb653ef603577bea76
b8871b16a686ade3a2479037e5f771f40704b1e4
refs/heads/master
2022-03-18T23:02:21.423864
2019-11-25T05:18:54
2019-11-25T05:18:54
223,866,314
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os name = input("Enter name: ") age = int(input("Enter age: ")) salary = int(input("Enter Salary: ")) if ((18<=age<=26 and salary >= 10000) or (age > 85 and salary > 1000000)): print("Welcome {0}!".format(name)) else: print("Sorry {0}!".format(name)) os.system("pause")
UTF-8
Python
false
false
294
py
34
Married.py
10
0.602041
0.534014
0
9
30.666667
74
tritechpaxos/PaxosSolutions
5,592,047,459,056
703e7d59b02eef055511a9236d5d2647219ec94e
fea795de450992d8421f7adbd3c36253ca21571e
/PaxosProducts/CellConfig/src/cellcfg/cellconfig/ui/web/ras/views.py
ee6bbb3a57b91f290eaf1933ebd9a8283bd22eaa
[]
no_license
https://github.com/tritechpaxos/PaxosSolutions
c4de5c538f33e091c3007ef364b24fa4ef2a4f51
dc481e143e3695499bce6a3da8e147dd57added0
refs/heads/master
2023-07-09T23:59:17.271576
2019-11-21T03:02:20
2019-11-21T03:02:20
63,924,770
0
1
null
false
2023-07-04T03:38:43
2016-07-22T04:59:06
2019-11-21T03:02:24
2023-07-04T03:38:38
6,853
0
1
0
C
false
false
# -*- coding: utf-8 -*- ########################################################################### # Cellcfg Copyright (C) 2016 triTech Inc. All Rights Reserved. # # This file is part of Cellcfg. # # Cellcfg is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public ...
UTF-8
Python
false
false
9,722
py
503
views.py
182
0.633223
0.630852
0
296
31.763514
79
cihanyatbaz/Trajectories
11,862,699,704,647
19b424378fb264b6271bcbe8480f633592e2b586
074ca044b0fa4f269fa499250eab187ea5b06d82
/Util.py
e51703cff3ac56e01a4f9faec78c7d14cf172676
[]
no_license
https://github.com/cihanyatbaz/Trajectories
11b5925b16bb9dcc5c4e5688ec589722fecb8f31
e94c7d5640057aa428e0985937a18cceab474556
refs/heads/master
2023-01-14T08:30:48.518214
2020-11-22T16:06:29
2020-11-22T16:06:29
221,267,830
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math import pandas as pd def euclideanDistance(pos1, pos2): return math.sqrt(pow((pos1[0]-pos2[0]),2) + pow((pos1[1]-pos2[1]),2)) def dotProduct(a,b): result = 0 if len(a) == len(b): for i in range(len(a)): result += a[i] * b[i] return result else: return -1 ...
UTF-8
Python
false
false
865
py
11
Util.py
4
0.595376
0.576879
0
34
24.470588
87
vagaganova/homeworks
13,048,110,678,947
496fa426bdf3593015949c9f057d4e5b728965ec
ee7f2ae9f58c6724c4774ab541661277f5019907
/HW08092020/HW2.py
b86f242aa104d6642f410b1124699aa4da0867f0
[]
no_license
https://github.com/vagaganova/homeworks
db55d74a16dd9f7c80442e8a0b8ed613139e6eb5
f41a0737fc0189d7040f1f1c2914a35c2ab10afc
refs/heads/master
2023-01-20T06:35:06.984628
2020-11-28T19:18:02
2020-11-28T19:18:02
290,870,266
0
0
null
false
2020-09-20T18:44:35
2020-08-27T20:03:57
2020-09-20T18:44:24
2020-09-20T18:44:21
25
0
0
1
Python
false
false
with open('my_file.txt') as my_file: lines = my_file.readlines() print ('Количество строк: ', len(lines)) for i in range(len(lines)): if len(lines[i].replace(' ', '').replace('\n','')) > 0: print('В строке ', i, ':', len(lines[i].split(' '))) else: print('В строке ', ...
UTF-8
Python
false
false
361
py
41
HW2.py
39
0.493976
0.487952
0
8
40.5
64
zhangwei725/PythonBase
6,897,717,519,616
ad9c412c82ccafe7874cf5c9f288fd4435a6023c
147bc95b8b8a36014ec001bb1f79100095fa90a4
/day16/函数_装饰器_带参数.py
22bf57d40c5d8195c2bd1871b8f57978ab63352f
[]
no_license
https://github.com/zhangwei725/PythonBase
fd20293b7f7ebee9f11a5df8f4761cad7f1ff4c7
6c9165caed48418eb55cf7622359105c9124e580
refs/heads/master
2020-04-30T00:32:40.360722
2019-04-03T01:41:51
2019-04-03T01:41:51
176,505,618
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import time """ 1.装饰带参数 当修饰的函数有参数的时候,需要将参数定义在装饰器内部函数上 2> 如果修饰的函数有返回值 1 > 在调用核心函数的地方接受返回值 2 > 将返回的结果当做内部函数的返回值 """ # 带参数 无返回值 def outer(func): def inner(x, y): start = time.time() func(x, y) end = time.time() - start print(end) return inner # 带参数 带返回值 def out...
UTF-8
Python
false
false
1,038
py
136
函数_装饰器_带参数.py
125
0.525
0.511905
0
59
13.237288
33
pradionova/python67
9,354,438,810,164
636c207964992a39b0839b7f57c42c6c1f0ec5ac
8cb9325b3f13fcd8596fbf54638ee1a04e0dfef5
/chapter 1/test_1_12_7.py
eb9fcbb370f981c80816cc4f321f8a8cba3d5d64
[]
no_license
https://github.com/pradionova/python67
781ac8531bbcd00a67997ddd033dc0cd92b09251
67c8e536b7a3fd6da02ab1c6f4df6d6ced030e89
refs/heads/main
2023-04-25T22:37:07.700104
2021-05-29T13:31:36
2021-05-29T13:31:36
332,923,333
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math a = input() pi = 3.14 if a == 'прямоугольник': b = int(input()) c = int(input()) print(b * c) elif a == 'треугольник': a = int(input()) b = int(input()) c = int(input()) p = (a + b + c) / 2 s = p * (p - a) * (p - b) * (p - c) print(math.sqrt(s)) elif a == 'круг': r ...
UTF-8
Python
false
false
384
py
37
test_1_12_7.py
36
0.446629
0.435393
0
19
17.789474
39
PebbleDev/libpebble
16,140,487,119,338
d3ffa52efff7890e8915ac96ae073ffb4b8c1fdb
e5c93a0989572cb7a503acf6cd587cc69f4cc219
/pebble.py
40e9ed7a000538e58984b29b6981b679d126bf01
[]
no_license
https://github.com/PebbleDev/libpebble
a67e97de246b43459688dde0b3e362e334482ea5
42bac698328ff947d03a428892291e705e99a729
refs/heads/master
2021-01-21T00:56:28.883087
2013-02-07T02:32:27
2013-02-07T02:32:27
8,069,845
9
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import serial, codecs, sys, binascii, time, threading, stm32_crc, zipfile from pprint import pprint from struct import * class EndpointSync(): timeout = 10 def __init__(self, pebble, endpoint): pebble.register_endpoint(endpoint, self.callback) self.marker = threading.Event() de...
UTF-8
Python
false
false
10,431
py
1
pebble.py
1
0.641453
0.623143
0.001055
397
25.274559
90
tchico/budget
1,949,915,156,331
5c3c571c09a0c17c48089a68eb4746b3d3d91249
9840040a49c030dbd85223c0e76d8e4921f29b19
/Budget/website/model/budget.py
a8f5d605b59054cffdf57d7c9cdd3d44b059c952
[]
no_license
https://github.com/tchico/budget
71c1fb2531c7e4bb3f0eb8b9489a3c3b8046cf31
1f980632f5e360df51150068f2ca1b0df64a59f6
refs/heads/master
2015-07-21T17:14:33
2015-07-07T22:16:40
2015-07-07T22:16:40
34,820,742
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Created on 18 Jun 2015 @author: zk9vist ''' from django.db import models from website.model.category_budget import CategoryBudget class Budget(models.Model): ''' Budget class ''' year = models.PositiveSmallIntegerField() month = models.PositiveSmallIntegerField() budget_c...
UTF-8
Python
false
false
600
py
16
budget.py
12
0.676667
0.665
0
23
24.086957
70
Kwangsoo-kim/HW-Big
12,395,275,618,403
40551275d26ea0dd9773daea5836a5fb4f729ed2
2098d18347dbcc241859a95ceba8949abf7f02bf
/src/b_11_Django/ch04_haksa/students/urls.py
0f924775901d87251606ea133e4479fdaf1b138d
[]
no_license
https://github.com/Kwangsoo-kim/HW-Big
42775d813ecdc1d097ff84985a0b52a6790b44f2
9ea939894aa622950b949beee30191cf1cfd7040
refs/heads/main
2023-06-24T15:27:30.323867
2021-07-06T08:42:14
2021-07-06T08:42:14
317,099,102
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from . import views app_name='students' urlpatterns=[ path('listAll/',views.listAll,name='listAll') ]
UTF-8
Python
false
false
138
py
750
urls.py
423
0.717391
0.717391
0
10
12.9
49
pell13/2021-Fall_Python-Algorithm-
12,257,836,669,240
0929a3d78b5a1347621d6a676c2f3149abb43e6a
279c21d9945390d85a5da6887b2028c41bcb010c
/BOJ_solution/2504.괄호의값.py
5bbf709e7e11965615bc0396eec70feb4d2cb009
[]
no_license
https://github.com/pell13/2021-Fall_Python-Algorithm-
2051b9f13a9158682855eb71f440b4d75895e61e
309dfab37fe13749dbaeea06d12d23e6ff53d785
refs/heads/main
2023-08-21T17:54:36.940977
2023-02-25T12:40:46
2023-02-25T12:40:46
415,779,121
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 문제 유형 : 구현 #시작시간: 1:15 -> 2시간 넘게 품.. ㅠㅠ #() -> 2 #[] -> 3 #오답노트 : 처음에는 괄호에서 시작하는대로 하려고 별의별 뻘짓을 다하다가, 재귀로도 해보다가... 어떻게 재는지 몰라서 계속 하다가 결국 while문으로 노가다하는 방식을 선택했다. #하지만 더하는 상황, 곱하는 상황을 분간하기가 너무 어려웠다... #굉장히 잘 한 답을 보니까 곱하는 걸 나중에 하는게 아니라 시작하면서 곱한다는 점이 좋아 보였고, 그리고 내 안에 브라켓이 있는지 체크할때 stack이 아니라 원본 어레이를 활용했다. #여는 걸 넣을때 값을...
UTF-8
Python
false
false
2,673
py
62
2504.괄호의값.py
61
0.487868
0.46825
0
77
24.168831
104
yannickulrich/IRIS
11,055,245,848,607
f4877bd8c7912ea2691be1caab096c7fe8795b26
c1bc4c77d54d70f167a8063e917b286b2e27c655
/libs/tts/utils.py
085d4c5228cd8b75c097687f664040a7ce861c67
[]
no_license
https://github.com/yannickulrich/IRIS
09c0292506a1f4a112d29f7d9af8008a791762e2
fb13496308fff73640ae306b1bbd88a5bd71d59f
refs/heads/master
2018-01-12T08:56:28.559987
2016-03-02T16:57:05
2016-03-02T16:57:05
51,516,141
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def get_profile(profile, key="", default=""): tts_profile = {} if profile: if 'tts' in profile: tts_profile = profile['tts'] if key: if key in tts_profile: return tts_profile[key] elif default: return default else: raise KeyErr...
UTF-8
Python
false
false
397
py
36
utils.py
34
0.534005
0.534005
0
15
25.466667
63
atinghosh/Deep-learning-for-Glaucoma
9,466,107,924,434
739909b92677484647158a0d88d41c92d70571b6
2366e392f09fd50368acf69ff04cf32a3187d08a
/Huy/data.py
28492737d55a6706d79354a699ff09c6e3394dab
[]
no_license
https://github.com/atinghosh/Deep-learning-for-Glaucoma
b41de26604999424de6aaeaccaac33bb0d9b74e2
4993b5937cb87dcc9a660f30caa37b4346767a3d
refs/heads/master
2020-03-18T18:58:24.347534
2018-05-29T21:42:37
2018-05-29T21:42:37
135,125,903
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from os import path import glob import math import shutil import random import pandas as pd import numpy as np from scipy import signal from PIL import Image import torch import torch.utils.data as data import torchvision from torchvision import transforms as T import Huy.transforms as imgT #----------------...
UTF-8
Python
false
false
5,236
py
11
data.py
10
0.582315
0.571429
0
139
36.661871
134
belatrix/BelatrixEventsBackend
17,695,265,280,752
f06677e1feb8a7c0108674b7219a8d4200b5c4cb
25766f56887a1c6975258d8b45c87389092c07d2
/events/admin.py
abb9ac8e813e040db26613970e4f3ab1d314a8d7
[ "MIT" ]
permissive
https://github.com/belatrix/BelatrixEventsBackend
275f757d754d1c42d70a27598274d883cf76671b
eb38574bba0ca0269b17d0be938cc46787c21895
refs/heads/master
2020-05-20T17:58:30.484229
2018-06-04T13:57:07
2018-06-04T13:57:07
84,498,341
0
0
MIT
false
2018-06-04T13:57:08
2017-03-09T23:28:38
2018-05-03T20:32:06
2018-06-04T13:57:08
172
0
0
4
Python
false
null
from django.contrib import admin from .models import City, Event, Interaction, Location, EventParticipant from .models import Meeting, Attendance class CityAdmin(admin.ModelAdmin): list_display = ('name', ) class EventAdmin(admin.ModelAdmin): list_display = ('title', 'datetime', 'image', 'details', 'is_upco...
UTF-8
Python
false
false
1,244
py
67
admin.py
42
0.73955
0.73955
0
41
29.341463
117
seanmavley/Menpha
15,006,615,748,011
9b907ae5edf594a46ac5444682aa27332b5f13e9
c37a9705b51fb466fbe73c3ccfa10c274ed51063
/main/tests.py
74028a7f858ec62fea43f891c5c38e5820885900
[]
no_license
https://github.com/seanmavley/Menpha
812aa69f9aaa54f4c05d177df456ddae9bd1e832
f1164dda2349d0c2a273dc417c98c425b91c9b68
refs/heads/master
2016-04-03T03:36:30.962295
2015-02-15T08:17:52
2015-02-15T08:17:52
27,644,277
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.test import TestCase # from django.core.urlresolvers import resolve from .models import Item from django.contrib.auth.models import User class start(): def create_user(self): self.user_in = User.objects.create_user( 'khophi', 'email@email.com', '...
UTF-8
Python
false
false
1,923
py
47
tests.py
8
0.621425
0.606344
0
75
24.64
93
areski/Facio
8,358,006,368,416
27b461310273f4af7d80aaabc95a32c1d390cfc0
9e9c192fc5b72d61b2913f9b1e79bc2c8dd52757
/src/facio/config.py
cf83d8be0976f8e2be69190816965fee0fd28194
[ "BSD-2-Clause" ]
permissive
https://github.com/areski/Facio
98bc1cc00e7bcac93ee361c2a0209152a7dfc94c
73a5793c8fa7821173c400aa3192e3ba9c8cd4de
refs/heads/master
2021-01-18T08:56:00.493525
2013-05-19T10:21:03
2013-05-19T10:21:03
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" facio.config ------------ Sets up variables and configuration for Facio from command line and / or a configuration file. """ import ConfigParser import os import sys try: from clint.textui import puts, indent from clint.textui.colored import blue except ImportError: pass from random import choice fr...
UTF-8
Python
false
false
8,354
py
39
config.py
16
0.541776
0.537946
0
302
26.662252
79
olasson/SDCND-P3-BehavioralCloning
8,375,186,259,730
2d4f3ff87c840c00e8cd171d7153d61205250984
b0c576d458016fa6c3474be7f51d9f9ea66aa495
/code/io.py
12d45b305a86a1ff0f497984dce03ddb9b606880
[]
no_license
https://github.com/olasson/SDCND-P3-BehavioralCloning
0cf4962a9395fa5a433778e7e10c20f79930c780
2527bf63ac98171265c16cd9af04c53d6ae6e58b
refs/heads/master
2023-07-02T19:01:26.016259
2021-08-07T11:23:25
2021-08-07T11:23:25
386,737,758
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" This file contains save and load (I/O) functions. """ import json import pickle import numpy as np from glob import glob from pandas import read_csv from os.path import join as path_join import matplotlib.image as mpimg # Custom imports from code.misc import parse_file_path def load_image(file_path): # Wr...
UTF-8
Python
false
false
3,669
py
12
io.py
9
0.578632
0.56882
0
169
20.680473
104
dkowsikpai/s1python
4,312,147,173,707
0dcbe50143aa53fe2fd9d576c244a0ae585e5602
aaba51e1466fb888cc0a351332fa198c610da014
/Python/gro_dic.py
3c6e7e0d81b85168a55eea5f32e22568ffcd0587
[]
no_license
https://github.com/dkowsikpai/s1python
01cdfefabf4abb37fa205605717589bb008ab28f
2dc0912326426214184746af8978b92715056fe7
refs/heads/master
2020-03-29T08:39:04.662383
2019-04-02T13:33:57
2019-04-02T13:33:57
149,721,539
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
it_db={} while True: it="" it=input("Enter the items:") if it!="": it_db[it]=int(input("Enter the price:")) else: break it_bt={} print("-------Purchase--------") while True: it="" it=input("Enter the items:") if it!="": it_bt[it]=int(input("Enter the quantity:")) it_b...
UTF-8
Python
false
false
478
py
26
gro_dic.py
26
0.514644
0.512552
0
22
20.727273
51
kayarre/vmtktools
14,525,579,428,487
e2dff9b5665ff163ee580881ddfa35f2ca0f525e
7bc5fca6d7e8bc7e38e7afeae10a116e4422d96c
/automatic_clipping.py
26942d88928217fdb76165a1d4495a0fe1022c62
[]
no_license
https://github.com/kayarre/vmtktools
be7b802a96dd101434b502e3092f7133c3dbaf24
0a32f6614b2bc3c386a631cc9e2a7c9e99060b76
refs/heads/master
2021-01-14T11:19:50.412840
2016-06-01T14:08:49
2016-06-01T14:08:49
68,652,798
0
3
null
true
2016-09-19T22:43:21
2016-09-19T22:43:21
2016-03-30T21:43:30
2016-06-01T14:08:54
112
0
0
0
null
null
null
from argparse import ArgumentParser from common import * import numpy as np def read_command_line(): """Read arguments from commandline""" parser = ArgumentParser() parser.add_argument('--d', '--dir_path', type=str, default=".", help="Path to the folder with all the cases") par...
UTF-8
Python
false
false
3,484
py
26
automatic_clipping.py
26
0.616533
0.597876
0
111
30.387387
111
jjh42/oldalgo
6,227,702,610,427
4dc7857a96a9cc78a9810bab3383b6395ad78eda
b31638e4bf085263922f0fcc78fce2b659e2815f
/mergesort.py
8422d1513f467c6650edf67f77738a18d4952439
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
https://github.com/jjh42/oldalgo
ba9023db7ccaf6a339bc28b0cbc81ba6c8c050f0
8fb748bcdcde05ebb6ed8b6b5749e2d3713d14ef
refs/heads/master
2020-06-03T16:32:07.595692
2014-08-10T20:56:33
2014-08-10T20:56:33
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def split(a): """Split array a into two halves with the larger half on the right for odd lengths.""" middle = len(a)/2 left = a[0:middle] right = a[middle:] return left, right def merge(left, right): """Merge two sorted arrays into a concatenated sorted array.""" leftindex = 0 rightind...
UTF-8
Python
false
false
1,309
py
7
mergesort.py
6
0.586707
0.58136
0
44
28.727273
90
RaspberryWallet/Backend
15,676,630,674,621
dd82c696129074ac6554931d4ab2af9d36bbedd8
f04eabeb86f64e0711566a089fbe74b389c5be7a
/Scripts/webapp/copyWebApp.py
3aafe0293ad2cdc4cc10526a05d35551c168b399
[]
no_license
https://github.com/RaspberryWallet/Backend
753069b94e4e5bd130c12f18bf455b6ddc6677bd
aa65c50746ac95d3c24e93175cf64d78ffb827bf
refs/heads/master
2022-11-22T18:20:13.577031
2019-11-13T12:34:27
2019-11-13T12:34:27
138,017,958
4
2
null
false
2022-11-15T23:52:23
2018-06-20T10:35:44
2019-11-13T12:34:31
2022-11-15T23:52:20
8,202
4
2
17
Java
false
false
#!/usr/local/bin/python3 import os import shutil while not os.getcwd().lower().endswith("backend"): os.chdir("..") shutil.rmtree("ServerHttp/src/main/resources/assets/static/js") os.system("cp -rf ../../JSProjects/raspberry-wallet-frontend/build/ ServerHttp/src/main/resources/assets/") os.system("git add ServerH...
UTF-8
Python
false
false
352
py
157
copyWebApp.py
139
0.741477
0.738636
0
11
31
107
ti132520/pytest-vlog
11,493,332,506,780
73b2356c10f62f85b8fd936a906feb034fae5f9d
a3529c0d2d26169b22244d6ff1bfdfc8d350eaf4
/backen-20210718/backend/server.py
44168c350894c30a6dd68a6ad1643e95af9f6781
[ "CC0-1.0" ]
permissive
https://github.com/ti132520/pytest-vlog
8041321f9e8ab0d892d20ebc42a28f18f6be4996
c6688ed2b1c5e10b91057a22e672dffc1cd54d53
refs/heads/main
2023-08-03T19:15:32.645834
2021-09-11T02:11:29
2021-09-11T02:11:29
355,898,041
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import json from flask import Flask, request from flask_restful import Resource, Api from flask_sqlalchemy import SQLAlchemy from flask_cors import CORS app = Flask(__name__) api = Api(app) CORS(app, supports_credentials=True, origins="*") username = "root" pwd = "123456" ip = "134.175.28.202" port = "8888" database ...
UTF-8
Python
false
false
3,942
py
122
server.py
93
0.571471
0.560155
0
121
26.752066
111
smorenburg/python
3,874,060,523,770
5fd13e1533c54cd3f74a91116fd3448f99f73e4b
307b247f36383e8c54a7bc017358f9c84fd6a12b
/src/old/gen.py
d20fc5ffefb663570aab0abfbeafc5804a1b8542
[ "MIT" ]
permissive
https://github.com/smorenburg/python
4c6f5e7009156ec87ed535a119f97ff15347e850
74b1e72944dfd244f0169e8a7adb9e29ed1a7d27
refs/heads/main
2023-02-16T01:24:52.473945
2021-01-13T07:36:02
2021-01-13T07:36:02
313,896,985
0
0
MIT
false
2020-12-21T17:20:54
2020-11-18T10:19:33
2020-12-20T16:03:00
2020-12-21T17:20:53
55
0
0
0
Python
false
false
#!/usr/bin/env python3 def gen_range(stop, start=1, step=1): num = start while num <= stop: yield num num += step def gen_fib(): a, b = 0, 1 while True: a, b = b, a + b yield a
UTF-8
Python
false
false
228
py
85
gen.py
84
0.482456
0.460526
0
14
15.285714
37
92hackers/algorithms
16,552,803,961,039
cab14d3da92d25d6ac0995cbcfea2a8bef236675
fb8123ec81a0e12bb3f1e09c1afc070394d277c1
/linked_list.py
9f355a789e34011677f3c42baa37da33479a171a
[]
no_license
https://github.com/92hackers/algorithms
72ba1b68d56a882fda64a71e4b399b3bb3eea3a0
911b35d246b2cec84e99dc6deb82e2e2c3067fa3
refs/heads/master
2022-06-15T09:59:15.295332
2022-03-08T10:01:59
2022-03-08T10:01:59
216,991,634
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 链表 # 支持基本的增删改查操作 # TODO: how to sort a list class ListNode: def __init__(self, value): self.data = value self.next = None self.prev = None class LinkedList: def __init__(self, *args): self.head = None self.tail = None self.size = None self.build_list(...
UTF-8
Python
false
false
4,712
py
15
linked_list.py
15
0.494425
0.483705
0
201
22.20398
64
fireae/PyLf
7,911,329,772,408
0ec2d9a6dc5746422e14436d93e3afdcadd67cb5
bbc459427a89ed7d316ca4892298d0886d398e7e
/tests/util.py
249afb731bb49631bad97d3e56c8b56b6442802b
[ "BSD-3-Clause" ]
permissive
https://github.com/fireae/PyLf
a91030c0aa11acce86c0664f0c24dfb0697a810a
54d65284bef0328842b1534dd1899710e7803821
refs/heads/master
2020-03-21T07:29:28.978804
2018-06-16T15:17:31
2018-06-16T15:17:31
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ This module provides the essential functionality for the whole test suite. WARNING: Do not change the location of this file! """ import math import os from PIL import ImageFont as image_font THRESHOLD = 17.0 def compare_histogram(image1, image2) -> float: """ Compare the two ima...
UTF-8
Python
false
false
1,612
py
13
util.py
8
0.663924
0.642405
0
57
26.719298
130
dyunttang/PythonWorkSpace
18,098,992,221,541
c2f737c7fb0300fbee4d3af3d13579b1631bff48
0f74ad63b648043f68189f1f6cd0bdc9114972d5
/ex01/strex01.py
336c735a65211002c7ea93cde27890161ea2ebad
[]
no_license
https://github.com/dyunttang/PythonWorkSpace
e6253ace3c2245ff189b3818ea48008b71fdd509
6645bd1ed0c9115d440d2c9b8cdaa5aed6a00594
refs/heads/master
2023-08-08T04:08:31.926432
2021-09-14T02:07:42
2021-09-14T02:07:42
405,211,922
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
a = '홍길동' print(a) print("="*50) b = "가나다라마" # CharSequence print(len(b)) print(b[0]) print(b[4]) print(b[-1]) print(b[0:3]) print(b[1:]) print(b[:3]+"...")
UTF-8
Python
false
false
179
py
20
strex01.py
19
0.533742
0.478528
0
16
9.1875
27
DRAMCO/Interreg-NOMADe
19,061,064,898,733
6f282963746f28fe874b2f94b264238c5b184495
4425c77c34ae4155222619384adf7d062c1daf65
/PythonScripts/Plot_orientation_all_sensors/functions.py
afd8b06e801488568fba5bd1c21b10316dd849bf
[]
no_license
https://github.com/DRAMCO/Interreg-NOMADe
a21faf18f161eb510c31b1815ff7e621af8f4fcb
cf4cc04800ca8f0355cf6cbd914a8c7413348f5a
refs/heads/master
2023-04-19T03:20:38.310061
2021-04-16T06:44:38
2021-04-16T06:44:38
243,491,542
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# ____ ____ _ __ __ ____ ___ # | _ \| _ \ / \ | \/ |/ ___/ _ \ # | | | | |_) | / _ \ | |\/| | | | | | | # | |_| | _ < / ___ \| | | | |__| |_| | # |____/|_| \_\/_/ \_\_| |_|\____\___/ # research group # dramco.be/ # # KU Leuven - Technolo...
UTF-8
Python
false
false
5,659
py
102
functions.py
14
0.510251
0.478614
0
168
32.684524
99
v0001/python_dojang
5,188,320,499,233
c773c91f4f9bb37fd46a4b5b40cceeb1ba511368
b5244df01da4feacb4fb027387fea650e4752065
/Easy EX/ex1.py
abfbc9395518443584640a678960cf86be1d323c
[]
no_license
https://github.com/v0001/python_dojang
122f517939f432e5f2a0fab971b9dc776a941d4e
dba3d4bab85f95b68f68786fb8fcca616a055c2c
refs/heads/master
2022-12-13T15:06:52.942858
2020-08-31T13:09:32
2020-08-31T13:09:32
291,714,164
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print('Hello World') print(int(3.3)) # 숫자 print(divmod(5,2)) a, b = divmod(7,3) print(a,b)
UTF-8
Python
false
false
100
py
2
ex1.py
2
0.59375
0.53125
0
8
10.75
20
adhaka/summers
3,796,751,132,571
4a329b6a07b81f3927dab32da4e90700e7ec3051
c51bd00a697e04fb429ec80a1648ed3335b93ea1
/pythonwork/linearRegression.py
0f3ace89d2371a8752756584c67a89a3e2b474ed
[]
no_license
https://github.com/adhaka/summers
c8282c06e5fb10d8084a8151a83df0e5ee7f1355
ae59dc770091776abf8eea156b4cb0702158567a
refs/heads/master
2017-12-21T19:15:50.029085
2015-08-31T10:50:00
2015-08-31T10:50:00
38,587,234
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import random import theano import theano.tensor as T from theano import function class LinearRegression(): def __init__(self, x, y): if x.shape[0] != len(y): raise Exception("x and y are not of the same length") self.x = x self.y = y def train(self): iters = 500 train = self.c...
UTF-8
Python
false
false
1,571
py
10
linearRegression.py
10
0.624443
0.60853
0
74
20.202703
111
gfcastellano/Agenda_Leonel
13,709,535,636,300
47b4d98e54657894c074dfb3908fce674a369f48
811ef9d490209900a5e1e272d0a4d5da7ded3a7c
/kivymd/uix/snackbar.py
f2ed3453fa96fc8d8da6130696173fc1da240c69
[]
permissive
https://github.com/gfcastellano/Agenda_Leonel
c98823b092706e46ec25d2ecb999ce30969a003d
543dd46e1836410ec1ad7093ef4a07c2f84678a6
refs/heads/master
2022-12-05T18:14:22.562930
2020-07-28T19:17:55
2020-07-28T19:17:55
269,536,042
1
0
MIT
false
2020-08-26T18:54:48
2020-06-05T05:09:44
2020-08-08T14:56:36
2020-08-26T18:54:47
15,448
1
0
0
Python
false
false
""" Components/Snackbar =================== .. seealso:: `Material Design spec, Snackbars <https://material.io/components/snackbars>`_ .. rubric:: Snackbars provide brief messages about app processes at the bottom of the screen. .. image:: https://github.com/HeaTTheatR/KivyMD-data/raw/master/gallery/kivymdd...
UTF-8
Python
false
false
9,628
py
91
snackbar.py
73
0.5699
0.55941
0
370
25.021622
114