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
vanessamaike/mc102
2,800,318,701,523
9a14c3bc9de403a3a2a6ca4cf5d713b0a35aa10c
adda4511e32ded29f982340a1a45c422be277ea1
/code/aula15/a15-ex1.py
bc7718545c56f2e661d3c60b2007a57956cd27b3
[]
no_license
https://github.com/vanessamaike/mc102
a1b1bf5e883c763de1be7d9616016e1acbb5a9a2
4f4d49bb5f3c6261de575e847f6100751112eed0
refs/heads/master
2020-06-29T05:44:35.710792
2019-12-16T12:55:53
2019-12-16T12:55:53
200,454,546
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n = 4 mat = [] for i in range (n): lista = [] for j in range(n): lista.append(j+i) mat.append(lista) print(mat)
UTF-8
Python
false
false
134
py
162
a15-ex1.py
161
0.514925
0.507463
0
10
12.4
25
vishalchotara/patient_management_system
18,339,510,386,173
7779647e20b5daf5d52d8b4982926eb972beda6f
1e86acf1ad511803e7e2c4ab22b364d2bba2d3c9
/hospitals.py
6d00609d17fcf0301d0968494e387263c32fb877
[]
no_license
https://github.com/vishalchotara/patient_management_system
4bd584fe07d8d0ce0352452136ad7e67a4ca7b5a
d5fdae95bfb10d5d5424432a6eb496eb21e1465a
refs/heads/main
2023-05-31T05:59:07.631242
2021-06-26T17:16:39
2021-06-26T17:16:39
380,553,708
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Hospital: def __init__(self, name, total_beds, num_beds_occupied, curr_patients): self.__name = name self.__total_beds = total_beds self.__occupied_beds = num_beds_occupied self.__patients_list = curr_patients def get_name(self): """ get_name retur...
UTF-8
Python
false
false
1,906
py
6
hospitals.py
5
0.579224
0.578174
0
56
32.035714
113
flaviocardoso/uri204719
2,035,814,501,975
2dd37ce1f84232e6445e3c770ec7d83a05b8e843
0c79382188946515059a26b636ea4689edc24faa
/feitos/jogotempocomminutos.py
0c30e80d06335f4c073b7cd0cd85cb2ad1f5ad01
[]
no_license
https://github.com/flaviocardoso/uri204719
cbd2b9cb5fbb183d891128c05eb63ee8e4cb78c0
9ec7a9c9e7bb788f61a80dce203b9a0aea9d93f3
refs/heads/master
2021-09-11T19:51:14.831377
2018-04-11T17:31:05
2018-04-11T17:31:05
113,496,241
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/bin/python3 #uri 1047 #tempo de jogo com minutos ''' 7 8 9 10 - O JOGO DUROU 2 HORA(S) E 2 MINUTOS 7 7 7 7 - O JOGO DUROU 24 HORA(S) E 0 MINUTOS 7 10 8 9 - O JOGO DUROU 0 HORA(S) E 59 MINUTO(S) ''' HI, MI, HF, MF = map(int, input().split()) DH = HF - HI DM = MF - MI if(HF <= HI): DH = 24 + DH if(MF < MI): ...
UTF-8
Python
false
false
416
py
85
jogotempocomminutos.py
83
0.5625
0.480769
0
20
19.8
64
harshp8l/deep-learning-lang-detection
4,526,895,543,398
e27d3996552b8640be4fdaef3c49ef01f797a1f6
6f05f7d5a67b6bb87956a22b988067ec772ba966
/data/train/python/207aac546ce116bdfab1a5ebae1cb7d25ed8bf1cpostService.py
207aac546ce116bdfab1a5ebae1cb7d25ed8bf1c
[ "MIT" ]
permissive
https://github.com/harshp8l/deep-learning-lang-detection
93b6d24a38081597c610ecf9b1f3b92c7d669be5
2a54293181c1c2b1a2b840ddee4d4d80177efb33
refs/heads/master
2020-04-07T18:07:00.697994
2018-11-29T23:21:23
2018-11-29T23:21:23
158,597,498
0
0
MIT
true
2018-11-21T19:36:42
2018-11-21T19:36:41
2018-10-25T04:08:03
2018-08-24T13:01:04
42,815
0
0
0
null
false
null
from domain.repositories.postRepository import PostRepository __author__ = 'jean' class PostService: def __init__(self, post=None): self.repository = PostRepository(post) def create(self): return self.repository.create() def get_by_id(self, _id, entity): return self.repository....
UTF-8
Python
false
false
769
py
11,818
207aac546ce116bdfab1a5ebae1cb7d25ed8bf1cpostService.py
6,904
0.639792
0.639792
0
29
25.551724
101
thevasudevgupta/accelerate
8,787,503,111,495
4bc524d6f7a4daad12dbc305e72c19dc80ef5684
ed98c033fab3373398be21e8999c22d229ad4e0b
/src/accelerate/utils/transformer_engine.py
a6342d7150f1abf083bed7a19c2a5e299e29e3e3
[ "Apache-2.0" ]
permissive
https://github.com/thevasudevgupta/accelerate
41555c5a42f669ed2aee76aa5e6f86898087519f
4d13e4e474def51a67ca23cc7356926d45cd63bc
refs/heads/main
2023-08-17T03:41:54.697915
2023-08-11T07:15:15
2023-08-11T07:15:15
361,257,528
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright 2022 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...
UTF-8
Python
false
false
3,665
py
142
transformer_engine.py
88
0.65075
0.645566
0
84
42.630952
115
ThachNgocTran/CodingPractice
18,159,121,762,256
56644a26bb49c53e32002f656319706b8510d942
2c8980dba95faa493b83c3d3c1e1590d82ddea7b
/PythonPractice/MyDataScienceTest.py
aafa4a58b90da7298f67337819492157e99b18ac
[]
no_license
https://github.com/ThachNgocTran/CodingPractice
fbed03f6a7995a5d8bd7f590a87297e2d91eeb60
7cc7a31151e654ed2a6b7232242c5da4174eaa3e
refs/heads/master
2021-01-19T04:50:06.555675
2017-07-26T21:01:44
2017-07-26T21:01:44
60,353,942
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os.path import pandas as pd import numpy as np DATA_FILE_PATH = "Data/Indian Liver Patient Dataset (ILPD).csv" CLEAN_DATA_FILE_PATH = "Data/Cleaned_Indian Liver Patient Dataset (ILPD).csv" def test_data_preprocessing(): if DATA_FILE_PATH is None or len(DATA_FILE_PATH) == 0: raise Exception("Input ...
UTF-8
Python
false
false
2,060
py
14
MyDataScienceTest.py
11
0.656796
0.650485
0
51
39.392157
122
KrisSoto/Python-Stuff
15,693,810,515,840
829178dd68d4341b49ae4ea6fe4e35a00c9e5a4b
959355cec2a1483739610396a060377a46b0aa72
/basic data visualizations/lab4.py
83f2adfe3c037f07417e9af891e10d21608c1b5d
[]
no_license
https://github.com/KrisSoto/Python-Stuff
587a447f0b4b6455d672b0b20a7242839a56d8ea
80f9c759f8b173d96748f82245b625fbe406d2e8
refs/heads/master
2017-10-07T17:41:46.677759
2017-02-08T15:14:44
2017-02-08T15:14:44
81,342,074
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import pandas import matplotlib.pyplot as plt data = pandas.read_csv("bgg_db.csv", encoding="ISO-8859-1") # 1) Comparison - display a bar chart that displays how many games came out from the year 2000 to present day comparison_data = data[data["year"] >= 2000][["year", "names"]] comparison_data.hist() p...
UTF-8
Python
false
false
1,913
py
9
lab4.py
7
0.674516
0.648352
0
51
36.490196
116
ptsiampas/Exercises_Learning_Python3
9,113,920,608,070
1fa82210bd6114c6af22bfa1cf12b4aff1253ab0
57b39dee1fd5f18823d13240bdbc61be0414e1da
/14_List Algorithms/Example_14.7c.py
8af39bd237298a511e541672723f5a09119aae72
[]
no_license
https://github.com/ptsiampas/Exercises_Learning_Python3
d7c2e7b965419f21e28a70f8e03b8793ab3b8b9f
666744116ac37c70fa8b9a0d8e109b85504788c1
refs/heads/master
2021-01-10T04:40:46.840585
2015-12-06T14:39:22
2015-12-06T14:39:22
45,291,974
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from unit_tester import test from queens_functions import * # 7|_|_|_|_|_|X|_|_| # 6|X|_|_|_|_|_|_|_| # 5|_|_|_|_|X|_|_|_| # 4|_|X|_|_|_|_|_|_| # 3|_|_|_|_|_|_|_|X| # 2|_|_|X|_|_|_|_|_| # 1|_|_|_|_|_|_|X|_| # 0|_|_|_|X|_|_|_|_| # _|0|1|2|3|4|5|6|7| test(has_clashes([6, 4, 2, 0, 5, 7, 1, 3]), False) # Solution from ab...
UTF-8
Python
false
false
845
py
164
Example_14.7c.py
147
0.339645
0.249704
0
37
21.837838
75
xiangzz159/flask_graphql_example
13,460,427,519,809
c9bc2fe0bed6c5cb3de4e032d7b1f6e2fc15a1e6
20f2ed1942faa4881c77d75ad77cc6f945fbefbc
/app.py
76bd3ef89179a89109db5c3d77e29d9d1d305f3c
[]
no_license
https://github.com/xiangzz159/flask_graphql_example
477e8d9651fd3053b93b59862728bc9c366ae7ec
d7edf850b79f768b9bddec43c74347c9d32b32cf
refs/heads/master
2022-07-24T17:28:35.834901
2018-09-12T05:41:43
2018-09-12T05:41:43
130,650,794
1
0
null
false
2022-06-21T21:20:55
2018-04-23T06:36:18
2018-09-12T05:41:56
2022-06-21T21:20:55
39
1
1
4
Python
false
false
# !/usr/bin/env python # _*_ coding:utf-8 _*_ ''' @author: yerik @contact: xiangzz159@qq.com @time: 2018/4/18 11:06 @desc: python启动入口 ''' import numpy as np import json import flask import flask_graphql from flask_cors import CORS import api import config import mutations import jsonify from auths import Auth fr...
UTF-8
Python
false
false
3,211
py
11
app.py
8
0.617471
0.611479
0
136
22.316176
83
simhaonline/dots-backend
19,619,410,614,812
c8c491a0c9c564821f18340c7ec0ec7f4af69431
fae9915a6090f526da8820249295602825242e5e
/tables/views.py
2df35d0e5dad4555e96d2a2c38d074d7f4c1950b
[]
no_license
https://github.com/simhaonline/dots-backend
f7cf106f1eba02fbdd11ae5024197e64d68e4e82
65668688a018cdc96581ff21f182d78f93f41e06
refs/heads/master
2022-09-29T05:46:27.500890
2020-04-25T18:43:43
2020-04-25T18:43:43
269,731,286
0
1
null
true
2020-06-05T18:08:18
2020-06-05T18:08:17
2020-06-05T17:05:56
2020-06-05T17:06:35
10,103
0
0
0
null
false
false
from django.db import IntegrityError from django.conf import settings as app_settings from rest_framework import viewsets from rest_framework import permissions from rest_framework.response import Response from rest_framework import status from pymongo import MongoClient from .models import Table from .serializers i...
UTF-8
Python
false
false
1,943
py
28
views.py
20
0.62841
0.623778
0
61
30.852459
81
antwyh/rmcmd
16,131,897,190,932
50c3da6f8b3bd4f556e5d3de7302965ef4b3ae08
4270b9ed5c7b9512d384968e7c699f1cfe36620f
/libcode/LoggerUtils.py
eccfbe1c31ba58cfcfd08cce5949fe4100a0b27b
[ "Apache-2.0" ]
permissive
https://github.com/antwyh/rmcmd
8de8ad507cda5419e520633faefdc85149a25e91
990f266ddfcfb282fec799645cb2debe950c6fde
refs/heads/master
2022-09-09T04:41:42.656173
2020-06-05T10:18:35
2020-06-05T10:18:35
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/local/bin/python3.7 import logging class LoggerUtils: def __init__(self, name, path): self.logger = logging.getLogger(name) self.logger.setLevel(level = logging.INFO) handler = logging.FileHandler(path) handler.setLevel(logging.INFO) formatter = logging.Formatter('%(...
UTF-8
Python
false
false
1,163
py
13
LoggerUtils.py
8
0.596338
0.590235
0
29
38.586207
104
hippopotamusinflight/sudoku_python
6,622,839,594,485
382c298435aa38e15d3f68c95ebbfded09fa6bb6
0c58a8f215bda4bd6aaf5efa8a2734dfae0ddddc
/sudoku_solver_clean/block_rm_line_single/block_rm_line_single_v1.py
b6fc09f2402471f6f1c21c04011c6fd5f5f074af
[]
no_license
https://github.com/hippopotamusinflight/sudoku_python
9748d7ec1f17092de1c0bba1213c561f7ce31a0c
2d679994c41febfbaa149eae394d0bd5d14fdf42
refs/heads/master
2021-07-13T23:14:19.375103
2020-06-20T22:23:37
2020-06-20T22:23:37
173,583,698
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Mar 7 20:50:40 2019 @author: minghan """ #%% from collections import Counter from copy import deepcopy #%% def block_rm_line_single(dictionary,len_trkr): dic = deepcopy(dictionary) tracker = {} for col in [0,3,6]: for row in [0,3,6]...
UTF-8
Python
false
false
1,949
py
20
block_rm_line_single_v1.py
18
0.396101
0.373525
0
51
37.235294
92
kuhball/drehding
8,512,625,190,796
f993a13a913b9da50e81567692ea63375022a6ca
da46ea52f29433bf7eed8ad26500a7143f977f6e
/ui/tickbased_ui.py
e028ea6bd361b6ab1138ec40429d91b5bb8b09ca
[]
no_license
https://github.com/kuhball/drehding
44596c54ba54c6c7d3e5d66b42c06f63010b0acf
7b5ad72f2ea4d04c5c67450e6d0d8ce27806beba
refs/heads/main
2023-03-07T05:37:15.906716
2021-02-18T15:43:45
2021-02-18T15:43:45
319,995,885
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # Simple UI to steer the `tickbased_ui` sketch import time import serial import PySimpleGUI as sg # Config MAX_SKIP_TURNS = 10 HALL_PULSE_PER_TURN = 9 # see HALL_PULSE_PER_TURN setting in your sketch SERIAL_PORT = '/dev/ttyACM1' # see bottom right of Arduino IDE SERIAL_PORT_BAUD = 9600 # se...
UTF-8
Python
false
false
2,163
py
79
tickbased_ui.py
63
0.569117
0.553398
0
82
25.378049
90
WheatonCS/Lexos
9,981,503,999,164
e96f4c6d9dc5803ac5009940c5fe639a24311160
0fca12a004a92b37a3baa39e01eea3ec2cc89f0e
/lexos/receivers/statistics_receiver.py
f241a89b85aa988476bf4cd57d35f8ad3d6e4af0
[ "MIT" ]
permissive
https://github.com/WheatonCS/Lexos
976811e266539aea07abb7b958c45aed9b5d1b7b
0950b8e9c672142ba0cccd3066db188e965380f9
refs/heads/master
2023-04-28T01:00:50.316325
2022-02-14T17:08:33
2022-02-14T17:08:33
10,040,275
113
25
MIT
false
2023-04-15T12:24:28
2013-05-13T20:16:10
2023-03-08T16:02:19
2023-04-15T12:24:28
87,888
111
19
37
Python
false
false
"""This is the receiver for the stats model.""" from typing import List, NamedTuple from lexos.receivers.base_receiver import BaseReceiver from lexos.managers.utility import load_file_manager class StatsFrontEndOption(NamedTuple): """The typed tuple to hold stats front end option.""" # This is the list of a...
UTF-8
Python
false
false
1,893
py
637
statistics_receiver.py
104
0.603275
0.603275
0
58
31.637931
76
fishstamp82/moltools
14,353,780,751,725
b3822b39ea8bae8a9f143096a149f0da661530f8
a8d73a6b9dfa6b61a16aefd9011146011b402c56
/moltools/test/test_bonds.py
efa506b8c970d88d62769cb71b6c40b053e02021
[ "MIT" ]
permissive
https://github.com/fishstamp82/moltools
53a4996a8ac7c3ba8ad38986ecfae16b4b5fb8a1
5104878674c78a0337426de08b10028ac9736914
refs/heads/master
2020-12-22T07:01:15.008885
2018-02-25T21:52:40
2018-02-25T21:52:40
34,782,928
0
3
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest, os, warnings import numpy as np from moltools import Cluster, Atom, Molecule, Water, Generator warnings.simplefilter('error') from nose.plugins.attrib import attr FILE_MOL = os.path.join( os.path.dirname(__file__), 'tip3p44_10qm.mol' ) FILE_PDB = os.path.join( os.path.dirname(__file__), 'tip3p0.pdb'...
UTF-8
Python
false
false
5,705
py
78
test_bonds.py
47
0.516039
0.47695
0
162
34.216049
77
AverageTryHard/DjangoTaskEnjoyPro
8,203,387,551,097
2e3c1d286a80db5446b9aadf6f2c6e6ee41f7edb
7eadf82706d40fe4138fcb04ae552c6a22551d23
/rest_messaging/migrations/0002_auto_20210311_2343.py
b54abd976c2e3f4a31d92da61c0c61737dc25d9b
[]
no_license
https://github.com/AverageTryHard/DjangoTaskEnjoyPro
acee5bbb21f72e02301b01ba7e95c0317d895930
71f0b9370fb8dc21b4c43c49388573d136cb061b
refs/heads/master
2023-03-14T02:23:08.158347
2021-03-15T18:35:56
2021-03-15T18:35:56
347,116,228
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.1.7 on 2021-03-11 21:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rest_messaging', '0001_initial'), ] operations = [ migrations.AlterField( model_name='message', name='changed_at', ...
UTF-8
Python
false
false
1,055
py
12
0002_auto_20210311_2343.py
9
0.546919
0.526066
0
38
26.763158
75
RounakChatterjee/SEM2_FinalExam
9,517,647,578,866
ff24e218c4f2cf91958eda141c4637563a8fd267
d4af77ea1a945e39c2bb6d049fa9f2af23075f78
/Codes/Ques_6_solveIvp.py
39ed97acf6f54252fa031b5050cf2f75f41b6ddc
[]
no_license
https://github.com/RounakChatterjee/SEM2_FinalExam
2744f840f2aceaa8f2c0df92ae447bfcaa10e1c4
87af490ad730aeaeb4933b29988222da7c723bcc
refs/heads/master
2022-10-03T11:41:27.731593
2020-06-05T16:57:13
2020-06-05T16:57:13
269,700,874
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' SOLVING THE SET OF EQUATIONS ============================================================================== Author : Rounak Chatterjee Date : 05/05/2020 ============================================================================== Given this set of simultaneous Equation 1st Order, the best way to solve it is...
UTF-8
Python
false
false
2,015
py
9
Ques_6_solveIvp.py
6
0.565757
0.500744
0
63
29.952381
105
dnkzsmp/IrregularVerbs
17,506,286,737,557
f4bfe2c79f821383d5c65969e0f0686fa772d405
df0ca6f9d14b7ee093e1ccfc3ae33ebd2d28fcaa
/src/startwindow.py
05740b43fa2d697d0847e4069a210cab1378f3ca
[]
no_license
https://github.com/dnkzsmp/IrregularVerbs
085b322f4a5f71c35f2b1364c8cabc9e6e76f54e
61831af0fc0e811e2fe883538ddcde430059ebad
refs/heads/master
2021-02-12T04:29:40.283865
2020-05-21T15:03:24
2020-05-21T15:03:24
249,629,558
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import sys import os from tkinter import Label, Entry, Button from tkinter import Tk, PhotoImage class StartWindow(Tk): def __init__(self, lines): super().__init__() self.s = 0 self.verbs = lines self.hello1 = Label(self) self.hello2 = Label(self) ...
UTF-8
Python
false
false
3,519
py
10
startwindow.py
5
0.501493
0.4773
0
83
39.337349
80
ivyliu1205/comp3311
12,498,354,869,069
6753ad5991edaf263d4fa3045369fd325f9cef93
fd16fda59f2839defb4003b6f9e65ecd9687e81c
/Assignment/Assignment3/q3.py
42234dcc7b1b7e3f5bf801b2c1cc19c841415b47
[]
no_license
https://github.com/ivyliu1205/comp3311
25767bcf342366026723bbce4190d88ca6383e77
8ea8da20e06c91c36a327a10fbc315dc8353b342
refs/heads/master
2022-04-10T18:57:28.312914
2020-02-23T14:44:28
2020-02-23T14:44:28
242,533,561
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# COMP3311 19T3 Assignment 3 import cs3311 import sys #define CODE code = 'ENGG' if len(sys.argv) == 2: code = sys.argv[1] conn = cs3311.connect() cur = conn.cursor() cur.execute( "SELECT DISTINCT bname, array_agg(DISTINCT subjectcode) \ FROM helper_q3_buildings\ WHERE term = '19T2' ...
UTF-8
Python
false
false
577
py
22
q3.py
16
0.601386
0.563258
0
29
17.689655
61
testgitmuseum/Museum
7,816,840,503,850
c66f9200fb47f7f12238464b912a2061b21a2d33
42ba5a1f8f84bac7f248dd7d90f16fb518f986ff
/Utilities/WebConnectDownload/DownloadStockMarketData.py
61cb1799a48ba96667ccd81918c2e0a50f290a30
[]
no_license
https://github.com/testgitmuseum/Museum
0c0684a1d5316c299319061ff691f27c55230fa5
34a8d9fd86a70ba738c3df85a73fe5c99a370fc4
refs/heads/master
2021-04-15T06:14:13.333360
2018-03-22T17:42:41
2018-03-22T17:42:41
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from datetime import datetime from Utilities.TypeConverter import convert_date_to_int_yahoo_api_format import json import requests import pandas as pd import urllib2 __author__ = 'vfourrier' GLOBAL_PATH = r'https://finance.yahoo.com/quote/' path_results = r'/Volumes/SECURITY 1/Vincent/BSCM/ATM/Results/Data/' """ ...
UTF-8
Python
false
false
5,674
py
20
DownloadStockMarketData.py
18
0.610328
0.596757
0
142
38.964789
209
h2oai/h2o-3
9,612,136,855,453
c8585b6325ee2c36a662e1c11ccd65fa7f1c54e0
db12b990924703cd74748d8585cd9c11fafa6746
/h2o-py/tests/testdir_misc/pyunit_mojo_predict.py
740e651316d3ea5cda752950b9e0cbf44d821f97
[ "Apache-2.0" ]
permissive
https://github.com/h2oai/h2o-3
919019a8f297eec676011a9cfd2cc2d97891ce14
d817ab90c8c47f6787604a0b9639b66234158228
refs/heads/master
2023-08-17T18:50:17.732191
2023-08-17T16:44:42
2023-08-17T16:44:42
17,371,412
6,872
2,345
Apache-2.0
false
2023-09-14T18:05:40
2014-03-03T16:08:07
2023-09-13T16:15:03
2023-09-14T18:05:38
619,600
6,476
1,997
2,722
Jupyter Notebook
false
false
import sys import tempfile import shutil import time import os import pandas from pandas.testing import assert_frame_equal sys.path.insert(1, "../../") import h2o from tests import pyunit_utils from h2o.estimators.gbm import H2OGradientBoostingEstimator genmodel_name = "h2o-genmodel.jar" def download_mojo(model, ...
UTF-8
Python
false
false
12,620
py
6,198
pyunit_mojo_predict.py
5,451
0.647781
0.629477
0
269
45.914498
154
Satvik782/Youtube-Downloader
14,800,457,329,691
6697589b7ba91dec8dfbf498a9c52d0301a01a34
29fb58ca30c888cf600a21ff49a7489f412e76b7
/finalcode.py
1d684193d579feaa4022a09e1fcf42ab9437bdc7
[]
no_license
https://github.com/Satvik782/Youtube-Downloader
ad6f967b5bd342bad1fe510d5d928d4fd92e8239
ded83b75e175dcd6c2bac896f2bd441b7b01c773
refs/heads/main
2023-05-22T22:11:42.070216
2021-05-29T14:57:27
2021-05-29T14:57:27
372,000,447
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pytube import YouTube print("Enter Link") link = input() print("Enter file name") s=input() yt = YouTube(link) try: yt.streams.filter(progressive = True, file_extension = "mp4").first().download(output_path = "C:/YouTube Videos/", filename = s) except: print("Some Error!") print('Task Completed!')
UTF-8
Python
false
false
318
py
1
finalcode.py
1
0.679245
0.676101
0
16
18.9375
77
tsutterley/read-ICESat-2
2,611,340,119,363
fc4b95c6bf265b2754c2fc5c41952df8011ea54f
ea81b6f47aa652f5713109dd4d4eb4623b5dd92c
/icesat2_toolkit/spatial.py
d1ddb8f6df2509247858c943b5b4171b0b445afa
[ "MIT", "CC-BY-4.0" ]
permissive
https://github.com/tsutterley/read-ICESat-2
8c7132e1215d92ee5ff79ba2ccac486bc218c768
dd950b3569f6d4dab504c1d9905827e6a3c2876c
refs/heads/main
2023-08-22T13:19:59.404879
2023-08-03T23:22:57
2023-08-03T23:22:57
193,143,942
66
21
MIT
false
2023-09-14T15:59:15
2019-06-21T18:32:36
2023-06-08T06:52:36
2023-09-14T15:59:14
4,689
56
22
4
Python
false
false
#!/usr/bin/env python u""" spatial.py Written by Tyler Sutterley (05/2023) Utilities for reading and operating on spatial data PYTHON DEPENDENCIES: numpy: Scientific Computing Tools For Python https://numpy.org https://numpy.org/doc/stable/user/numpy-for-matlab-users.html netCDF4: Python inter...
UTF-8
Python
false
false
41,157
py
82
spatial.py
30
0.596278
0.561921
0
1,117
35.846016
89
PauloVilarinho/algoritmos
5,274,219,886,493
151f28b1a0780180d1a8e73ac838aac3f1224827
8a2f6867eca5d40d1770b58ab73e8a9f01a9ddc5
/ListasFabio/lista3/fabio03_q12.py
7ada99780db863e16eb40a93161bed071632fbf5
[]
no_license
https://github.com/PauloVilarinho/algoritmos
822eaae631de1660df553d87d2f168c2646efa60
a3cfed6081bbf5ae0b17766a027abcd558b9e9d0
refs/heads/master
2020-03-13T18:31:50.980839
2018-06-21T21:17:28
2018-06-21T21:17:28
131,236,984
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def main(): n = int(input("insira o numero n")) aux = 1 soma = 0 while aux <= n : soma += int(input("digite 1 numero")) aux += 1 print(soma) print(soma/n) if __name__ == '__main__': main()
UTF-8
Python
false
false
234
py
339
fabio03_q12.py
338
0.470085
0.452991
0
12
18.5
45
wearhacks/main_wearhacks
19,499,151,557,216
70be0a3f61056c4792ef0e00fa4f9c5431c0f5db
b4bbd4785529df30bd1b2bacf79be05f36b8bfdb
/events/forms.py
ec1932fb8905a9386d02f5d287faa87510535b8d
[]
no_license
https://github.com/wearhacks/main_wearhacks
9c45080e2c74183e2359833d69c79d8befda5504
01f3745c9d786d6f12429b60473355f8d7aa44ed
refs/heads/master
2021-01-10T01:37:52.114207
2018-10-09T20:50:34
2018-10-09T20:50:34
44,467,237
0
1
null
false
2016-03-31T01:21:21
2015-10-18T05:50:16
2016-01-29T04:09:33
2016-03-31T01:21:21
40,248
0
1
20
CSS
null
null
from django import forms class PartnerForm(forms.Form): organization_name = forms.CharField(widget=forms.TextInput(attrs={'required':True})) email = forms.EmailField(widget=forms.EmailInput(attrs={'required':True})) message = forms.CharField(widget=forms.Textarea(attrs={'required':True}))
UTF-8
Python
false
false
303
py
55
forms.py
26
0.752475
0.752475
0
6
49.5
88
pav3lo/joke-dataset
16,080,357,573,199
9e039c774b72049636763ca76c9dafd4164726bd
295e3f9daeed9955263dbe3661dba246ba9e8ba3
/etc/joke_mover.py
83acd98f434489da1b6634db76eb1d585918eb1f
[]
no_license
https://github.com/pav3lo/joke-dataset
1df94f45ed5a1ceb682dcab173b676cc5a1fe078
bf4a61e97cfd0628f0ce1661ca598dfa99ecdae2
refs/heads/master
2021-09-07T11:03:52.448534
2018-02-22T01:25:48
2018-02-22T01:25:48
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# INPUT: .csv with "Question", "Answer", and "meta" fields. # OUTPUT: .csv with only the rows with the specified "meta" tags. import pandas as pd import sys from time import strftime INFILE = 'pull2.csv' DELETE_AFTER_MOVING = False df = pd.read_csv(INFILE) cols = (["Question", "Answer", "meta"]) newdf = pd.DataFram...
UTF-8
Python
false
false
830
py
25
joke_mover.py
16
0.622892
0.608434
0
36
22.055556
65
cseelhoff/tensorflow
1,090,921,723,330
aefa5bc23b3309793ef43dc85d03a862997507f9
ba9a512d0403231f3b8e82befb2dea6a042b0c06
/ttt.py
9952f1909e0d6d0539e7c67875d33c51d3907e76
[]
no_license
https://github.com/cseelhoff/tensorflow
fd1b084273a5751f00d06f79b781ba38bb0232b6
21e3097cbb9cc3be47038efbdd5d1be70bf0e5b8
refs/heads/master
2018-01-01T12:27:33.568177
2017-05-11T13:04:31
2017-05-11T13:04:31
70,170,974
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import copy observation_size = 10 total_possible_actions = 9 agents_list = [0, 1] class GameState: def __init__(self): self.board = np.array([0,0,0,0,0,0,0,0,0]) self.turn = 0 self.terminal = False def get_agent_observation(state, agent_index): board = np.array([0,0,0,0,0,0,0,0,0]) if age...
UTF-8
Python
false
false
2,829
py
35
ttt.py
30
0.696006
0.668434
0
99
27.555556
60
Evan-Wang-ch/twitterAnalysis
15,470,472,241,495
b53c8da8573049c937a10d2ae13a238f7b0a9e9d
c5916d82b1ec0b9585d0d431cfaf9d5db422cea8
/NDCG_Graph_Auto.py
4f3817af405237d3eaebdbde122e8a371925d53e
[]
no_license
https://github.com/Evan-Wang-ch/twitterAnalysis
7a0440c16389bc1422ed8f0ebe08bd6c1ce25489
fb35769f624143ae58e1689590f79719262d2cb2
refs/heads/master
2018-05-13T12:27:18.597714
2017-05-28T11:16:40
2017-05-28T11:16:40
92,656,623
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Draw a picture about NDCG@k of different feature sets in auto-labeling import re,collections import matplotlib.pyplot as plt import numpy as np def get_lines(file): i = 0 with open(file) as f: losses = [] for line in f: i = i + 1 if i > 10: return losses...
UTF-8
Python
false
false
1,424
py
33
NDCG_Graph_Auto.py
23
0.638343
0.599017
0
44
31.363636
168
rg3915/spark
11,647,951,313,772
d35f3e0405a06336fff86917111347889cc1c268
cab88de907ce8bd8d5e8a1850a29e6753457bb40
/spark/selenium/gen_random_values.py
a9992a5f384083c9479f8dd504b879e50617f1da
[ "MIT" ]
permissive
https://github.com/rg3915/spark
1734bcd9d15353a24a0b04c7521fe3cca7fc54db
dc93564cebb0e5d025eeed819b7fe0fe2edca5a5
refs/heads/master
2021-01-02T08:43:47.172425
2017-08-02T00:48:46
2017-08-02T00:48:46
87,489,867
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import string from random import random, randrange, choice from datetime import date, datetime, timedelta def gen_string(max_length): return str(''.join(choice(string.ascii_letters) for i in range(max_length))) gen_string.required = ['max_length'] def gen_cpf(): def calcula_digito(digs): s = 0 ...
UTF-8
Python
false
false
2,011
py
38
gen_random_values.py
27
0.622886
0.583582
0
66
29.454545
80
Francis1998/leetcode
12,627,203,859,230
45b3cc5d157c097a6210282567ff3230f3cf3e19
e545395ef78b1e396076dddd726444be28576290
/7.py
b1ec49abfaf08cd96cfb50897ba8e7f20290932f
[]
no_license
https://github.com/Francis1998/leetcode
bb38fe91145b57e657ec812bebd95d3e30be3b96
9fbab5fe97026f7fa6e7124321480a7e20d5b72a
refs/heads/master
2023-04-22T02:45:57.223755
2021-05-08T12:47:23
2021-05-08T12:47:23
318,083,503
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def slidingPuzzle(self, board): s = ''.join(str(e) for row in board for e in row) if s == "123450": return 0 bq, eq, nq, visited, res = {(s, s.index('0'))},{('123450',5)},set(),set(),0 moves = [[1, 3], [0, 2, 4], [1, 5], [0, 4], [1, 3, 5], [2, 4]] ...
UTF-8
Python
false
false
942
py
71
7.py
57
0.363057
0.329087
0
27
33.925926
86
dnonatar/Racquet_Selector
4,045,859,241,640
fe17217a98e77c05d01c35ca4c1dbc960a928e5e
5a02166ac190e29258ba6ecf8e22c0f958e8d16e
/Cleaning/cleanup_1.py
138d8b4cf3d4e0f3bac3c0e969be03e0799a2db6
[]
no_license
https://github.com/dnonatar/Racquet_Selector
0cbd01660894b5c55190a369d884a3f824a27a18
d5dfa628b724571a18ab8f618863fae5eb2cb8d6
refs/heads/master
2020-03-22T07:32:25.086776
2018-07-04T10:48:55
2018-07-04T10:48:55
139,706,782
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import os os.chdir('/home/ratanond/Desktop/DataScience/Projects/Racquet_Selector/Cleaning/scraped_data') babolat = pd.read_csv('babolat.csv') wilson = pd.read_csv('wilson.csv') head = pd.read_csv('head.csv') yonex = pd.read_csv('yonex.csv') babolat.name = 'babolat' wilson.name = 'wilson' head.nam...
UTF-8
Python
false
false
1,133
py
21
cleanup_1.py
5
0.671668
0.66902
0
40
27.2
94
preetiduhan/DataStructuresInPython
8,658,654,096,595
776cd825ad6338cd046fd4b2559b8bb26e2af98d
e19f387a6f4458357b1685985306a3105f77d00d
/preserve_spaces_reverse_string.py
22d60553890c0061c60653814df54979e13230a5
[]
no_license
https://github.com/preetiduhan/DataStructuresInPython
4073a86f33d53ca987350de64bebd0d16f360cd0
989aa4cb322508fe3706d942a333cd5e1c861222
refs/heads/master
2020-05-27T15:06:05.899949
2020-05-20T02:56:02
2020-05-20T02:56:02
188,673,970
1
0
null
false
2020-03-22T05:50:40
2019-05-26T11:24:35
2020-03-22T05:50:13
2020-03-22T05:50:39
72
0
0
0
Python
false
false
''' Write a program to Reverse the given string while preserving the position of spaces. Examples: Input : "abc de" Output : edc ba Input : "intern at geeks" Output : skeegt an retni Input : "Help others" Output : sreh topleH ''' def preserve(sent): index_space_list = [] result =[] for i in range(len(s...
UTF-8
Python
false
false
644
py
43
preserve_spaces_reverse_string.py
42
0.569876
0.562112
0
29
21
84
MHKiT-Software/MHKiT-Python
8,375,186,266,648
3ff5cd3b31a2275e3a181a821011d57d93fdaaf1
f60537ca1e0ed0d5b8a6e33298603190a2f71ce3
/mhkit/wave/io/swan.py
c71a1a5142008c5d86bb134403d57a801963ab8d
[ "BSD-3-Clause", "Python-2.0" ]
permissive
https://github.com/MHKiT-Software/MHKiT-Python
70a02c53a1bf10e1d6e5f80717f084220acc716e
3e66f8f9513fc9c20deda300e748cb1269cd2b29
refs/heads/master
2023-08-31T07:43:25.456003
2023-08-29T19:13:16
2023-08-29T19:13:16
228,677,190
37
43
BSD-3-Clause
false
2023-08-31T13:11:45
2019-12-17T18:24:24
2023-07-11T04:29:20
2023-08-31T13:11:43
450,655
38
41
25
Python
false
false
from scipy.io import loadmat from os.path import isfile import pandas as pd import numpy as np import re def read_table(swan_file): ''' Reads in SWAN table format output Parameters ---------- swan_file: str filename to import Returns ------- swan_data: DataFram...
UTF-8
Python
false
false
9,951
py
151
swan.py
72
0.558939
0.556125
0
294
32.843537
88
dsunder/wg21
15,272,903,746,507
11bab2e9a68543181c71053a349d780bf4ffd0d3
5ae49ee1781f7f0e0909a8291ea53d88e8f457c9
/data/refs.py
7def883ef77d731321f0fc2911c9a737f8a650f2
[]
no_license
https://github.com/dsunder/wg21
fa4d894c28eb220a371f9d65a7a3d3e3e2d54484
634b0154e3a5721be5534b602b991e200eaba8b3
refs/heads/master
2021-12-14T03:29:17.538690
2021-10-19T20:13:06
2021-10-19T20:13:06
220,190,186
0
0
null
true
2019-11-07T08:44:14
2019-11-07T08:44:13
2019-11-07T08:44:07
2019-10-25T18:33:54
11,384
0
0
0
null
false
false
#!/usr/bin/env python3 import sys from datetime import datetime import requests from bs4 import BeautifulSoup import json import yaml url = 'https://wg21.link/index' dates = {} for elem in BeautifulSoup(requests.get(url + '.html').text, 'lxml').find_all('li'): date = elem.find(class_='date') if date is not None...
UTF-8
Python
false
false
709
py
5
refs.py
3
0.672779
0.665726
0
25
27.36
83
Guoami/spider
5,781,026,001,625
7e92b8f64558178cf43ed6775cfca43624364391
e8c4b34455efb444e16b28f953a72ec941594308
/com/yifeng/spider/picture/wallpaper.py
e1bd71ee1152b2eea070af53dd968c5f23d203ed
[]
no_license
https://github.com/Guoami/spider
8d7d344e34195f009be97b3008f91c81989dd0c4
612b33154eb1e64067ce00b1a2bebf815856a57d
refs/heads/master
2022-01-13T06:25:13.331286
2019-05-13T01:17:34
2019-05-13T01:17:34
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from urllib import request import math import re ''' 爬取小鸟壁纸高清美女大图 ''' base_url = 'http://wallpaper.apc.360.cn/index.php?c=WallPaper&a=getAppsByCategory&cid=6&count=10&start=' header = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537...
UTF-8
Python
false
false
1,819
py
2
wallpaper.py
1
0.565058
0.532071
0
50
31.76
135
skchandra/SoftDesSp15
16,664,473,144,906
c5b873d94b570323eae39f3048d89cf161242a37
4f2aebb4fc5aa0780c9d2f7fb2adcfc9aa3ffe03
/finalProjectWorkDir/math.py
fab5eaa26be7d5f32044922fff7eef000170e007
[]
no_license
https://github.com/skchandra/SoftDesSp15
6922fddb1e5c5e7bd4432b4024c7c4db64279d54
09a2ccfebc982686d7b88b9b0beed8c404aa5516
refs/heads/master
2021-01-17T22:17:47.190433
2015-05-05T00:22:02
2015-05-05T00:22:02
30,161,313
0
0
null
true
2015-02-01T21:57:44
2015-02-01T21:57:44
2015-02-01T18:20:06
2015-02-01T18:20:06
3,839
0
0
0
null
null
null
from scipy.optimize import fsolve import math """def equations(p,*args): x, y = p return (x+y**2-4, math.exp(x) + x*y - 3) slope = 7 dist = 3 x, y = fsolve(equations,(1,1),args = (slope,dist)) print equations((x,y))""" import warnings warnings.filterwarnings('ignore', 'The iteration is not making good pro...
UTF-8
Python
false
false
2,231
py
14
math.py
11
0.649933
0.585388
0
65
33.338462
81
JavierAntoran/pytorch_fun
5,042,291,647,024
f19f5b6fc929489711ef8f8b9c3944ee44f17c62
6c9bc0ad6cb8b4f199eb0d58bf8930c34d87c02a
/closs/2_btk_dim2_closs0/src/read_cifar.py
89aca512759c18b9965ad8c0eeb91880adb6362c
[]
no_license
https://github.com/JavierAntoran/pytorch_fun
8f4550bb796acc4730c866a0e3765f1bee48bcb5
bbe6588eb99b6f359ac57cdb4ec065f0ea79d7ec
refs/heads/master
2021-09-15T04:31:51.412372
2018-05-25T22:03:54
2018-05-25T22:03:54
119,742,644
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import print_function from utils import * def read_train_cifar10(): xtr = [] ytr = [] for j in range(5): d = load_obj('../data/cifar-10-batches-py/data_batch_%d' % (j+1) ) xtr.append(d['data']) ytr.append(d['labels']) xtr = np.concatenate(xtr) ytr = np.conc...
UTF-8
Python
false
false
1,351
py
55
read_cifar.py
41
0.542561
0.509252
0
48
27.104167
120
pius-ng3a/MambuSiteV1
14,937,896,289,605
75ce1f1baf7cb9c7a677bc3e7f80a08ff161d3af
98d41ace3bc5e82323c4cd21b6e7d16ea9d16f69
/Mambu/quarters/models.py
dbaa01d303875ea62bd6a8ec5112fd9d377c909c
[]
no_license
https://github.com/pius-ng3a/MambuSiteV1
1152b15f99ae10918bb3404311e98cbf478e0661
0af11fb5e9da003098c1f9d9306d9529d7f0f1e1
refs/heads/master
2022-12-04T02:07:37.703323
2020-08-30T16:52:39
2020-08-30T16:52:39
289,721,269
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from time import time from django.urls import reverse from django.contrib.auth.models import User from django.forms import ModelForm #from members.models import Member # Create your models here. class Quarter(models.Model): """Quarter""" name=models.CharField(max_length=30) #leader_id= ...
UTF-8
Python
false
false
1,179
py
31
models.py
23
0.729432
0.714165
0
36
31.666667
102
KevinLoveGitHub/python-utils
10,419,590,706,864
c222154bf9586bce53524aa2d71d845eb223cf6f
2ef26a93f452b0f1bd2bb16e2ce61f0c1d6255a9
/del_node_modules.py
33b235407d17c308fb394eecbb7d18d604b04515
[]
no_license
https://github.com/KevinLoveGitHub/python-utils
1e8af8b8f308470804b2c866a6afdb64542303e0
c185a8f9a6bdc42d2d29d24cca72a478cd776b4d
refs/heads/master
2022-11-05T09:53:23.553312
2022-10-27T10:12:43
2022-10-27T10:12:43
148,456,517
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os import shutil root_dir = '/Users/Kevin/Workspaces/node' def get_file_name(path): """ 删除所有项目下的 build 文件夹 """ for root, dirs, files in os.walk(path, topdown=False): if root.endswith('/node_modules'): print(root) shutil.rmtree(...
UTF-8
Python
false
false
405
py
17
del_node_modules.py
12
0.587467
0.584856
0
19
19.157895
58
SRechenberger/sat_entropy
5,935,644,813,081
e30a042e0f5e0a207ff14ed5e5a8a94fca787e74
e209877d6f980e50147ec34544fd98d7c1d1db5a
/sat/experiment.py
737515f6fc890118e8b52362e6a90b2f14ebc3b7
[ "MIT" ]
permissive
https://github.com/SRechenberger/sat_entropy
fcfcd6546850b095af9f8dc777104fc17a25a64d
9e0c083aa30b183d1ff7c7e14db9252c915a3836
refs/heads/master
2021-01-24T12:15:11.554849
2018-10-03T13:40:30
2018-10-03T13:40:30
123,127,100
0
0
MIT
false
2018-04-20T15:02:43
2018-02-27T12:38:10
2018-03-13T22:09:32
2018-04-20T15:02:42
6,936
0
0
0
Python
false
null
import os import sys import time import random import json from io import IOBase from sat.utils import CNF from multiprocessing import Pool class Experiment: # TODO needs overhaul!!! def __init__(self, directories = [], poolsize = 1, solver = None, ...
UTF-8
Python
false
false
7,223
py
13
experiment.py
12
0.457289
0.454243
0
253
27.521739
86
zabuldon/pytables
5,935,644,808,127
ed56a39c8f3061f408bc3abc4719550fa347ab99
86df653eedd97cd69010c4650188134066f7be01
/pytables/__main__.py
55b8598bd9f9703edbb2bd4fabbc57c712efe04e
[]
no_license
https://github.com/zabuldon/pytables
b8d979c44f7839096f20ef4ea8687444f48b330f
7288639a3af8c43b86a1d2c64a2d452e95836de7
refs/heads/master
2020-04-22T15:52:43.232962
2019-02-15T09:18:26
2019-02-15T09:21:00
170,490,454
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Start PyTables.""" import sys from pytables.const import REQUIRED_PYTHON_VER def validate_python() -> None: """Validate that the right Python version is running.""" if sys.version_info[:3] < REQUIRED_PYTHON_VER: print("Home Assistant requires at least Python {}.{}.{}".format(*REQUIRED_PYTHON_VER))...
UTF-8
Python
false
false
341
py
12
__main__.py
6
0.671554
0.665689
0
11
30
94
hong8240/OPS435
19,679,540,178,385
9d07156affb35e5eb4cd7b7ade627297b2717c5a
ee9928bcde26f2009b7129280c06fb4a0b8bd7f2
/lab2/lab2f.py
eb32d0613c0894c017e02c8f36b6bba0d9acb9d1
[]
no_license
https://github.com/hong8240/OPS435
48061b6e83ef177135dbbb1fca7a7bf97e89b481
0f12801a89e05a3476ae52b8335cac6f93350050
refs/heads/master
2022-09-15T20:21:20.922883
2020-06-05T02:28:58
2020-06-05T02:28:58
269,511,056
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import sys count = int(sys.argv[1]) while count !=0: print(count) count = count - 1 print('blast off!')
UTF-8
Python
false
false
135
py
43
lab2f.py
42
0.637037
0.607407
0
7
18.285714
24
razorblack/python_programming
17,119,739,648,307
b0a322957d408d2b0013ac86302d53f69e7c1a01
c33e3729160318c382b7a8e40692b915b47a20ca
/PythonLab/Program3.py
bdbfe75762a4cdba8dcdb95887ee02e4849b8da2
[]
no_license
https://github.com/razorblack/python_programming
230c857404dd0f14da69dfe7ea81d98f3458065f
32703c8c5ae0c7811b2d0d494ad2c019dcd0d299
refs/heads/master
2023-08-03T08:03:01.908187
2021-08-31T16:14:28
2021-08-31T16:14:28
321,036,634
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Method to find most frequent word def most_frequent(fname): count = 0 # count of a specific word maxcount = 0 # maximum among the count of each words l = [] # list to store the words with maximum count with open(fname, 'r') as f: contents = f.read() words = contents.split() ...
UTF-8
Python
false
false
821
py
46
Program3.py
42
0.54933
0.544458
0
28
28.321429
57
maiorem/Practice-to-JAVA
15,247,133,943,661
4496deb8cf1de7648e2c270fe81b5bc5b56c5e7a
bfa0643f7d116eab256c83e0cac61af0f4716488
/python/test.py
32d1a0d3acb71d5173183a0a44ba4c3ec0669918
[]
no_license
https://github.com/maiorem/Practice-to-JAVA
ab6edba8d3a72b9a678c512b4b2e228b1adaacbe
743c643fd90d125fe75dc3df098fcb7277c659fb
refs/heads/master
2023-03-05T11:22:15.192226
2023-02-26T11:28:05
2023-02-26T11:28:05
253,974,237
1
0
null
false
2023-03-09T16:15:46
2020-04-08T03:19:55
2023-03-07T08:42:38
2023-03-09T16:15:44
13,814
1
0
17
Java
false
false
student_number=12 # 학생의 번호를 출력합니다. print('학생 번호 :',student_number) st_number_str=str(student_number) # 문자열로 변경해주는 형변환 함수 str print(type(student_number)) # 변수의 타입 확인 print(type(st_number_str)) # 변수의 타입 확인 number_list1=range(10) # 0~9까지의 숫자 리스트 반환 number_list2=range(5,10) # 5~9까지의 숫자 리스트 반환 number_list3=range(...
UTF-8
Python
false
false
693
py
430
test.py
353
0.684601
0.634508
0
23
22.391304
57
CPYcpyCPY/amorino
2,027,224,581,501
8ce80896149c52542045ae7ccb74faa653089f64
7bb3ab7a19f7ff28133e947dbeeea9f5937fd4ea
/myApp/manager/member_manager.py
bb83586a85769a660308b5d241894f6ff8e44407
[]
no_license
https://github.com/CPYcpyCPY/amorino
6f2086a110ae7433afa94d8ec85019a111fe6c0b
64e0fc893bd079163fe589ada5b1630c25bb470f
refs/heads/master
2020-07-08T20:50:02.172784
2017-03-03T00:34:02
2017-03-03T00:34:02
67,266,491
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 import json # import sqlite3 from collect_manager import collectManager from json_manager import jsonManager # 会员管理 class MemberManager(object): def __init__(self): self.users_path = 'static/data/users.json' self.users = [] self.get_user() self.infos = { ...
UTF-8
Python
false
false
2,672
py
71
member_manager.py
33
0.551272
0.548574
0
89
28.146067
77
Cesar4280/cine
4,990,752,000,019
40f9862630c1f8e897e874d31926e64bfe181f66
b8a47a3fd7afc51efb230c2578611e37b724287f
/src/config.py
4bf460fbd3f67ba327c93fefcde22b093b47c164
[]
no_license
https://github.com/Cesar4280/cine
7a011e76caacb1183b80c9161d874a2d06107c65
4f06770efaf3850f2011354ff0bd0dee248301c6
refs/heads/main
2023-08-28T13:05:36.803433
2021-11-02T11:56:20
2021-11-02T11:56:20
416,561,187
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Config: #Creamos una llave secreta para las cookies SECRET_KEY = 'CINEFILOS SECRET'
UTF-8
Python
false
false
97
py
26
config.py
15
0.731959
0.731959
0
3
31.666667
47
neophack/bf3-bots
11,089,605,559,152
8ba2d47f7101a5de14dea57430d3e3c17c36316d
6141530d1a92ba34da031ac2381dd708effea772
/tests/test_vectorization.py
15225322ec69c81c3b73c2d9d08d60e713367d91
[ "MIT" ]
permissive
https://github.com/neophack/bf3-bots
4e576a4867a6b8068827d973583d736cd938d008
8a802a8c0eeb055e1edc16e18c9944cfc0126bfd
refs/heads/main
2023-03-15T18:35:16.798919
2021-03-06T22:41:27
2021-03-06T22:41:27
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from numba import njit import numpy as np import time @njit(parallel=True) def vectorized_add(a, b): return a + b @njit(parallel=True) def vectorized_subtract(a, b): return a + b @njit(parallel=True) def vectorized_mul(a, b): return a * b @njit(parallel=True) def vectorized_div(a, b): return a / b ...
UTF-8
Python
false
false
1,132
py
94
test_vectorization.py
49
0.627208
0.609541
0
52
20.788462
55
scrambldchannel/berlin-trees-api-pywrapper
3,143,916,071,320
36a55bd7a8d7aed4d782a9ce199c040afb67b477
96248533e1f59cfb6fd553d67f8badf63fa80b99
/berlintreesapiwrapper/__init__.py
d5c4a0ab48e7c249f4e3f13bbdfb64dff4ec97e9
[ "MIT" ]
permissive
https://github.com/scrambldchannel/berlin-trees-api-pywrapper
88d6ab84b5f8b11f1a59b7ac7ba0f32492a12acf
c6eec35f8f68aba70983b175adfbfcc235a6f114
refs/heads/master
2020-07-31T12:45:58.845672
2019-11-16T19:53:20
2019-11-16T19:53:20
210,607,828
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .api import TreesWrapper
UTF-8
Python
false
false
30
py
5
__init__.py
4
0.833333
0.833333
0
1
29
29
Seanny123/POVME
10,453,950,445,823
6a9c70792e02463c72b14c9b2ac6490256ba85ae
c990d51a499641eea86cb59b6846abe67bc3db3e
/POVME/packages/in_progress/pocket_alignment_and_clustering/hardTestCase/makeTestCase.py
3e60116cd01db499b3e03ec2c52489595ec90540
[ "MIT" ]
permissive
https://github.com/Seanny123/POVME
04484a271a4dbf7b2498a815f996489680a0492a
253dc95fe5001ee489b511488b4564bd6257f80c
refs/heads/master
2020-11-24T01:35:40.301944
2019-12-13T19:33:01
2019-12-13T19:33:01
227,907,245
1
0
MIT
true
2019-12-13T19:20:20
2019-12-13T19:20:19
2019-08-19T21:59:47
2019-07-18T14:33:38
25,165
0
0
0
null
false
false
import POVME.packages.binana.peel as peel import numpy as np import pylab import sys import random randomFactor = 0.75 plot = False createPdbs = True createNpys = True mainPocket = [peel.point([0,0,0]),7] sidePocket1 = [peel.point([0,0,6]),3] sidePocket2 = [peel.point([0,6,0]),3] sidePocket3 = [peel.point([6,0,0]),3]...
UTF-8
Python
false
false
3,183
py
67
makeTestCase.py
51
0.674835
0.628966
0
86
35.837209
83
takenmore/Leetcode_record
5,772,436,050,518
ce1e74eb519e43ccfd6a4a4ce693582421e306f1
bd0fb69648ff4516e8e1ac3840509d22c5e4e6fa
/offer_jz/39.MajorElement.py
7f2923283e60e8d5e719c628e3d4aa2a3daaebe9
[]
no_license
https://github.com/takenmore/Leetcode_record
d523b997f7e1b80e1841f007e48b6ed84b38e6c5
7ebe6f3a373403125549346c49a08f9c554dafac
refs/heads/master
2022-12-02T04:50:02.000415
2020-08-08T05:45:20
2020-08-08T05:45:20
262,273,250
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' 数组中有一个数字出现的次数超过数组长度的一半,请找出这个数字。 ''' from typing import List import random ''' 两种解法 摩尔投票法 / 快速选择 partition / 哈希 快速选择 超时。 但渐进时间复杂度应该是一致的 且修改了数组 摩尔投票法 : 极限一换一,换到最后的就是众数 哈希 : 未写 通过记录次数。 申请了额外空间 ''' class Solution: def majorityElement(self, nums: List[int]) -> int: res = nums[0] ...
UTF-8
Python
false
false
1,730
py
117
39.MajorElement.py
116
0.513963
0.500665
0
52
27.923077
76
fromkotadd/instagram_bot_remove_freeloaders
16,630,113,376,676
7f42e68a264792ed4038533640827704b7694b7b
bc3974d65b1769801e4f34dea1cb4f2077c030e0
/remove_freeloaders_user.py
ad87a729559271577d98401d8f37b9664a024cf0
[]
no_license
https://github.com/fromkotadd/instagram_bot_remove_freeloaders
e1555150925f59099d79590fc5bca681dccbb796
445a0a575f9ac3395048556d6ac82fb0f2d00609
refs/heads/main
2023-07-24T05:04:11.084652
2021-09-06T08:04:04
2021-09-06T08:04:04
398,222,795
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from auto_login_insta import login from selenium import webdriver from auth_data import username, password, nickname import time import random # метод отписки, отписываемся от всех кто не подписан на нас def smart_unsubscribe(username): browser = webdriver.Chrome(r'chromedriver.exe') login(username, passw...
UTF-8
Python
false
false
6,228
py
4
remove_freeloaders_user.py
3
0.689624
0.679084
0
170
30.370588
113
chine007/BL_code
446,676,637,404
b4d5bf7cf900dadb458ee24f2828b18e5cfc551e
097e7d0adf1f69367e386ba8c742bb41ec81927f
/读观点参数表格进行BL计算.py
eef673b6599d668672f18518c9cfcb9984b7e5a3
[]
no_license
https://github.com/chine007/BL_code
1578a010d62076c3b5971adfae6af21aaff5141b
6b3f31c68e9edcf37e119bb98397a8c819939c3f
refs/heads/master
2021-04-25T05:37:59.320913
2017-09-12T16:52:35
2017-09-12T16:52:35
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Sep 4 16:04:48 2017 @author: skofield """ import os from bl_funcs import getpqc from bl_funcs import bl import xlrd import numpy as np import pandas as pd from WindPy import w import datetime from xlrd import xldate_as_tuple import xlwt #读取当前目录作为工作目录 wor...
UTF-8
Python
false
false
5,083
py
4
读观点参数表格进行BL计算.py
3
0.617455
0.598061
0
140
27.364286
89
katajakasa/aetherguild4
16,003,048,170,232
bcc40b3348d8e7a68d493c0999d72c79a5926ca8
c62bd77742f921b8f50b886db7488ce03725f5ab
/aether/gallery/__init__.py
5216e250601645afd35620cae089929a9f01287a
[ "MIT" ]
permissive
https://github.com/katajakasa/aetherguild4
a361688a87d86ae2284a4c07aa9fe9d6b91d2fbb
2d51f73fad15bfa9a0da052f2509b308d566fafa
refs/heads/master
2023-08-03T19:51:43.808931
2023-07-28T17:35:01
2023-07-28T17:35:01
143,641,102
0
0
MIT
false
2023-05-09T22:42:13
2018-08-05T19:17:15
2022-01-07T22:54:12
2023-05-09T22:42:10
1,349
0
0
3
Python
false
false
default_app_config = "aether.gallery.apps.GalleryConfig"
UTF-8
Python
false
false
57
py
70
__init__.py
50
0.807018
0.807018
0
1
56
56
achim0308/finance
15,178,414,472,704
a9236c7ddb1aba1b6657e5122af36c535713c45b
ff6b338bc2cdb4799242b53898c5fbb772400134
/returns/calc.py
883aa54f21a8a86a1ab46ed1225db9cfed4aff5e
[]
no_license
https://github.com/achim0308/finance
572123d76c0ad48fa92ffa587469d58c2f5bce32
c9454cbfe1cf8f0d88e1087616a80d0982346dee
refs/heads/master
2023-08-19T21:39:28.792736
2023-08-09T20:34:38
2023-08-09T20:34:38
54,742,400
0
0
null
false
2021-12-17T22:06:49
2016-03-25T19:20:48
2021-12-16T00:51:31
2021-12-17T22:06:48
6,170
0
0
0
HTML
false
false
from datetime import date def newtonSolve(f, df, x0, absTol=1E-4, relTol=1E-4, itMax=50, damping=0.70): lastX = x0 nextX = lastX + 10.0 * absTol it = 0 while (abs(lastX - nextX) > absTol or abs(lastX - nextX) > relTol*abs(lastX)): it = it + 1 if it > itMax: raise StopIterati...
UTF-8
Python
false
false
3,616
py
52
calc.py
23
0.553374
0.5224
0
104
33.769231
143
BarracudaPff/code-golf-data-python
15,496,242,004,348
e0d8f720778c4c887c3f7b80a0f3837ba6a18600
7357d367b0af4650ccc5b783b7a59090fdde47bb
/py-appscript/tags/py-appscript-0.17.3/Lib/osaterminology/dom/applescripttypes.py
3e538c28020ad4e851ab5651d3849f95b636ac87
[ "MIT" ]
permissive
https://github.com/BarracudaPff/code-golf-data-python
fb0cfc74d1777c4246d56a5db8525432bf37ab1a
42e8858c2ebc6a061012bcadb167d29cebb85c5e
refs/heads/main
2023-05-29T05:52:22.856551
2020-05-23T22:12:48
2020-05-23T22:12:48
378,832,634
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""applescripttypes -- used to get default AppleScript type/class/enum names from AppleScript component; used by aeteparser.AppleScriptParser, sdefparser.AppscriptHandler""" __all__ = ["typebycode", "enumerationbycode", "typebyname"] class AeutTypesParser(aeteparser.Receiver): def __init__(self): self._typesbycode =...
UTF-8
Python
false
false
1,154
py
444
applescripttypes.py
437
0.725303
0.725303
0
28
40.25
173
absurdjaden/PAINT-PROJECT
6,880,537,637,858
9891634cfe0c6a52d708b844e1e3c4326b835851
eedc702c68afc931c7867ce5cd785f525050eeb2
/program.py
a7c4f29ddd5e30c0e64df08b1aa683797608da75
[]
no_license
https://github.com/absurdjaden/PAINT-PROJECT
dec6a316e652442476abaf7d334cc9d3b87eb865
5332fdde2116bd1c0020162c2f19e84346d64820
refs/heads/master
2020-11-25T05:43:35.479285
2020-01-24T04:36:08
2020-01-24T04:36:08
228,525,596
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pygame import * from random import * from tkinter import * from tkinter import filedialog from math import * width,height=1200,800 screen=display.set_mode((width,height)) #setting screen root=Tk() root.withdraw() #hides extra window font.init() arialFont=font.SysFont('Arial',15) #font of the paint...
UTF-8
Python
false
false
37,513
py
4
program.py
2
0.578573
0.547863
0
903
39.542636
157
nmmmnu/redis-rdb-tools
2,035,814,519,911
da02abb1d81fef190526d2562d83662fa6681478
d3c01e4bf7cd86e5a146e52dac6bb8d0f846b2ba
/rdbtools/cli/aggregate.py
21d94a6ce95646a4080905055a6d27a9999ef4e4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/nmmmnu/redis-rdb-tools
b7e917e49cfa6cbf232cf16129a1ebe246f034df
9aeaf545cd31c1f29327612986f75a69ec785652
refs/heads/master
2021-01-18T03:04:45.977076
2013-04-23T14:37:17
2013-04-23T14:37:17
9,621,129
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import sys try: filename = sys.argv[1] except IndexError: print "Usage %s filename [max_rows]" % sys.argv[0] sys.exit(1) try: maxbr = long(sys.argv[2]) except IndexError: maxbr = None br = 0 br_size_in_bytes = 0 br_max = 0 s_db = {} s_tipe = {} s_hist = {} s_hist_levels = [] for i in...
UTF-8
Python
false
false
3,014
py
1
aggregate.py
1
0.518248
0.490046
0
174
16.298851
81
x19290-not4u/area_total-----
16,295,105,927,197
e3a907c8967ca34b355f17e2072ba3028897515e
a0b4bc7fdd96506a70f8fc72db1379a757a427b5
/x_lib/zz3x_csv_to_shapes.py
4d8d69246308791380c8f6220392139c38cff407
[]
no_license
https://github.com/x19290-not4u/area_total-----
a7fa67616d31317321808b127affc8a761122195
2cf9bbf1c0b85e4379ae808f2cc1b5c1aa79a4de
refs/heads/master
2020-01-24T07:08:16.762452
2016-08-30T13:38:41
2016-08-30T13:38:41
73,982,425
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from unittest import TestCase from x_lib import csv_to_shapes, py2decode from e_better import area_total, Circle, Square from io import StringIO from math import pi _CSV = r''' circle,10 square,5 '''[1:] _CSV = py2decode(_CSV) class T(TestCase): def test(self): shapes = csv_to_shapes(Circle, Square, Str...
UTF-8
Python
false
false
446
py
52
zz3x_csv_to_shapes.py
39
0.659193
0.632287
0
20
21.3
62
BrunoHenryCDMal/python_plots
781,684,065,668
0dce9bdcd00c838634c3f664fbb854bb02c88c09
40e4bd46dd3f08c0f6e6355a4a580dc56803b45a
/plots_rings.py
06e341605e028ccb9b6bf55db9d56baaa61068d4
[]
no_license
https://github.com/BrunoHenryCDMal/python_plots
d8f9ce397519d6579849e57d9af3021432979a70
e61ea128e718592992f74364274a73b10b5e3f22
refs/heads/master
2021-01-17T07:04:17.914428
2019-10-23T13:11:48
2019-10-23T13:11:48
45,528,470
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' gasfractions_vs_stellarmass milkyway_sfr_and_gas_profiles evo_milkyway_gas_profile gas_metallicity_gradients SFR_gradients ''' import numpy as np import pandas as pd #import seaborn as sns #sns.set_style('darkgrid') import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from astropy.table import T...
UTF-8
Python
false
false
251,688
py
1,122
plots_rings.py
20
0.496384
0.450792
0
5,135
48.012853
158
brycexu/SAA
876,173,350,225
090e453b27dd02738c23acc8549592e6abcce2b0
61593f33cad05b398734aae53856fbf245bf4b0d
/Zero-Shot Classification/SUN/Dataloader.py
62e57a3dc93eb62a2d299ad415e3abf436adc045
[]
no_license
https://github.com/brycexu/SAA
101ed18810da8a19b7669eb8ef188f111848b8da
1df8702b7741b7c21fdc9b9b24fb01c040ad7c4a
refs/heads/master
2022-07-04T14:10:41.495093
2020-05-14T08:31:39
2020-05-14T08:31:39
245,337,457
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Author : Bryce Xu # Time : 2020/2/29 # Function: from Dataset import SUNDataset from Datasampler import SUNBatchSampler import torch import numpy as np def dataloader(parser, mode): dataset = SUNDataset(mode=mode, data_root=parser.image_dir, attribute_root=parser.attributes_file, wmode...
UTF-8
Python
false
false
997
py
18
Dataloader.py
15
0.679037
0.672016
0
23
42.347826
102
MatsKBrun/utils
13,331,578,496,196
825972768786802dd2cec8269444d1d4de7c14c3
2fbf230c38185d30b9070436b3e37691f700c459
/tests/test_permutations.py
67359d5f46aa8193d9cd37fda31211045ae92797
[]
no_license
https://github.com/MatsKBrun/utils
df4044e4b1056ab31978dc6a77c26c83637aa540
edc06637c21f73379387940758f713294dec9b06
refs/heads/master
2021-01-19T10:53:55.978391
2017-04-05T11:09:14
2017-04-05T11:09:14
87,912,584
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest import numpy as np from utils import permutations class TestPermutations(unittest.TestCase): def compare_lists(self, base, length, lst): # Compare a pre-defined list with the result of multinary_permutations # Define a generator, and check that all values produced are contained within lst...
UTF-8
Python
false
false
1,399
py
11
test_permutations.py
11
0.551108
0.543245
0
46
29.413043
85
QiliWu/web-scraping-with-python
3,358,664,468,560
5ef3f72e0f6bd5b2b38c424b8de9ff60887952b7
81147b475e1d475e61d557d6fa680e82f69b2bb4
/chapter9-04.py
9381fa00a339674aca6c1dc75cda69ac968646f0
[]
no_license
https://github.com/QiliWu/web-scraping-with-python
4dc7b97a045febf37d59583fb43783c87306585f
2370f5bd1191e87158a68efec51693d40ecbceba
refs/heads/master
2021-09-21T16:49:17.465744
2018-08-29T05:19:53
2018-08-29T05:19:53
103,244,149
0
1
null
false
2017-09-26T11:36:04
2017-09-12T08:32:53
2017-09-12T08:33:02
2017-09-26T11:34:49
521
0
1
3
Python
null
null
import requests files = {'uploadFile': r'D:\03-CS\web scraping with python\logo.png'} r = requests.post('http://pythonscraping.com/pages/processing2.php',files =files) print(r.text)
UTF-8
Python
false
false
182
py
40
chapter9-04.py
35
0.747253
0.730769
0
5
35.6
81
schwallie/CarND-Advanced-Lane-Lines
25,769,813,622
e73e93501c66df9be24e001d6a1e4587c8284eb9
00ae13e0469b8406dc97d7d0c1b5d0f063130004
/thresholds.py
f084615192962b804ac6b0a6f457c9500fcc147d
[]
no_license
https://github.com/schwallie/CarND-Advanced-Lane-Lines
794dccc36cbe2644bf57b3be3858c9599c654472
c09e10e47b6b54a9e77419b4ad51374de1073dcc
refs/heads/master
2021-05-01T01:59:14.140977
2017-02-06T14:10:47
2017-02-06T14:10:47
79,867,522
0
0
null
true
2017-01-24T01:36:41
2017-01-24T01:36:41
2017-01-21T20:18:58
2017-01-20T00:55:42
62,940
0
0
0
null
null
null
import cv2 import numpy as np import config # Use color transforms, gradients, etc., to create a thresholded binary image. def pipeline(img): """ Pipeline for a combined threshold pipeline, thresholds found from testing different options but also from guidance on slack :param img: :return: ...
UTF-8
Python
false
false
2,042
py
8
thresholds.py
7
0.643976
0.624878
0
69
28.594203
112
Dannyzen/karmapolice
6,923,487,311,642
08279bd2e255b41ad977cf5c64ebeebabf7607fb
26019d74b05efb248df5e7e3046bc781de61722e
/db.py
900e1f9e575c10756e6e88e0560028875a2844e6
[ "MIT" ]
permissive
https://github.com/Dannyzen/karmapolice
7dd9db819e261abfc6a325bbdd634ce44422ab57
f422ab8f800f273af7529536eca4c8dd99e6e87e
refs/heads/master
2016-08-04T06:19:43.250731
2013-09-29T15:44:05
2013-09-29T15:44:05
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import karmaconfig from pymongo import MongoClient from passlib.hash import sha256_crypt # http://pythonhosted.org/passlib/ from time import gmtime, strftime client = MongoClient(karmaconfig.URI) db = client[karmaconfig.DBNAME] def getNow(): return strftime("%Y-%m-%d %H:%M:%S", gmtime()) #for troubleshooting def...
UTF-8
Python
false
false
1,565
py
5
db.py
4
0.692013
0.68115
0
48
31.604167
113
ginakirkish/henrylab_scripts
19,524,921,339,093
765fdad01e6f9bc71f0d7544228362e51097e574
45e7fc0c586729a9fbff0cd5ec036db292264bad
/jim/nii_to_jim_roi.py
2980859d5474c5a3f8557adf6097e3581276890c
[]
no_license
https://github.com/ginakirkish/henrylab_scripts
5a11dc96ed03f85e00b7330d26ee776b6f93ac63
5e3009180a731ccd10c851668b00234e6e6728a5
refs/heads/master
2020-12-12T17:48:48.280077
2020-02-10T19:22:42
2020-02-10T19:22:42
234,189,521
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import nibabel as nib import numpy as np import scipy.ndimage.interpolation as wezoom import glob import os import sys import argparse import copy def load(image): img = nib.load(image) img_header = img.get_header() img_affine = img.get_affine() img_data = np.array(img.get_data()) return img_affine...
UTF-8
Python
false
false
2,879
py
130
nii_to_jim_roi.py
127
0.608892
0.598124
0
75
37.386667
243
jrsavage29/NetApps_Assignment1_42
9,225,589,797,332
f4c722f3344a8b9fa154e91d90ed8fda202a25fe
a0957feb6f5ffd285be806872d468747e6d90fe1
/server.py
dc5ded7db0114831ba825ea93833580f8e882a5d
[]
no_license
https://github.com/jrsavage29/NetApps_Assignment1_42
83d69642bb1fb2244485d0805fff934d61ed44f1
ffe4031faeaa91d2f86f6798ab653c13d08326bd
refs/heads/main
2023-03-04T01:02:08.893489
2021-02-14T14:23:58
2021-02-14T14:23:58
337,454,150
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import sys import socket import pickle import wolframalpha import hashlib import os from cryptography.fernet import Fernet from playsound import playsound from ServerKeys import ibmTextToSpeech_key from ServerKeys import ibmTextToSpeech_url from ServerKeys import wolframAPI_key ...
UTF-8
Python
false
false
5,259
py
6
server.py
4
0.577676
0.56912
0
119
42.210084
133
huesoluis/insercionfp
19,250,043,421,932
7cfae7ccf3d0a421c2b32873c3de4dffa822cbd2
1d955ee87f83bd4541ce81b426b4bd209b8d3290
/scripts/carga_junio19/databaseconfig.py
9ed23908f4c2d4cfd1b656ff3f8f5f47502f19ba
[]
no_license
https://github.com/huesoluis/insercionfp
868272c36b873ff6bf0894e93c09e5d1d4afe521
de4c061cf08496ecd77a82c75d9e623324fde184
refs/heads/master
2021-07-03T02:31:52.697258
2020-02-12T12:04:49
2020-02-12T12:04:49
240,000,091
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
usuario='root' password='Suricato1.fp' database='INSERCIONFP'
UTF-8
Python
false
false
62
py
1,690
databaseconfig.py
67
0.790323
0.774194
0
3
19.666667
23
cnsunfocus/subprice
18,494,129,183,888
8fc706d0143d9ecb2d033a5ba22e2139f60cf8ea
b6feb3bf2b006a815cea6e56c092f44ff8d2f557
/weistock-lme/calc_price_sub_result.py
ea80fdcd01ac41c7dfbb7c4918b73127cc51fa9e
[]
no_license
https://github.com/cnsunfocus/subprice
1db6810d6af1161d7ad990c51a03986464ae84b3
17e6952839759410a074a2eb0738a6e2d3ae25eb
refs/heads/master
2021-08-31T01:49:35.277685
2017-12-20T04:49:10
2017-12-20T04:49:10
114,843,950
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import MySQLdb import time import datetime import models import db_util import utils dbutil = db_util.DbUtil() def parse_data(rs): data = models.FutureData() data.date = rs[0] data.open = rs[1] data.close = rs[2] return data def calc_sub_price(lates...
UTF-8
Python
false
false
2,857
py
25
calc_price_sub_result.py
18
0.583184
0.569889
0
82
32.939024
306
quanted/hms_app
4,458,176,075,952
6ed18ac27ff051df3b563280e3448d8cc622e404
150315b4be1e22c7c04f2d55a1e08d4c38b130c3
/views/submodule_pages.py
d864c474b4ff5f2aa4ba04939f9cebe9ac3ba4d7
[]
no_license
https://github.com/quanted/hms_app
d15b3d2761215abca2b53be2af66578acaa3b908
7a8aec3b2eccadcfccc77b6eb7ba0f203327df7a
refs/heads/dev
2023-09-02T17:47:34.412377
2023-08-16T14:02:00
2023-08-16T14:02:00
78,229,704
1
0
null
false
2021-08-13T13:33:14
2017-01-06T18:40:22
2021-08-10T20:26:39
2021-08-13T13:33:13
494
0
0
0
Python
false
false
""" Router to direct requests for a specified model/submodule overview """ from . import meteorology_submodels as met_submodels from . import hydrology_submodels as hydro_submodels from . import hydrology_submodels_algorithms as hydro_submodel_algor import hms_app.models.precip_workflow.precip_compare_overview as prec...
UTF-8
Python
false
false
10,401
py
65
submodule_pages.py
61
0.656379
0.652822
0
204
49.985294
182
Anu1996rag/Python_Basics
10,127,532,917,817
791d5cd4e6e79443d1c6c5c653f7e4637e66e3f8
5225d23ddf7b2e2b18387a4ba656a34c543aae33
/regular_expressions.py
e871a55d9fa7a36e5f57521b719bfafd2542987a
[]
no_license
https://github.com/Anu1996rag/Python_Basics
2800f6f4a0cf30533595f0326968da6976e3273d
215e3c5b7cdfd6f055de1caa287ee0f594b6ac63
refs/heads/master
2021-07-22T21:42:22.521692
2021-04-10T13:40:10
2021-04-10T13:40:10
230,445,219
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Mar 24 08:38:53 2020 @author: Gurudas Regular Expressions """ ##### Optional matching with the question mark import re batRegEx = re.compile(r'bat(wo)?man') mo1 = batRegEx.search('batman') print(mo1.group()) mo2 = batRegEx.search('batwoman') print(mo2.group()) ########...
UTF-8
Python
false
false
3,171
py
61
regular_expressions.py
48
0.6386
0.624409
0
133
22.834586
148
Blesfia/ai
2,422,361,596,720
ac75af002af1ba06b506f68fd5881c7a0bbec47a
70365931c4d26b54ebe976c3d04c90e87f4f9b4e
/gym/CartPole-v1/model.py
e8a0d6f2e684ae1ec41ef8ba7a79fd88d045668a
[]
no_license
https://github.com/Blesfia/ai
693b89ce4126f093f10e23037dd8f17b0bc55b52
5fc136c229c64c63a6be4a9f3ef7ee04bb93b1fd
refs/heads/master
2020-05-17T11:31:06.919812
2019-05-26T15:13:14
2019-05-26T15:13:14
183,686,931
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf import numpy as np class Model: def __init__(self): self.model = tf.keras.Sequential([ tf.keras.layers.Dense(50, input_shape=(4,)), tf.keras.layers.Dense(50), tf.keras.layers.Dense(2, activation='softmax') ]) self.model.compile( ...
UTF-8
Python
false
false
761
py
13
model.py
9
0.587385
0.574244
0
22
33.545455
95
ningyumo/untitled1
10,084,583,235,436
6d1e1ac1336848d2813aff9ead38e605fd01cd63
d8ae098f8ef4d24eceed51570c9f7824a36436fa
/myuser/migrations/0009_auto_20190717_1154.py
76dec66229b5a9f8243b824894dd508b1c396fc9
[]
no_license
https://github.com/ningyumo/untitled1
8a1aeecbb9e0366eb7e1fe4c357c345a14073a8b
88fd6e7c99f1278b6720ecd11bd8ce3f40359407
refs/heads/master
2020-06-15T05:14:17.323767
2019-07-24T09:09:46
2019-07-24T09:09:46
195,212,189
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.2.3 on 2019-07-17 11:54 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('myuser', '0008_auto_20190716_1703'), ] operations = [ migrations.RemoveField( model_name='profile', name='collect_blog', ...
UTF-8
Python
false
false
416
py
55
0009_auto_20190717_1154.py
41
0.572115
0.497596
0
20
19.8
47
vanSultan/anal_dev_algo
14,164,802,162,342
c4a55c6a23113e4ca5c472bd52c286e068cfc91c
1f7c1add061cd5b4c50270e941fbc4b52cddd378
/lab_04/__init__.py
b0eaceccf3654f49e155f6c0a6176702c4e24ed2
[ "MIT" ]
permissive
https://github.com/vanSultan/anal_dev_algo
787b2bf9936652856d5fd67e9c8581ec5eb0a4c6
e9d6382103080e6f885b1456cc0a3ce64fbe1863
refs/heads/master
2023-01-08T19:45:57.630291
2020-11-06T22:20:46
2020-11-06T22:20:46
296,299,748
0
0
MIT
false
2020-11-06T22:20:47
2020-09-17T10:56:11
2020-10-28T11:58:22
2020-11-06T22:20:46
3,814
0
0
0
TeX
false
false
from scipy.optimize import minimize, least_squares, dual_annealing, differential_evolution from .funcs import get_signal, f_least_squares, rational_approx __all__ = [ "minimize", "least_squares", "dual_annealing", "differential_evolution", "get_signal", "f_least_squares", "rational_approx" ]
UTF-8
Python
false
false
303
py
32
__init__.py
15
0.729373
0.729373
0
8
36.875
90
youngchow/interface_auto_test
8,710,193,687,100
4db45c1ce32071439ed93e389507d28e9af2a1e8
b151f194c570baaa840f4b208934823f8a8017ed
/practice/suite_case.py
6fb1a8dbf53a25d98e6088bd9c35aaf3efb48809
[]
no_license
https://github.com/youngchow/interface_auto_test
67327893145e61074dcda9aa7cf90cbac1990837
39cca1472519cb9d89a86161ec54df82e9477ad2
refs/heads/master
2020-06-25T17:01:09.959924
2019-07-29T11:06:51
2019-07-29T11:06:51
199,372,272
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: UTF-8 -*- import unittest from libs.HTMLTestRunnerNew import HTMLTestRunner from scripts.handle_config import do_config from cases import test_01_register from datetime import datetime from scripts.contants import REPORTS_DIR import os suite = unittest.TestSuite() loader = unittest.TestLoader() case = l...
UTF-8
Python
false
false
727
py
23
suite_case.py
20
0.760839
0.752448
0
20
34.8
123
sfermigier/solace
12,953,621,404,835
987fa49f816f09a03adf90ced543b6ef2700d8c9
39cf047af55632c876f559c843fe8ef6575ee77f
/solace/utils/ini.py
9f53964782d7d079db9d977f9866d911d9366525
[ "BSD-3-Clause" ]
permissive
https://github.com/sfermigier/solace
f3806be47e5e47e1853295fa8c6c7bcd36c2910d
32d0b398643344c797a40a094689300c364de3b0
refs/heads/master
2016-09-06T13:05:45.865187
2012-06-25T13:53:18
2012-06-25T13:53:18
4,780,566
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ solace.utils.ini ~~~~~~~~~~~~~~~~ Parses an ini file into a dict. :copyright: (c) 2009 by Plurk Inc., see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import re _coding_re = re.compile('coding(?:\s*[:=]\s*|\s+)(\S+)') COOKIE_LIMIT = 2 DE...
UTF-8
Python
false
false
1,825
py
109
ini.py
51
0.470685
0.463562
0
66
26.651515
69
POOJA-P/sorting
18,433,999,635,674
3f435a7537634413222945ab293482ee6ade926e
47273e03fdf2c55db47b2df23eeba48df62c2adc
/add.py
e3bc052caa07a5f12a35cba8de3552bdae09b019
[]
no_license
https://github.com/POOJA-P/sorting
6ba1a1a8eb1e41d0a118cf8fa81ecece650b85a1
c79476f08095b2cc4269427402aafe384ca6dc23
refs/heads/master
2021-01-25T06:44:35.169426
2017-06-07T06:02:35
2017-06-07T06:02:35
93,598,291
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 print() print('changing of variables in an array') a =[1, 2, 3] print('the given array is') print(a) print('the array changed : ') a[0] = 5 a[2]=8 print(a) print() print() print('addition of two numbers') num1=input('enter the first number : ') num2...
UTF-8
Python
false
false
708
py
2
add.py
2
0.601695
0.566384
0
36
18.638889
62
fp-computer-programming/cycle-2-labs-p22crsullivan
8,186,207,693,540
491b2b73c68d748e1d41362fff346b1821e209dd
1b6addee13a1dd99fd2d1c688b46182e7cc0537e
/lab_2-2.py
4175e3009338b53ffb34c3817edbb6a835925d1e
[]
no_license
https://github.com/fp-computer-programming/cycle-2-labs-p22crsullivan
1c1dace719b4dace4c3aacdb1011bd8436137464
07d4d7d479ecc635aa0e86ff4ed2b76d567996c9
refs/heads/master
2023-07-18T18:45:32.203354
2021-09-21T14:05:02
2021-09-21T14:05:02
406,016,234
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Author: CRS 9/15/21 a = 3 b = a print(a, b) a = 7 print(a, b)
UTF-8
Python
false
false
64
py
6
lab_2-2.py
5
0.53125
0.421875
0
6
9.666667
21
namanhnatuli/django_hotel_management_system
11,295,764,003,457
b817ae23fb42d5ee5bae03732e8b68e6ad46eb95
f30aae19c621efc0cb704671b94a6550290fbf7c
/blog/forms.py
054b5946c6313fbe095569aa844c807acef90f45
[]
no_license
https://github.com/namanhnatuli/django_hotel_management_system
a95b56bc8bce2fb143dbab219f19b1707c995009
9c2133e76e04c55fd085b6e2fd2eb9b195af7a20
refs/heads/main
2023-07-20T05:51:53.764670
2021-09-04T04:44:26
2021-09-04T04:44:26
393,999,135
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Django imports from django import forms from django.forms import TextInput, Select, FileInput # Third-party app imports from ckeditor.fields import RichTextFormField from taggit.forms import TagWidget, TagField # Blog app imports from blog.models import Article, Category, Comment class CategoryForm(forms.ModelForm...
UTF-8
Python
false
false
2,095
py
100
forms.py
56
0.629117
0.629117
0
55
37.090909
141
brunogfranca/redisconf
18,605,798,344,876
440e9a445f870729695a8018261631265a9ca52e
b0657be19d78370d3c74fc86154b0a47dffaf7e0
/redisconf/config.py
568bc1eb91c2053c2b34b76aebddc609a5bb08ef
[]
no_license
https://github.com/brunogfranca/redisconf
05176b8ed304edefa18ea5a7174403c37ecee739
9326522b3de56be14f5521f8a192bf9dfbae2a39
refs/heads/master
2021-01-17T13:15:37.611483
2016-06-22T20:09:43
2016-06-22T20:09:43
10,104,011
1
1
null
false
2016-06-22T20:09:43
2013-05-16T15:15:29
2015-09-08T06:49:19
2016-06-22T20:09:43
172
2
1
0
Python
null
null
import getpass import redis class Config(object): ''' Basic Usage: conf = Config('namespace') conf.setConf('keyname', 'value') conf.getConf('keyname') questions = [] questions.append({'key':'mongodb_host','question':"mongodb's host"}) questions.append({'key':'m...
UTF-8
Python
false
false
3,262
py
3
config.py
2
0.509197
0.506131
0
90
35.244444
104
saloot/NeuralNetworkTomography
8,134,668,104,063
dfeb0f1da5adb3f0dbfa80125addc6e70503b81b
31459c357b18a2fadff245d6c9564a07f8da20ca
/Python Codes/Old Versions/Master.py
f9a78ae043e735fe2dad37dd4fe35e6e991bffd4
[]
no_license
https://github.com/saloot/NeuralNetworkTomography
0046b5ad9eb0dcd045e9d04e6a898d62786d302c
8e77cd1854277112a1a6216dc1e7dbce66e88bf3
refs/heads/master
2021-04-24T18:03:40.044515
2019-12-04T07:00:12
2019-12-04T07:00:12
20,876,869
4
4
null
null
null
null
null
null
null
null
null
null
null
null
null
#=======================DEFAULT VALUES FOR THE VARIABLES======================= n_exc_default = 160 n_inh_default = 40 connection_prob_default = 0.2 frac_input_neurons_default = 0.3 no_cascades_default = 8000 ensemble_size_default = 10 delay_max_default = 1.0 ensemble_count_init_default = 0 network_type_default ='F' OS...
UTF-8
Python
false
false
9,739
py
165
Master.py
25
0.552829
0.549543
0
166
57.674699
168
abhinaypodugu/vercelDeploy
5,720,896,466,649
10c84ce4ac2fd9a55ce6e40a65a96187ffd33aa2
48f220cffd294263fb4264daa7799870438397a9
/vercelDeploy/template.py
fffeeff963a56fac85baee2167891953152f267e
[]
no_license
https://github.com/abhinaypodugu/vercelDeploy
3372eb3cea7008ea7e6c15a51dc0054610dad8c7
52e060ffb9ac26a0aa677772765e671bb15720b7
refs/heads/master
2023-08-22T11:54:11.807070
2021-10-16T14:39:14
2021-10-16T14:39:14
417,465,750
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# FastAPI file creation template1 = """ from fastapi import FastAPI from {path} import {class_name} import uvicorn app = FastAPI() {func_name}={class_name}() @app.get("/") def hello_world(): msg="Welcome to my FastAPI project!\ Please visit the /docs to see the API documentation." return msg\n ""...
UTF-8
Python
false
false
618
py
9
template.py
8
0.553398
0.542071
0
32
18.3125
61
MzoneCL/MentalHealth
9,285,719,336,460
3d2940bc362b34dafed9861bfe2a3e9509b1ed12
7acdb08fcb10e46f62d6c43f3b327e838dfecba2
/data_preprocess.py
8f3af435b41717a6b657bb44095b7042c5ce9491
[]
no_license
https://github.com/MzoneCL/MentalHealth
1b6381aca5ef484a452bb58383dfc5e092ae512d
14aeafd4d03a7ecc8aafe200122f5ff6ab66cb29
refs/heads/main
2023-04-28T18:43:31.744856
2021-05-11T09:04:32
2021-05-11T09:04:32
365,923,245
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import numpy as np import os raw_data_path = 'data_raw/data_faker.csv' # 将数据中所有的空白字符(' ')转为'' def remove_blank(): data_raw = pd.read_csv(raw_data_path) len_ = len(data_raw) cols = data_raw.columns for i in range(len_): for col in cols: if type(data_raw.iloc[i]...
UTF-8
Python
false
false
1,088
py
5
data_preprocess.py
2
0.574757
0.570874
0
43
22.930233
78
BMW-InnovationLab/BMW-TensorFlow-Training-GUI
19,430,432,073,184
41d93adb6a96249fdcf710f2451f1abae5d488ee
8e90a7759ec7143427823547e0fbff58e0343aaa
/docker_sdk_api/api/controllers/infrastructure_controller.py
7ab18ae9d76ccddb59a024a2bca861fb8decc457
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
https://github.com/BMW-InnovationLab/BMW-TensorFlow-Training-GUI
646a6f86f26887e94351b4c572b7fe7f0842f75c
06531dae14365986c86baf735fd149317f4bb67a
refs/heads/master
2023-07-20T01:48:27.299962
2023-07-12T15:22:22
2023-07-12T15:22:22
227,429,492
1,030
198
Apache-2.0
false
2023-05-22T17:40:23
2019-12-11T18:06:11
2023-05-13T22:25:45
2023-05-22T17:40:22
272,193
937
158
0
Python
false
false
from fastapi import APIRouter, HTTPException from application.infrastructure.services.gpu_service import GpuService from application.infrastructure.services.port_scanner_service import PortScannerService from containers import Services from domain.exceptions.application_error import ApplicationError from domain.models...
UTF-8
Python
false
false
2,638
py
468
infrastructure_controller.py
281
0.712282
0.702426
0
102
24.862745
100
Drew-E-Wilson/Project3
18,073,222,399,341
c4b45f8f5746ad027aea8cb7fe7e8916e07e8279
1c5095f90e10b40f8b259518ee3ba155ce1374cc
/codrs/serializers.py
d15410bd348362a6679c7fa8a338162edeb9819b
[]
no_license
https://github.com/Drew-E-Wilson/Project3
d4e4dba04924535789b370c316d3cbe562f20df5
06e857e293f7a96e0e7a7d513ad3ab4482d11cae
refs/heads/main
2023-05-21T06:56:06.051611
2021-04-27T12:35:43
2021-04-27T12:35:43
361,229,785
0
0
null
true
2021-04-24T17:52:21
2021-04-24T17:52:20
2021-04-24T01:54:35
2021-04-24T01:54:33
54
0
0
0
null
false
false
from .models import Array, Comment, Profile from django.contrib.auth.models import User, Group from rest_framework import serializers class CommentSerializer(serializers.HyperlinkedModelSerializer): class Meta: # The model it will serialize model = Comment # the fields that should be includ...
UTF-8
Python
false
false
1,898
py
17
serializers.py
16
0.658588
0.658061
0
49
37.714286
101
amnox/cppinstitute_questions
16,552,803,965,782
97df9067d9500c7c2ab6b0b2c73e40148a90f6d3
f49536d4676e0e8fe1ad4d0529a84680f81a27bf
/hackerrank_solutions/max_sum_alternate.py
4173cd3170efb14a6d4f866298e704acefdcd475
[]
no_license
https://github.com/amnox/cppinstitute_questions
e2a398a1fd28884ac27bd98ec8ee5f305f1f215c
79a9d9c3fa01584ec1820c504dcb111e0c504c3e
refs/heads/master
2021-06-20T02:40:28.945177
2021-02-22T02:16:38
2021-02-22T02:16:38
189,868,151
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def find_max_sum(arr): incl = 0 excl = 0 for i in arr: # Current max excluding i new_excl = max(excl,incl) # Current max including i incl = excl + i excl = new_excl # return max of incl and excl return max(excl,incl)
UTF-8
Python
false
false
248
py
60
max_sum_alternate.py
60
0.612903
0.604839
0
15
15.533333
31
khyasir/odoo-10
6,957,847,022,580
f3eb015b4626d65ef2deca35e4268dbc4c073114
85147eec46810841bd49918dd3df8d423e9f1a04
/ufc/orient_sales_invoice/model.py
f49e70f6d594b4c0e3a8b44cca19784fd7a39e3e
[]
no_license
https://github.com/khyasir/odoo-10
999cade56501d96030399ecc3d525d5647ea5228
f745b6fe70748444b0a70d854d2273d8d24337cf
refs/heads/master
2021-08-16T22:45:01.532494
2017-11-20T12:37:12
2017-11-20T12:37:12
106,803,831
0
3
null
null
null
null
null
null
null
null
null
null
null
null
null
#-*- coding:utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2011 OpenERP SA (<http://openerp.com>). All Rights Reserved # # This program is free software: you can redistribute it and/or modify # it under th...
UTF-8
Python
false
false
2,739
py
192
model.py
81
0.536692
0.531216
0
78
34.051282
87
greenforse/AntoneoTD
12,034,498,389,733
5f1734b438215dd13ef31b7031bf2c5a33b508d6
510fee9a2220e8d5bcb786b2dd010ba1351237a8
/StartMenuState.py
f7641375238ac47e7796ad5548e78db4ea5f3f15
[]
no_license
https://github.com/greenforse/AntoneoTD
7b3cebe49e94df132edfaab3c755ce1d1dced4ab
0472d25c4aac0d5cb79fe21d0ad32f9e4fc4769a
refs/heads/master
2023-07-13T17:53:45.485865
2021-08-23T10:52:12
2021-08-23T10:52:12
375,608,992
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from GameState import GameState from State import State class StartMenuState(State): def __init__(self,game): self.game=game def init(self): self.game.buildStartMenu() self.game.initAndStopStartMenu() def processEvents(self): self.game.inputMouseButtonInBigMenu() ...
UTF-8
Python
false
false
516
py
17
StartMenuState.py
17
0.635659
0.635659
0
19
26.052632
45
MishokkohsiM/TP-WEb
7,533,372,648,446
b00cfce095b0d1a29c2847f1b22fa34a11aff66e
be520c3232e08e80b3ca7638d0e915e1e1978afc
/questions/views.py
01dd88f3690290eab4dc876adc83219b8e382522
[]
no_license
https://github.com/MishokkohsiM/TP-WEb
98354072323f5eed6719f9569520a84c21a41988
cdc2b26e69170236a0f3644f2652906fe52004bb
refs/heads/master
2020-05-04T01:47:17.498101
2019-04-15T21:30:39
2019-04-15T21:30:39
178,913,559
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render # Create your views here. from django.shortcuts import render def ask(request): return render(request, 'ask.html') def index(request): return render(request, 'index.html') def login(request): return render(request, 'login.html') def registration(request): re...
UTF-8
Python
false
false
419
py
23
views.py
11
0.71599
0.71599
0
25
15.76
43
open-mmlab/mmagic
9,174,050,191,204
b0118e5b9b78c78be87e9fc3bb2842a3261b9299
af101b467134e10270bb72d02f41f07daa7f57d8
/tests/test_models/test_editors/test_mspie/test_mspie_stylegan2_discriminator.py
5290d8ee1077ff35e91609cac86a1071b2acc6d3
[ "Apache-2.0" ]
permissive
https://github.com/open-mmlab/mmagic
4d864853417db300de4dfe7e83ce380fd1557a23
a382f143c0fd20d227e1e5524831ba26a568190d
refs/heads/main
2023-08-31T14:40:24.936423
2023-08-30T05:05:56
2023-08-30T05:05:56
203,999,962
1,370
192
Apache-2.0
false
2023-09-14T11:39:18
2019-08-23T13:04:29
2023-09-14T11:22:31
2023-09-14T11:39:17
26,511
5,729
962
22
Jupyter Notebook
false
false
# Copyright (c) OpenMMLab. All rights reserved. import pytest import torch from mmagic.models.editors.mspie import MSStyleGAN2Discriminator class TestMSStyleGANv2Disc: @classmethod def setup_class(cls): cls.default_cfg = dict(in_size=64, channel_multiplier=1) def test_msstylegan2_disc_cpu(self)...
UTF-8
Python
false
false
1,186
py
1,249
test_mspie_stylegan2_discriminator.py
952
0.610455
0.574199
0
37
31.054054
78
JuanjoUrrutia/zoo
14,448,270,017,428
2297266f0ea69a63d666c753037b4fcfde879472
50295df6dc72f8f6b2675c76b082aa1be8f53a7c
/zoo.py
ec3bdd82fbccfcde8423377d780436597139ce0d
[]
no_license
https://github.com/JuanjoUrrutia/zoo
ab202a695886d45a890bb8a55bfc342075e19b7f
b478cf665ae3f7595c390350c982e3c870dbe0cf
refs/heads/master
2023-05-25T22:56:42.118040
2021-05-31T10:23:49
2021-05-31T10:23:49
371,332,991
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random class Animal: def __init__(self, name): self.health = 50 self.happiness = int(random.random()*100) self.sexvalue = random.random() if self.sexvalue <= 0.5 : self.sex = 'Macho' else: self.sex = 'Hembra' self.age = int(random.rand...
UTF-8
Python
false
false
3,165
py
1
zoo.py
1
0.560721
0.544592
0
124
24.508065
68
mukris4/GCPT
8,375,186,265,310
7068b36bc48bd48099b3152a6ebbd772774016a4
bbd70f2054a78199596bf3832b5d82380f23ab6a
/test_case/test_orderManage.py
97edda4948ef37c5c823945c7077564b9b14098d
[]
no_license
https://github.com/mukris4/GCPT
51d0a9e4296a0397120128be6e556ff929f63f01
d84b0eec79c616802034d57339724608ba82140d
refs/heads/master
2020-06-27T18:29:34.427115
2019-08-06T09:48:00
2019-08-06T09:48:14
200,019,053
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import unittest import random,os from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from operate.Common_Operations import common_browser from selenium.webdriver.s...
UTF-8
Python
false
false
12,346
py
10
test_orderManage.py
7
0.616717
0.602315
0
279
39.569892
130
Tokimaro/Anonim_tg_bot
1,778,116,505,202
70ac805dd6a9aa7f7bac413ae6b1993a1b10a9b6
b65414de25ed91906639a21645f5b04334e58ea8
/main.py
034af3693412216fbb8330fae7b09282c35c51c6
[]
no_license
https://github.com/Tokimaro/Anonim_tg_bot
760f206adc62bb3df574354854229db31fca8e8a
638f6b7470cbf181e44c3d193d13d6219ce9646f
refs/heads/main
2023-01-21T14:17:55.625530
2020-11-25T16:27:03
2020-11-25T16:27:03
315,952,527
1
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import telebot from telebot import types from db import check_user from db import reg_db from db import delete_user from db import get_info from db import select_free from db import add_user from db import check_status from db import add_second_user from db import check_companion from db import check_open from db impor...
UTF-8
Python
false
false
10,442
py
3
main.py
2
0.619195
0.614993
0
202
43.772277
129
bagnine/Clothing_Recommender
12,524,124,635,246
c0fb0b45d6026575e1a423cfd2a8be7354fc82b3
f9695c07bc6967928c89c595a9f45c2e942ef483
/src/modules/data.py
d3a783fcea94ef131242995becb9b12d500bdf49
[]
no_license
https://github.com/bagnine/Clothing_Recommender
b90d3f2596885cccecc535dbcef91d0a290494d2
ef93384603ad2ecde238840c1759f3cf2447a92b
refs/heads/main
2023-02-28T14:46:33.999557
2021-02-03T02:38:41
2021-02-03T02:38:41
319,463,225
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import TimeoutException from selenium.common.exceptions import NoSuchEle...
UTF-8
Python
false
false
7,821
py
13
data.py
5
0.610536
0.607979
0
201
37.915423
120
tnemelck/machine_learning
1,855,425,907,193
666079a95443564fa8736bcd5dd3141e7ed6287f
bce5fc068a0be5f5c8022d7b2b65002d8f3365e1
/titanic_data_clean.py
213afb5c38d9c2d678903e13912f9c54a6ada630
[]
no_license
https://github.com/tnemelck/machine_learning
fcca9a4e1c4caeb3a535e84e116f2ae658733650
53f3a5fb4aaaef9e93d01e5bc65a8c26dd6953ed
refs/heads/master
2020-03-16T16:00:10.691991
2018-05-09T14:26:55
2018-05-09T14:26:55
132,767,620
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Apr 19 15:25:51 2018 @author: elvex """ import pandas as pd import re import numpy as np import matplotlib.pyplot as plt import sklearn.preprocessing as skp import sklearn.model_selection as skms def get_BDD(contenu = "train"): path = "/home/elve...
UTF-8
Python
false
false
6,196
py
3
titanic_data_clean.py
3
0.586279
0.566263
0
203
29.522167
117
mattssll/warehouse_gzipped_json
14,783,277,440,152
adcd722783ee38f92c9b38329898a48d9b690706
660de55953ed910d4f2903e65e6350b10ca02374
/app_spark/schemas/dataschemas.py
add36c9341f6a853d08575da152797d527d6ef8c
[]
no_license
https://github.com/mattssll/warehouse_gzipped_json
9d19d96f34083afd996b9e542005173b21ecba08
2ab9707b48443e2d1d20c20979a9afb45303f49d
refs/heads/master
2023-06-13T08:08:20.995583
2021-07-11T21:01:30
2021-07-11T21:01:30
376,405,017
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pyspark.sql.types import StructType,StructField, StringType, IntegerType, LongType, DoubleType, ArrayType def getMetadataSchemas(): metadataSchema = StructType([ \ StructField("asin",StringType(),False), \ StructField("categories", ArrayType(ArrayType(StringType())),True), \ StructFie...
UTF-8
Python
false
false
1,064
py
19
dataschemas.py
16
0.628759
0.628759
0
20
52.15
110
zoeyangyy/algo
8,667,244,037,183
fd066deaa7f53c451dc312d5e5fcc14c88556b30
9f342ee429df0beed2fbb7610d5afb8c32186017
/end_start_list.py
2b09432d0ea28153e7a4aff8828656a27453d609
[]
no_license
https://github.com/zoeyangyy/algo
55025ea549a66580423ffee47eaa5004b0260cb1
1671b30c07ef0e495c8b5863b5e0433dcd62dc9b
refs/heads/master
2020-03-26T23:25:03.187739
2018-08-23T16:14:23
2018-08-23T16:14:23
145,540,636
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # @Time : 2018/8/16 上午10:03 # @Author : Zoe # @File : end_start_list.py # @Description : class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: # 返回从尾部到头部的列表值序列,例如[1,2,3] def printListFromTailT...
UTF-8
Python
false
false
752
py
28
end_start_list.py
28
0.560224
0.535014
0
33
20.666667
48
schreven/PyPokerEngine
7,335,804,158,408
f41be932519284bb7cc2227cceb9cca5d61bf485
041bd8e7ede7c63ff9eaaaec3136a29bfd37abe5
/pypokerengine/engine/action_checker.py
7a50d8f2b0f97e11b458c3f22528d5edab41fdb6
[ "MIT" ]
permissive
https://github.com/schreven/PyPokerEngine
0211658c33bde2da9002de165a8b148d03735c93
1fd5990a561296634dae5ad18b49f6d1319d1089
refs/heads/master
2020-05-25T00:25:43.688985
2019-12-04T15:39:37
2019-12-04T15:39:37
187,533,953
3
0
MIT
true
2019-05-19T22:20:46
2019-05-19T22:20:46
2019-05-18T06:04:50
2019-03-13T03:33:10
677
0
0
0
null
false
false
from functools import reduce import sys class ActionChecker: @classmethod def correct_action(self, players, player_pos, sb_amount, action, amount=None): if self.is_allin(players[player_pos], action, amount): amount = players[player_pos].stack + players[player_pos].paid_sum() elif self.__is_illegal(...
UTF-8
Python
false
false
4,024
py
54
action_checker.py
45
0.639414
0.636928
0
114
34.289474
102
jdsteinman/femCell
14,405,320,327,962
0372da4bafffed3764c9faa1ecbbd15778369176
55f3db748a1c465fc2f437146f1c0df9df61b6f8
/cell_simulation/post_tools.py
3ae82720b63212a413f46cb05242be3ed5c1d3eb
[]
no_license
https://github.com/jdsteinman/femCell
d7536ea2ca1bbf5b8f4fa08d613a4c112b42bf7e
d3b88942a9ebe58455d2d41a0beafe979ac8873e
refs/heads/master
2023-04-16T18:52:16.335374
2021-12-15T22:51:24
2021-12-15T22:51:24
302,151,270
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import pandas as pd import meshio import pyvtk from numpy.linalg import eig, norm from scipy.linalg import polar """ Useful functions """ ## Normalize an array of 3-component vectors def normalize(a): arr = np.asarray(a) assert(np.ndim(arr) <= 2) if arr.ndim == 1: ss = np.sum(a...
UTF-8
Python
false
false
11,516
py
103
post_tools.py
41
0.531
0.511289
0
370
30.127027
99
Orionisxoxo/microservices_bookings
9,629,316,693,287
537af92bd30eac84375eb4d57cfba0d3ecd07cdf
e0439be388dba6554a10ec16486c0cf153e69551
/tests/bookings.py
49ec2f9015c243eeac6c512db27ea58870b0dc0f
[]
no_license
https://github.com/Orionisxoxo/microservices_bookings
9ba9a906f1933154a22f8b8f538489d5748f6d4e
70be20de023b09cf43c5e53a16236826f0109b3b
refs/heads/feature_templates
2020-12-09T19:56:04.168738
2020-01-27T23:11:15
2020-01-27T23:11:15
233,404,794
0
0
null
false
2020-01-12T14:30:29
2020-01-12T14:25:24
2020-01-12T14:30:14
2020-01-12T14:30:28
0
0
0
1
Tcl
false
false
import unittest import requests class TestBookingService(unittest.TestCase): def setUp(self): self.url = "http://127.0.0.1:5003/bookings" def test_booking_records(self): for date, expected in GOOD_RESPONSES.iteritems(): reply = requests.get("{}/{}".format(self.url, date)) ...
UTF-8
Python
false
false
1,563
py
3
bookings.py
1
0.506078
0.47025
0
59
25.491525
75
BoxBoxter/SPSGEcodeBreaker
8,907,762,180,512
18491d93c44e362981ad19de81f6d28a715d1a77
f6b30099c98b3352307fd7464fa48ab66e5bd0b2
/codeBreakerLetras.py
39a68f0a996424f626055c08dff52dd804085d08
[]
no_license
https://github.com/BoxBoxter/SPSGEcodeBreaker
27882b75354b06c89d0035080cf09094d984a4b4
9f277bd93d2bb59821ffd877548642d8a59eead8
refs/heads/master
2020-12-15T00:15:32.859318
2020-01-19T15:50:46
2020-01-19T15:50:46
234,924,682
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random def obtenerNumeroAleatorio(): """ Devolvemos una palabra de la lista apartir de un random de la longitud :return: """ arrayPalabras =["marco", "pablo", "lucas", "miguel"] #numero = random.randint(0, len(arrayPalabras)-1) #print ("Numero Generado " + str(numero)) #palabra ...
UTF-8
Python
false
false
1,483
py
1
codeBreakerLetras.py
1
0.639245
0.635873
0
46
31.26087
81