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
Sandy4321/CS784-Project
8,650,064,138,633
128f5f989d1a5771578e6507748f69172a119233
74dcbb1d3fe56c57cf0d9c0846b69fe949119758
/information_extraction.py
fdce77cf8915ecb62c2f4b5e5dceef3e36354306
[]
no_license
https://github.com/Sandy4321/CS784-Project
1e0a25525c3d9976c1ec313225ea249fe215ce71
9cc1be0a8f47ff6f3042961f893728f8441ff8ee
refs/heads/master
2021-01-13T04:09:03.662740
2016-05-11T22:58:41
2016-05-11T22:58:41
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'wintere' import csv import lxml import datrie import re import string import sys from collections import defaultdict from bs4 import BeautifulSoup import pickle class InformationExtractor: def __init__(self): #initialize brand trie brand_trie = datrie.Trie(string.p...
UTF-8
Python
false
false
7,770
py
16
information_extraction.py
12
0.516216
0.511712
0.000257
168
44.25
340
JaJasiok/akai-rekrutacja
18,708,877,572,381
04a339775490632d249090c25b4d395b6a3dd7a0
a4f12f6a375eb7cda44aaa5aa988fbe7c7b5863d
/python/tasker/src/json/Exporter.py
4efd2b93715bb2f02ffcb5917092828491d9a0c0
[]
no_license
https://github.com/JaJasiok/akai-rekrutacja
3429486ab4a0e976856d579897653fdb4d95c4d1
7979a36ce0cded43cac4dffb849832470acc28e9
refs/heads/main
2023-08-26T10:01:48.280274
2021-11-06T20:47:20
2021-11-06T20:47:20
425,337,653
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json class Exporter: def __init__(self): pass def save_tasks(self, tasks): # TODO zapisz taski do pliku tutaj with open("taski.json", "w") as f: json.dump(tasks, f, indent = 4) f.close()
UTF-8
Python
false
false
250
py
6
Exporter.py
4
0.536
0.532
0
13
18.230769
43
wbrs-codestellation-2018/audio-recognizer
14,405,320,339,108
877431f4f723f5008cf0f23e30534b1fb2139d85
f1bf06136897041f43a24a5e46a7e02b45b895c9
/setup.py
dbb7d24dc675c8b62a907c9952f2d3434abf8f47
[]
no_license
https://github.com/wbrs-codestellation-2018/audio-recognizer
36e2d09047aef079ec9911c1ddda5c2ad3b6937a
55e3d0feb9e171d5dcd156fcb069595623bdaf6f
refs/heads/master
2020-04-05T16:27:57.967779
2018-11-10T20:54:06
2018-11-10T20:54:06
157,013,804
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from setuptools import setup setup(name='audio_recognizer', version='0.1', description='Gets genre info from files', url='https://github.com/wbrs-codestellation-2018/audio-recognizer', author='Sam Stern', author_email='sternj@brandeis.edu', license='MIT', packages=['audio_recog...
UTF-8
Python
false
false
441
py
2
setup.py
1
0.678005
0.664399
0
11
39.181818
90
Kunstenpunt/havelovewilltravel
17,497,696,786,688
f15d727788cc2c023fccf4b57e7f639a4c074680
c1c620a25217d979c6926a3377862e314f6593f6
/hlwtadmin/migrations/0043_auto_20210126_0833.py
4dc56cc86658a0f3c11c38a60713006d041685ff
[ "Apache-2.0" ]
permissive
https://github.com/Kunstenpunt/havelovewilltravel
ab47ed097c015c8243412d8d5b375837fb8f8232
f7ab8b6c952f90e6688f5e021245aa3625c8e491
refs/heads/master
2022-12-10T10:00:53.351251
2022-05-17T08:20:10
2022-05-17T08:20:10
237,963,083
1
0
Apache-2.0
false
2022-12-08T03:33:00
2020-02-03T12:45:54
2022-02-18T20:31:45
2022-12-08T03:32:59
104,450
1
0
23
Python
false
false
# Generated by Django 3.0.7 on 2021-01-26 08:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hlwtadmin', '0042_auto_20201203_1116'), ] operations = [ migrations.AlterField( model_name='concert', name='date', ...
UTF-8
Python
false
false
595
py
182
0043_auto_20210126_0833.py
150
0.581513
0.529412
0
23
24.869565
73
flyhigher139/geektime_ebook_maker
12,034,498,398,048
3b5e5492272bfbc140b90896bc75fc35daee12dd
1df13f93dbedaefc1cdfd0caf6085d6027120094
/geektime_dl/data_client/__init__.py
adf802368201b12dddd909e8724fe6db0b5c5261
[]
no_license
https://github.com/flyhigher139/geektime_ebook_maker
da88a0f4422fcb52bdb54a8c554628cf2f40ba5b
9d92e6b55411a6bc291ff1aa9c32fdf846001fca
refs/heads/master
2021-06-11T09:04:32.665398
2021-06-02T10:49:14
2021-06-02T10:49:14
152,719,193
5
1
null
true
2021-06-02T10:49:15
2018-10-12T08:32:19
2021-04-22T02:01:02
2021-06-02T10:49:14
410
5
1
0
Python
false
false
# coding=utf8 import json import os import functools import threading import time import atexit from tinydb import TinyDB, Query from tinydb.storages import JSONStorage from tqdm import tqdm from geektime_dl.data_client.gk_apis import GkApiClient from geektime_dl.utils import synchronized def _local_storage(table:...
UTF-8
Python
false
false
5,545
py
23
__init__.py
19
0.540413
0.53852
0
201
25.283582
79
danbok/city-places
5,385,889,001,188
048c01127381fa87a0d527201341312b32b5d10e
ce6337c0faef6f2b3a6635759a21ccf7ec3c2a87
/custom_auth_system/views.py
fa68572a6b0ebb73aec17e9c88ee6a7c3da089a4
[]
no_license
https://github.com/danbok/city-places
1e86c2c720c0f2a1b4d6a7580fe342e6bcec333a
4a545789dd511014c71622c77c10322e808d6752
refs/heads/master
2016-09-22T22:02:10.326239
2016-06-16T06:12:23
2016-06-16T06:12:23
61,266,361
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib.auth import logout from django.shortcuts import render def logout_user(request): logout(request) return render(request, template_name='static_pages/index.html')
UTF-8
Python
false
false
191
py
34
views.py
20
0.774869
0.774869
0
7
26.285714
67
jgera/Semantic-WoT-Environment-Simulation
16,320,875,752,657
63503dd158fb12a60a0528a4e2ccf8c086129caf
491b7696660f1f39f9cbcfcf6e4d1cfec9066630
/test/netuse/test_devices.py
05044b97786e83e3dbc9a9c1cd8c69f50d188df1
[ "Apache-2.0" ]
permissive
https://github.com/jgera/Semantic-WoT-Environment-Simulation
16cb940f3decefae352f048e78e5faca1c2fd94c
a91af1a65036b62a42ce1ae74b652ee2a5a7e651
refs/heads/master
2020-12-31T02:32:12.780345
2013-12-13T16:18:04
2013-12-13T16:18:04
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- ''' Copyright (C) 2012 onwards University of Deusto All rights reserved. This software is licensed as described in the file COPYING, which you should have received as part of this distribution. This software consists of contributions made by many individuals, listed below: @auth...
UTF-8
Python
false
false
2,360
py
112
test_devices.py
107
0.659178
0.590928
0
64
35.875
119
nurshahjalal/PyAPI
11,665,131,179,256
f32a86a337c63348e1a376061694109008f3e6b8
22553d5e0644f5ea1395b38684f5b8b928b0d983
/src/utilities/requestsUtilities.py
0dc9f7ec08256befea14d718e02681b1f1ae9d12
[]
no_license
https://github.com/nurshahjalal/PyAPI
e19df1dc7086ae51d400a4db80378e453bf24970
549c4a3c4e8033975a0f5d0f66704c2c92a2431e
refs/heads/main
2023-02-07T05:56:46.279428
2020-12-22T05:58:21
2020-12-22T05:58:21
323,529,723
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests import os from requests_oauthlib import OAuth1 from src.configs.host_config import API_HOST from src.utilities.credentialUtility import CredentialUtility import logging as logger class RequestUtility(object): def __init__(self): # get the ENV variable from environment if ENV is not set t...
UTF-8
Python
false
false
1,755
py
9
requestsUtilities.py
7
0.659259
0.65641
0
45
38
99
tingxin/SeleniumProjectTemplate
9,955,734,232,219
05c1c68b39f6e8b29e918efcfa6976717c31d1e7
54651258c3e8302fe0036d8e12c3595468cc54f7
/cases/workflow.py
065dbed84cda1597b7fdafa348f647fc3bceccdc
[]
no_license
https://github.com/tingxin/SeleniumProjectTemplate
60e5b2db88c6e7472d9c0cab5f852c97d2964b2c
d182aa48a1c45214968afb040b03ae159fa31e03
refs/heads/master
2020-06-10T17:16:43.876480
2016-12-08T09:55:52
2016-12-08T09:55:52
75,923,970
4
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from common.testcases import TestCases from selenium.webdriver.common.keys import Keys import time class WorkflowTestCases(TestCases): def test_search_many_times(self): print("Test searching in DevNet") driver = self.driver test_keys = ["deviot", "cmx", "aci", "sdn"] for i in rang...
UTF-8
Python
false
false
725
py
8
workflow.py
5
0.630345
0.627586
0
19
37.105263
85
RomAzhnak/Python
5,858,335,420,933
6b84e9ef0360b1eb49d28fe49a46f14507f6d6ee
ad9f3148f0a7d0205df7703ed92fb0650b5a7784
/socket_client_tcp.py
c13f05d55311a14ce2c2e1408ffb738981e2e0be
[]
no_license
https://github.com/RomAzhnak/Python
43e6dd4e721a1a33ff8c4d6ea02c1a620c25f08b
ad6cc5232920687d795c49047b0fd0a6143443b6
refs/heads/master
2023-06-07T11:44:26.960118
2021-06-23T18:31:07
2021-06-23T18:31:07
369,824,867
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect(('127.0.0.1', 8888)) msg = input("Message: ") msg = msg.encode(encoding="utf-8") # msg = bytearray(msg, 'UTF-8') sock.send(msg) sock.close()
UTF-8
Python
false
false
235
py
8
socket_client_tcp.py
7
0.659574
0.608511
0
9
24.111111
56
Guin-/translator
2,018,634,673,370
8deefc1b926dad5200939e4554f0ecaba99eb66e
ffdc3270b715c267c7731e323395e26fec0f8865
/translator/backend/serializers.py
9dcfd3f1d048bdffb4540d5605fcb649182ec02a
[]
no_license
https://github.com/Guin-/translator
2d4521395ba6822a9e1efd99dc3d819986b80063
b46b27333a49caf7ee454a07ebb38ec797c1dbd5
refs/heads/master
2021-01-20T18:58:50.248205
2016-08-23T16:19:02
2016-08-23T16:19:02
63,825,533
1
0
null
false
2016-08-23T16:19:03
2016-07-21T01:07:54
2016-07-21T04:26:35
2016-08-23T16:19:02
26
0
0
3
Python
null
null
from rest_framework import serializers from .models import Translation class TranslationSerializer(serializers.ModelSerializer): language = serializers.CharField(read_only=True) translation = serializers.CharField(read_only=True) class Meta: model = Translation fields = ('id', 'input_text'...
UTF-8
Python
false
false
363
py
17
serializers.py
11
0.732782
0.732782
0
10
35.2
77
gabriellaec/desoft-analise-exercicios
7,842,610,298,164
96d65390c3bdc7a4b198015c461270e40a32f8c7
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_301/ch14_2019_03_14_22_52_38_250667.py
e57d18830c507521c0edfb04dbfc36481deb3995
[]
no_license
https://github.com/gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def calcula_volume_da_esfera(R): y=(4*math.pi*R**3)/4 return y
UTF-8
Python
false
false
70
py
35,359
ch14_2019_03_14_22_52_38_250667.py
35,352
0.614286
0.571429
0
3
22.666667
32
lionheartStark/GCN-graduate-design
18,227,841,211,090
80b4e06edbe419e2af94df349bfcc684e06e35d0
dd4316123277f904adc1da5e1869e57bca144b71
/Elliptic_dataset_GCN.py
5fb87ee062709bbe4207d05e1988bbc38ba8b1b1
[ "MIT" ]
permissive
https://github.com/lionheartStark/GCN-graduate-design
2b98649d9669ac5ff5f8683530801fd08c7f26a5
a0da3bda3eaf2e9b447915dbc968dc21cfe07639
refs/heads/main
2023-03-13T14:54:22.570837
2021-03-02T01:16:07
2021-03-02T01:16:07
343,096,655
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # coding: utf-8 # <a href="https://colab.research.google.com/github/JungWoo-Chae/GCN_Elliptic_dataset/blob/main/Elliptic_dataset_GCN.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # # Bitcoin Fraud Detection System with GCN ...
UTF-8
Python
false
false
10,560
py
9
Elliptic_dataset_GCN.py
7
0.615814
0.601136
0
316
32.417722
234
Raghuvar/edyst_assignment
13,194,139,544,037
c0fc8057262a32e11c253c7a64af0e20c13d3c13
5d8a4445055ad5d88e13b73120d4e31a164a07dc
/flask_virenv/lib/python3.6/tempfile.py
ef7444d272e7475e2b99b29817aa7a3f1773bdb1
[]
no_license
https://github.com/Raghuvar/edyst_assignment
9bc452366682b8f5ba795abf0adf5428f2fc01f5
8b5dc6f54883192d04a8da01bf8f0b1aba9dcd76
refs/heads/master
2020-04-05T16:31:12.823164
2018-11-10T20:02:16
2018-11-10T20:02:16
157,016,395
0
0
null
false
2020-01-09T05:19:56
2018-11-10T19:56:59
2018-11-10T20:02:35
2020-01-09T05:19:54
9,471
0
0
1
Python
false
false
/home/raghuvar/anaconda3/lib/python3.6/tempfile.py
UTF-8
Python
false
false
50
py
49
tempfile.py
43
0.84
0.78
0
1
50
50
aholbrook03/pyopengl-example
2,869,038,156,136
b935291bd8bb210e56868a7b8965f46c3d050ca7
32d9a186a8054375ff0a20ba7faae132e3a3b15d
/etgg2801/robot.py
505f2f68621dc0c1caf07a86050415402cb81319
[]
no_license
https://github.com/aholbrook03/pyopengl-example
2fbf7b74154cad20641f4073a32278639c70a27f
ff73e3e97d58a074fca35a1847d3c4a191df624d
refs/heads/master
2021-08-22T07:18:33.720778
2017-11-29T15:46:35
2017-11-29T15:46:35
112,494,372
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# FILENAME: robot.py # BY: Andrew Holbrook # DATE: 9/24/2015 from OpenGL import GL from . import GLWindow, Vector4, Matrix4 class Joint(object): """Base class for all joint types (prismatic, revolute, etc). """ def __init__(self, partA, partB, axis=(0,1,0), offset=(0,0,0)): """Creates a joint link...
UTF-8
Python
false
false
5,268
py
11
robot.py
7
0.585801
0.540623
0
145
35.275862
85
abrarShariar/Algorithmic-problem-solving
11,441,792,924,870
bab14b3f89a7f90971f353ab5b461c5197ce17b4
d6d65c502c3fa3e6570355530db61b32527ff1b0
/python-linkedin/Ex_Files_python_dpatterns/Exercise Files/Ch02/02_06/singleton.py
ad582f0a09a77065fc8ae901acdb024d69fa6b2e
[]
no_license
https://github.com/abrarShariar/Algorithmic-problem-solving
f6b129e85e7120ec46faad9c3293b37db056211f
5649fa35352a1c468c2a935135f46202280575c0
refs/heads/master
2023-04-11T00:54:39.280958
2021-12-16T13:50:06
2021-12-16T13:50:06
49,055,600
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Borg: """The Borg design pattern""" # attribute dictionary _shared_state = {} def __init__(self): self.__dict__ = self._shared_state class Singleton(Borg): """The singleton class"""
UTF-8
Python
false
false
230
py
657
singleton.py
622
0.556522
0.556522
0
13
16.153846
36
muzammilafsar/Trailzz
8,486,855,383,549
f433413bc077775ed7d7764545fcfc6c3212a989
b7b495abf20c37506ff1a86839fb74a2a5cf75b6
/movie/views.py
aee23e8ee6968278c478635fe6db1140e1aff97d
[]
no_license
https://github.com/muzammilafsar/Trailzz
6e7eda05627b8cf04ca5c9773ab4cf3a417057b7
1435103a22a2d1f7ebbbe01766295be5d5147e21
refs/heads/master
2020-07-20T18:56:51.557444
2016-09-11T18:06:56
2016-09-11T18:06:56
67,941,788
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.views import generic from .models import Movie_Details # Create your views here. class Home(generic.ListView): template_name = 'movie/home.html' context_object_name = 'object_list' def get_queryset(self): return Movie_Details.objects.all()[::-1] class Detail(generic.DetailView): mo...
UTF-8
Python
false
false
379
py
22
views.py
13
0.712401
0.709763
0
13
28.230769
48
ulisesmx/exercises
2,456,721,304,768
daed40a235a56a96a1090d28f10f617822e75341
994333bed095004c9aac822ec19974f402aa4ea5
/legacy_code/bit_manipulation/flipping_bits.py
54b164451c939b5580fd0fc3a02652c01a4faadd
[]
no_license
https://github.com/ulisesmx/exercises
84c37526ceede9399a43b5cd9baa9c3e7b7643bc
fb2430e508ab7f9da79c3dae5ed98413c28a2536
refs/heads/master
2020-04-03T22:05:51.345706
2019-01-22T06:49:33
2019-01-22T06:49:33
56,024,774
1
0
null
false
2016-05-05T16:18:30
2016-04-12T02:37:58
2016-04-12T02:43:24
2016-05-05T16:18:30
19
0
0
0
Python
null
null
#!/bin/python t = int(raw_input()) sum_val = 2**32 for _ in xrange(t): print (~int(raw_input()) + sum_val)
UTF-8
Python
false
false
113
py
486
flipping_bits.py
486
0.566372
0.539823
0
7
15.142857
39
Bekbolot888/Hoome_Worke
17,214,228,947,997
aaaf8af8321efb0a02b516fdd2ab344dd6d597da
d1813b0217264057c867c23e70a6262586bbe2f3
/Warmup-1/monkey_trouble.py
7a088b96367d71903b657b650f7fa5ed9e0f2f26
[]
no_license
https://github.com/Bekbolot888/Hoome_Worke
7642dc769522cc9d5610e145f12b3144546a11c5
168f206101dc309f4157b89d4eb4751fe86951b3
refs/heads/master
2022-12-19T08:21:19.744052
2020-09-27T13:28:32
2020-09-27T13:28:32
297,949,833
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
a_monkey = bool (False) b_monkey = bool (True) print(a_monkey, b_monkey) if (a_monkey == True) and (b_monkey == True) or (a_monkey == False) and (b_monkey == False): print("we are in trouble") else: print("we are not in trouble")
UTF-8
Python
false
false
243
py
17
monkey_trouble.py
17
0.621399
0.621399
0
7
33
92
Gordey007/parserSuper
17,403,207,506,313
40377614df657c059a17dddd81f3e84110108fc2
aa247390a6500e4fcdb3686d8d27008cbcd3cdd5
/ParserSuperJob.py
a93d18ba35cbd5d4fb77501e84d93a56273945ec
[]
no_license
https://github.com/Gordey007/parserSuper
fa42aa4cdf282c1fa1ad0450fca1fd265b9ce348
4a20be401055196634962e8524da2b5d9b681672
refs/heads/master
2023-06-18T21:34:08.139164
2021-07-10T14:52:52
2021-07-10T14:52:52
305,690,272
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# use python ParserSuperJob.py from urllib.request import urlopen from urllib.parse import urljoin from urllib.parse import quote from lxml.html import fromstring import xlsxwriter ITEM_PATH = '._2CsQi ._2g1F- ._34bJi' ITEM_PATH2 = '._2CsQi ._2g1F- .YYC5F' PAGE = '._1BOkc' def parser_vacancies(): f = urlopen(ur...
UTF-8
Python
false
false
2,083
py
1
ParserSuperJob.py
1
0.637681
0.616692
0
71
27.183099
110
nameusea/pyGreat
7,696,581,412,514
c8907b1c04991a72ad375be9859448da8f1155b6
dd3f5a712dbab0d3c4f4526c64c08ba710f78b81
/use/ReinforceLearning/gymTest/tframe.py
d69e67c3f600c08c9e50517f4b6d817027adf9e6
[]
no_license
https://github.com/nameusea/pyGreat
3988ebcce3f80a7e458a20f9b2e3ccba368efcf8
dde8b6a1348620ffd3b2d65db3d5b4331e5c78be
refs/heads/master
2023-04-25T09:02:32.831423
2021-05-17T11:31:22
2021-05-17T11:31:22
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# gym环境类子类框架解读 import gym class TestEnv(gym.Env): # 元数据,用于支持可视化的一些设定,改变渲染环境时的参数,如果不想改变设置,可以无 metadata = { 'render.modes': ['human', 'rgb_array'], 'video.frames_per_second': 2 } # __init__():将会初始化动作空间与状态空间等环境所需的参量,便于强化学习算法在给定的状态空间中搜索合适的动作 def __init__(self): self.action_spac...
UTF-8
Python
false
false
1,344
py
414
tframe.py
317
0.603448
0.602371
0
39
22.820513
69
yimengliu0216/OctConv_DCGAN
17,231,408,827,575
1362394eafcd587c88fff0aacf23b1d31a5b6dc1
ae9db1e04077a24a2ca0f1ad7163d76cc2dd1419
/plot_time.py
f54e4d14e62bb08a529103927f42420fb8bacaa3
[]
no_license
https://github.com/yimengliu0216/OctConv_DCGAN
6ab47ec98331b60f7ed716c46066cdc8cb02566d
15da491b298db16c34af27dd110dacadebfb6117
refs/heads/master
2020-06-11T13:33:42.265583
2019-06-26T21:58:29
2019-06-26T21:58:29
193,982,994
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import matplotlib.pyplot as plt fig_time, ax_time = plt.subplots() num_epoch = 200 dcgan_time = [] dcgan_g_time = [] dcgan_d_time = [] dcgan_gd_time = [] dcgan_time_avg = 0.0 dcgan_g_time_avg = 0.0 dcgan_d_time_avg = 0.0 dcgan_gd_time_avg = 0.0 with open('time/dcga...
UTF-8
Python
false
false
1,853
py
1
plot_time.py
1
0.626552
0.619536
0
65
27.507692
89
macbre/wbc.macbre.net
7,095,286,003,588
0da77df582a02a4942169d686d50cd3dd3165d77
50c4b11cf0482c404505d1134a3d3f6744da1b6e
/app/wbc/models/__init__.py
56812e2bc91369854cefcff467368a82ed0d5dfe
[ "MIT" ]
permissive
https://github.com/macbre/wbc.macbre.net
1c647e18707340850f36c0c64a13bfc04103c6ec
68ccf6cd437f0dacf3cea6f0c02175efbd992237
refs/heads/master
2023-04-07T21:42:44.527275
2022-10-19T14:52:36
2022-10-19T14:52:36
63,534,115
0
0
MIT
false
2023-09-08T02:16:21
2016-07-17T13:48:25
2021-12-06T11:49:56
2023-09-08T02:16:18
505
0
0
6
Python
false
false
from .model import Model from .documents import DocumentModel from .issues import IssuesModel
UTF-8
Python
false
false
94
py
48
__init__.py
31
0.840426
0.840426
0
3
30.333333
36
WanliXue/BF_implemation
2,525,440,806,598
8682d05fdb4e92b4f069b8195e0d154dbf657278
a98c455a318ab2d47b10ef1aa195b7dfd1b5449c
/venv/lib/python2.7/site-packages/cvxpy/constraints/attributes.py
1def7c027982859b02aa1b7b0a9a1888a19f24c5
[]
no_license
https://github.com/WanliXue/BF_implemation
ddd463ed906e1f4ee0de492da48bc6de3574bfd0
211aa963f3be755858daf03fca5690d3c9532053
refs/heads/main
2022-12-26T07:04:05.280651
2020-10-13T02:08:55
2020-10-13T02:08:55
303,561,823
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Copyright 2017 Robin Verschueren This file is part of CVXPY. CVXPY is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. CVXPY is distribute...
UTF-8
Python
false
false
1,535
py
108
attributes.py
94
0.72443
0.721173
0
52
28.519231
87
claumariut/pythonCrashCourse_exercises
10,342,281,293,337
3ba18050b2256f5afe052d5e0ba94cab3a6d98e3
ed583e633544e0113413c606f6bc7ca5ad734c45
/Chapter 4. Working with Lists/foods.py
cc0a5ec38f0d1a5f6953ff6e8946aeaddcea6841
[]
no_license
https://github.com/claumariut/pythonCrashCourse_exercises
8b13b82ce9bda81d8435ad12a67b690fee366cba
1574c4a360591ff19c0da54cfcbad706a296625b
refs/heads/master
2022-12-22T03:10:52.134345
2020-10-01T20:52:27
2020-10-01T20:52:27
294,251,797
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
my_foods = ['pizza', 'falafel', 'carrot cake'] friend_foods = my_foods[:] # To copy an entire list. We have to use slicing # always. If not, the list is applied to # both variables. print('My favorite foods are:') for food in my_foods: print(food) print("\n My friend's favorite foods are:") for food in fri...
UTF-8
Python
false
false
531
py
94
foods.py
91
0.677966
0.677966
0
17
29.117647
76
yjyszzr/spider
1,640,677,539,254
0644c7f399abfdc51a66f2daecc61e422f3426e4
176c85e338cabd9a02ad21c11eff321609e3efce
/t_spider/dl_asia/dl_asia.py
8fd7beaabf60597a774f9b04b9ec3c198f23474c
[]
no_license
https://github.com/yjyszzr/spider
3ebb9d92d87b17cc353b018c1630e5c4541b5f6d
71d1a94d0f76884974fe5f153f55aef9fbb00bf2
refs/heads/master
2020-09-15T18:41:06.910701
2019-09-24T10:00:11
2019-09-24T10:00:11
223,529,689
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import os while True: try: print("爬虫马上启动....") os.system('scrapy crawl real_ya --nolog') print("爬虫已完毕,休眠5秒钟") time.sleep(5) except: print("异常错误稍后五秒重试!") time.sleep(5)
UTF-8
Python
false
false
244
py
117
dl_asia.py
111
0.654639
0.639175
0
12
15.25
43
Aleum/MiniGo
16,458,314,709,672
56a909080c4a9e38ebc5fc232963fdbd02313c95
3e75b15d582c801a168d3037f813a198da7b6152
/play_DCL/feature/utility.py
ab85ba6f6a42d62ab3d24432904fe747062d0478
[]
no_license
https://github.com/Aleum/MiniGo
db270ec485c4202a584a0a6dd6f27ab934614d7d
fe8d780c573e38e787ca935ffa9557a4ec5b32ac
refs/heads/master
2020-12-25T11:05:35.723433
2016-07-27T06:38:32
2016-07-27T06:38:32
61,085,318
3
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ utility.py """ import os import os.path from SGFGame import SGFGame def filenames_in(path, extensions): for entryname in os.listdir(path): entrypath = os.path.abspath(os.path.join(path, entryname)) entry_ext = os.path.splitext(entrypath)[1][1:] if os.path.is...
UTF-8
Python
false
false
1,379
py
83
utility.py
80
0.588832
0.583756
0
38
35.289474
133
kmulrey/particle_bias_test
1,803,886,273,706
8ed2c80a32e08b2b54e76af8bc3c2fd80529f609
41a936256682758d3583edecbbc6b1418912986d
/run_bias.py
c7a29f7df3987d2f30868bb1dc81d2cf320f1fce
[]
no_license
https://github.com/kmulrey/particle_bias_test
77fd3dfcf36223e5c4bbc54995051d506b30ba72
b8152db3e5b3b2b9fbe99cb965e80b57aa121fb9
refs/heads/master
2020-09-22T14:01:46.422078
2019-12-01T23:48:28
2019-12-01T23:48:28
225,231,026
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import check_bias_new19nov as bias import numpy as np import trigger path='/vol/astro3/lofar/sim/pipeline/events/' ''' for example: event number: 196034009 zenith=90-63.97 azimuth=307.92 core x=-105.58 core y=-46.23 ''' coreas_path='/vol/astro3/lofar/sim/pipeline/events/196034009/0/coreas/' zenith=26.0*np.pi/180 az...
UTF-8
Python
false
false
1,599
py
6
run_bias.py
5
0.749844
0.666041
0
57
27.052632
310
JanMalte/secondhandshop_server
4,621,384,832,681
23f25268d4b9bd8606da2595557ccb09cea06acb
178512c82b4b9513e44a8a692eca2fc50cee9b7d
/src/pos/tests.py
dbb2fd490556e7fa8d65cb0348a40c4a99e58fd1
[ "MIT" ]
permissive
https://github.com/JanMalte/secondhandshop_server
192d203a8b90673a555bf037bc81b634750ed6a9
879b6c5631c62bc8617c4290170e7cbd3ad6b31c
refs/heads/master
2020-04-05T22:47:05.344271
2019-03-04T08:46:41
2019-03-04T08:46:41
42,958,798
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib.auth import get_user_model from django.core.urlresolvers import reverse from django_dynamic_fixture import G from django_webtest import WebTest from events.models import Event from .models import Cart class CartAdminTest(WebTest): def setUp(self): self.event = G(Event, is_active=True...
UTF-8
Python
false
false
593
py
136
tests.py
80
0.703204
0.703204
0
20
28.65
74
13g10n/django.handbook
5,961,414,611,550
b9b00ea4977e995243c2b9b00c2a89740f78d23d
370d4f6e8d41a439f0afd99e406f4523b20afedf
/config/views.py
fe5de02b787595a26ccd25618ba6e663e07d63e0
[]
no_license
https://github.com/13g10n/django.handbook
15f39e1213d025a72682dbbd8c4c48a201b5bea0
e6e37704c0c58b17cea978a35ad5d969624ac07d
refs/heads/master
2021-08-11T08:41:22.402526
2017-11-13T12:28:11
2017-11-13T12:28:11
107,716,768
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib.auth import get_user_model from django.views.generic import TemplateView class TestView(TemplateView): template_name = "test.html" def get_context_data(self, **kwargs): context = super(TestView, self).get_context_data()
UTF-8
Python
false
false
261
py
52
views.py
50
0.724138
0.724138
0
9
27.777778
58
Ma-Jun-a/my_funny_exploration
6,914,897,361,339
c480364094f8de99c3627c38b6fba554047055f3
0a8dfb6e1b021a132bd1f256a03dfd3c50746a4a
/selenuim_.py/runner_test_.py
5c4c7e4c3861ba1d917ab62b503c8c7aa872e19b
[]
no_license
https://github.com/Ma-Jun-a/my_funny_exploration
54c71a9602a0f6cee6fbc2536d1e872ad766a543
e220e2dd18d843d21c77a2554335fbc011fe6a9d
refs/heads/master
2023-05-12T14:09:45.912442
2021-03-12T03:40:26
2021-03-12T03:40:26
207,444,731
0
0
null
false
2023-05-01T20:48:14
2019-09-10T02:10:17
2021-03-12T03:40:46
2023-05-01T20:48:13
125
0
0
1
Python
false
false
import unittest from utils.HTMLTestRunner import HTMLTestRunner class MytestCase(unittest.TestCase): def test0(self): print('当然') def test1(self): print('test1') suit = unittest.TestSuite() # suit1 = unittest.defaultTestLoader(uuuu,) suit.addTest(unittest.makeSuite(MytestCase)) ...
UTF-8
Python
false
false
465
py
78
runner_test_.py
73
0.668874
0.660044
0
18
23.277778
68
FifiTheBulldog/shortcuts-permissions
2,860,448,237,236
ac2a01645b933af16759d8b0c7da344314e3d4b7
c2719506930b056f2c9bafaf9e4672919b02f0d6
/scan_shortcut.py
a8224f8d2cc811856c18a7032be009c73d26904f
[ "MIT" ]
permissive
https://github.com/FifiTheBulldog/shortcuts-permissions
7001377350dcefd141265647b105184ea6d5326d
688e553a7906e78db855b92b75149528500cae51
refs/heads/main
2023-05-08T12:16:06.658936
2021-06-03T04:29:36
2021-06-03T04:29:36
343,220,498
6
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# scan_shortcut.py # # Exports scan_shortcut, a function that returns an array of permissions # for a shortcut. The function accepts a .shortcut file as a bytes object. import json import plistlib ACTIONS_PATH = "./actions.json" with open(ACTIONS_PATH) as file: action_list = json.load(file) def scan_shortcut(pl...
UTF-8
Python
false
false
804
py
14
scan_shortcut.py
9
0.664179
0.664179
0
29
26.758621
114
dr-dos-ok/Code_Jam_Webscraper
7,232,724,949,447
92e12d7ceb45ad8822386de166e5bc295b7ac848
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_207/683.py
1ce2365b57e9ac08be18246a000f65b2373998f4
[]
no_license
https://github.com/dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import numpy as np inFile = open('in.txt', 'r') outFile = open('out.txt', 'w') t = int(inFile.readline()) for test in range(1, t+1): N, R, O, Y, G, B, V = map(int, inFile.readline().split(' ')) ans = ['']*N available = {'R': R, 'Y': Y, 'B': B, ...
UTF-8
Python
false
false
1,441
py
60,747
683.py
60,742
0.489244
0.480222
0
55
25.2
64
Imrager/Family-Guy-Episode-Finder
14,027,363,205,332
e7f8da8a097e9b18b3e22f4af019b01465b92077
2519cf1e81b59deaaf17c6f830f39a8afa279ed1
/tunr_app/serializers.py
ab651f2daadc2fde1eee71e7a584f70b06d855d0
[]
no_license
https://github.com/Imrager/Family-Guy-Episode-Finder
9471c6806141eb5183a47dc49958f6d2310008dc
8f9d9451e5c413f6d3544e9b9f9d1971a8abe248
refs/heads/master
2023-01-10T13:22:20.268413
2019-06-18T17:05:04
2019-06-18T17:05:04
190,751,296
0
1
null
false
2023-01-03T23:38:07
2019-06-07T13:50:59
2019-06-18T17:05:13
2023-01-03T23:38:07
1,765
0
1
29
JavaScript
false
false
from rest_framework import serializers from .models import User, Review, Comment # class SongSerializer(serializers.ModelSerializer): # class Meta: # model = Song # fields = ('id', 'title', 'album', 'preview_url', 'artist') # class ArtistSerializer(serializers.ModelSerializer): # songs = Son...
UTF-8
Python
false
false
1,041
py
20
serializers.py
13
0.650336
0.650336
0
32
31.5
70
DanielBetancourt1/Reverse-Engineering-applied-to-a-MicroScribe-device-and-development-of-a-GUI
8,349,416,466,008
534ebc04f468b1479ccf17f39ed42f4bec963500
da3e06bc7862d301eec29ab9b928be96c0a5bfda
/Python project/Protocolo.py
a9471c250bc3c99a7f9450b085b495abb43b648a
[]
no_license
https://github.com/DanielBetancourt1/Reverse-Engineering-applied-to-a-MicroScribe-device-and-development-of-a-GUI
89bd4367f67e15560041af6f6f705b1fbc7671dc
ba0176c6b0046b054d0b59cea0d4e1efa36bc4bb
refs/heads/master
2020-05-29T19:25:02.652832
2019-05-30T21:02:36
2019-05-30T21:02:36
189,329,590
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# - This script function start communication with the MS by means of special commands defined for the MS, # some of this commands returns relevant information about the MS like physical parameters. import serial, time, sys import Maxes as Mx import PhysicalParameters as PhP try: # Link between Host and Mi...
UTF-8
Python
false
false
3,701
py
18
Protocolo.py
12
0.568219
0.555766
0
98
35.673469
105
db7777/python-practice
781,684,050,722
2fb9b4630c1aa4068932d652be02b8a0c3d74dda
f8410cc79645b7a7ef67132b92bbb945e7b0c43c
/csvread/cvsread.py
ac2ea34618c268aeb8a4b26db3f5d2eed5d80a91
[]
no_license
https://github.com/db7777/python-practice
85aab118b71b80c89f641d8429ecc29b0f6f7d17
acbbe7cbb05e18b9b566f4763083c7b6f9c73841
refs/heads/master
2016-08-07T02:00:17.388509
2015-08-30T15:15:20
2015-08-30T15:15:20
41,615,722
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! python3 __author__ = 'DB' import csv def readToList(): exampleFile = open('example.csv') exampleReader = csv.reader(exampleFile) exampleData = list(exampleReader) # the easies way to load into array print(exampleData) def readToIterate(): exampleFile = open('example.csv') exampleReader = c...
UTF-8
Python
false
false
477
py
2
cvsread.py
2
0.672956
0.67086
0
20
22.9
73
GRSEB9S/linconfig
5,772,436,066,136
1cb33417b2e8ee38ebf7081c1268423d85e0d938
79424b68bf129c5a5171494120f7e315a76180b3
/qgis/qgis2/python/plugins/profiletool/ui/ui_ptdockwidget.py
5f41812aacee07b58430411362ece027d2765d0c
[]
no_license
https://github.com/GRSEB9S/linconfig
a016937412662db878b0c923e5147f91875604b7
84bc9117bb8e6109ef7fd10bf73354d4cf148c36
refs/heads/master
2021-09-08T03:17:02.648452
2018-03-06T16:32:18
2018-03-06T16:32:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- #----------------------------------------------------------- # # Profile # Copyright (C) 2012 Patrice Verchere #----------------------------------------------------------- # # licensed under the terms of GNU GPL 2 # # This program is free software; you can redistribute it and/or modify # it und...
UTF-8
Python
false
false
6,256
py
168
ui_ptdockwidget.py
125
0.623561
0.609015
0
177
34.327684
109
wfs123456/GCANet
10,642,929,007,680
9ef8a33ca5d2645c4971c5c6ed26c6c6cf7483f6
623400be7830f222682dfb3ff4f8b20dbcf93284
/model.py
7ee7418f1ebefaa1f6c33ced22f83a29f29c323f
[]
no_license
https://github.com/wfs123456/GCANet
a30b955c01a27d1fbd2965261d1297bbd668c403
dfc9971a158100916c7a58ac88e1c7cd0e74faa7
refs/heads/main
2023-05-13T06:22:17.658150
2021-06-06T06:13:00
2021-06-06T06:13:00
373,827,845
5
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# _*_ coding: utf-8 _*_ # @author : 王福森 # @time : 2021/4/3 13:46 # @File : model.py # @Software : PyCharm import torch.nn as nn import torch.nn.functional as F from torchvision import models import torch import os def make_layers(cfg, in_channels, batch_norm=True): layers = [] # in_channels = 3 ...
UTF-8
Python
false
false
8,994
py
13
model.py
12
0.549733
0.500445
0
234
37.41453
125
AndreaCossio/sem2.0
10,651,518,923,520
2b039a9536f4fbd5197c614e49e35e831729be34
8230dba89f8392cb57fd7227d78be3a20157e336
/SEM 2.0/2.0.2/RADAR 0.2.py
9461bfa0efdaa27cd684e6e765163cc51e0bbd8b
[]
no_license
https://github.com/AndreaCossio/sem2.0
febfac72715e9a4834cae2c96adc691881bd7b07
c256a52b1b7af915d29750638125329bddfc86de
refs/heads/master
2020-04-13T05:15:49.003281
2017-08-04T07:54:54
2014-12-02T13:00:00
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import serial import time import pygame, sys from pygame.locals import * from pygame.color import THECOLORS import random pygame.init() pygame.display.set_caption('ARDUINO-PROJECT') screen = pygame.display.set_mode([600, 600]) screen.fill ([255, 255, 255]) class radar(): def __init__(self, x, y, color, radius, wi...
UTF-8
Python
false
false
4,400
py
24
RADAR 0.2.py
19
0.575909
0.546136
0
110
39.009091
178
diegord13/programas
13,013,750,914,227
65e2813aae5475b608a85300e75e950db75b9bee
cfd41ae22d3586ac247b1f3fc4e5946a71cb13f4
/Interfaz_grafica/raiz.py
c1e5e316d0722a515bbf2f95b04c7dc5cb15a44b
[]
no_license
https://github.com/diegord13/programas
c29d7fcfd3d43e45e073d3d7290fb4f7074bfa4b
cf402879047a0b65eddbff302537bd0b700d1067
refs/heads/master
2023-08-15T15:12:17.501460
2021-10-21T22:49:01
2021-10-21T22:49:01
407,954,837
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tkinter raiz = tkinter.Tk() raiz.title("mi programa") raiz.mainloop()
UTF-8
Python
false
false
79
py
78
raiz.py
72
0.721519
0.721519
0
7
10.428571
25
ActorExpose/prexploit
19,396,072,336,238
f6153e5ebcdd70faaca38f0f5e14b86545a50e9b
c795161c834b18b120e6c906a3618c5841e72b45
/prexploit/util/report.py
a4537dd04e344bedf8b1bcee4c36c77da4fbd82d
[ "Apache-2.0" ]
permissive
https://github.com/ActorExpose/prexploit
266151de9557d5e53eedc7c32a1cf077d0dff8c0
894a099dc4466526a1d66ae24755675b757b8bcf
refs/heads/main
2023-02-22T15:43:07.943431
2021-01-20T14:44:36
2021-01-20T14:44:36
331,435,177
1
1
Apache-2.0
true
2021-01-20T21:19:49
2021-01-20T21:19:49
2021-01-20T21:19:48
2021-01-20T14:44:59
280
0
0
0
null
false
false
import numpy as np from tabulate import tabulate class Report(object): def __init__(self): self.__report = {} @classmethod def from_dict(cls, dic): report = cls() report._Report__report = dic return report def __add_scores(self, cate, precision, recall, fscore): ...
UTF-8
Python
false
false
1,847
py
35
report.py
16
0.545208
0.543584
0
61
29.278689
75
krishSona/testbackend
154,618,848,039
863858aec2f2de10dc685e019768510c193687f2
4b87a0de0f43de2bde41f2590faac970c18fe482
/core/models.py
6893eef8672f9b0b2c3b3328b1c8cfee0c95287d
[]
no_license
https://github.com/krishSona/testbackend
d0bc325776537d9814b9022b3538b5e8a840e6a4
d87e050d02542c58876d4f81c2ea99815ab4160e
refs/heads/master
2023-04-08T01:26:42.070058
2021-04-03T06:08:54
2021-04-03T06:08:54
354,214,243
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import uuid from django.contrib.postgres.fields import JSONField from django.db import models from django.db.models import Q from dynamic_validator import ModelFieldRequiredMixin import utilities import datetime import calendar import math class Industry(ModelFieldRequiredMixin, models.Model): name = models.Cha...
UTF-8
Python
false
false
18,311
py
266
models.py
230
0.676861
0.665174
0
488
36.522541
104
RodenLuo/mummi-ras
1,047,972,056,379
66f229e70ed33797b2555e5121601929b3e6dac5
e48059f5f20b1b39893e6fb5fc8eccb4307be1bf
/mummi_ras/online/cg/baseFastSingleFrame.py
d36281d9779ba8477d3abbafe52898c7ba451eae
[ "MIT" ]
permissive
https://github.com/RodenLuo/mummi-ras
d99b48517398fd9211b0947ecc03715b37fca84a
e1524cf661be32ab97e00dd0424eda0338f3692b
refs/heads/main
2023-09-01T23:14:44.622819
2021-11-16T07:13:45
2021-11-16T07:13:45
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under th...
UTF-8
Python
false
false
11,726
py
79
baseFastSingleFrame.py
64
0.5927
0.586389
0
331
34.425982
135
HaroldMills/Vesper
592,705,504,951
c93205961fcaed46459efe3c2550db8ca66858d3
085488720112922ff3aed15f99f3c93911425c4a
/vesper/ephem/tests/scripts/create_usno_csv_files.py
6b78697ade38c6044ede0392d279b3687eaaa0d5
[ "MIT" ]
permissive
https://github.com/HaroldMills/Vesper
0b61d18bc241af22bfc251088fc87d72add6367b
ec92fe5231f54336499db189a3bbc6cb08a19e61
refs/heads/master
2023-07-05T22:45:27.316498
2023-07-04T11:58:14
2023-07-04T11:58:14
19,112,486
49
6
MIT
false
2023-02-14T16:09:19
2014-04-24T14:55:34
2022-12-26T00:18:32
2023-02-14T16:09:18
105,720
42
3
32
Python
false
false
""" Script that creates CSV files from a directory of USNO tables. The script assumes that every file in the input directory is either a rise/set table or an altitude/azimuth table. It creates two CSV files, one named "USNO Rise Set Data.csv" and the other named "USNO Altitude Azimuth Data.csv". """ import csv impor...
UTF-8
Python
false
false
3,987
py
540
create_usno_csv_files.py
446
0.600702
0.599197
0
145
26.468966
76
FLHCoLtd/hassio-ferqo-cc
14,731,737,862,513
ed152fb8573920c9ed40cfaab341c8af835c57f8
2dd568a0cf5a5aff965c2526c3488f4c148313f4
/scene.py
3b3c4fbf1f6482ffafd083c31ef9f227ffd96285
[]
no_license
https://github.com/FLHCoLtd/hassio-ferqo-cc
d44fa423a5c6a77abbdf98b92016ad2deadb4e2c
e1049be281551a503db90b0a431e585162c76a21
refs/heads/main
2023-04-09T17:11:29.885023
2021-04-14T01:40:53
2021-04-14T01:40:53
357,737,896
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from homeassistant.helpers.entity import Entity import logging from .const import DOMAIN async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): """Add the Sonoff Sensor entities""" # for device in hass.data[DOMAIN].get_devices(force_update = False): # as far as i know...
UTF-8
Python
false
false
2,001
py
20
scene.py
19
0.606197
0.605697
0
55
35.363636
86
mcneel/compute.rhino3d
876,173,378,174
9f13c9a93c8c0459ac12b7052638689201e86c75
91d5349ef6a8259ba0a551e70e37cb29d6817652
/src/ghhops-server-py/ghhops_server/params.py
02196b3b5ef5eaa57cd0a9efab2e8e90a37d26e2
[ "MIT" ]
permissive
https://github.com/mcneel/compute.rhino3d
641dc3e88f53d892f6b75ce14924a752ff949e5b
0acf93ae9aa520fbbfa64ee97f77088a9005f3d4
refs/heads/7.x
2023-08-28T03:41:04.618336
2023-08-23T18:11:47
2023-08-23T18:11:47
119,090,587
242
184
NOASSERTION
false
2023-08-23T18:11:49
2018-01-26T18:53:54
2023-08-05T19:45:28
2023-08-23T18:11:48
3,973
245
157
73
C#
false
false
"""Hops Component Parameter wrappers""" import json from enum import Enum import inspect from ghhops_server.base import _HopsEncoder from ghhops_server.logger import hlogger from pprint import pprint __all__ = ( "HopsParamAccess", # "HopsArc", "HopsBoolean", # "HopsBox", "HopsBrep", "HopsCircle...
UTF-8
Python
false
false
10,426
py
100
params.py
12
0.56244
0.557357
0
416
24.0625
79
jdariasl/prueba
2,473,901,198,981
a92bebe8d0013a6b55c9cbc992b33ddfff4d5f91
20ac3af659da6f12d359fd889fd0e80565d2219f
/_build/jupyter_execute/content/Clase 08 - Modelos de Mezclas de Gausianas.py
7983439718e61f33c238a7cb7d69c98f1914051f
[]
no_license
https://github.com/jdariasl/prueba
a1b07a64f71325bd1653d0be839f7e265451a0b6
c920bf3ca11dc4ddaebed37d4dc5fa038b614a61
refs/heads/master
2022-12-23T12:39:13.729297
2020-10-03T02:14:17
2020-10-03T02:14:17
300,769,714
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Modelos de Mezcla de Funciones Gaussianas # ### Julián D. Arias Londoño # # Profesor Asociado # Departamento de Ingeniería de Sistemas # Universidad de Antioquia, Medellín, Colombia # julian.ariasl@udea.edu.co # Hasta el momento hemos visto que existen dos posibles ap...
UTF-8
Python
false
false
17,353
py
66
Clase 08 - Modelos de Mezclas de Gausianas.py
34
0.689761
0.666744
0
367
45.986376
639
silvanaolmedo/opencv
12,137,577,601,222
6511035b08406aed3f9cd2701238fe652c698cd8
9f469b22e57aac3853da16b8d35637063aecabc7
/src/filters/affine.py
6ac8f550a5a13adc5330341d2bb2403621d9bafe
[]
no_license
https://github.com/silvanaolmedo/opencv
d019cb50ee27a75474743d94bc922254d124e93c
bb9f92e6ed8a4b0eec81376bddb96b11503db07e
refs/heads/master
2021-01-25T07:55:25.012702
2017-08-24T02:06:28
2017-08-24T02:06:28
93,688,917
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import numpy as np #Lee imagen gatito.jpg img = cv2.imread('gatito.jpg') #Muestra imagen gatito cv2.imshow("Original", img) #Define una alto y largo para la imagen height, width = img.shape[:2] img_sized = cv2.resize(img, (width/2, height/2)) cv2.imshow("Resized", img_sized) translation_matrix = np.float3...
UTF-8
Python
false
false
504
py
19
affine.py
19
0.728175
0.676587
0
20
24.25
80
DaKSK/pythonSDA
8,873,402,450,064
d681df4d113f8c7e277b648425a1e347365695b4
478da9de91189c9a0b3640e1d47f656066f525ac
/data_structures/tree_exercise.py
ba469d07ded9aa11a5db79abe9fd9ff2cbbcdc02
[]
no_license
https://github.com/DaKSK/pythonSDA
1055e4deca94e19512f79bc3d30c99475c2b4249
7a3ffe17acd738fdd11f6c7a0491dec16f506690
refs/heads/main
2023-07-03T19:30:27.650156
2021-07-31T05:57:30
2021-07-31T05:57:30
365,681,074
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class TreeNode: def __init__(self, name, size=0, is_directory=True): self.data = {"name": name, "size": size, "directory": is_directory} self.parent = None self.children = [] def __repr__(self): return self.data["name"] def add_child(self, child): child.parent = sel...
UTF-8
Python
false
false
2,104
py
51
tree_exercise.py
46
0.590779
0.583175
0
67
30.373134
87
ESA-VirES/ViRES-Server
8,169,027,824,530
2bdc383567a883a792b4113a9652f3dc9a320dc8
97b9e6f984684e8c0fc6b0c7e76caefc5079e5c8
/vires/vires/processes/util/filters/range.py
8a42affbb3715b3aac3491aeef4e035c0a8f8dfe
[]
no_license
https://github.com/ESA-VirES/ViRES-Server
d65cbf7b62a1457f26e7595b25466559f3b6b590
bee4167fbed6c689d7c46c34224561a281ee6a2b
refs/heads/master
2021-04-22T05:00:57.065728
2021-04-15T17:11:22
2021-04-15T17:11:22
48,378,505
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#------------------------------------------------------------------------------- # # Data filters - scalar and vector component range filters # # Authors: Martin Paces <martin.paces@eox.at> #------------------------------------------------------------------------------- # Copyright (C) 2016 EOX IT Services GmbH # # Pe...
UTF-8
Python
false
false
4,542
py
21
range.py
14
0.598855
0.595993
0
122
36.229508
80
vesteves33/cursoPython
910,533,074,187
c44f71c8a332a0748b89fb52a0730efef8b994aa
cfa63ebda7709d3aa15a778f17fa83cf973c046c
/Exercicios/ex052.py
f0a52d35084866907942bd24afceae5b15f1a017
[]
no_license
https://github.com/vesteves33/cursoPython
7fef2a8cc120f6a879badf8aba2203907463519e
9513a1ecd00193cc650df352db7c33d9c8abfaa7
refs/heads/main
2023-03-21T02:23:29.391563
2021-02-23T20:59:48
2021-02-23T20:59:48
328,348,873
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
num = int(input('Digite um número inteiro: ')) totalContagem = 0 for contador in range(1, num+1): if num % contador == 0: totalContagem += 1 if totalContagem == 2: print('Número {} é primo'.format(num)) else: print('Número {} não é primo'.format(num))
UTF-8
Python
false
false
282
py
69
ex052.py
67
0.623188
0.601449
0
10
26.7
46
higornucci/classificacao-aulas
3,504,693,323,584
401f084771e500f1881fb875133112fe2cb7ecec
132373547f88d59cd87d8f99b81d9df1e306c1e4
/handson/housing.py
96514948ab81f1c108b034331367d1b67e010459
[]
no_license
https://github.com/higornucci/classificacao-aulas
be117acd0907b044fed5aaccbf147c82c28cb39b
1dfdc15c6ddbfa7ba5217f63d6d43c73b3b4bb0b
refs/heads/master
2021-06-04T03:30:54.553705
2020-06-18T22:40:37
2020-06-18T22:40:37
110,111,682
5
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import division, print_function, unicode_literals import os import tarfile import warnings import matplotlib.pyplot as plt import numpy as np import pandas as pd from six.moves import urllib from future_encoders import ColumnTransformer, OneHotEncoder from sklearn.linear_model import LinearRegression ...
UTF-8
Python
false
false
11,301
py
86
housing.py
29
0.71359
0.701549
0
308
35.672078
111
Cornex-Inc/Coffee
9,826,885,178,144
d31292a1af2ea2bd80b27eb0ba0b626d36bc2742
7deda84f7a280f5a0ee69b98c6a6e7a2225dab24
/Radiation/views.py
310906cad23ae433ea4cc5a41883be3cf74c5547
[]
no_license
https://github.com/Cornex-Inc/Coffee
476e30f29412373fb847b2d518331e6c6b9fdbbf
fcd86f20152e2b0905f223ff0e40b1881db634cf
refs/heads/master
2023-01-13T01:56:52.755527
2020-06-08T02:59:18
2020-06-08T02:59:18
240,187,025
0
0
null
false
2023-01-05T23:58:52
2020-02-13T05:47:41
2023-01-05T19:41:25
2023-01-05T23:58:51
66,217
1
0
45
Python
false
false
from django.shortcuts import render,redirect from django.http import JsonResponse from django.contrib.auth.decorators import login_required import functools import operator from django.db.models import Q,Case,When, CharField,Count,Sum from .forms import * from Laboratory.forms import * from .models import * # Create...
UTF-8
Python
false
false
7,919
py
415
views.py
267
0.583533
0.583407
0
216
35.666667
158
project-rig/pynn_spinnaker
11,544,872,097,212
42d35ba0d557f1d059562fe3e3bbc8bf14c37341
c2dec05f3eb894e616acadd4e3c30ac697fd2656
/pynn_spinnaker/spinnaker/regions/__init__.py
f2b56ef349325633d6e113e4842b934c63cc046d
[]
no_license
https://github.com/project-rig/pynn_spinnaker
da1ee4c52dbf0015cec0a5f2676f4e031032848d
89e9bdba78157804f491948bd3d630101d7b9cb6
refs/heads/master
2020-04-09T16:52:06.658914
2016-12-19T14:14:37
2016-12-19T14:14:37
31,414,869
0
2
null
false
2016-12-19T14:12:17
2015-02-27T10:39:38
2016-10-28T09:48:17
2016-12-19T14:12:16
1,824
0
3
19
Python
null
null
from analogue_recording import AnalogueRecording from connection_builder import ConnectionBuilder from delay_buffer import DelayBuffer from extended_plastic_synaptic_matrix import ExtendedPlasticSynapticMatrix from flush import Flush from homogeneous_parameter_space import HomogeneousParameterSpace from input_buffer im...
UTF-8
Python
false
false
951
py
112
__init__.py
105
0.883281
0.883281
0
20
46.55
74
lse13/Question2-
14,199,161,895,800
fa9693f1bc1478134a4cedd9d5c2e7979b6d3bba
d644e45fcf3b1e9ab1afa71a0f2e657ee77a755c
/ex1.py
5d1cbae1b2c29255c20598dc720c472bb0eefffc
[]
no_license
https://github.com/lse13/Question2-
f3b30b2d786f4c1c86e55bb0702605469bd32e00
a38484308babd5894a147d898db339b5a80f3553
refs/heads/master
2020-08-30T04:40:39.029858
2019-10-29T11:03:24
2019-10-29T11:03:24
218,266,429
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Exercise 1: Work with the person next to you to design # classes to manage the products, customers, and purchase # orders for an online book store such as amazon.com. # Outline the data attributes and useful methods for # each class. You can discuss and create the outline together. class Amazon_orders(object):...
UTF-8
Python
false
false
666
py
1
ex1.py
1
0.717718
0.716216
0
23
27.826087
63
suritechiez03/IMS_Python
1,786,706,420,686
f4c2434ccc80a8fdd6b16a7312631031aa8f3045
40fd858c4a7b08b02e1030fe33f9e6541d67b8c6
/ordermanagement/urls.py
98160b1b3b1d39468db35d0e9ad2ebed4d23e7db
[]
no_license
https://github.com/suritechiez03/IMS_Python
366ac1ae6a5309ebc2a7c2686a16320235dfdd99
1280cd49f8a1d8b3a1a815ddf53f2f18ea10b0a9
refs/heads/master
2021-05-10T08:42:02.362882
2018-09-10T09:28:41
2018-09-10T09:28:41
118,899,316
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^api/save_order$',views.save_order, name="save_order"), url(r'^api/get_order_list$', views.get_order_list, name="get_order_list"), url(r'^api/get_order_details/(?P<order_number>[0-9]+)/$',...
UTF-8
Python
false
false
560
py
84
urls.py
62
0.671429
0.667857
0
13
42.153846
120
bopopescu/dbfinal
9,191,230,052,159
19b8672e96c94215a52120366308b079c3a01ba0
4d063e7bec6226c34cab2233d6e3e84d146ffaa3
/gtmd/models/Order.py
3e832a7839353edc748ff9aa8f4ef50804a10114
[]
no_license
https://github.com/bopopescu/dbfinal
9e3b4fd405fb6ec5b2b99d5151693b226d0799d8
02b17b3f5e492d6392077cddc2872f574c3fa833
refs/heads/master
2022-11-19T23:15:42.912480
2019-12-31T15:46:10
2019-12-31T15:46:10
281,665,426
0
0
null
true
2020-07-22T12:00:53
2020-07-22T12:00:52
2019-12-31T15:46:13
2019-12-31T15:46:11
41,294
0
0
0
null
false
false
from gtmd.app import db import datetime class Order(db.Model): # 订单id order_id = db.Column(db.String, primary_key=True, index=True, nullable=False) # 用户id buyer_id = db.Column(db.String, index=True, nullable=False) # 商店id store_id = db.Column(db.String, index=True, nullable=False) # 创建时间 ...
UTF-8
Python
false
false
568
py
33
Order.py
24
0.694444
0.694444
0
17
30.764706
86
freelawproject/juriscraper
11,501,922,452,240
dcd2dc30acb601dfd4f58df80a071fe2220609be
362196f32e8248e025cb2f6cf0b88f812c9a059c
/juriscraper/opinions/united_states/federal_appellate/ca9_u.py
9b65804cd9453cb372e89d3694e4c87ee25a7184
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
https://github.com/freelawproject/juriscraper
0fea8d4bb512808cb1e036aaaf819e9cc0847a6b
d2c6672696e13e33ec9981a1901b87047d8108c5
refs/heads/main
2023-08-09T13:27:21.357915
2023-07-06T22:33:01
2023-07-06T22:33:01
22,757,589
283
97
BSD-2-Clause
false
2023-09-08T22:59:36
2014-08-08T12:50:35
2023-09-08T16:49:38
2023-09-08T22:59:36
53,996
287
81
87
HTML
false
false
""" History: - 2014-08-05: Updated by mlr because it was not working, however, in middle of update, site appeared to change. At first there were about five columns in the table and scraper was failing. Soon, there were seven and the scraper started working without my fixing it. Very odd. - 202...
UTF-8
Python
false
false
683
py
4,602
ca9_u.py
327
0.666179
0.63836
0
18
36.944444
79
kirina001/musicPytest
7,602,092,136,731
77b731d71920ac37a473e39e9f22348aa67349c6
2177cad4601dff84ce9e9f6ccd59051a5c4fc5dd
/test/test01app.py
9fc9dadf03c6464f57e48bd8df8db5c5dc41687b
[]
no_license
https://github.com/kirina001/musicPytest
4eaaae63547fe7e48d5040f3202bb6a2ab2cd6ce
cb3e488be7fa7b7036a169029eb095866773eb48
refs/heads/master
2020-07-12T17:09:04.260323
2019-08-28T07:32:55
2019-08-28T07:32:55
204,869,970
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: UTF-8 -*- conf = { "platformName": "Android", "platformVersion": "6.0.1", "deviceName": "127.0.0.1:7555", "appPackage": "com.FreshAir", "appActivity": ".activity.WelcomeActivity", "noReset": "true", "unicodeKeyboard": "true", "resetKeyboard": "true" } c = eval(str(conf)) ...
UTF-8
Python
false
false
335
py
26
test01app.py
24
0.58209
0.540299
0
15
21.333333
47
Davies-Sam/Genetris
4,569,845,230,733
6ce3b8140178ab76be6cdafbf7200460f95f2bc3
38fb7643782351fa9fab631aac6037ba63f82a59
/tetris.py
f53c7e9677b174128d6ab8ec8ff61e8f1da5bd47
[ "MIT" ]
permissive
https://github.com/Davies-Sam/Genetris
c2f2589414fc08e560d5ce3fafb7d445fb3b0203
1d46d2d975baffd7c08933170ed0cc744b8e00a2
refs/heads/master
2021-06-22T03:05:22.816896
2021-05-27T23:56:51
2021-05-27T23:56:51
222,779,924
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import pygame, sys from copy import deepcopy import numpy CELL_SIZE = 30 COLS = 10 ROWS = 22 MAXFPS = 30 PIECELIMIT = float("inf") DROP_TIME = 60 DRAW = True tetris_shapes = [ [[1, 1, 1], [0, 1, 0]], [[0, 2, 2], [2, 2, 0]], [[3, 3, 0], [0, 3, 3]], [[4, 0, 0], [4, 4, 4]], [[0, 0, ...
UTF-8
Python
false
false
9,665
py
6
tetris.py
4
0.636213
0.608898
0
332
28.111446
201
mydear33000/Person-Reid
19,610,820,701,955
3b88142fba6095908d6bac6f98dea0143537c6c8
a82fe21d1027b1a7aa9647af63e76bc80f2f575c
/scripts/attrconf.py
b449fbcb15341bf26b5fa2c668e948a8d512cc77
[ "MIT" ]
permissive
https://github.com/mydear33000/Person-Reid
4b99ae3b39aacee4361176ea6d36ac100e41c5a6
0aad210d370737ec8654972d509ad848b22f6ee6
refs/heads/master
2017-05-12T08:29:37.359631
2014-03-07T15:54:11
2014-03-07T15:54:11
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python2 # -*- coding: utf-8 -*- # datasets = ['CUHK', 'CUHKL', 'CUHKD', 'GRID', 'PRID', 'VIPeR', '3DPeS', 'SARC3D'] datasets = ['3DPeS', 'SARC3D', 'CUHK_01', 'CUHK_02', 'CUHK_03', 'CUHK_04', 'CUHK_05', 'CUHK_07'] names = [ 'genderFemale', 'genderMale', 'ageChild', 'ageYouth', 'ageMiddle...
UTF-8
Python
false
false
4,844
py
54
attrconf.py
35
0.666804
0.663088
0
154
30.454545
239
demo112/1807
14,817,637,192,745
065ae040b22eb5404aaaa28adaba45cca1642008
bf397e60bba27b649084966aee686869c7df595d
/PythonNet/day09/day9/thread_server.py
149f4b89af80e3e479a6378481bf0c2461dffce5
[]
no_license
https://github.com/demo112/1807
3783e37f7dab3945a3fc857ff8f77f4690012fbe
9b921c90b3003226d919017d521a32da47e546ad
refs/heads/master
2022-12-01T10:50:24.086828
2018-12-06T09:48:14
2018-12-06T09:48:14
150,758,323
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from socket import * import os,sys from threading import * HOST = "0.0.0.0" PORT = 8888 ADDR = (HOST,PORT) #客户端处理函数 def handler(connfd): print("Connect from",connfd.getpeername()) while True: data = connfd.recv(1024).decode() if not data: break print(data) connfd...
UTF-8
Python
false
false
705
py
350
thread_server.py
263
0.584435
0.565345
0
36
17.888889
46
Phoenicians-2020/barter-2020
4,569,845,249,594
98a1e24f37e5548c6962297bfa6aff1c46da7d86
7ae1f55ad577831316d27caa6c9dd7d99521d538
/users/admin.py
fa0719033df8d39538bf2fbf0371c3e7ab99fcd2
[]
no_license
https://github.com/Phoenicians-2020/barter-2020
51ca701aedebe0ec11d30edbea9b197c25d75db3
efd235ba2f3cf3ad7fdee85f230a1c3f530aa264
refs/heads/master
2022-11-25T06:07:11.178513
2020-07-30T06:34:47
2020-07-30T06:34:47
281,867,116
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from django.contrib.auth import get_user_model from users.models import ( Profile, Interests, User ) @admin.register(Profile) class ProfileAdmin(admin.ModelAdmin): list_display = ["id", "user", "gender", ] search_fields = ["user__name", "user__email"] @admin.reg...
UTF-8
Python
false
false
657
py
23
admin.py
19
0.674277
0.674277
0
27
23.333333
65
kanatnadyrbekov/Ch1Part2-Task-17
17,910,013,628,071
cd98b77f7b44f64495f7221e320b8f7967830e9b
1012238136c7fd2e2ed5e0f1271ce93b8576279b
/task17.py
42d818cecfa2dbb3341d461a5314c373249705cd
[]
no_license
https://github.com/kanatnadyrbekov/Ch1Part2-Task-17
6f380aa5024e82f4e71c2554b744d9bec1427ff6
18c398cd31a894db3b7aa7244bc14c27e790168b
refs/heads/master
2020-12-02T01:49:45.815116
2019-12-30T04:40:44
2019-12-30T04:40:44
230,848,490
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Write the code which will write excepted data to files below # For example given offices of Google: # 1) google_kazakstan.txt # 2) google_paris.txt # 3)google_uar.txt # 4)google_kyrgystan.txt # 5)google_san_francisco.txt # 6)google_germany.txt # 7)google_moscow.txt # 8)google_sweden.txt # When the user will say “Hell...
UTF-8
Python
false
false
1,457
py
1
task17.py
1
0.586611
0.576259
0
45
31.222222
76
LopesAbigail/intro-ciencia-computacao
3,788,161,207,111
f53a6ab7c6ae22246ab69f7b9d1faf2a941ef065
8e7f63c9c4f9da6bdd2ed23a38e912400c8e4097
/Tests/raizQuadrada.py
1542303574f2d79e5f16301e3348c2ece860208e
[]
no_license
https://github.com/LopesAbigail/intro-ciencia-computacao
3e339c6778734bded8c3830a4d6100b1110887a4
ca85640ee5c415bdb4b86af64189b5761b4d9c30
refs/heads/main
2023-03-16T09:39:12.626005
2021-03-10T14:27:26
2021-03-10T14:27:26
345,622,914
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math a = int(input("Insira um valor para A: ")) b = int(input("Insira um valor para B: ")) c = int(input("Insira um valor para C: ")) delta = (b**2)-4*a*c if (delta >= 0): x1 = (-b + math.sqrt(delta)) / (2*a) x2 = (-b - math.sqrt(delta)) / (2*a) if (delta == 0): print("A equação possui ape...
UTF-8
Python
false
false
548
py
67
raizQuadrada.py
66
0.58473
0.564246
0
17
30.588235
89
affinitic/fbk.policy
15,367,393,025,151
5d5da09eac746454d64be0bea33a1b2466b6a0f3
de645aaf06af4cc87e10e599434a306555e055d6
/src/fbk/policy/content/members.py
abecd5f1c37cceffcd27ff9879607e49ed513be0
[]
no_license
https://github.com/affinitic/fbk.policy
205c6bc34e5ff1a7940eaacf0fa8a96015cfaa69
8d3d9a9b4b367d2afc063b5cac1fe318148161ae
refs/heads/master
2016-09-15T21:18:15.113156
2016-03-15T20:23:56
2016-03-15T20:23:56
39,332,229
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ fbk.policy ---------- Created by mpeeters :copyright: (c) 2015 by Affinitic SPRL :license: GPL, see LICENCE.txt for more details. """ from collective.contact.core.content.directory import Directory from collective.contact.core.content.directory import IDirectory from five import grok from ...
UTF-8
Python
false
false
799
py
83
members.py
46
0.758448
0.75219
0
31
24.774194
79
Amos-x/Operation
1,133,871,392,966
debb9f0cf6b6bd7838a6c7498f95ce09da8528a2
96c24d4d8b620104ac7ea4ecd31610203bb4b6f6
/apps/assets/forms/domain.py
257f5a1ee5f442514cea644af583f87757b9d47f
[]
no_license
https://github.com/Amos-x/Operation
7bd7ef0582e0e700ff9a40c7d47ab435425185bf
274ab76ad2af79f47aa01f7b35992eef76d59a29
refs/heads/master
2020-03-28T18:18:50.409056
2019-04-16T11:13:45
2019-04-16T11:13:45
148,870,418
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding:utf-8 -*- # __author__ = Amos # Email = 379833553@qq.com # Create_at = 2019-03-05 14:19 # FileName = domain from django import forms from django.utils.translation import gettext_lazy as _ from assets.models import Domain, Asset, Gateway from .user import PasswordAndKeyAuthForm __all__ = ['Domai...
UTF-8
Python
false
false
2,036
py
103
domain.py
99
0.58
0.5685
0
65
29.769231
79
hainingpan/SPT
7,610,682,080,244
d1d6078043c9c51b18e98a4b74c8a8a53078c8d2
dbef1e401d443e17e484f7e0f87d8c9b556bb98f
/MI_LN_CI.py
326f9c2a466176e79a9ac44302bd42f91f50ae33
[]
no_license
https://github.com/hainingpan/SPT
cd67222bc513ed475974626b91cd26b089e0464f
fe1b465462fd93ca247dfd5ed56ddec416cba8e7
refs/heads/master
2023-07-30T12:38:22.760225
2021-09-24T15:27:16
2021-09-24T15:27:16
353,170,894
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from Chern_insulator import * import matplotlib.pyplot as plt import argparse import pickle import numpy as np import time from mpi4py.futures import MPIPoolExecutor from copy import copy def run(params_init,subregionA,subregionB,subregionAp,subregionBp,Bp): params=copy(params_init) params.measure_all_Born(sub...
UTF-8
Python
false
false
2,806
py
53
MI_LN_CI.py
33
0.638275
0.629366
0
80
34.075
138
gehuangyi20/random_spiking
13,632,226,219,867
b3d78c87acb2af2f2bfe6e00f388db32db93fdfe
11f810f2cf7d875e2d974ebe703831b7c66822da
/RsNet/compute_adv_diff_vs_tran_cross.py
95daf237784e4c7e20ffa3241c22dd17112cc982
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/gehuangyi20/random_spiking
7ca0a5ead3a617dfe3693c9e68bbcdb3cf6b0990
c98b550420ae4061b9d47ca475e86c981caf5514
refs/heads/master
2021-04-09T20:54:17.834219
2020-03-21T23:05:00
2020-03-21T23:05:00
248,879,259
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 import os import json import csv import argparse import numpy as np import re parser = argparse.ArgumentParser(description='create table for adv_diff vs transferability cross methods.') parser.add_argument('-d', '--dir', help='directory, required', type=str, default=None) parser.add_argument('-c',...
UTF-8
Python
false
false
3,743
py
69
compute_adv_diff_vs_tran_cross.py
53
0.580283
0.576543
0
104
34.990385
111
hanskamin/music-inference
13,709,535,641,081
12d676862d020b0f577e811c78fe7ab7ed8f9a3b
335cc9ec1aa397431616c6a44e815d358fe1c815
/onto_utils.py
b56bdced450b421885e2c74f8773944a6048b42c
[ "MIT" ]
permissive
https://github.com/hanskamin/music-inference
ab9fcdf4a087618cc1da39007364619835db04a9
5b7830561d8538de10a3c8fe5a140b0b7892e604
refs/heads/master
2020-05-26T04:18:02.830067
2019-06-12T01:53:37
2019-06-12T01:53:37
188,100,036
0
0
MIT
false
2019-06-07T17:24:01
2019-05-22T19:21:00
2019-06-07T00:06:46
2019-06-07T17:24:00
38,348
0
0
2
Python
false
false
""" This module will query the OWL Ontology based on a user's inputted genre to select a set of instruments as midi program integers """ import owlready2 as owl from music21 import instrument def load_ontology(): return owl.get_ontology("root-ontology.owl").load() def get_genre_map(ontology): genres = ...
UTF-8
Python
false
false
1,686
py
11
onto_utils.py
8
0.697509
0.691578
0
47
34.87234
76
kjhcode/2021
16,398,185,158,759
25dc35f6f4cb7415df59ec51fcb3fdd397947b9a
3eed03943877231dbbb50c98c6d27af6fa98b387
/142-한학기내신등급산출.py
8ad5040da7ea4635f5ea414b4f3f8469b4fd7ad6
[]
no_license
https://github.com/kjhcode/2021
22bbbc552274ae0bb6fd4d27b151f6b08260ae16
0a57c7c2456f2a022bd533ce0fb92992b31cef23
refs/heads/main
2023-08-28T17:12:53.336111
2021-10-05T08:25:06
2021-10-05T08:25:06
413,659,546
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print("[내신 등급 계산 프로그램]") myGrade = 0 totUnit = 0 totGrade = 0 subjectCount = int(input("과목 수: ")) for i in range(subjectCount): print(i+1, end=" ") unit = int(input("과목 단위 수: ")) grade = int(input("석차 등급: ")) totUnit += unit #-> 단위수합=단위수합+단위수 totGrade += grade*un...
UTF-8
Python
false
false
688
py
9
142-한학기내신등급산출.py
7
0.526502
0.515901
0
20
25.7
64
malhotraa/aoc2020
1,700,807,080,130
49dcd2ffdcc7c08f7c45b9b08117b71c5d1f71ef
607eb192347f05c0af64912724f29de8ae47229f
/day12/solution.py
19b35055aeb395cb7d85b68773d1e672ab3f63e9
[]
no_license
https://github.com/malhotraa/aoc2020
5ca5862d0158c4289b33a23db7fc11616d78328b
0ad03c54f273604ac9ff091e9d43a209815b9861
refs/heads/main
2023-02-04T17:12:43.709446
2020-12-25T15:31:46
2020-12-25T15:31:46
318,332,585
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
with open('input.txt') as f: lines = f.read().split('\n') def normalize_orientation(theta): while theta <= -180: theta += 360 while theta > 180: theta -= 360 return theta def part1_manhattan(lines): dir_to_xy = { 'N': (0, -1), 'S': (0, 1), 'E': (1, 0), ...
UTF-8
Python
false
false
2,174
py
29
solution.py
25
0.436983
0.396504
0
83
25.204819
85
SimonGuillot/scilang
11,287,174,065,323
af3723071a9d8777167a1fe12faf9d9f12598cbd
e25a704fd0e751369b662daf5876f3c306839afc
/S3 morpho/main.py
1d9fb27ad62a2d4cfeb536218d9a7f50c8645b78
[]
no_license
https://github.com/SimonGuillot/scilang
c25d24426c69beae50e4a7583c1d2fb71e2e3b3d
f94d81a3fc6435bcb99a6ed89964ec7543d7f85b
refs/heads/master
2020-04-24T15:12:08.770432
2019-04-14T16:39:46
2019-04-14T16:39:46
172,056,468
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import re import yaml def get(path): test_value=path[0] print(test_value) #print(dictionnaire[test_value]) #cette étape ne fonctionne pas, pourquoi pas comme dico """def compare(cont_end,cont_beg) intersection = cont_end.intersection(cont_beg) if intersection != null : return intersectio...
UTF-8
Python
false
false
4,384
py
7
main.py
2
0.576932
0.569594
0
174
24.063218
114
EtavaresMixes/drappi-CMS---django
13,804,024,904,090
5d79b0c61caaf2e1f69b0cc8a5d2a3bffc90bbec
23658085c5eab02a86ff866a2127803622bd8a8d
/users/views.py
62496c5202782621839deeca81f71ab37e4e48d0
[]
no_license
https://github.com/EtavaresMixes/drappi-CMS---django
5014875d737f0925a005b05d5b1a48fbb74a416d
9c1223aa8f0d4a2cfe77423816f9630a63e0af0e
refs/heads/master
2023-03-12T09:07:55.510351
2021-03-05T12:43:17
2021-03-05T12:43:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render, redirect from django.contrib.auth.forms import UserCreationForm from django.contrib import messages from . forms import UserRegisterForm, LoginForm, CadastraCNPJ from django.contrib.auth.decorators import login_required from django.contrib.auth.models import Group from clientes.mode...
UTF-8
Python
false
false
3,519
py
74
views.py
37
0.627629
0.627061
0
101
33.831683
74
jpur3846/dfe-contractors
5,523,327,969,872
32c7eba5491efe4e8fbb3e0b2c6fcea811185e3b
e3e311a7a7a86d97799ee4ff58185e155d745106
/contractors/con/apps.py
068c2b3bc2078ecc92b68cdef2d015bd07680a45
[]
no_license
https://github.com/jpur3846/dfe-contractors
d8938edc1e6b231b7fd132bdf9848b451bb8fdaf
3cf34751d588cc6f0914b504a7c1c7f3e11bc385
refs/heads/master
2022-11-24T16:37:38.297265
2020-07-30T13:36:21
2020-07-30T13:36:21
276,302,265
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.apps import AppConfig class ConConfig(AppConfig): name = 'con'
UTF-8
Python
false
false
80
py
118
apps.py
85
0.7375
0.7375
0
4
19
33
tranhoangkhuongvn/algo_gym
12,489,764,926,698
87360ad7c3a6502a6025062788f9cfbd1230acfb
2ce595e4cf76dca58fce8673325418cc13696e4d
/EPI/4-2-swap-bits.py
9665f527680f31e9869f37ae23d345d4379cd0ba
[]
no_license
https://github.com/tranhoangkhuongvn/algo_gym
4ae9d9570da5b0ef78594fd799734da829e02271
049af6be6a042c0f4f7a6532078761172ec212ae
refs/heads/master
2020-09-02T15:02:50.246948
2020-01-19T00:24:50
2020-01-19T00:24:50
219,245,440
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Write a function takes a 64-bit integer and swap bits at indices i and j #LSB is at rightmost bit def swap_bits(n, i, j): bit0 = (1 & (n >> i)) bit1 = (1 & (n >> j)) if bit0 != bit1: if bit0: #reset bit0 to 0, set bit1 to 1 n = n & (~(1 << i)) n = n | (1 << j) else: n = n | (1 << i) n = n & (~(...
UTF-8
Python
false
false
387
py
28
4-2-swap-bits.py
27
0.503876
0.449612
0
19
19.105263
73
krishnakalyan3/spark_streaming
1,194,000,956,084
256b2b17fe3e9f80606e46dae04b2deac346dbe0
81087a55da2f8c96c53a71fc9db577269da40e44
/src/examples/03_agg.py
87ce1cec6f05c304f691f3f4e4527f3e680ffe1c
[]
no_license
https://github.com/krishnakalyan3/spark_streaming
bf5a0b6fa189658c9476638789476c2dbf2882df
57dd570981fd1ac608caa1d4496a5cc6356bf950
refs/heads/master
2020-03-14T10:46:33.037695
2018-05-07T13:30:57
2018-05-07T13:30:57
131,575,391
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pyspark.sql import SparkSession from pyspark.sql.types import StructType from pyspark.sql.types import IntegerType, StringType, TimestampType from pyspark.sql.types import StructField from pyspark.sql import functions as F from pyspark.sql.functions import split if __name__ == "__main__": spark = SparkSessio...
UTF-8
Python
false
false
1,591
py
7
03_agg.py
6
0.629164
0.621622
0
50
30.82
90
kejukeji/bourjois_sub
16,947,940,969,334
37fc23b8f9af7d3fd6546108950c684467d1fa87
c24e1b0f9fc43593aaf35358be58bccb78ee67f3
/bourjois/models/__init__.py
65f21fdd7138ff3a11ec1bbd31636e43e428547d
[]
no_license
https://github.com/kejukeji/bourjois_sub
5debebd2d39e72e8a291a301aea887b83e767eb2
d8614345ae8c3ede4e4069a9d3883e06a3adff23
refs/heads/master
2016-09-03T07:15:52.021348
2014-05-16T16:05:16
2014-05-16T16:05:16
19,665,950
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: UTF-8 from .coupon import * from .times import *
UTF-8
Python
false
false
58
py
22
__init__.py
11
0.706897
0.689655
0
3
18.666667
21
sh2MAN/newsgather
9,440,338,160,984
3a230644d01dd10c07ed468739a3e4363d8f5d07
09c9723fe97a4e5b92207de47fdf5dd717710e97
/core/utils.py
be0139b04d3cd22a2678e7303aefd7290ae51785
[ "MIT" ]
permissive
https://github.com/sh2MAN/newsgather
7107e208fa6ef9255624fbc53077630dcac51edb
c6ed86bc0c4568ffa19b988165643033eff66158
refs/heads/main
2023-03-30T10:06:20.989662
2021-03-25T21:06:46
2021-03-25T21:06:46
349,650,242
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from loguru import logger from starlette.requests import Request logger.add( 'logging.log', format="{name} {message}", level="INFO", rotation="5MB" ) def get_db(request: Request): """Возвращает текущую сессию.""" return request.state.db
UTF-8
Python
false
false
275
py
15
utils.py
10
0.702381
0.698413
0
11
21.909091
74
vadim-ivlev/text-processor
16,793,322,158,589
a0657ab1e0024c6542dba17e8575dbe900242028
eb6de9d204ae12b8066cf437ec6d0bbedbdb5809
/tests/test-text-processor.py
26f2bfc0f615238cd4061fa16f7d3a622a344ccf
[]
no_license
https://github.com/vadim-ivlev/text-processor
9c4b13015c60f022dddf341f3dd59ca30983923e
f129b08560ab97c0590d06a675e202638b73705c
refs/heads/master
2023-01-20T18:44:14.062049
2020-11-26T15:03:37
2020-11-26T15:03:37
293,517,049
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
sample_text = """ <p>Глава государства начал встречу сразу с проблемных вопросов: в регионе сокращается сельхозпроизводство на фоне солидного роста по стране. Голубев выразил надежду, что в этом году тенденцию удастся переломить. Президент заметил: если необходима поддержка, то нужно сформулировать просьбы. "И по стр...
UTF-8
Python
false
false
6,936
py
44
test-text-processor.py
22
0.805625
0.803867
0
48
81.958333
219
tgandor/meats
2,877,628,122,579
2fbfa5ce53f95d2e45735c0c0d85dfb250a313f9
41a4887a52afe81f203d0917c5ef54ccbe2389fe
/opencv_py/deskew.py
696a5c1eab2d86a55ca5ace674b8aec53a858fff
[]
no_license
https://github.com/tgandor/meats
2efc2e144fc59b2b99aeeaec5f5419dbbb323f9b
26eb57e49752dab98722a356e80a15f26cbf5929
refs/heads/master
2023-08-30T20:35:47.949622
2023-08-25T13:26:23
2023-08-25T13:26:23
32,311,574
13
9
null
false
2022-06-22T20:44:44
2015-03-16T08:39:21
2022-01-06T00:31:18
2022-06-22T20:44:43
8,543
11
5
0
Python
false
false
#!/usr/bin/env python import math import cv2 import sys import os from fractions import Fraction def cv_size(img): return tuple(img.shape[1::-1]) def cv_center(img): w, h = cv_size(img) return w/2, h/2 def get_screen_res(): if sys.platform.startswith('linux'): import os lines = [...
UTF-8
Python
false
false
3,698
py
1,039
deskew.py
795
0.540562
0.50027
0
120
29.816667
109
cogitare-ai/cogitare
8,340,826,508,456
f64224361bdee450421cf74b6a72eb3767a3486e
aa60d8aa60a24e34abb155920c454c3768e22a6f
/tests/test_plugins/test_plot.py
8701ba0977cbeacd05650b4c55dc7393bbb87d60
[ "MIT" ]
permissive
https://github.com/cogitare-ai/cogitare
fc1db0fe885b7bd8fe4dac0876910365278f3fb0
fa99b8ef30e2f74e16fb542f2992582d1bd3ac2c
refs/heads/master
2021-01-25T01:15:22.892139
2019-09-24T11:52:08
2019-09-24T11:52:08
94,737,131
93
9
MIT
false
2018-02-01T15:25:39
2017-06-19T04:41:48
2017-12-14T21:11:06
2018-02-01T15:25:38
2,838
1
0
20
Python
false
null
import unittest import os import tempfile import pytest from cogitare.plugins import PlottingMatplotlib class TestPlottingMatplotlib(unittest.TestCase): def setUp(self): self.p = PlottingMatplotlib() def test_plot(self): self.p.add_variable('test', 'Test') with pytest.raises(KeyErro...
UTF-8
Python
false
false
1,116
py
70
test_plot.py
46
0.55914
0.536738
0
48
22.25
57
nregnault/lsst_cadence
8,890,582,337,640
b72757f00dcf38615bf9a49cef5c510fed734ad9
f74c78ba3efe9668899980b022a6d66aa1f26044
/sncadence/summary.py
9fe49e4d62dca3c7587b5397bb1895ad0d161ec8
[]
no_license
https://github.com/nregnault/lsst_cadence
cee16b73647884ea29228ff0f21f04c17e5753e7
3cffb35250276967b2df1ff609329193e835c886
refs/heads/master
2021-07-25T20:59:23.238328
2021-07-06T01:16:58
2021-07-06T01:16:58
207,244,875
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#multiplex cross_prod group_by "analyze[-1]" import numpy as np r = get_input() print '*' * 72 to_merge = glob_parent('sim_history.npy', 'analyze') print to_merge data = [np.load(nm) for nm in to_merge] # merge the history ntuples into a big one d = np.hstack(data) # extract just the final state from the NTup...
UTF-8
Python
false
false
1,187
py
61
summary.py
56
0.663016
0.657961
0
40
28.675
139
MrCubanfrog/OHappening
16,011,638,105,224
2aa1254c17d7f1ab019fe7e03a3cf7796533a266
2be0e7024f59563dbe8aab9e5e31ead9128562cf
/ohappening/ohappening.py
da827d877dd54fbc44b1eac4bf71f80b93d6cb8d
[ "MIT" ]
permissive
https://github.com/MrCubanfrog/OHappening
9926a1e4aa5648cda796a9859a967c97f20737ff
a7ea958ec96baa4cac5b8ae42cf53ae81d8f2e4b
refs/heads/master
2020-04-17T19:43:28.779747
2019-11-07T14:22:01
2019-11-07T14:22:01
166,876,039
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Main module for starting the OHappening application. Run the start function to start the application. FEATURE LIST ------------ Started Done -Project initialization and basics [X] [X] -Working calendar [X] [X] -Clock [X]     [X] -Variou...
UTF-8
Python
false
false
5,659
py
12
ohappening.py
11
0.651159
0.642137
0
158
34.778481
101
samarthdave/nagini
15,238,544,001,996
26bad96ff5fb32885b238c0f734e67c04b42088a
aab0245630a8cc69432ab0d588544c4c40f199f5
/using-python-for-automation/scrape/club.py
e735f3a5881de0b039731f276dd4ff1c48f4aca2
[]
no_license
https://github.com/samarthdave/nagini
806134f40cc5ef3392636764c40b3b1fe439e005
cd61125843756832b890eb98eccc3fd03aff3218
refs/heads/master
2022-12-21T20:44:46.621229
2021-12-30T20:40:56
2021-12-30T20:40:56
248,650,956
0
0
null
false
2022-12-12T20:03:06
2020-03-20T02:30:53
2021-12-30T20:41:05
2022-12-12T20:03:06
976
0
0
12
Jupyter Notebook
false
false
# use ScrapingClub.com > Exercise 3 # imports import requests from bs4 import BeautifulSoup base_url = 'https://scrapingclub.com/exercise/list_basic/' resp = requests.get(base_url) soup = BeautifulSoup(resp.text, 'lxml') # find all cards count = 0 items = soup.find_all('div', class_='col-lg-4 col-md-6 mb-4') # text ...
UTF-8
Python
false
false
1,917
py
70
club.py
44
0.637976
0.62024
0
62
29.935484
76
carlgval/python-challenges
4,131,758,582,345
cff275ce805925e24637ce0960bd8796963c610d
50ec6753b6d96fafc6793178819cff9d759c64aa
/hanoi_tower_moves.py
b90a55965c8bf3945c093ef52792291e06f04019
[]
no_license
https://github.com/carlgval/python-challenges
5a292273ea471b5ca217fcae687f64190e34c650
26d1088c519dab980e7ed96e01d7250d0d2111bf
refs/heads/master
2020-03-29T19:01:54.664708
2019-03-15T13:12:11
2019-03-15T13:12:11
150,244,076
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu Jan 10 08:21:13 2019 The Tower of Hanoi is a puzzle game with three rods and n disks, each a different size. All the disks start off on the first rod in a stack. They are ordered by size, with the largest disk on the bottom and the smallest one at th...
UTF-8
Python
false
false
1,332
py
121
hanoi_tower_moves.py
120
0.692943
0.662162
0
51
25.117647
78
mutaku/Stumpy
7,301,444,422,093
34a7c718ae58fada3d378ddcc53242a37e3ebc59
0b1c671105470f218b4381536e9d9ed42559af92
/stumpy.fcgi
ded8ffa445d020b18c02aae0f2e412cd8eb5ed7b
[ "BSD-3-Clause" ]
permissive
https://github.com/mutaku/Stumpy
ccc8c9944955e2585570c289e172dd3d5c5ab8dd
18c54a73bf612f41eb45f97074d7427b897314c8
refs/heads/master
2021-01-16T18:28:00.272688
2012-08-30T14:37:49
2012-08-30T14:37:49
1,561,100
3
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import sys, os sys.path.insert(0, "..") os.environ['PYTHON_EGG_CACHE'] = "/tmp/" os.environ['DJANGO_SETTINGS_MODULE'] = "settings" from django.core.servers.fastcgi import runfastcgi runfastcgi(["method=threaded", "daemonize=false", "debug=1"])
UTF-8
Python
false
false
273
fcgi
20
stumpy.fcgi
10
0.699634
0.692308
0
11
23.545455
61
chaman21/sparking
10,514,079,964,456
29af3d61cb9e6ede1a675787af702a0f007ffb7d
bb525d0eac7f7722e864066671f45dfbd5eb9e05
/banking/banking/migrations/0006_auto_20210911_1515.py
206a4e5f66046cb6142c28abbd68d457df68698d
[]
no_license
https://github.com/chaman21/sparking
77b9768c58046ccd3e9dd16a9b022648f255d7a5
f4f742b52888f9330220b35099b7aa2ce7f70c8c
refs/heads/master
2023-07-31T18:56:49.507135
2021-09-12T16:38:44
2021-09-12T16:38:44
405,690,639
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.1.6 on 2021-09-11 09:45 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('banking', '0005_auto_20210911_1507'), ] operations = [ migrations.RemoveField( model_name='trans', name='email', ), ...
UTF-8
Python
false
false
528
py
19
0006_auto_20210911_1515.py
13
0.522727
0.464015
0
25
20.12
47
IUIUN/The-Best-Time-Is-Now
1,717,986,951,932
c751e368f8c8fe96376b68f5e2bbf7c41c934bd9
fa9bae32c203323dfb345d9a415d4eaecb27a931
/938. Range Sum of BST.py
433c73667ea0f5e2d3115bcf55ea0855d3eee222
[]
no_license
https://github.com/IUIUN/The-Best-Time-Is-Now
48a0c2e9d449aa2f4b6e565868a227b6d555bf29
fab660f98bd36715d1ee613c4de5c7fd2b69369e
refs/heads/master
2020-09-14T12:06:24.074973
2020-02-15T06:55:08
2020-02-15T06:55:08
223,123,743
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def rangeSumBST(self, root: TreeNode, L: int, R: int) -> int: self.res = 0 self.dfs(root, L, R, self.res) return self.res def dfs(self, root, L, R, res): if not root: return if L <= root.val <= R: self.res += root.val ...
UTF-8
Python
false
false
458
py
103
938. Range Sum of BST.py
103
0.4869
0.484716
0
15
29.533333
65
Gaurangsharma/guiv
18,210,661,351,740
53d8419dfa784b562f2f2f908591ffc6b70570f9
ad04e9358184eee37931bb7fecc010292152d3d8
/codechef/goal.py
e4c4678a2be391ec058d4ea415a2ff03d9ece873
[]
no_license
https://github.com/Gaurangsharma/guiv
70421e50fa24ee1174600d7a965f1a83b8f21f18
acead57d2e3ac84632adceafe86f57a9828ca9bd
refs/heads/master
2021-06-28T19:47:12.656147
2020-09-15T17:45:27
2020-09-15T17:45:27
152,371,136
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
for _ in range(int(input())): n=int(input()) #n initially goals=list(input()) win_point=(n//2)+1 count=0 k=False team_A,team_B=0,0 for i in range(len(goals)): if i%2==0: if goals[i]=='1': team_A+=1 else: if goals[i]=='1': ...
UTF-8
Python
false
false
625
py
168
goal.py
165
0.3952
0.3744
0
25
24.04
36
mattseddon/billy_cart
10,617,159,189,152
fbf43c30f087cfdc7be0cea2c189085996ccea77
6cd7a0aae71903c7d2dc147662bb3e0d9b482320
/app/market/model/handler.py
2f54ed136f095b6fe0855efc2183a801ec99dcb6
[]
no_license
https://github.com/mattseddon/billy_cart
d58d863037d0c9f8cfd49112ffb55a441f818fa6
ab3272dc3c184bb4f7149c155c998f5e48dc54d6
refs/heads/master
2022-01-10T21:40:16.068032
2022-01-02T04:01:37
2022-01-02T04:01:37
209,914,286
0
0
null
false
2021-06-02T02:22:50
2019-09-21T02:44:38
2021-04-06T20:48:07
2021-06-02T02:22:50
448
0
0
0
Python
false
false
from app.colleague import Colleague from infrastructure.third_party.adapter.numpy_utils import calculate_log, not_a_number from infrastructure.built_in.adapter.copy_utils import make_copy class ModelHandler(Colleague): def __init__(self, mediator, wls_model, event_country="AU"): self.__event_country = ev...
UTF-8
Python
false
false
5,435
py
82
handler.py
75
0.531371
0.524379
0
148
35.722973
86
WillahScott/adventofcode
11,982,958,792,593
ca137c4e715fcfc29b95e0369d74e4d43f6380d7
e109c76e1d244dd6f1c58bb585699f40b649ed7f
/day11.py
22ab48bbdad87878b555a3fcb54b0668db7e4e58
[]
no_license
https://github.com/WillahScott/adventofcode
20d386998b38e8da184552ee41ae861e19a8e358
8a6c5c9b5cbe04191a59fda419a4dfc3d997d8c1
refs/heads/master
2021-05-06T08:41:26.788335
2017-12-30T14:59:11
2017-12-30T14:59:11
114,059,155
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Advent of code - DAY 11 from itertools import groupby # Read data with open('data/d11.txt') as f: new_data = f.read().split(',') # -- Problem 1 function -- def get_path_dict(steps): gpb = groupby(sorted(steps)) return { i: len(list(v)) for i, v in gpb } OPP = [('n', 's'), ('ne', 'sw'), ('nw', 'se'...
UTF-8
Python
false
false
2,104
py
23
day11.py
22
0.499525
0.485741
0
85
23.741176
72
shwang0416/Jungle_week03
1,090,921,699,946
f30b6497d0fbbe50e22725fc90a144dbb673d518
3d02bab6338a4984f5fba18165e60820b2dc0a47
/07_1987_알파벳.py
a28f35df197343c157c51a221de1939f914629ed
[]
no_license
https://github.com/shwang0416/Jungle_week03
15fdceb2929d238c5154e5bcef9d46c5d4f5bda6
25be00f7db6c679ae07f014021f45c1394f42fd2
refs/heads/master
2023-02-03T15:54:14.896061
2020-12-28T13:57:47
2020-12-28T13:57:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# [백준] https://www.acmicpc.net/problem/1987 알파벳 # [참고] https://it-garden.tistory.com/272 # DFS, 백트래킹 import sys sys.stdin = open('test/07.txt') sys.setrecursionlimit(100000) # input Y, X = map(int, sys.stdin.readline().split()) alpha = [list(map(lambda x : ord(x)-65, sys.stdin.readline()))for i in range(Y)] # 방문한 적...
UTF-8
Python
false
false
1,042
py
22
07_1987_알파벳.py
17
0.536717
0.487041
0
35
25.342857
80
neoareslinux/python
14,130,442,451,842
6106c155fade54e6a3671f2e776af6bedd9dff08
f4c13cc816445c2d3d454e67f09430c969c61813
/ser-net/backpexpect.py
dda11931aec167aeeca95a63d10751972e85c8af
[]
no_license
https://github.com/neoareslinux/python
c669818aa185808777126465aa04c221e96cb04d
383a77639c33e6135d22c6c1eecc3756eef3918c
refs/heads/master
2015-08-13T05:29:25.749984
2014-10-29T13:30:18
2014-10-29T13:30:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python #coding=utf-8 import pexpect import sys import re import tempfile import getpass username = 'test' password = 'test' new = pexpect.spawn('telnet 1.1.1.2',timeout=3) index = new.expect(['login: ','Username',pexpect.TIMEOUT,"(?i)Unknown host"]) #this if could identify the switches of juniper if index ...
UTF-8
Python
false
false
2,681
py
31
backpexpect.py
31
0.607666
0.58587
0
131
19.312977
77
KEYuni/UAS-Pemrosesan-Teks
6,708,738,925,961
60a3569fb2a96e8d008c25d01f69137157f35232
340e965d3fc9897104a33d09173d5e106017a6dc
/uas.py
97c583def2a44c06ede8251f66a72c16166f4e00
[]
no_license
https://github.com/KEYuni/UAS-Pemrosesan-Teks
bcadda8b9b07b4d00b3a41cfcd227af5d1c61ac2
93370369d9ed0e46a436345fd4fef86a16cf8a1a
refs/heads/master
2020-03-19T05:17:51.184878
2018-06-09T03:40:51
2018-06-09T03:40:51
135,917,971
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Program Name : Autogenerate Keyword #Author : Yuniarti Musa'adah #Email : yuniartimusaadah@gmail.com #================================================================================================ # LIBRARY YANG DIGUNAKAN DALAM PROGRAM #===============================...
UTF-8
Python
false
false
8,775
py
3
uas.py
1
0.561254
0.550427
0
253
33.652174
100
nukui-s/mlens
10,471,130,270,689
ceb33a76a9caf6cdec83f096bf39ea74a04b5892
141166565426af8233782bd8de6f3c4a5d227cea
/mlens/parallel/tests/test_a_learner_full.py
4762b3cc7c1ce6e9df8c4db7a5661291a17eddf4
[ "MIT" ]
permissive
https://github.com/nukui-s/mlens
4fa1ee513494120c0a3e34a659d6ce701989f221
91d89c8daff6da508d5d5577349fba051b1c8eb9
refs/heads/master
2020-03-19T06:08:52.188474
2018-06-04T10:39:38
2018-06-04T10:39:38
135,994,418
0
0
MIT
true
2018-06-04T10:39:39
2018-06-04T08:28:45
2018-06-04T08:28:48
2018-06-04T10:39:38
10,368
0
0
0
Python
false
null
""""ML-ENSEMBLE Testing suite for Learner and Transformer """ from mlens.testing import Data, EstimatorContainer, get_learner, run_learner def test_predict(): """[Parallel | Learner | Full | No Proba | No Prep] test fit and predict""" args = get_learner('predict', 'full', False, False) run_learner(*args)...
UTF-8
Python
false
false
1,611
py
33
test_a_learner_full.py
32
0.640596
0.640596
0
53
29.396226
81
suneric/aircraft_scanning
6,030,134,110,848
22b5fb733b19e8f9655f82936707c8377ee0cc46
5f535b35375d68f407ee2f1153b97b686c9a8365
/aircraft_scanning_control/scripts/ugv_trajectory.py
38027ad4bbcba363f8bf6dabc988f648c8a4e4a0
[ "MIT" ]
permissive
https://github.com/suneric/aircraft_scanning
d32a0ba3e44a0954a1a6a4a283615ca142a4cee8
18c7deb8405eabecab643e7ebbda5f3a61e78393
refs/heads/master
2022-06-04T11:17:27.210208
2022-05-18T22:49:32
2022-05-18T22:49:32
239,586,464
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import rospy import numpy as np import os import sys from geometry_msgs.msg import Pose from math import * import transform from transform import MMRobotTransform class trajectory_defined: def __init__(self): self.trajectory = [] self.index = 0 self.transform_util = MM...
UTF-8
Python
false
false
2,725
py
150
ugv_trajectory.py
36
0.509358
0.478165
0
80
33.0625
102
jianjunyue/python-learn-ml
12,773,232,777,123
19ccc7360a84ef900ce2a5852083c6ed8127400f
eccbb87eefe632a1aa4eafb1e5581420ccf2224a
/tianchi/智能制造质量预测/Ridge_model.py
ca93a8c2908f01516b2156a760c521ec636a95a7
[]
no_license
https://github.com/jianjunyue/python-learn-ml
4191fc675d79830308fd06a62f16a23295a48d32
195df28b0b8b8b7dc78c57dd1a6a4505e48e499f
refs/heads/master
2018-11-09T15:31:50.360084
2018-08-25T07:47:20
2018-08-25T07:47:20
102,184,768
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import numpy as np #Python sklearn数据分析中常用方法 #http://blog.csdn.net/qq_16234613/article/details/76534673 import matplotlib.pyplot as plt import seaborn as sns from sklearn.preprocessing import Imputer from sklearn.model_selection import train_test_split from sklearn.model_selection import cross_val_s...
UTF-8
Python
false
false
3,324
py
228
Ridge_model.py
223
0.676299
0.646104
0
77
39
110
noironetworks/gbp-tempest-plugin
5,085,241,283,657
1b657f0216a1d5d0de3451866aa4ddec1d32dc49
c2c84be5ed5d326b24ab14c159edb7d1fee949b9
/gbp_tempest_plugin/services/gbp/v2/json/nat_pool_client.py
a08282afedfb7bcc3c03be54f52fe9de07411ad3
[]
no_license
https://github.com/noironetworks/gbp-tempest-plugin
d7e4e745d1ade2b2db34ccdc7ed7e129b57c5caf
8b7640e82aa9b12ebee49177da0f7fe7ed2f699f
refs/heads/master
2020-04-09T10:16:47.284119
2018-11-02T11:05:50
2018-11-02T11:05:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from tempest.lib.common.utils import data_utils from six.moves import http_client from tempest.lib.common import rest_client from oslo_serialization import jsonutils as json from gbp_tempest_plugin.services.gbp.v2.json import base class NATPoolClient(base.GbpClientV2Base): """API V2 Tempest REST client for GBP NA...
UTF-8
Python
false
false
2,093
py
34
nat_pool_client.py
32
0.655041
0.653607
0
49
41.714286
112
tjudoubi/tbcnn_vector_js
8,074,538,538,326
761d4e11271f95600074188bad1b144c73c6540b
be42e602d56238f8d316649fd711a1430577a5ef
/datasetforTBCCD-master/sampleJava.py
4e5ae1355c64222c7655b0d8a03f02131ed23faf
[]
no_license
https://github.com/tjudoubi/tbcnn_vector_js
0749513c76ef4fd4dac9a7be1b8a2aa5571f7de3
638c4a46d7d9c83637edc5b7ff1b0cc54ab4e2c1
refs/heads/master
2022-12-18T11:39:51.282433
2020-10-05T15:56:25
2020-10-05T15:56:25
301,389,163
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import javalang from javalang.ast import Node def _name(node): return type(node).__name__ def dfsSearch_withid(children): if not isinstance(children, (str, Node, list, tuple)): return if isinstance(children, (str, Node)): if str(children) == '': return if str(children)....
UTF-8
Python
false
false
6,033
py
2,659
sampleJava.py
136
0.555777
0.52246
0
206
28.291262
88