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
TheKaushikGoswami/lyq-hangout-modmail
18,932,215,860,652
80e915944e444f731f4be912444f44f69c864e59
b7f6954cc86515eb28c8ac0788e4f3228822ae9c
/main.py
eb68957b0b5e6bde21397a8cc5e6b560f1f7da98
[ "Apache-2.0" ]
permissive
https://github.com/TheKaushikGoswami/lyq-hangout-modmail
0aabaae31a06a19b6bb4630464e530f0ce169765
78b8bbb0e113123f4e074cf0bcc79729b74c27a3
refs/heads/main
2023-05-23T06:20:16.086489
2021-06-13T02:45:56
2021-06-13T02:45:56
376,301,531
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from discord.ext import commands import discord import os intents = discord.Intents.default() # we need members intent too intents.members = True bot = commands.Bot(command_prefix = "-", intents = intents) @bot.event async def on_ready(): await bot.change_presence(status=discord.Status.online, activity=...
UTF-8
Python
false
false
548
py
3
main.py
2
0.729779
0.729779
0
17
30
189
itk-robotics/reading-buddy
18,193,481,479,417
341321783c980a98af5dd15177450e7c130690c6
a5bcb456a0510139772c8ddf8d9812187a018386
/utilities/sendMail.py
fd52fe2ffc19e4331545568359f690af5e519b18
[]
no_license
https://github.com/itk-robotics/reading-buddy
9119602cee656f2c5b1d7d1c81e48dc3d730f9f5
b960b5ec11af5a2cc26f30c127ff2917798dad9c
refs/heads/master
2020-03-28T12:13:10.155807
2019-01-29T13:15:47
2019-01-29T13:15:47
148,279,513
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""code pasted from choregraphe box""" import sys, os import smtplib, email class choregrapheMail(object): def mail(self, email_user, to, subject, text, attach, email_pwd, smtp, port): msg = email.MIMEMultipart.MIMEMultipart() msg['From'] = email_user msg['To'] = to msg...
UTF-8
Python
false
false
2,261
py
29
sendMail.py
7
0.544449
0.534719
0
68
31.25
199
joy13975/elfin
1,460,288,921,833
7e8619c2dff23110fd87448fd39b42e629dd9b64
8f7f7d98515b5c05367e5805a141e720bad2b1f0
/tests/helper.py
9db06d497aab7953557c2b19341950a046b4ced8
[ "MIT" ]
permissive
https://github.com/joy13975/elfin
5b8d549344e0dc1f2976811ad65bd50d2c832b63
affa9b5b5cf359409917acc44e3f4bb8dda5596c
refs/heads/master
2020-07-03T19:54:35.994063
2020-05-09T09:27:03
2020-05-09T09:27:03
93,900,113
4
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import pytest import importlib from functools import partial def _test(module_name=None, error_type=None, module_test_callback=None, assert_callback=None, package_name=None): if module_name is None or \ error_type is None or \ module_test_callback is None or \ assert_c...
UTF-8
Python
false
false
1,304
py
55
helper.py
46
0.679448
0.677147
0
41
29.853659
113
zimeon/sbrew
893,353,214,388
59c4b2bf31a867e49fc784e894e9c5663db526e2
2353a9fb85b96306309dc1d8f35bfaf01edcd2ab
/brew149_orval.py
168200a2dee128dddae29221266f13082a0160cf
[]
no_license
https://github.com/zimeon/sbrew
063268d1ca6e5d41dda32e7dce04511926b2a479
7d88b4c2171e4183b4267da86abf1d140de78920
refs/heads/main
2022-01-26T02:06:51.219157
2022-01-23T21:52:52
2022-01-23T21:52:52
20,242,287
0
0
null
false
2021-07-22T03:06:15
2014-05-28T02:15:39
2020-08-05T21:41:25
2021-07-22T03:06:15
329
1
0
0
Python
false
false
#!/usr/bin/env python from sbrew import * r = Recipe() r.name = "Orval-ish Brett Beer" # ithaca water m = InfusionMash() m.ingredient('grain', 'pilsener (briess)', '10.0lb', color='1.2L') m.ingredient('grain', 'caravienne (briess)', '1.25lb', color='20L') m.ingredient('water', 'strike', '5.5gal') m.ingredient('misc...
UTF-8
Python
false
false
1,230
py
87
brew149_orval.py
85
0.650407
0.599187
0
44
26.954545
74
aleph2c/miros-xml
2,018,634,658,089
912f9c07f3466607b9b246de0ecac2aa9f63e424
cb641e9db2c8604caadc180d141369e7c56a151f
/experiment/4th_example.py
54fc0f47155c6a275edeee36b91dc330b2ab60cb
[]
no_license
https://github.com/aleph2c/miros-xml
7873f05c6cf3a49dfe55fe38e3b9e93bcaff2868
552f2ab5bdf9a70741cb3e306880e24231d8147e
refs/heads/master
2023-07-06T14:16:02.706665
2021-08-13T12:50:35
2021-08-13T12:54:54
228,228,973
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import re import pdb import time import inspect import logging import pprint as xprint from functools import wraps from functools import partial from functools import lru_cache from collections import namedtuple from miros import Event from miros import spy_on from miros import signals from miros import ActiveObject f...
UTF-8
Python
false
false
121,642
py
157
4th_example.py
32
0.627694
0.607981
0
3,813
30.90139
103
xingag/marks
1,314,260,032,034
72b9c17a8372616d98667fc21022eef36808b47a
13bf7271775795249946e5f677f68f1f66540fb6
/Python/词云/使用 itchat 爬取微信朋友的签名并生成词云/itchatDemo/send_news.py
869fb50ec4f75f7efb3815e47e7f31ecf2bd3a9c
[]
no_license
https://github.com/xingag/marks
21780adeb09267738fc5c0f13c6c37c88fcba38c
133d0e980bb1f3fb8f237fff6bd448bbabadc455
refs/heads/master
2018-09-19T15:28:29.495166
2018-09-19T13:43:11
2018-09-19T13:43:11
81,279,968
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: xag @license: Apache Licence @contact: xinganguo@gmail.com @site: http://www.xingag.top @software: PyCharm @file: send_news.py @time: 2018/5/4 17:10 @description:itchat 自动发送信息给好友 """ # https://mp.weixin.qq.com/s?__biz=MzIxMzgyOTg1MQ==&m...
UTF-8
Python
false
false
2,892
py
948
send_news.py
497
0.662595
0.605307
0
96
23.729167
243
Valupiruiz/AutomationPHP
7,825,430,459,306
f47adff109369593e56eba483c51be9b75f8a6d0
e585c3a61b830d3c24a8cec8343d262c84c724e7
/BORA/config/data/exceptions.py
cf45f3d953754d210b986532a961e663328ad31f
[]
no_license
https://github.com/Valupiruiz/AutomationPHP
bb0728b2b6508b017c133a7d560a652033adeaf4
9a92634ac9f5b27e46723294f9a4cc83a1f99252
refs/heads/master
2023-01-18T17:27:57.819270
2020-11-27T15:04:49
2020-11-27T15:04:49
310,594,260
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Error(Exception): pass class DriverNoExistenteException(Error): pass class QuerySinResultadosException(Error): pass
UTF-8
Python
false
false
129
py
299
exceptions.py
269
0.806202
0.806202
0
10
11.9
41
softwerks/chateau
7,181,185,340,477
e7d9a66a15140db29dfd6329f7f92b21c067c802
89fe25a9ce87a4ac4ae3e4e8de0d6070da78f9b8
/chateau/stats/__init__.py
088a8f45ffa6c25ea943d7e9ad2b0ae42a1ff9a6
[ "Apache-2.0" ]
permissive
https://github.com/softwerks/chateau
fc32e32bfb89fd0223ca60246af21e512bae11df
6218dd623b21298a29f255e9c0d88d69651796e0
refs/heads/main
2023-08-11T20:55:41.395021
2021-09-22T01:25:49
2021-09-22T01:25:49
289,591,074
0
0
Apache-2.0
false
2021-06-01T19:52:51
2020-08-23T00:49:13
2020-11-09T19:40:37
2021-06-01T19:52:51
1,062
0
0
0
Python
false
false
# Copyright 2021 Softwerks LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
UTF-8
Python
false
false
4,266
py
57
__init__.py
23
0.666667
0.661275
0
141
29.255319
88
renato-lopes/CompNat-DCC
8,289,286,889,195
bfe57e89ffabbec138de610f88bfe1ba2940a14a
f6cd8d0ecae1b674e8b0396254e87a51c82851c0
/TP1/src/function_tree.py
54743e2328c461c3fc2609acb89b42b978739d90
[]
no_license
https://github.com/renato-lopes/CompNat-DCC
9b83706d49d68180f68a4658ae9ab7bd05a9a9d1
907f920639bd7192fe4697371253d9e029e51b70
refs/heads/main
2023-03-24T00:55:46.249100
2021-03-15T15:12:50
2021-03-15T15:12:50
331,150,828
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Tree used to represent functions """ FUNCTION_NODE=0 # Node with a function, like sum and mul CONSTANT_NODE=1 # Node with a constant, like a real number VAR_NODE=2 # Node with a reference to a variable (based on variables array index) LEFT_CHILD=0 RIGHT_CHILD=1 class Tree: def __init__(self, node_type, node_...
UTF-8
Python
false
false
3,438
py
14
function_tree.py
12
0.579988
0.574171
0
94
35.574468
153
credibit/credibit-back
11,665,131,198,399
7e8ad839b9786b9c8c45ce3a47434a6c0cddfb32
56b46182e1d5a22d04094eadcb1df67c1cea78b0
/api/lamdaCalls.py
d37b41ad35b40fd0aadc87ce329eb1dadef7b05a
[]
no_license
https://github.com/credibit/credibit-back
981e94faef57f9ee4628899b7c30c959c6b3be0c
e6542823010e82c578382d3cba3b42d82c21bff4
refs/heads/master
2022-12-22T23:02:46.893703
2019-06-13T16:26:00
2019-06-13T16:26:00
183,804,412
1
0
null
false
2022-12-08T05:01:52
2019-04-27T17:48:30
2019-07-22T21:24:22
2022-12-08T05:01:52
56,490
0
0
4
Python
false
false
import requests import json def getCredit(params): desired_months = params['plazoDeseado'] results = { 'A': { 'months': [3, 6, 12, desired_months], 'is_valid': True }, 'B': { 'months': [12, desired_months if desired_months <= 36 else 36], ...
UTF-8
Python
false
false
1,648
py
11
lamdaCalls.py
8
0.598908
0.580704
0
57
27.929825
100
LothairKizardjian/RocketLeagueBot-RL
13,898,514,173,630
3dbed9c397013a19058e14dd58f263b97ceccdd0
c535deb8ecd8aefe34bb30c534299d6e76765324
/src/algorithms/base_agent.py
d91bc63e50f1fa1913528acc31e485c3d4a10b21
[]
no_license
https://github.com/LothairKizardjian/RocketLeagueBot-RL
42076617167344e49cd74421702bf834eba27cbc
5d843d746fb9ebb5b0278575ec64b084b684e97d
refs/heads/main
2023-08-16T00:02:34.904398
2021-10-17T22:36:14
2021-10-17T22:36:14
416,049,244
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
### ABSTRACT CLASS FOR A BASE ALGORITHM ### from abc import ABC, abstractmethod from typing import Any class BaseAgent(ABC): """ Abstract class for a basic Agent. Describes the structure an Agent must implement. """ def __init__(self): pass @abstractmethod ...
UTF-8
Python
false
false
764
py
15
base_agent.py
13
0.579843
0.579843
0
37
19.675676
55
rosspeckomplekt/RParser
3,607,772,576,450
7008ec894906e912348994218a760fa6f0c165fc
e8c715dd86ca964e76c284c315b83dde0cfa0264
/scratch/scratch5.py
ba8c763274d24bdda160dcdbf9028df1080b7d3a
[]
no_license
https://github.com/rosspeckomplekt/RParser
62b7227ec2270863a28a345cc97bbd8f1172468a
75c1c0bf004ccd74b0eb72e3471a193c006701b8
refs/heads/master
2020-09-23T14:01:34.755941
2015-12-09T08:32:20
2015-12-09T08:32:20
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python from RParser import RParser from PreProcessor import PreProcessor __author__ = 'Shaun Rong' __version__ = '0.1' __maintainer__ = 'Shaun Rong' __email__ = 'rongzq08@gmail.com' cfuf = PreProcessor() with open('../data/verb_method_arg/test/paper0105.raw.txt', 'r') as f: text = f.read().splitl...
UTF-8
Python
false
false
484
py
87
scratch5.py
19
0.671488
0.650826
0
26
17.653846
70
ravix339/ModularRobots
15,290,083,576,317
b5398b29d591be26d08c0cc8663146980d6d806f
e818f2a8f409bb0005f1cdbc9f6cefd3c873e400
/PythonReconfig/main.py
cd5ba3f918208e27a0615908ab0349b16ac73d2f
[]
no_license
https://github.com/ravix339/ModularRobots
9e69ab5f83dbfd72d27b323b766b291201a0f27c
d1d019e709143664f3f671b8165961601977326b
refs/heads/master
2022-06-10T15:24:25.698734
2020-05-07T18:44:14
2020-05-07T18:44:14
247,126,369
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from logn import LogNReconfig BLOCKSIZE = 8 #number of 4x4 modules in a block analyzer = LogNReconfig(BLOCKSIZE) # highLevelStruct = [ # [1,1,1,1], # [1,1,1,1], # [0,0,0,0], # [0,0,0,0]] # highLevelStruct = [ # [1,1,1,1], # [1,0,0,1], # [1,0,0,1], # [0,0,0,0]] # hi...
UTF-8
Python
false
false
1,162
py
13
main.py
9
0.505164
0.363167
0
48
22.208333
65
ssloat/pythonanywhere
6,425,271,085,121
2667ea242906500632c3fd7faa7b67ca4d6af58d
1cd104162ccb0949d98c423f758061983ec61472
/finances/models/tax_rates.py
0edc5ab8c0d9fac11c41aea5061364caa0573a85
[]
no_license
https://github.com/ssloat/pythonanywhere
720616f15b85f63b031827512f1fbd09fb60d70c
4ec21ed7f05dd8003e72b566af3c59d227a02c39
refs/heads/master
2023-03-16T02:20:01.348104
2023-03-12T17:37:02
2023-03-12T17:37:02
50,216,788
0
0
null
false
2023-03-12T17:37:03
2016-01-23T00:53:00
2019-04-19T20:26:36
2023-03-12T17:37:02
259
0
0
0
Python
false
false
from mysite import db class TaxDeduction(db.Model): __tablename__ = 'tax_deductions' id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(64)) year = db.Column(db.Integer) amount = db.Column(db.Integer) status = db.Column(db.String(64)) def __init__(s...
UTF-8
Python
false
false
7,168
py
55
tax_rates.py
34
0.60519
0.456752
0
150
46.786667
78
graspr/embedded
3,770,981,295,666
c95943c52402420e9a7c3a780a55da9ea66f0b08
4ed99ee58451f7b23e689d4c09aa59467eaababe
/rpi/python/graspr.py
e14e1b8aff3f55f81192159ff3b70954cf6c5cd5
[]
no_license
https://github.com/graspr/embedded
15096a08c943738e483c3198f4c058ffadbc5d03
59c21aa303d713eb190048ac7ad6809b2be45517
refs/heads/master
2020-04-14T05:26:43.765915
2015-04-14T00:06:30
2015-04-14T00:06:30
22,432,533
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Entry point for Graspr Embedded App """ import signal import sys import time from thread import * from collections import deque import web import spi import mux PORT = 8080 DQ_MAX_LENGTH = 10000 def signal_handler(signal, frame): """ For when we hit CTRL+C! """ print(('End of run: {!s}'.format(tim...
UTF-8
Python
false
false
719
py
21
graspr.py
13
0.642559
0.617524
0
35
19.542857
80
oalhinnawi/CTCI-Problems-Python
9,921,374,481,998
1b98c6256eefb5ce54d56f79bb250331d9b0ba6e
8ba2bc23d1b5777f762e0a3dca49e2c36bd1db39
/sum_lists.py
3d820e5f5c09c267870d394a24dfbc3d14b31e76
[]
no_license
https://github.com/oalhinnawi/CTCI-Problems-Python
170b8f5fc28e035ee1511845f97e7bc8e10abe99
e08404c08af1e5d2081698daea6e050d9933ddcb
refs/heads/main
2023-05-12T13:32:23.350463
2021-06-02T23:10:02
2021-06-02T23:10:02
370,898,787
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 2.5 - Sum Lists: You have two numbers represented by a linked list, where each node contains a single # digit. The digits are stored in reverse order, such that the 1 's digit is at the head of the list. Write a # function that adds the two numbers and returns the sum as a linked list. # First thoughts: This isn't ...
UTF-8
Python
false
false
2,813
py
22
sum_lists.py
21
0.611802
0.607181
0
106
25.54717
109
julianferres/Competitive-Programming
16,956,530,926,030
67f9d0e68db98069281e36dc249621d04f904c9f
9f69c4c61ca2a2082643f9316354826f6144e1f5
/TAP2014/I.py
211317a6735605a73487d78c6e2170162357be1c
[]
no_license
https://github.com/julianferres/Competitive-Programming
668c22cf5174c57a2f3023178b1517cb25bdd583
c3b0be4f796d1c0d755a61a6d2f3665c86cd8ca9
refs/heads/master
2022-03-23T05:56:53.790660
2022-03-18T14:29:33
2022-03-18T14:29:33
146,931,407
4
2
null
null
null
null
null
null
null
null
null
null
null
null
null
def is_prime(n): """Naive O(sqrt(n)) approach""" d = 2 while(d*d<=n): if(n%d == 0): return False d+=1 return True for i in range(2184,2200): if(is_prime(i)): print(i)
UTF-8
Python
false
false
215
py
330
I.py
324
0.47907
0.427907
0
12
16.916667
35
wangmou21/NSNet
19,061,064,865,395
f465c6c061a9904868bda919e28c191209e8386a
28653b73242d0f2d384cf1c2998d0cb649922371
/models.py
03e406604aa7b7c4dcde8a0f7c7ab31577e1591b
[]
no_license
https://github.com/wangmou21/NSNet
aa6f98998b3063b717589f1c646ca80eb705e3a0
16dd4a671385675e6ea0b19afce4a0dca60ef5b6
refs/heads/master
2023-01-08T22:16:48.431289
2020-11-14T14:57:49
2020-11-14T14:57:49
307,575,100
6
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Nov 3 10:40:51 2020 @author: Silence """ import torch import torch.nn as nn import torch.nn.functional as F import config def init_layer(layer, nonlinearity='leaky_relu'): """Initialize a Linear or Convolutional layer. """ nn.init.kaiming_uniform_(layer.weight, n...
UTF-8
Python
false
false
9,391
py
12
models.py
8
0.538281
0.501118
0
275
33.152727
97
trainto/Problem-Solving
14,877,766,734,404
695187ec783c740cac30395d777600e5ee628078
0f8cb8d926301ca8b68288af5d1d81266af36048
/algospot/uri.py
37e0af2f79a8066c3f1ed0e976a2e859a8bb8889
[]
no_license
https://github.com/trainto/Problem-Solving
f70f345f38eedba51688eb263129c54de21287fa
a08881d09a107650a3417d7beeb374f5362dda70
refs/heads/main
2023-05-05T18:46:32.913424
2021-05-31T09:40:38
2021-05-31T09:40:38
60,740,421
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
numberOfTestCases = int(input()) testCases = [] for i in range(numberOfTestCases): testCases.append(input()) def decoder(rawUri): result = "" result = rawUri.replace("%20", " ") result = result.replace("%21", "!") result = result.replace("%24", "$") result = result.replace("%28", "(") resul...
UTF-8
Python
false
false
492
py
120
uri.py
118
0.591463
0.565041
0
18
26.333333
39
ja153903/codeforces
14,456,859,967,060
f35288bc26a11e08acfcd0a5062d1acbec0ac61d
5487525fc3e3313d3a1eac8b98d1c610e3e75862
/746A_compote.py
1bafa7c9478246cb72d08d5579f33d79c9d6f17b
[]
no_license
https://github.com/ja153903/codeforces
62c222bcd53d88d61da801977cec0fe7fb465eff
84b40565e280577d975416286be69b5c3fe84255
refs/heads/master
2021-05-17T15:10:14.507074
2020-05-20T03:56:50
2020-05-20T03:56:50
250,836,893
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def int_lst_input(): return [int(val) for val in input().split(' ')] def int_input(): return int(input()) def print_lst(lst): print(' '.join([str(val) for val in lst])) def solve(): a = int_input() b = int_input() c = int_input() comp = 0 while a > 0 and b > 1 and c > 3: com...
UTF-8
Python
false
false
434
py
90
746A_compote.py
89
0.465438
0.4447
0
27
15.074074
51
snakecuriosity95/OOPv
4,973,572,131,143
6b1167ea3eeebad7a8380cdcbcd20806876056ae
ff900ac0fa01a32a51eecead57024e79a1f53086
/PYpr/main.py
1ea5b6799fe95969659585ba1a21a61168a8f9c6
[]
no_license
https://github.com/snakecuriosity95/OOPv
49df7072162c87adbbae38b03f567ceb504fc52f
077e55ca1ad36b8c2224d19f9eabfba5d81a2222
refs/heads/master
2020-05-09T18:29:48.513964
2019-05-02T20:21:11
2019-05-02T20:21:11
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from Warriors import Warrior import random as r import time ''' def newhero(obj): obj = Warrior() obj.show() h_mod_obj, m_mod_obj, s_mod_obj = obj.race() obj.setHP(h_mod_obj * obj.getHP()) obj.setMP(m_mod_obj * obj.getMP()) obj.setSP(s_mod_obj * obj.getSP()) obj.show() retu...
UTF-8
Python
false
false
6,442
py
13
main.py
6
0.562983
0.541881
0
258
22.054264
60
Sarma38/know-your-planet
7,035,156,479,774
1f9fa749b2f8245724d8a94e35421ddf6a3774c5
603a3ffca8cb2376dde71dfeedcbbc6738f9c7c0
/api/migrations/0013_remove_question_category.py
f27e5721e46274e8f9af13752dd6e0f442e39f45
[]
no_license
https://github.com/Sarma38/know-your-planet
e7029e53a03106d87609b1faaddac1ca31a15021
9d891a21554257e963a52cc5dc1b71f39eae7c35
refs/heads/master
2023-02-04T06:02:27.604631
2020-12-25T09:41:43
2020-12-25T09:41:43
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.0.4 on 2020-04-05 17:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("api", "0012_question_category_temp"), ] operations = [ migrations.RemoveField(model_name="question", name="category",), ]
UTF-8
Python
false
false
298
py
110
0013_remove_question_category.py
83
0.651007
0.587248
0
14
20.285714
72
Akrabut/Mathemical-Calculator
13,005,160,976,122
d9b4454737b1c16f5cb0bbb943011b703cad0899
6e2727f537eb1f854cb3ebc02931b4714f2a84ea
/PythonCalculator.py
09ba0658014292f4d8d2dec616040b170a694bc1
[]
no_license
https://github.com/Akrabut/Mathemical-Calculator
db764abc2db34ce0abc6a77e8cc85629b4279952
ae9d5ae7b938fa4ecbdd22b3353faa7e9b95fb51
refs/heads/master
2020-04-12T12:19:11.316390
2018-12-19T20:35:16
2018-12-19T20:35:16
162,487,840
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
####EXERCISE 1#### class date: #Takes a year, month and day value and creates an object that represents a date def __init__(self, newyear, newmonth, newday): self.year = newyear if(newmonth == 1): self.month = "January" if(newmonth == 2): self.month = "Feb...
UTF-8
Python
false
false
15,594
py
1
PythonCalculator.py
1
0.545402
0.533923
0
415
35.580723
181
entrekid/daily_algorithm
12,987,981,114,507
d3bcf7a14fd40cb906473d4ee1cb1e6de479a755
35250c1ccc3a1e2ef160f1dab088c9abe0381f9f
/2020/0411/2445.py
c111503e866737ecc545dcb1b3119a034d8855a9
[]
no_license
https://github.com/entrekid/daily_algorithm
838ab50bd35c1bb5efd8848b9696c848473f17ad
a6df9784cec95148b6c91d804600c4ed75f33f3e
refs/heads/master
2023-02-07T11:21:58.816085
2021-01-02T17:58:38
2021-01-02T17:58:38
252,633,404
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n = int(input()) # increase for iter in range(1, n): print("*" * iter + " " * 2 * (n - iter) +"*" * iter) # middle print("*" * 2 * n) # end for iter in range(n - 1 , 0, -1): print("*" * iter + " " * 2 * (n - iter) +"*" * iter)
UTF-8
Python
false
false
236
py
155
2445.py
155
0.444915
0.415254
0
9
25.333333
57
Deepstatsanalysis/ML_algos_from_scratch
15,564,961,486,168
5d44faa224ac48c5b361bcec036243886d113ad3
58ca7455374354cc7decac4ccb0af28dc2d42de2
/regression_algorithms_from_scratch/Linear_regression_1/linear_regression_from_scratch.py
e896aae037dde3ce6c07c1545302948c4ba7c287
[]
no_license
https://github.com/Deepstatsanalysis/ML_algos_from_scratch
b97f793e69327f88e43809fb17ce3c06827c5f13
a506fd5a234b753fbd90c71d49aab7012d8d31fc
refs/heads/master
2022-07-14T21:44:32.552029
2020-05-19T03:18:51
2020-05-19T03:18:51
277,743,838
1
0
null
true
2020-07-07T07:10:56
2020-07-07T07:10:56
2020-05-19T06:36:39
2020-05-19T03:18:52
11,332
0
0
0
null
false
false
import numpy as np import matplotlib.pyplot as plt import pandas as pd import random class Airfoil: def train_test_split(self, dataframe,test_size): dataframe_size=len(dataframe) if isinstance(test_size,float):#if test size is passed as a proportion test_size=round(test_size*da...
UTF-8
Python
false
false
3,585
py
22
linear_regression_from_scratch.py
5
0.614784
0.60781
0
87
39.045977
123
onmyoji-xiao/ISIC_Classification
4,604,204,983,192
13aa8394260ccdeb38d218bc3948b0f75bc4564e
4c097da07e8a2264063b8ef4c145a47673190afc
/dataset_g.py
f3357b041c72e013bee401674c506c9baaa95522
[]
no_license
https://github.com/onmyoji-xiao/ISIC_Classification
af81329b86bf4f649f9b939572fcc0ff781ed365
232fa8b2794706a0f1d18c62f5f2b19c2ea7cd7f
refs/heads/master
2022-04-08T13:00:44.449947
2020-03-05T19:35:14
2020-03-05T19:35:14
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from torch.utils.data import Dataset from PIL import Image import csv import torch def default_loader(path): return Image.open(path).convert('RGB') class MyDataset_G(Dataset): def __init__(self, csv_path, image_path, lbp_path, dataset='', data_transforms=None, target_transform=None, loader=...
UTF-8
Python
false
false
1,706
py
5
dataset_g.py
4
0.528722
0.518171
0
61
26.967213
111
n1zmarck/ongeki-card-tools
1,906,965,482,250
9aea5e2a9bce3c15e0eb71d574b5b6e157a76a83
2fb96389122cdc48948311ea05b58076eccd188a
/apps/card/models.py
1753ecc00f0c896e11ba8b8c6823e509f1512177
[]
no_license
https://github.com/n1zmarck/ongeki-card-tools
411cd3e05378a2de5ead278f30df9bdc12292c0d
7decf33dd1d806602018af664be48b3c25c1e100
refs/heads/master
2023-08-31T15:08:27.405086
2021-10-21T21:02:57
2021-10-22T11:25:45
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from typing import Type from django.db import models import uuid from django.db.models.deletion import SET_NULL from apps.user.models import User from django.core.mail import send_mail from django.core.validators import RegexValidator, FileExtensionValidator from django.contrib.auth.models import PermissionsMixin, Use...
UTF-8
Python
false
false
7,916
py
13
models.py
11
0.534985
0.518105
0
360
19.405556
73
jingchaoluan/OCRService
335,007,466,538
c3fadafedd493610957c03f486c455d89d7a4157
86c5a40ade24f7d6aab5145192f72b601fdf0b14
/api/ocr.py
f50a974755fdca4107e3e028acf45463e8289c47
[]
no_license
https://github.com/jingchaoluan/OCRService
93c32e3c9682ef22d08beeac295bfd385532dba5
734d45b3fe292b6214aba129587e7e693631c293
refs/heads/master
2021-10-18T18:46:06.557687
2019-01-17T22:12:57
2019-01-17T22:12:57
93,561,105
5
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from django.conf import settings from PIL import Image from resizeimage import resizeimage # Used for image resize import sys, os, os.path, subprocess, shutil # get the directory of ocropy script ocropyDir = settings.BASE_DIR + "/ocropy" # Get the directory which stores all input and output ...
UTF-8
Python
false
false
3,256
py
32
ocr.py
27
0.668919
0.657555
0
92
34.380435
98
adamghill/goingson
2,121,713,883,156
fa1a85fc5325856695536a64bfd175536f0992f3
557d653ae5299bd6ca9916a058b5bccb03f8d157
/project/settings.py
fe393647ebe545b4c16b75b1264525fe5716de2d
[]
no_license
https://github.com/adamghill/goingson
1de89ad886a0199c57cb793e211c142c829dc5e5
46fba7911c7361b782eec796c23a5a6baefa1e3f
refs/heads/master
2018-03-10T07:24:42.548315
2014-02-18T01:06:35
2014-02-18T01:06:35
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from os import environ, path from conf.logging import * BASE_DIR = path.dirname(path.dirname(__file__)) SITE_ROOT = path.dirname(path.realpath(__file__)) ENVIRONMENT = environ.get('ENVIRONMENT', 'dev') SECRET_KEY = environ.get('SECRET_KEY') DEBUG = True TEMPLATE_DEBUG = DEBUG THIRD_PARTY_APPS = ( 'compressor', ...
UTF-8
Python
false
false
2,897
py
14
settings.py
8
0.684501
0.68243
0
119
23.344538
66
datakind/Mar21-vaccine-uptake
2,078,764,200,947
56bfe919cfae82bfda7dc26ba02f3d8b28932fd6
ecc8e88da7374e34317cbbcd17e775955b3c8ba3
/scrapers/reddit.py
408506437c50ed84cc0637ea3245521e524a0282
[ "MIT" ]
permissive
https://github.com/datakind/Mar21-vaccine-uptake
0ac9720e5affc0f8505364bc547d2fdc568b7680
97bcb8204b6cdef9cd1286a0cfecd20db79fb63b
refs/heads/main
2023-03-17T04:14:10.473162
2021-03-07T19:31:58
2021-03-07T19:31:58
341,291,215
11
4
MIT
false
2021-03-07T19:31:58
2021-02-22T18:04:49
2021-03-07T18:50:58
2021-03-07T19:31:58
262,983
6
4
14
Jupyter Notebook
false
false
from urllib.request import urlopen, HTTPError import json import pandas as pd import random import re import time from datetime import datetime import logging logging.basicConfig(filename='reddit_scraping.log', level=logging.INFO) # collect posts from subreddits pertaining to the vaccine # collect comments from t...
UTF-8
Python
false
false
8,254
py
26
reddit.py
3
0.564696
0.55985
0
198
40.606061
174
Gabiiii/BaekJoon_python
755,914,266,031
082fa8553166f16cf2547586b4487e1baf98b731
2da635c12f7585ba67bed7335066069c04a0bc0a
/21633.py
4f70196e3627ba019d03f18259591b1ca4a3dfd4
[]
no_license
https://github.com/Gabiiii/BaekJoon_python
cd25362df3171ffa71d0037ccb016bd9df8ad569
7117ffcf6711945e4aaca6f0366ac8b6a2d88f90
refs/heads/master
2021-08-07T16:57:43.788038
2021-07-06T02:35:43
2021-07-06T02:35:43
154,042,604
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
input=int(input()) res=(input*0.01)+25 if res<100: res=100 elif res>2000: res=2000 print(round(res,2))
UTF-8
Python
false
false
110
py
84
21633.py
83
0.654545
0.472727
0
7
14.857143
19
rudimk/construktdrops
7,447,473,314,937
ffb42a2f44a629c7697ce66fcb8caab6567b19d5
314e6227d27693b966f2236b392cabd7d433a4d6
/app.py
9b52511e0c9dc372d9e02ae5bdefab633399ebdd
[ "MIT" ]
permissive
https://github.com/rudimk/construktdrops
a54ad1c069641744ab11976f9a48d084ae54432c
9c5604050d16707aac9287ca8a32f4b415b9e0c4
refs/heads/master
2021-01-10T18:46:34.422042
2015-02-06T12:07:35
2015-02-06T12:07:35
30,347,324
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask, redirect, url_for, session, request, render_template # flask-peewee bindings from flask_peewee.db import Database # flask-peewee auth from flask_peewee.auth import Auth from peewee import * from flask_peewee.admin import Admin, ModelAdmin from flask_oauth import OAuth from settings import * # ...
UTF-8
Python
false
false
2,933
py
3
app.py
1
0.673713
0.672349
0
109
25.908257
90
dr-dos-ok/Code_Jam_Webscraper
9,405,978,395,603
4346d5a402bbd697b7ffdf6c6e425fdcf84f2abe
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_199/2256.py
fc39798aece4996b97ab72a18f91cc1de5703c0a
[]
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
import sys def reverse(S, K): res = '' for i in range(K): res += '+' if S[i] == '-' else '-' return res def calc(S, K): if not S: return 0 if S[0] == '-': if len(S) < K: return -1 else: count = calc(reverse(S[1:K], K-1) + S...
UTF-8
Python
false
false
1,147
py
60,747
2256.py
60,742
0.395815
0.37925
0
47
22.404255
67
csijun/nyu_vp
9,603,546,878,151
7efec7a56582d0bc320872c91847620eecfd15aa
c17aed97808cd8048cab48138bc0afc4c7f72af8
/nyu.py
59d28a3887af8d4688dc47635a9caa9c9f553991
[]
no_license
https://github.com/csijun/nyu_vp
1cd878bf73cab8443f63f37ef209a63a6150f61e
237a025b55d7655033db7a3e2adb998f0f00d8b5
refs/heads/master
2023-02-25T16:15:54.374968
2021-01-29T17:06:35
2021-01-29T17:06:35
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import glob import os import csv import numpy as np import scipy.io from .lsd import lsd def rgb2gray(rgb): return np.dot(rgb[...,:3], [0.2989, 0.5870, 0.1140]) class NYUVP: def __init__(self, data_dir_path="./data", split='all', keep_data_in_memory=True, mat_file_path=None, normalise_coor...
UTF-8
Python
false
false
11,104
py
4,343
nyu.py
1
0.485591
0.444074
0
287
37.689895
110
seenureddy/fyers_notification
12,103,217,861,346
7fc0047e5cbbf11219db23f34492df92ab6fd231
8ec191fee0449297cd2ee48f04a3010d93f8105a
/fys_notification/services/email.py
79f4e0c2775a8c23ff3d117bd4347635505f075c
[]
no_license
https://github.com/seenureddy/fyers_notification
92772f80d1369876835513fe5203933c4f70bf41
350195c8debc72070b3db2ebd30c451e57e85247
refs/heads/main
2023-03-29T16:45:47.345290
2021-03-22T08:25:56
2021-03-22T08:25:56
349,616,121
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Third party imports from datetime import date, timedelta import smtplib import jinja2 import logging import csv from flask import abort from base64 import b64encode from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText # Local Imports from fys_notification.config import ( FYS_SMPT...
UTF-8
Python
false
false
6,298
py
18
email.py
11
0.654811
0.651318
0
187
32.679144
122
venkatajagadeesh123/python_snippets
10,823,317,619,390
cc4ef255ceb26fe11216b3ea594d5c93eb066cf0
5a7737e401a1c4a0df1cd78b66c4c827320f1d14
/dictionary.py
201d40cab7569f753d7451ebffa76edac68896af
[]
no_license
https://github.com/venkatajagadeesh123/python_snippets
41ada001730bda070d0984b6931b5a94995ac1d9
c2c7394b80a86f1bc4ac3c051d5bc655414f8fbc
refs/heads/master
2021-01-02T09:18:58.512713
2017-08-02T06:26:28
2017-08-02T06:26:28
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
student = {'name': 'John', 'age': 25, 'courses': ['Math', 'CompSci']} for key, value in student.items(): print(key, value) # Return a list by sotred values citys = {'three':3,'one':1,'two':2} # method 1 k = [(k) for k in sorted(citys,key=citys.get)] # method 2 n = sorted(citys.items() , key= lambda t : t[...
UTF-8
Python
false
false
904
py
11
dictionary.py
8
0.564159
0.537611
0
58
14.5
69
maayanbrodsky/questions-app
2,001,454,788,926
68354e0024bfe87bf78d426cba0351cf667218b5
c8e2e3afc35a8620a2d6c10767aa1123812ed2fb
/question_db.py
31e38e91f6395847404a3900ae21ecf616dcdea0
[]
no_license
https://github.com/maayanbrodsky/questions-app
69ca5955bbaae89c831e26eb680f5566ed2dbcac
3de174aaf82202f2dbe43bb9298ea70bfc66a403
refs/heads/master
2023-01-24T11:16:08.711673
2020-12-10T20:10:53
2020-12-10T20:10:53
319,647,369
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from dotenv import load_dotenv from flask import render_template, request from Models import Questions, Topics, Users from app import app load_dotenv() app.secret_key = os.environ.get('SECRET_KEY') @app.route("/") def home(): return render_template('home.j2') @app.route("/about", methods=['GET', '...
UTF-8
Python
false
false
3,202
py
17
question_db.py
4
0.582761
0.578389
0
99
31.343434
131
harshhemani/fprint
274,877,921,189
1356d45cea83f09e5e770fe769c819ebcdd50194
c7ccfe8781fbe84a6b15a9e80d489c2a21f22ff9
/orientation.py
c495d0e4991b36f9d36c4f133dfa1ca8a0df437c
[ "MIT" ]
permissive
https://github.com/harshhemani/fprint
4a964d774f228d5344dec4957f8d96653bfda440
102ff331505627f1708f781ca4519d1a910300fd
refs/heads/master
2021-01-19T13:30:19.249467
2015-04-21T09:08:39
2015-04-21T09:08:39
34,307,488
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" @author: Harsh Hemani @date: 21/04/2015 @SoP: Mainly here to provide `get_orientation_map` function This function takes an image matrix as input (gray level) and returns an orientation-map, i.e., a matrix that contains the orientation (theta) value for each pixel in the image. ...
UTF-8
Python
false
false
3,118
py
2
orientation.py
2
0.560295
0.536241
0
90
33.633333
89
zulfadlizainal/5G-NR-Data-Rates
9,929,964,417,618
823e8b31bd213bf9abfa1355cc1011136013b843
0659288c3f9c5022c5f7c45f65b2421184cbdd60
/Throughput Simulation/5GNRTputSim.py
83c716e7482e8e33f96c3a319174b61eebee6eb2
[]
no_license
https://github.com/zulfadlizainal/5G-NR-Data-Rates
00020643eacd97e68ab9955281e437505537754c
c03309684b0c4a360008aff40fba62d41871508e
refs/heads/master
2021-10-25T23:04:28.782429
2021-10-19T06:38:59
2021-10-19T06:38:59
200,147,497
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Created by github.com/zulfadlizainal import pandas as pd import numpy as np df_rsrp = pd.read_excel('Ref_LA.xlsx', 'RSRP') df_rsrq = pd.read_excel('Ref_LA.xlsx', 'RSRQ') df_sinr = pd.read_excel('Ref_LA.xlsx', 'SINR') df_mcs = pd.read_excel('Ref_MCSxR.xlsx') # Calculate Code Rate (R) df_mcs['R'] = df_mcs['R x 102...
UTF-8
Python
false
false
1,156
py
4
5GNRTputSim.py
2
0.626549
0.613274
0
32
34.3125
117
nv-hiep/ISMDust
738,734,422,869
48cc584d7b58c54bf95ac9b0a15d3c5d1e3bf4e2
bb6bc9822d03ef0bc2180c925fcd65b7789822ed
/source/dust/xoh/xoh_simple/hist_xoh.py
e54be44a924a6ec81e95a0f785231d4f23acf8d8
[]
no_license
https://github.com/nv-hiep/ISMDust
d5b2a971a48c2937e912b41c90806168caead028
319a413965f409bfec75ad3deb17eae3ad4defce
refs/heads/master
2021-08-06T21:10:57.320102
2017-11-07T04:52:16
2017-11-07T04:52:16
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os, sys sys.path.insert(0, os.getenv("HOME")+'/ISMDust/common') # add folder of Class import matplotlib.pyplot as plt import numpy as np import matplotlib as mpl import healpy as hp import pylab as pl import module as md import copy from numpy ...
UTF-8
Python
false
false
18,890
py
358
hist_xoh.py
103
0.623399
0.575013
0
442
41.739819
178
dbxogns77/py_lab2
6,502,580,527,064
8c5862e5f060253d5906afad6b0c394a7e380c01
6c2682512e915786e4d5f905d60c46ea3db15f5c
/myprog_pkg.py
0e14ae2d988c652a5e1cd0ffcec0811ac0bae5dd
[]
no_license
https://github.com/dbxogns77/py_lab2
ecfe092ddd1bd140731ab15d7938110f7cdc7607
9805649a7a99f1b7866f48c392fba4266e30a5aa
refs/heads/master
2022-04-23T10:20:48.458208
2020-04-25T10:36:02
2020-04-25T10:36:02
258,748,648
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import my_pkg if __name__ == "__main__": while(1): num = (int)(input("Select menu: 1) convserion 2) union/intersection 3) exit? ")) if(num not in range(1, 4)): print("not in menu!") continue if(num == 1): binnum = (int)(input("input binary number : ")) print("=> OCT> ",my_pkg.OC...
UTF-8
Python
false
false
837
py
4
myprog_pkg.py
4
0.573477
0.537634
0
31
26
82
jucimarjr/ipc20161
11,493,332,505,790
dd9d24862fbe5415e45f597265534827af918bfe
13e1b9ef93d71c146c7a207b8d7377a5df6c08bc
/lista2/ipc_lista2.02.py
23ac1a4b65cb48f4ac5ed5a50c852dc35638eda7
[ "Apache-2.0" ]
permissive
https://github.com/jucimarjr/ipc20161
d0f45bc6b64a3fcaa38595d72daafffb351f6e04
1cc62521d8165cd767b4cf29bba2f704860726fc
refs/heads/master
2016-08-31T07:33:49.245856
2016-06-22T23:54:57
2016-06-22T23:54:57
55,017,497
9
6
null
null
null
null
null
null
null
null
null
null
null
null
null
# #introdução a programação de computadores #Professor: Jucimar JR #EQUIPE 1 # #Any Mendes Carvalho - 1615310044 #Eduardo Maia Freire - 1615310003 #Kid Mendes de Oliveira Neto - 1615310011 #Luiz Gustavo de Rocha Melo - 1615310015 #Matheus Palheta Barbosa -1615310019 #Victor Rafael da Silva e Silva - 1615310025 # valor...
UTF-8
Python
false
false
470
py
384
ipc_lista2.02.py
384
0.742489
0.609442
0
19
23.526316
44
chaithra-yenikapati/python-code
13,597,866,494,536
cc36469451c13d6932ac196f7b102ac0dc2cc04e
341c34c196f86d0dbfcdcec093b5e424da32f23b
/question_04.py
ea8a4e6ce781b8b631f5733c5fb825f2ef9617ea
[]
no_license
https://github.com/chaithra-yenikapati/python-code
db4f91491f55fc52e00e06ca429d046e3a59b701
8069d441a07fb6d8a03671694e89a86f1734dbee
refs/heads/master
2021-01-10T13:32:33.107499
2016-01-02T00:58:15
2016-01-02T00:58:15
48,893,686
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'Chaithra' notes = """ This is to introduce you to think on optimizing the solution by iterating down the code written """ #Given a list of numbers, modify the list so that each element has the product of all elements except the number #ex: Input:[1,2,3,4,5] #output:[120,60,40,30,24] #Retu...
UTF-8
Python
false
false
1,796
py
20
question_04.py
20
0.546771
0.47216
0
52
32.576923
112
gylow/ml-recommendation
12,008,728,573,095
f56d42aefab4064a963993c2057f6fb818917aaa
08502ca2b4477dd6aa9c612177395a4ae0ebf548
/src/metrics.py
56b3419413b77895385371ba36877d7b32aa9f11
[ "MIT" ]
permissive
https://github.com/gylow/ml-recommendation
3e3299ed1c68267465b1ae4ad010b422c421cccf
7ba19d7c1044f6ba2d6dccda188359a00a6cdf52
refs/heads/master
2022-12-05T22:53:31.066761
2020-09-01T14:57:27
2020-09-01T14:57:27
286,829,964
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd from sklearn.metrics import mean_squared_error, median_absolute_error, r2_score class Metrics: def __init__(self): pass def calculate_regression(self, y_true, y_pred): ''' Calculate the metrics from a regression problem :param y_true: Numpy.ndarr...
UTF-8
Python
false
false
726
py
10
metrics.py
7
0.61157
0.604683
0
19
36
106
letterix/rasp-temp
16,484,084,502,423
13fa063297db068bb0aa3544662bb366bece67de
100f77348c720c2c7c7a31029f2c115b5cc586cb
/raspberry/backend/handlers/installationHandler.py
23fcf3428e9eaa94f82c67b2f08634ce8b24a032
[]
no_license
https://github.com/letterix/rasp-temp
2b0644ff8e7a68739d48507ccbdbd0a1e2b63256
add27b894ab8533702eb07219b86aea30f3d8aa5
refs/heads/master
2021-01-10T20:00:59.982757
2015-12-26T11:23:26
2015-12-26T11:23:26
39,295,970
0
0
null
false
2015-12-26T11:23:27
2015-07-18T11:20:32
2015-09-18T15:19:13
2015-12-26T11:23:27
2,079
0
0
0
Python
null
null
from dao import InstallationDao from uuid import getnode as get_mac def get_installation(): installation = InstallationDao.get() if installation and installation['serial_number'] == str(get_py_mac()): return installation print("Setting correct serial_number") serial_number = get_py_mac() ...
UTF-8
Python
false
false
726
py
142
installationHandler.py
113
0.683196
0.679063
0
23
30.608696
76
hlfwm/lightcurve-chunksize
4,166,118,283,443
d09f7b63b5008f3034a2b92c8edc1e30617a6a93
cb46c68da245fb33dbe4fd820c870b785229a650
/lightcurve-assoc.py
868d87f6ed757d45d56cbae70b061baeb4d39dd9
[]
no_license
https://github.com/hlfwm/lightcurve-chunksize
9d9ecc63cba40adc8dc665d2c350d4c954b6f18c
c0d9d314c95b692ccce4f8767832374703768fd2
refs/heads/master
2021-01-21T12:03:19.136241
2015-09-12T11:23:23
2015-09-12T11:23:23
42,354,367
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import scipy as S import monetdb.sql #need sudo ipython import os, socket, sys machine_tableno = { 'stones01.scilens.private' : 0, 'stones02.scilens.private' : 1, 'stones03.scilens.private' : 2, 'stones04.scilens.private' : 3, 'stones05.scilens.private' : 4, 'stones06.scilens.priva...
UTF-8
Python
false
false
1,943
py
4
lightcurve-assoc.py
4
0.650026
0.616572
0
51
37.098039
181
akashp11/EnggProject
16,492,674,442,852
5c6c79d969cf6e10f16ade389ca069228de2faed
402a1ad20fa4601507114d9387c9324c314bceaa
/handlers/register_phc.py
c6227c3222f2661f74a1294eb95fa21bbc2a1d55
[]
no_license
https://github.com/akashp11/EnggProject
b78a233b328b1f74afb3e88c270296d45cac18d0
aca853d6c1a01930232e84cacc31ae97b034d808
refs/heads/master
2022-11-27T18:45:39.895111
2020-08-11T19:14:26
2020-08-11T19:14:26
247,554,282
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask_restful import Resource from flask import render_template, make_response, request, redirect, url_for from wtforms import Form, StringField, IntegerField, TextAreaField, PasswordField, validators, SelectField from passlib.hash import sha256_crypt from models import PHCUser from datastore import db class Regi...
UTF-8
Python
false
false
1,469
py
55
register_phc.py
28
0.681416
0.671205
0
31
46.032258
106
chenyuyi94/opencv-python
9,577,777,114,028
dffefe9e48ac3b246d765a3af90991e0a5978b88
dc26cc64d005f50352de40c8c07e00a2a134a026
/chapter13.py
1e6acd2cd681ccf54845176f4ff738bc313a93bb
[]
no_license
https://github.com/chenyuyi94/opencv-python
cb0143eb3b4b9f1807149361323b32293d5fae02
85582c6c7a2c9e2ac2da7380ee49dbf0674337a2
refs/heads/master
2022-12-07T18:39:29.292956
2020-08-21T13:43:18
2020-08-21T13:43:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # @Time : 2020/7/28 10:10 # @Author : Hubery-Lee # @Email : hrbeulh@126.com ## 答题卡识别 ''' 0. 答题卡仿生变换 1. 图像预处理 2. 形态学处理 3. 找出涂黑的选项 4. 与答案进行匹配 ''' import cv2 import numpy as np import matplotlib as plt # test01_png的答案 ANSWER = {0:1, 1:4, 2:0, 3:2, 4:1} def cv_imshow(winname, src): "...
UTF-8
Python
false
false
7,152
py
17
chapter13.py
16
0.602376
0.559706
0
243
25.316872
104
effigies/etelemetry-client
13,159,779,809,541
e6449a1e56b77be04c6f2337ba1cb814803c7c0a
b20b03bbfbb7417ea7285e647bced40fccb8da62
/etelemetry/tests/test_client.py
9bf1790bef151656217adf5d792b06ae62537ab3
[ "Apache-2.0" ]
permissive
https://github.com/effigies/etelemetry-client
3c5301cc84f173eeb5e1310a8000dbd2cdfcabd0
bf70c9b36c3f2c02e3c8e1a2998637afd5d87621
refs/heads/master
2020-08-01T10:46:09.419461
2019-09-16T15:43:42
2019-09-16T15:43:42
210,972,484
0
0
NOASSERTION
true
2019-09-26T01:25:41
2019-09-26T01:25:41
2019-09-16T15:43:45
2019-09-24T19:01:59
29
0
0
0
null
false
false
import pytest from ..config import ET_ROOT from ..client import _etrequest, get_project def test_etrequest(): endpoint = "http://fakeendpoint/" with pytest.raises(RuntimeError): _etrequest(endpoint, method="get") assert _etrequest(ET_ROOT) # ensure timeout is working properly endpoint = "...
UTF-8
Python
false
false
646
py
2
test_client.py
1
0.671827
0.667183
0
25
24.84
44
KarlOstradt/Master-2021-Hybrid-Human-Machine-interpretation-of-well-logs-using-deep-learning
4,140,348,523,960
e4d009b0d6021d7a5399ec696e44c1e9d580c085
1358d67fff5e634a1bb9ca8490c052076cf956b8
/master/metrics.py
426a26aadf54c07955b05830c241dc0789926ef8
[]
no_license
https://github.com/KarlOstradt/Master-2021-Hybrid-Human-Machine-interpretation-of-well-logs-using-deep-learning
f0400c4f2cfd68dbbefcc342aa7bbe81e30a963a
8e75b16b32c5601a7ee3b7bc12422ffdf6c626fa
refs/heads/master
2023-06-07T03:00:08.025308
2021-06-15T01:08:04
2021-06-15T01:08:04
376,787,411
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import math import matplotlib.pyplot as plt from prettytable import PrettyTable import master.util as util def evaluation_metrics(truePos, trueNeg, falsePos, falseNeg): eval_metrics = { "accuracy" : accuracy(truePos,trueNeg,falsePos,falseNeg), "error_rate": error_rate(truePo...
UTF-8
Python
false
false
5,609
py
26
metrics.py
10
0.634516
0.627919
0
165
32.951515
106
ForexStuff/backtraderbd
10,883,447,139,827
f7d40f70901229bbba6ba8afc7dd47e3ce0f3d5b
a2ef29a89a0ca04294110ebc2e4fe7d4c0113e49
/backtraderbd/__init__.py
8c2192ed469d33ce45f909513ecc0443e69595e9
[ "MIT" ]
permissive
https://github.com/ForexStuff/backtraderbd
477a5dff961aa2a7b0c12e7e5756055991757551
dc211d279ac96fdda48cf60d695507425b8a72f1
refs/heads/master
2022-11-27T07:03:55.996842
2022-09-27T11:51:16
2022-09-27T11:51:16
278,747,881
0
0
MIT
true
2022-11-24T20:44:42
2020-07-10T22:51:02
2020-07-10T22:51:04
2022-11-24T20:44:41
205
0
0
0
null
false
false
__author__ = 'Raisul Islam' __all__ = ['RSIStrategy', 'EMACStrategy', 'MACDStrategy', 'SMACStrategy']
UTF-8
Python
false
false
108
py
18
__init__.py
16
0.62037
0.62037
0
4
25
73
mlauryn/EsatanOpt
2,121,713,875,489
8173359044c90d54c6340adef504ee2948e10566
26c9aff4cdbd5c7ddc3c57bcb654b62b42bdb1a3
/RU/TempComp.py
158b5fb98e0976cd206aac2b16791437a8a3b756
[]
no_license
https://github.com/mlauryn/EsatanOpt
d3f6014afe22e6953ede5af16ab46bb7c341b2e7
4cca1f61aa0a5b2b25886173f32d4728651254b1
refs/heads/master
2021-06-11T04:31:39.238479
2020-04-11T16:08:48
2020-04-11T16:08:48
128,372,853
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import openmdao.api as om import numpy as np class TempComp(om.ImplicitComponent): """Computes steady state node temperature residual across a model based on conductor definition and boundary conditions at single design point.""" def initialize(self): self.options.declare('n', default=1, types=int, des...
UTF-8
Python
false
false
2,922
py
65
TempComp.py
35
0.596167
0.587269
0
75
37.973333
150
adominichini/turnodigital
13,503,377,189,834
a358c267f82690ed674ef6d514117fe747d6a749
5801ad76e11ad8496d79f86a247af1678d1fdc24
/app/urls.py
074c56cfbe56cb5bc51f6cc043c539180b2d96ba
[]
no_license
https://github.com/adominichini/turnodigital
db9418941df14a5e17d35375e0dd8998a9692578
4a61ef50f8f1aa8441779fa7c799f1c5c8cce9f7
refs/heads/master
2018-12-20T19:19:42.711243
2016-05-12T18:21:24
2016-05-12T18:21:24
40,140,869
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls.static import static from django.conf.urls import include, url from django.contrib import admin from rest_framework import routers from api.views import * from app import settings router = routers.DefaultRouter() router.register(r'companies', CompanyViewSet) router.register(r'staffs', StaffViewSe...
UTF-8
Python
false
false
2,882
py
72
urls.py
43
0.699167
0.699167
0
59
47.864407
129
hwang033/job_algorithm
17,772,574,704,254
e099f0e45e4292f757e063c51d814ae7ea6065e0
61d03b29778df041318bb43758d98186f70a5319
/py/longest_palindromic_substring.py
67138302a11600d5120f5ebdb5a539dc315ce478
[]
no_license
https://github.com/hwang033/job_algorithm
9829f33eb5c9d5f7bb0083676bad95550b79f06a
199557a34c1b3820757e68bf031c2c44223fa9bb
refs/heads/master
2016-09-05T19:32:32.903991
2015-08-14T01:23:47
2015-08-14T01:23:47
38,217,155
1
0
null
false
2016-02-21T23:45:37
2015-06-28T22:49:39
2015-08-07T19:23:30
2016-02-21T23:44:53
681
1
0
1
Python
null
null
import pdb class Solution: # @return a string ''' def longestPalindrome(self, s): # f[i][j]= f[i-1][j-1] + (1 if s[i]==s[j] else 0) m = len(s) f = [[(1 if i==j else 0) for j in range(m)] for i in range(m)] #print f max_len = 0 max_i = 0 max_j = 0 ...
UTF-8
Python
false
false
3,705
py
147
longest_palindromic_substring.py
144
0.669096
0.660729
0
62
58.758065
872
Gjgarr/projEuler
481,036,374,795
1ffb0af5e4ae593151d0b6b1f69d95b8ff615a8a
76760f03437548e3e2fe81efa667ea4d2fb149f8
/solved/und1sec/p5.py
fe96d22d9e289b18a7a9ffecfa3f9407c0ac21a9
[]
no_license
https://github.com/Gjgarr/projEuler
5e85957ae87a21e44444a301ae0eb79e8d02d220
618adfc20859cac39a7e9e3ddac50358a6cce9d0
refs/heads/master
2019-01-02T23:11:45.385669
2016-05-31T08:19:48
2016-05-31T08:19:48
40,143,870
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. #What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? import time def div_by1_to20(): num = 2520 while any(num % i for i in [11, 13, 14, 16, 17, 18, 19, 20])...
UTF-8
Python
false
false
585
py
59
p5.py
59
0.610256
0.54188
0
20
28.25
107
Abutalib44/django-ITI-proj
13,305,808,700,163
15eb55d3a6014615c3cafe161e7d6973daa5107b
51dec6e05cb877578b722f6e21e100cbec7e7031
/AppProject/urls.py
6870515fb8d899706d839954f760b4d7568db183
[]
no_license
https://github.com/Abutalib44/django-ITI-proj
6b90bfbd219ef7a18a07ae0744d25c3d383f4a95
fc04df84ce1c1a9b7748a357fbf0a80962475c17
refs/heads/master
2023-04-04T08:57:47.516264
2021-03-30T21:49:04
2021-03-30T21:49:04
353,146,369
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path,include from .views import createProject, create_tags app_name="AppProject" urlpatterns = [ path('create/', createProject, name='create'), path("create_tag/", create_tags, name='create_tag') ]
UTF-8
Python
false
false
233
py
40
urls.py
29
0.712446
0.712446
0
9
24.777778
55
Ptolemy-DL/Ptolemy
16,097,537,428,928
8ada95c938b90407ffdca2782f193f2ec77c1256
bc8509d57a162fb685da06a98c67dc8130d96316
/src/nninst/plot/heatmap_alexnet_imagenet_inter_class_similarity_frequency.py
2ce0692dbb9dbc53c64f62fdadf855b89afbf67f
[ "Apache-2.0" ]
permissive
https://github.com/Ptolemy-DL/Ptolemy
2065e2d157d641010567062410bee4608691d059
f72a531286d17c69e0e2e84d0ad8a5b0587e2e08
refs/heads/master
2023-05-29T08:58:18.328258
2021-06-15T09:28:16
2021-06-15T09:28:16
284,590,756
115
5
NOASSERTION
false
2020-10-24T04:18:51
2020-08-03T03:06:35
2020-10-17T14:45:11
2020-10-24T04:18:50
1,734
5
1
0
Python
false
false
import numpy as np import pandas as pd import seaborn as sns from nninst.backend.tensorflow.model import AlexNet from nninst.backend.tensorflow.trace.alexnet_imagenet_inter_class_similarity import ( alexnet_imagenet_inter_class_similarity_frequency, ) from nninst.op import Conv2dOp, DenseOp np.random.seed(0) sns....
UTF-8
Python
false
false
3,277
py
143
heatmap_alexnet_imagenet_inter_class_similarity_frequency.py
130
0.616417
0.610009
0
98
32.438776
85
bagreve/Nivelacion
7,069,516,178,840
9630aa5321205638e6ea0ed7ca6edb0364e2dd50
c329622b727d24e6305f4c6868b86e8708713871
/22082019/000900.py
65aa6ed9c953ad5fa8b8e50cb99baaf12f03694a
[]
no_license
https://github.com/bagreve/Nivelacion
ee9c09a4dd7d83a7b5b4c2cbdd0bf908c779e8de
32ff794e828ed9745d808d3597c5ba37446f1539
refs/heads/master
2020-07-06T16:42:07.294339
2019-08-31T23:49:58
2019-08-31T23:49:58
203,082,083
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# La actividad final trata sobre encontrar la suma de todos los numeros multiplos de 3 y 5 # y que la suma sea menos que 100 lista3 = [] # Se crean dos listas vacias para llenarlas con los multiplos lista5 = [] # de 3 y 5 sumatotal = 0 # Se crea un contador para revisar que la restriccion de bajo 100...
UTF-8
Python
false
false
1,154
py
22
000900.py
22
0.686308
0.649913
0
21
53.809524
103
ZionDeng/LeetPythonCode
2,405,181,734,391
b38a7479f896003d43d4b2eb0307ead4bf6dde7b
ebfcfb7d9ff07d71bff481cc4c1eb09db8b4a6ed
/List_problems/T922_sortArrayByParity.py
ed7cbbb3ea6c895ddb47a7a794653d61653b7c1a
[]
no_license
https://github.com/ZionDeng/LeetPythonCode
3d23f796135b21fc7e5233c2e4dbfa953f1680c7
c507f684dc98986dfc2d5f80d324964874f0f221
refs/heads/master
2023-02-18T08:31:15.971844
2021-01-15T08:46:16
2021-01-15T08:46:16
317,254,598
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from typing import List class Solution: def sortArrayByParityII(self, A: List[int]) -> List[int]: # p_odd = 1 # p_even = 0 # n = len(A) # while p_odd < n and p_even < n: # try: # while A[p_odd] % 2 == 1: # p_odd += 2 # ...
UTF-8
Python
false
false
740
py
127
T922_sortArrayByParity.py
123
0.405405
0.378378
0
26
27.461538
61
JuanBrugera/UNIR-DevOps-CP1B
15,375,982,967,009
1f9e8d25e399a46f21617abf8d89dedc92e4bffb
afcfbfeabe015b577c4420eff2aca0d9ecb691bc
/src/todoTable.py
b88c6f1c8de6553306476e2dbb86007c7e6e1da5
[]
no_license
https://github.com/JuanBrugera/UNIR-DevOps-CP1B
ed8371d47337a9037aeea468e8172e414e360654
293af9dbf83db110a31dec4c4e288fd53387e9f0
refs/heads/master
2023-02-26T16:45:42.761602
2021-02-07T18:01:35
2021-02-07T18:01:35
336,852,760
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import uuid from typing import List import boto3 class TodoTable(object): def __init__(self, table, dynamodb=None): self.tableName = table if dynamodb: self.dynamodb = dynamodb else: self.dynamodb = boto3.resource('dynamodb', ...
UTF-8
Python
false
false
2,898
py
14
todoTable.py
8
0.452381
0.447895
0
105
26.6
79
pipistar2017/python-django2.0.0-trainningProject
12,893,491,826,258
290c166e358f56b5664fc4102bf9433f0ea2f4b0
94c502cb1019002d414be9a1d1374ac582c951ed
/lesson/models.py
26f273c9272b1b6c77d6ce449b6a49f49dfdd908
[]
no_license
https://github.com/pipistar2017/python-django2.0.0-trainningProject
c0833150d599aff03edb3ae6b5f28db15c4fe47a
00f75428ca0a5638fd815918d99fd9e6ea1ec046
refs/heads/master
2020-04-14T19:43:53.145992
2019-01-04T07:13:48
2019-01-04T07:13:48
164,069,204
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models class Lesson(models.Model): lesson_id = models.AutoField(primary_key=True) lesson_title = models.CharField(max_length=255) content = models.CharField(max_length=255) link_info = models.CharField(max_length=255) attachment = models.CharField(max_length=255) lesson_cod...
UTF-8
Python
false
false
2,197
py
13
models.py
13
0.658625
0.636777
0
47
45.744681
135
ksenia-krasheninnikova/genome_comp
8,993,661,555,769
4d100aea34a3fc0abaf4b27cc07c274f120f0dab
ba4d302ed6a51601c4def05100563483f3af93e8
/bin/draw_exons_distribution
37b71cddc7b6ae77473484b89fd69ec66b449fe6
[]
no_license
https://github.com/ksenia-krasheninnikova/genome_comp
c4b5be6e06b719930678ba9d59dc3e09799f7287
02a6d4b7334d1e72b0b4e07f0499f6b00af21093
refs/heads/master
2021-06-08T19:07:20.357701
2016-11-18T13:59:11
2016-11-18T13:59:11
43,004,304
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/hive/groups/recon/local/bin/python import bisect import sys import argparse import numpy from collections import Counter import matplotlib matplotlib.use('Agg') from matplotlib.backends.backend_pdf import PdfPages import matplotlib.pyplot as plt import os def draw_distr(path, size2quantity_1, size2quantity_2, size...
UTF-8
Python
false
false
1,783
26
draw_exons_distribution
24
0.645541
0.616938
0
49
35.387755
119
kareemsuhail/nws_project_1
15,942,918,641,658
9603a6d6748e6e660fa6629a730b7524ba346ba2
1140c0fd00d208721fc0e9ee58458399f40a4b94
/ClientThread.py
3da8fc676cf511ef109f95d7f711089b8da31207
[]
no_license
https://github.com/kareemsuhail/nws_project_1
0c3badc1381941af1f7d8c5084edb4dc34d5eb43
1d89ae9334d2bc76c6d503d6480eca7621dd3837
refs/heads/master
2021-04-26T22:16:57.193016
2018-03-09T19:35:06
2018-03-09T19:35:06
124,060,115
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from threading import Thread from textblob import TextBlob import json class ClientThread(Thread): def __init__(self, ip, port,conn,connected_users,threads,groups): Thread.__init__(self) self.ip = ip self.port = port self.conn = conn self.connected_users = connected_users ...
UTF-8
Python
false
false
4,955
py
5
ClientThread.py
5
0.565288
0.563269
0
98
49.55102
131
ZacharyKarry/RegEx
9,165,460,251,140
4ecff1b1f91a1370e3b21869d08ba39885e186be
55d0fe4d6f45e83e2ce0d37d951e89047798e9e5
/test_regex_functions.py
4f8beb92d3d52c0baa0a640a18a07f5bf25461bd
[]
no_license
https://github.com/ZacharyKarry/RegEx
7ef71f0e8f6c0eb31b864ca97505989e7e4c7bc9
d9c3c9814e54719a34573dd60ff184e2777dcda5
refs/heads/master
2020-05-14T12:02:51.605397
2019-04-17T00:31:42
2019-04-17T00:31:42
181,787,849
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# test solutions for A2, Part 2 from unittest import TestCase, main, TestLoader, TextTestRunner, TestResult from regex_functions import is_regex, all_regex_permutations from regex_functions import build_regex_tree, regex_match from regextree import Leaf, DotTree, BarTree, StarTree, RegexTree # brief aliases ...
UTF-8
Python
false
false
23,354
py
3
test_regex_functions.py
3
0.452342
0.416032
0
505
44.245545
91
GoogleCloudPlatform/professional-services
3,908,420,291,408
b5eafdd67f733f3c94ebc150f941da9423467b75
61004e474b7b2ad0071c16766f0f7874f04f9466
/tools/bqms-config-generator/config_generator/util/constants.py
48430a3301b27bd52d1828534e1c49598210977c
[ "Apache-2.0" ]
permissive
https://github.com/GoogleCloudPlatform/professional-services
eb79751efae765a8c691a745e520f44f51bd715c
0f51121b945bd74c7f667e74e8861fceda87565c
refs/heads/main
2023-09-05T02:57:33.328973
2023-08-30T14:40:30
2023-08-30T14:40:30
91,730,359
2,626
1,381
Apache-2.0
false
2023-09-14T20:13:42
2017-05-18T19:29:27
2023-09-13T21:27:22
2023-09-14T20:13:42
368,532
2,570
1,264
72
Python
false
false
# Copyright 2023 Google. This software is provided as-is, without warranty or # representation for any use or purpose. Your use of it is subject to your # agreement with Google. """String constants""" from dataclasses import dataclass @dataclass(frozen=True) class ObjectTypes: """ The type of source object used ...
UTF-8
Python
false
false
1,640
py
2,659
constants.py
1,136
0.65122
0.64878
0
48
33.166667
114
Tinkerforge/flash-test
17,282,948,413,638
70a7813635cb393d18bf5af887f89819f0443e83
5e27682b74c317b8abfad02ae9256e8f394b45c4
/src/flash-test/plugin_system/plugins/bricklet_voltage_current.py
b5d4dbb1cd20d38d17ecfab5cd74437d41a7e379
[]
no_license
https://github.com/Tinkerforge/flash-test
88b18fcb8ef988f3a68e4ce3c5f7d60d34c8cbda
845756dec9f890dd487ec1a48942205e0ce81c7b
refs/heads/master
2023-09-04T10:57:16.621811
2023-08-30T08:56:18
2023-08-30T08:56:18
40,542,028
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ flash-test (Brick/Bricklet/Extension Flash and Test tool) Copyright (C) 2016 Olaf Lüke <olaf@tinkerforge.com> bricklet_voltage_current.py: Voltage/Current plugin This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as pub...
UTF-8
Python
false
false
4,248
py
131
bricklet_voltage_current.py
121
0.685303
0.669733
0
117
35.230769
124
ibrg/coloring-page.ru
16,381,005,298,545
0a0d274faa682ff9601c594f51f83b881152ca35
79f3c9f5556b57e6f233d2779951986488834395
/colloring/core/admin.py
9b3fa4cfab1742b1c768ac4a4b62a7b16d740f63
[]
no_license
https://github.com/ibrg/coloring-page.ru
33c5cb0023d03edb3672be6f13f9387cc99a4ac3
a7c0412255b4b308bba897aa4effd575b9e38fac
refs/heads/master
2018-09-29T12:48:59.324881
2017-02-19T08:22:03
2017-02-19T08:22:03
82,320,226
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from core.models import Category, SubCategory, ColoringPage class CategoryAdmin(admin.ModelAdmin): prepopulated_fields = {'slug':('title',)} class SubCategoryAdmin(admin.ModelAdmin): prepopulated_fields = {'slug':('title',)} admin.site.register(Category, CategoryAdmin) admin....
UTF-8
Python
false
false
399
py
15
admin.py
8
0.784461
0.784461
0
12
32.25
59
c-bata/wsgicli
10,041,633,566,883
180efdca356ac441a9e8f32d78eaf06dab118db6
c964b1a03a3c980857272c2ba11bc89f354d72ea
/wsgicli.py
0beb1fceefb6d06450c6b2e55e5530dd25f9a0a3
[ "MIT" ]
permissive
https://github.com/c-bata/wsgicli
49f222fb6f8350185d2f89a053c922bf0ef30eba
30fee1550a263c0821a0b79283f293f393c8dc27
refs/heads/master
2020-06-17T17:04:10.564152
2016-12-25T12:07:17
2016-12-25T12:07:17
74,986,811
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import click from importlib.machinery import SourceFileLoader import os import site import sys import time import threading import _thread from wsgiref.simple_server import make_server ##################################################################################### # Command Line Interface ######################...
UTF-8
Python
false
false
12,960
py
12
wsgicli.py
5
0.602623
0.598765
0
354
35.610169
108
ripsj/true-home-test-api
12,661,563,600,251
d2363cdcca8ae51fe35e38e8121d75c46d0099f2
d75b1e0b3c7ac734cb77820351b772ca56f8f8df
/project/apps/posts/tests.py
b3feb1dffd8ba49a6f08448803afe4efbb8e7cdc
[]
no_license
https://github.com/ripsj/true-home-test-api
e750090865b5731ec24f36269f7c6f90096ec0c2
6378a050ed4b1684350d4113eb3b6c0329018b82
refs/heads/master
2022-11-29T19:38:05.660840
2020-08-07T03:34:23
2020-08-07T03:34:23
285,876,985
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.test import TestCase, Client from django.db import IntegrityError from project.apps.categories.models import Category, Subcategory from project.apps.posts.models import Posts import json class PostsTestViewCase(TestCase): def setUp(self): self.client = Client() self.category = Category....
UTF-8
Python
false
false
2,769
py
18
tests.py
15
0.546046
0.538462
0
78
34.512821
96
Jaieu/NLP_related_projects
2,654,289,821,291
1d4f4a80b92f7ebf89b2f65c33784171ab158664
8d5f4c18fc8bfcc5ab4c827d1005f024b8027915
/GNN/RGCN/data_preprocess.py
44bd6c1813778bc7644a62e053c565fd4a1a18ee
[]
no_license
https://github.com/Jaieu/NLP_related_projects
2f9a5596cd71cc9840e816dcee27dd5bc6ba5795
635661d7a4ba14ffd1d7bb955f26351b8b59d291
refs/heads/master
2023-07-18T22:14:50.254091
2021-09-15T10:02:38
2021-09-15T10:02:38
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Name: data_preprocess.py Purpose: transform raw RDF data into vertex and edge data Data: 2021.3.18 Author: lixh """ import pandas as pd import random import numpy as np import pickle as pkl from utils import * import time import scipy.sparse as sp """ 先拿旧数据测一下,需要确定所有的edges数据加起来,共有多少种edge类型,构造关系-id、实体-id字典 step1、准...
UTF-8
Python
false
false
17,578
py
94
data_preprocess.py
30
0.596464
0.586524
0
394
37.045685
150
ffsjp/ffsjp
10,024,453,713,694
bd681a8e524d0f63c3000fb1dae02ef404ab1fd8
1388d1c5fb2c0486663e741b28dab9f7d9fbe834
/ffsjp/models.py
bd37d505177602dd4876ff4e280151d17ed5a2a3
[ "MIT" ]
permissive
https://github.com/ffsjp/ffsjp
24401ee923f283bc5e7068507e2e33b78ec9ff88
439092752c74959f37361cdb73fa242b4529fa49
refs/heads/master
2021-01-01T20:23:20.009320
2015-01-17T19:12:10
2015-01-17T19:12:10
29,202,803
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from ffsjp import db class Pages(db.Model): id = db.Column(db.Integer, primary_key = True) model = db.Column(db.Text) url = db.Column(db.String(20), index = True) title = db.Column(db.Text) content = db.Column(db.Text) anons = db.Column(db.Text) keywords = db.Column(...
UTF-8
Python
false
false
950
py
8
models.py
4
0.637895
0.628421
0
28
32.892857
73
billsix/Craft
2,061,584,302,117
2ec13414c889db418b875b205fba59c5b5b80df3
02bd298b75deac972a54b44101d575d7e13cd157
/deps/curl/tests/http/test_12_reuse.py
83bfadfe4ab339c937c027872dc02c9819b97f35
[ "curl", "MIT" ]
permissive
https://github.com/billsix/Craft
184c9c432c17d79cea5e077dc2ce536bdebfdffa
5165ed913d1295095170747ec277e54d8bbeee91
refs/heads/master
2023-08-18T12:31:08.302524
2023-08-08T21:43:17
2023-08-08T21:43:17
241,174,423
1
1
MIT
true
2020-03-28T04:18:12
2020-02-17T18:04:08
2020-03-28T03:46:45
2020-03-28T04:18:11
14,783
0
1
0
C
false
false
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #*************************************************************************** # _ _ ____ _ # Project ___| | | | _ \| | # / __| | | | |_) | | # | (__| |_| | _ <|...
UTF-8
Python
false
false
2,979
py
126
test_12_reuse.py
54
0.549849
0.53575
0
78
37.192308
89
Adripdv/Dictionary-Data-Structure-
6,682,969,133,807
8905f118cf2d635de1185873ed4565ae66e6903f
0c828fcc5a26a2eb30485aee456da192e5773116
/main.py
ff55d2bb39144e4cb11f63f08c06d4cf08146941
[]
no_license
https://github.com/Adripdv/Dictionary-Data-Structure-
6f01cd84037ced91cb164f0117bbd7b6de0d4fcd
5d13107b44bb073ab8e5c4586bbcc2fcd0823e8a
refs/heads/master
2023-03-07T23:46:04.545256
2021-02-18T12:15:45
2021-02-18T12:15:45
340,040,080
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Dictionary items are key value pairs enclosed in curly brackets # Dictionary is ordered of python 3.7 # Dictionary is mutuable # Dictionary keys are unique, cannot be duplicated # Dictionary accepts different data types ''' Dict Attributes ''' # print(dir(dict)) # print(help(dict.pop)) ''' Creating Python Dicti...
UTF-8
Python
false
false
2,217
py
1
main.py
1
0.57465
0.559314
0
86
24.790698
108
XA1903LastTeam/OneGouAPI
1,812,476,212,517
0e63419472e9e0c19679911b099867219173ac64
5bcba1aae1dca51bc5eb42a47c72ebf51d61e1b3
/UserApp/views.py
3649a4607624d608193677c885829104a80e79ac
[]
no_license
https://github.com/XA1903LastTeam/OneGouAPI
acdb6e1e1c96b37f1867e50113fbd51623efcbf2
2a92757c1ecbacfcd4d7d478310c1d9ab1f55b07
refs/heads/master
2022-12-01T04:46:22.878640
2019-09-16T13:20:32
2019-09-16T13:20:32
206,899,167
1
1
null
false
2022-11-22T04:14:29
2019-09-07T01:37:07
2019-09-16T13:20:55
2022-11-22T04:14:26
5,097
0
1
3
Python
false
false
from django.core.cache import cache from django.core.files.storage import default_storage from django.core.files.images import ImageFile from django.views import View from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from UserApp.models import UserModel from Address.models impo...
UTF-8
Python
false
false
11,335
py
57
views.py
53
0.521929
0.513761
0
252
39.809524
113
0-ng/ice-wine
13,572,096,700,137
b119d9dc4bcc7dbd6ae57323d8f2a2d76e65c0f9
bbb17bc20e7e504a85f164b895dcf4dbefe9ba40
/static/migrations/新建文件夹/0006_auto_20200616_2120.py
08c4372743f2d68e149e550d71ea4074afaf45df
[]
no_license
https://github.com/0-ng/ice-wine
f19f3ba9a8a145d8e6eabb88344f6f434bf1a3fb
f10010630fb86e3aebe81974a13421240d162fb0
refs/heads/master
2023-02-12T22:17:17.689332
2021-01-07T04:52:18
2021-01-07T04:52:18
326,909,926
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.2.6 on 2020-06-16 13:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('luogu', '0005_auto_20200616_2103'), ] operations = [ migrations.AlterField( model_name='tag', name='name', ...
UTF-8
Python
false
false
739
py
302
0006_auto_20200616_2120.py
93
0.561139
0.482412
0
18
32.166667
268
ikamensh/pydolons
18,511,309,068,467
aebb36293c867e34c20406697dfefb893f2188f4
bdc948500f60da3e24e4be7a508cded9c6a65a4d
/ui/core/gameconfig/UserConfig.py
714440129b85b09841b095c9e54eb573b1fcd600
[ "Unlicense" ]
permissive
https://github.com/ikamensh/pydolons
098fed13f2d11be61d7b74922817654f27f64b99
5af1e6461530a5d4548588c2f9804a91c28f33ea
refs/heads/develop
2021-12-14T14:11:17.808044
2021-12-01T15:23:33
2021-12-01T15:23:33
138,201,231
5
0
null
false
2021-12-01T15:22:08
2018-06-21T17:21:21
2021-12-01T15:19:48
2021-12-01T15:22:07
107,343
3
0
15
Python
false
false
from os import path, mkdir, environ, name as osname from datetime import datetime from json import dumps, loads from copy import copy DEFAULT_CONFIG = { 'window': { 'resolution': { 'width': 1366, 'height': 768}, 'fullscreen': True, }, 'sounds'...
UTF-8
Python
false
false
2,745
py
400
UserConfig.py
391
0.530055
0.516576
0
94
28.191489
68
hyxz/script
10,591,389,380,932
480e8a7317b813b69afb9642717af9426be292fb
c44b8c4e08818c1e368c0b813c807aa1e23fc971
/bigram_emcoUN.py
8e785e2bff895472890b682974ecb9e5ab89def8
[]
no_license
https://github.com/hyxz/script
6e77099fb54edfb4485fe41a78e5e2a1f8166d31
a23d4faea361e4800cdda33d0615473de7170867
refs/heads/master
2020-04-07T22:56:36.872279
2018-11-23T07:30:42
2018-11-23T07:30:42
158,791,244
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 import json from tqdm import tqdm #process emnlp data def gener_bigramNUA(inputfile): relation = [] bi_list = [] word_count_list = [] word_count_all = {} with open(inputfile,'r') as rf: lines = rf.readlines() for line in tqdm(lines): line_item = [int(i) for i in line[:-1].strip()...
UTF-8
Python
false
false
5,466
py
4
bigram_emcoUN.py
3
0.57135
0.52854
0
174
30.413793
135
ppcecho/mysite
4,956,392,261,326
07539bbb4033ed272cd0baea1ea977ecd1460336
2a364db2c964a8f5f2b2f49b3be582ca9ecd0a72
/apache/django.wsgi
5d4ec2a69c89af8fdbb045b3f2356aef31dbd353
[]
no_license
https://github.com/ppcecho/mysite
d2d4f773d1db47209693d140f13fe78f31f7c2e5
f8981d6bef512716a951b493f9d60da250a6f823
refs/heads/master
2021-01-10T18:46:35.577432
2012-12-14T12:07:06
2012-12-14T12:07:06
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python mport os import sys import django.core.handlers.wsgi os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' app_apth = "/root/mysite/" sys.path.append(app_apth) application = django.core.handlers.wsgi.WSGIHandler()
UTF-8
Python
false
false
240
wsgi
4
django.wsgi
3
0.7625
0.7625
0
9
25.666667
56
kiruthihan10/smile-Recognition-with-Tensorflow
3,934,190,081,618
95191c345fae2ba5b88fa3714a883c348fdd3b16
190c3445affa95a5854f0eba2bc24433b78362c6
/classify.py
351e6dbd63fa31c5185f43bca202dd0f009e22e6
[ "MIT" ]
permissive
https://github.com/kiruthihan10/smile-Recognition-with-Tensorflow
e5ec7d03ad0df14a28d8ae6690882ac7de18b74b
173cda52310cc9e47fc9b19a6eecc88a56d39e84
refs/heads/master
2021-12-29T00:07:52.268891
2021-12-11T12:11:47
2021-12-11T12:11:47
178,582,494
1
0
MIT
false
2020-07-16T09:09:15
2019-03-30T16:20:07
2020-07-16T09:08:56
2020-07-16T09:09:14
13
0
0
0
Jupyter Notebook
false
false
import shutil smile = open("SMILE_list.txt") for line in smile: line = line.strip() try: shutil.move("C:\\Users\\kirut\\Documents\\smile_rec\\lfwcrop_color\\faces\\"+line[:-3]+"ppm","C:\\Users\\kirut\\Documents\\smile_rec\\SMILE_list\\"+line[:-3]+"ppm") except : None non_smile = open...
UTF-8
Python
false
false
625
py
7
classify.py
4
0.5936
0.5872
0
16
37.1875
176
internetimagery/animCopy
16,346,645,551,675
6ba30e2821f3e4755957da747ae57b164342f377
632fc29f9a1b9b12756d7c8ee2b0e85813d9d4f6
/view/maya/clipEdit_OLD WITH ADVANCED CLIP PREVIEW.py
b67261fc62d1db3964aa30f925f8fae45bb6987f
[]
no_license
https://github.com/internetimagery/animCopy
4713a7a351674d3ddb3ae4246497778b704458f5
40552689bbdb84be8d8da3534458c62add844b82
refs/heads/master
2021-01-10T10:21:49.899565
2016-01-06T11:41:15
2016-01-06T11:41:15
43,822,420
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Create a new/edit clip import maya.cmds as cmds import os.path import time import warn import os class ClipEdit(object): """ Create or edit an Animation """ def __init__(s, i18n, char, clip, previewImage, requestThumb, requestCharData, requestClipCapture): s.i18n = i18n s.char = char...
UTF-8
Python
false
false
6,280
py
24
clipEdit_OLD WITH ADVANCED CLIP PREVIEW.py
23
0.546019
0.533599
0
196
31.040816
120
kevin-leptons/clink
11,416,023,072,863
0e4a2eda5d57f3275a657ba2815f7b92acd9f62e
db7cc9e850171993e9804289d22b97632d259df2
/clink/service/mongo/error.py
bdfda3c2d37cda08947e74948bf0ae2272063304
[ "CC-BY-4.0" ]
permissive
https://github.com/kevin-leptons/clink
6047f470fb4caf342322981d7122c3862c613416
5257691381eceeb4ae6218e50bcecb4a70f7a637
refs/heads/master
2021-01-20T16:25:01.723700
2017-09-17T08:43:26
2017-09-17T08:43:26
90,838,416
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class DocSpecExit(Exception): def __init__(self, name): self._msg = name def __str__(self): return self._msg class DocumentNotExist(Exception): def __init__(self, doc_name): self._doc_name = doc_name def __str__(self): return self._doc_name class DocumentIndexError(...
UTF-8
Python
false
false
1,055
py
179
error.py
105
0.523223
0.523223
0
38
26.763158
73
carlbarcenas/Temp-PDF-Generator
7,249,904,844,203
cb6c60409c41794c46e3ccb6fb05f5ab447657b8
270947e7cf90b861a52ef26e0abcb60f368d7e09
/reportlabtest.py
e06e1d1570ea673d6d2a3c99b9b76d0fdaca2503
[]
no_license
https://github.com/carlbarcenas/Temp-PDF-Generator
0248da9ac6bc4ea40d6034229bf89f3d6bdfb079
560e0f264c8a44fd1dff5d71457f4dfcc2606ac9
refs/heads/main
2023-08-21T16:14:09.916509
2021-10-20T20:34:19
2021-10-20T20:34:19
415,154,176
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from reportlab.pdfgen import canvas from reportlab.lib.units import inch, cm, mm from reportlab.lib.pagesizes import landscape, A4 from reportlab.lib import colors from reportlab.platypus import Table, TableStyle from reportlab.pdfbase.ttfonts import TTFont from reportlab import graphics #---------------------------...
UTF-8
Python
false
false
4,461
py
1
reportlabtest.py
1
0.549428
0.474333
0
111
39.198198
123
fhaynes/slithermud
6,528,350,311,394
a8964f0bb614e4ba2a342d042cbda3379081955a
2a44b0ac89c536f43bc8e878ad4e7af5e9077037
/MudCharacter.py
014feb5ede7f76c141c38b16ec0d68d9938d9970
[ "Artistic-1.0" ]
permissive
https://github.com/fhaynes/slithermud
25d5924b23a66f8f060a381e924588afb52b93bc
f14da3d65cdc5187678e8e7cc05e56643a663c56
refs/heads/master
2021-01-10T11:27:38.825008
2007-10-22T02:48:32
2007-10-22T02:48:32
44,458,589
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import MudObject import MudProtocol class MudCharacter(MudObject.MudObject): def __init__(self, sockRef=''): MudObject.MudObject.__init__(self) self.sockRef = sockRef self.info['roomRef'] = None self.info['zoneRef'] = None ...
UTF-8
Python
false
false
5,359
py
62
MudCharacter.py
58
0.529017
0.528643
0
168
30.666667
112
jamesremuscat/avx
1,391,569,446,160
c11ec89ed7e17d2b7442ac821b36a0769bae33e5
8c4432951318ef9ca5d2d183841ec7318a278c48
/src/avx/controller/Controller.py
6953f3a5d04985c8996ffff3f40c10d0f791fcc8
[]
no_license
https://github.com/jamesremuscat/avx
b0fe466f3bbb7ad208c8e62d5ebb32e87ad0acad
9cc5d2f2b6e7b86f1c843318c0a8e3e3cceaa60a
refs/heads/master
2021-08-14T07:25:08.636508
2021-04-16T15:41:28
2021-04-16T15:41:28
8,010,587
4
2
null
false
2020-10-26T17:06:44
2013-02-04T16:00:24
2020-05-26T02:30:57
2020-10-26T17:06:43
3,303
4
2
12
Python
false
false
from argparse import ArgumentParser, FileType from avx import PyroUtils, _version from avx.controller.ControllerHttp import ControllerHttp from avx.controller.messagebus import make_messagebus, MessageBus, PYRO_MSGBUS_NAME from avx.devices import Device from avx.Sequencer import Sequencer from avx.utils import loadStat...
UTF-8
Python
false
false
10,708
py
62
Controller.py
49
0.612066
0.610291
0
297
35.053872
207
1337tester/pyfund
1,924,145,366,596
3e0dd5b09dba35b52a4dd308550206549269cd09
73e77bd85e55f1580edad1b40c4d7dafacb1d640
/Scripts/all_pairs.py
3a82ba87d0bff93fad2d928040d346b94d69c86b
[]
no_license
https://github.com/1337tester/pyfund
572e5183c6ac59f4e5f96d8ad0dc30953e5854a5
b023b8945477ca5c8340c1ce8a9b65005a660f06
refs/heads/master
2022-08-30T19:09:34.041156
2022-08-27T09:56:11
2022-08-27T09:56:11
18,031,913
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import itertools import pprint SET1 = ('W10', 'Ubuntu', 'Debian') SET2 = ('HP', 'Epson', 'Lexmark') SET3 = ('16GB', '24GB', '64GB') SET4 = ('6core', '8core', '12core') SET5 = ('Slow', 'Medium', 'RTX3090') SET6 = ('HDD', 'SDD', 'HDD+SDD') SUPERSET = (SET1, SET2, SET3, SET4, SET5, SET6) SUPERSET_MEMB = set(itertools.cha...
UTF-8
Python
false
false
2,613
py
118
all_pairs.py
84
0.637199
0.623421
0
89
28.359551
74
JinalShah2002/House-Prices-Challenge-Solution
6,983,616,857,393
463fcf7f158a1ed0ff78af0d8690b0f76b414639
3f0728770a5d3b974bfe1da6199631f5c1ef2645
/Code/Scripts/Data Preparation Scripts/UnitTests.py
90529b0967825c1bb29138f0a177c8d8d247d30f
[]
no_license
https://github.com/JinalShah2002/House-Prices-Challenge-Solution
b3b083d75ec7f788636e7a6475c37b88db9dc552
8337d39f0d06d619cf3a90568a318bfaf196fdd3
refs/heads/master
2023-03-20T18:55:49.621381
2021-03-18T04:30:00
2021-03-18T04:30:00
289,570,958
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
""" @author Jinal Shah This file will conduct all unit tests on the custom built transformers. It is important to conduct these unit tests because I have built a lot of custom transformers ,and I would like to make sure that I have implemented them correctly. Running these tests will allow me to make sure that the fi...
UTF-8
Python
false
false
4,438
py
33
UnitTests.py
6
0.549347
0.508788
0
130
33.130769
93
ezirmusitua/School-Work
19,696,720,044,762
30cfee11ff66b9abf857d1071cb8b3b95c90cc90
e9a470d29c4cf184ace57f0c907d8788cbe27cd2
/入侵检测/JWinpcapy/PcapOperation/basic_operate.py
1fa0750d23b5a3870390bbe978dce09f5a691720
[]
no_license
https://github.com/ezirmusitua/School-Work
800d0167db19532c871e762a523a1d4f3a41067b
798f023ee61927f74f8bdf57d2a51e0d9560960c
refs/heads/master
2016-06-06T21:34:10.622205
2016-03-07T07:27:04
2016-03-07T07:27:04
53,295,353
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest def GetMac(hex_in) : return "%s:%s:%s:%s:%s:%s" % (hex_in[0] ,hex_in[1] ,hex_in[2] ,hex_in[3] ,hex_in[4] ,hex_in[5]) def GetIP(dec_in) : return "%d.%d.%d.%d" % (dec_in[0] ,dec_in[1] ,dec_in[2] ,dec_in[3]) def get_dotted_decimal_addr(adrTmp) : return [ adrTmp.contents.sin_addr.S_un.S_un_b....
UTF-8
Python
false
false
1,296
py
179
basic_operate.py
133
0.631944
0.582562
0
46
27.195652
107
drewbsmith19/shipwell_assessment
5,480,378,305,713
d68915c2ceaa170e14bc7ae4791bd1341c79c71a
b52b240768e05108e3f893aab9bf5217464d98a3
/assessment/weather/urls.py
381e94ff7ef02422aff1c4e57d572a5131ce438a
[]
no_license
https://github.com/drewbsmith19/shipwell_assessment
7c7692159686d9b9252f89e430e2433c259ec653
287772d143a98c1705efe2824b055fa907d6e840
refs/heads/master
2022-12-11T19:58:32.088825
2019-12-04T23:13:33
2019-12-04T23:13:33
159,742,041
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from . import views urlpatterns = [ path('weather/<lat>/<lon>/', views.weather), path('weather/<lat>/<lon>/<site_1>/', views.weather), path('weather/<lat>/<lon>/<site_1>/<site_2>/', views.weather), ]
UTF-8
Python
false
false
242
py
4
urls.py
2
0.628099
0.615702
0
8
29.25
66
devzgabriel/python-calculator
1,949,915,192,304
9a1124f76dcbc0ba41f793bbe8d6a83dd82862ff
0a307d31883161edb7d3cfeb6b44863f6d3ae417
/calc_defs/calc_part2.py
ade061bf6afde146d9d7d59c6b6b9cbbc82e9a2c
[]
no_license
https://github.com/devzgabriel/python-calculator
b5c16917754793782946fcb6b71c9b688fb97c49
24a7dae9445bdd0a30e60f32f7767721fa26184e
refs/heads/master
2023-03-01T09:17:18.588680
2021-01-30T01:22:20
2021-01-30T01:22:20
277,417,250
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math def part(opcao): str(opcao) if opcao == '21': n_tab = int(input('Qual o Número da tabuada:')) for t in(1, 10): print(f'{t} x {n_tab} = {t*n_tab}') elif opcao == '22': print('Digite os valores de A,B e C') a = float(input('A:')) b = float(inp...
UTF-8
Python
false
false
2,121
py
5
calc_part2.py
5
0.448651
0.422149
0
64
32.015625
70
indralab/adeft_app
15,212,774,184,810
6a68505fdc6db4cf7e395ed20560cf99e2bb44de
c6d196c6309f85fb7f002aa58aee13a879761cca
/adeft_app/scripts/consistency.py
ba646be7e3dcc2c5e81f656ed277d82918f8bae7
[ "BSD-2-Clause" ]
permissive
https://github.com/indralab/adeft_app
96f7806ac6e9ea24e7e10f2afce3804904eaaff5
3f20d04791f598e089bb59ca1ca133d5d51d6c28
refs/heads/master
2020-05-02T15:44:23.315304
2019-05-30T16:54:56
2019-05-30T16:54:56
178,050,936
0
0
BSD-2-Clause
false
2019-05-30T16:54:57
2019-03-27T18:16:54
2019-05-30T16:25:19
2019-05-30T16:54:57
104
0
3
0
Python
false
false
from collections import defaultdict def check_grounding_dict(grounding_dict): """Check that a grounding_dict doesn't have the same longform mapping to different groundings in different grounding maps. """ return check_dictionaries(grounding_dict.values()) def check_consistency_names_grounding_dict(g...
UTF-8
Python
false
false
2,450
py
19
consistency.py
12
0.696735
0.696327
0
64
37.28125
76
zhiqiarcher/QbvCalculationTool
11,192,684,805,081
b21e975518f756f62e27f791286bde02b3590bf8
d1aee1b604e21d6ea371f2a8d5cf257e7d4995e0
/test.py
cc6290b0e7d140991f30d0751019b72530bcdfa3
[ "MIT" ]
permissive
https://github.com/zhiqiarcher/QbvCalculationTool
76b33c03eec6704fc5abe2b3ba9650bbae4d5474
cc6650eda55ae1534a8d21d6de1f235023389d6b
refs/heads/main
2023-01-13T00:37:53.129120
2020-11-04T12:34:14
2020-11-04T12:34:14
309,983,586
6
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import os os.startfile(os.path.dirname(__file__) + '/QbvSchedulerDisplay.xlsm')
UTF-8
Python
false
false
82
py
13
test.py
9
0.719512
0.719512
0
3
26
69
ONSdigital/dp-conceptual-search
4,964,982,238,128
05eb78788551e83735c01cf0ecfad135e44d23d0
77a5aa02f1a47f28e922d21acc83881855fb61f4
/unit/api/search/test_search_content.py
6e31146146357603ebe76231a6583cbccbeb50dc
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/ONSdigital/dp-conceptual-search
5deabda99f70cd3fc3b6df66291d3922df6695df
8f62ff76e8df339249befcb6b83f4c882546032c
refs/heads/develop
2021-06-06T06:06:44.776885
2020-02-07T14:41:57
2020-02-07T14:41:57
132,128,428
3
3
MIT
false
2020-02-07T14:42:31
2018-05-04T10:55:15
2020-02-07T14:42:09
2020-02-07T14:42:30
112,724
2
0
1
Python
false
false
""" Tests the ONS content search API """ from json import dumps from typing import List from unittest import mock from unit.utils.search_test_app import SearchTestApp from unit.elasticsearch.elasticsearch_test_utils import mock_search_client, mock_hits_highlighted from dp_conceptual_search.config import CONFIG from ...
UTF-8
Python
false
false
5,588
py
101
test_search_content.py
91
0.586435
0.58053
0
179
30.217877
111
NIck-Meng/MyPythonScripts
12,652,973,667,517
eb3c4ccb6ce04b3bd7d386279a99375052099139
01d8342bb2d0550b61f11420e564018e14b0048c
/Projectpy3/Exercise/os_module/os_contents.py
25c94f9315828988cbc4cf51307eb1771db02a9f
[]
no_license
https://github.com/NIck-Meng/MyPythonScripts
a6c8f62f7e375a8726b2b45f4dd7f64b8796e540
485140135f3ad9cab302bc80e87276f9eafd7ac1
refs/heads/master
2016-12-13T14:37:39.859693
2016-12-11T13:49:48
2016-12-11T13:49:48
54,879,959
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding:utf-8 __author__ = 'Nick' ''' os.getcwd() 获取当前工作目录,即当前python脚本工作的目录路径 os.chdir("dirname") 改变当前脚本工作目录,相当于shell下cd os.curdir 返回当前目录: ('.') os.makedirs('dirname1/dirname2') 可生成多层递归目录 os.removedirs('dirname1') 若目录为空,则删除,并递归到上一级目录,若也为空,则删除,依此类推 os.mkdir('dirname') 生成单级目录,相当于shell中mkdir dirname os.rmdir('dir...
UTF-8
Python
false
false
5,318
py
152
os_contents.py
149
0.744065
0.738564
0
93
35.16129
125
01Eddie/holbertonschool-higher_level_programming
15,229,954,069,252
eb264718fbdce942761c9925016ed7129ca26195
41a128b3cbf37a3c7f24cb5ef9a09b9e05c6a32d
/0x0B-python-input_output/7-add_item.py
59a94975a5aec6cafccb8801fad0a0797c6151d8
[]
no_license
https://github.com/01Eddie/holbertonschool-higher_level_programming
11b29c5792e7105cb85e654e994782d7d4a5eace
6013c31ff01a3aaf67911436bd3b7e97fa6a9566
refs/heads/main
2023-08-04T14:26:11.519307
2021-09-23T05:15:55
2021-09-23T05:15:55
361,882,781
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 """Using my previous functions""" import sys save_to_json_file = __import__('5-save_to_json_file').save_to_json_file load_from_json_file = __import__('6-load_from_json_file').load_from_json_file add_item = sys.argv """pop: remove and return item at index""" add_item.pop(0) try: """The list must...
UTF-8
Python
false
false
665
py
87
7-add_item.py
75
0.66365
0.657617
0
20
32.15
77
tovmeod/anaf
1,657,857,400,017
d6904166ad13c8ff7bf7fba0bf6817312f5268f5
3db24619d0a361f392854be074387a8d9a2975d5
/anaf/finance/urls.py
5c101bd66751bd59a74fbecf691ef7e23323feac
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
https://github.com/tovmeod/anaf
3af8b75d00c05005ad38a4dc3bcfdbd42586b81f
80e4a00532ce6f4ce76c5ffc858ff90c759a9879
refs/heads/drf
2022-06-11T20:25:38.831819
2019-10-23T18:49:32
2019-10-23T18:49:32
49,788,641
2
4
BSD-3-Clause
false
2022-07-06T19:59:19
2016-01-16T19:56:03
2019-10-23T18:49:39
2022-07-06T19:59:16
32,357
2
4
5
JavaScript
false
false
""" Finance module URLs """ from django.conf.urls import patterns, url from anaf.finance import views urlpatterns = patterns('anaf.finance.views', url(r'^(\.(?P<response_format>\w+))?$', views.index_transactions, name='finance'), url(r'^index(\.(?P<response_format>\w+))?...
UTF-8
Python
false
false
8,924
py
693
urls.py
321
0.467727
0.467727
0
126
69.825397
120
powderluv/edgetpu
14,439,680,075,804
e36fc5794ca8b08b769b5f6b6b012f51128930e0
a38646f0798adf035aa76147e36b27edf3170b92
/examples/classify_image.py
f462cb63690cae4305cb7af383df7adda6d59f3f
[ "Apache-2.0" ]
permissive
https://github.com/powderluv/edgetpu
d305cbf9a7a6a0981e2c33288dc5a2b3cb07f243
a968b4a72546c8cad26d25fcb6bb504849503c4a
refs/heads/master
2020-07-31T20:20:50.762191
2019-10-18T23:14:38
2020-02-16T01:47:12
210,742,049
1
1
Apache-2.0
true
2019-10-18T23:55:04
2019-09-25T02:51:10
2019-10-08T16:24:32
2019-10-18T23:55:03
329,292
0
0
0
C++
false
false
# Copyright 2019 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
UTF-8
Python
false
false
1,494
py
166
classify_image.py
101
0.706158
0.698795
0
44
32.954545
80
Juru-10/News
19,181,323,958,396
b17e943c46fc1e53bb0a98baadaf1fce56788323
85ac52268338207c69cca15db93a57811abd09a0
/app/main/views.py
9571a79b5bdf0585aeaf459492de74dab88114b2
[ "MIT" ]
permissive
https://github.com/Juru-10/News
7757999ff567ce5d52861f3247cdae43efc595ff
bbf2771afb423679dafefe8d1099e233210ca708
refs/heads/master
2020-04-24T03:43:50.904738
2019-02-22T13:20:52
2019-02-22T13:20:52
171,679,379
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import render_template,request,redirect,url_for from . import main from ..requests import get_news,get_newsd,search_news from .forms import ReviewForm from ..models import Arti # Views @main.route('/') def index(): ''' View root page function that returns the index page and its data ''' tec...
UTF-8
Python
false
false
2,204
py
5
views.py
4
0.651996
0.651996
0
70
30.485714
148
Vikingdev13/LeetCode-problems
8,375,186,250,623
beed68690f654c10c3c8eb2b24165911c7bdb389
477bd0ab8396f7eb20f3d89ecee1e0199580c360
/Easy Problems/Strings/To Lower Case.py
0157117f4b738ece5cfa4e5aca2eb3da60b6bc53
[]
no_license
https://github.com/Vikingdev13/LeetCode-problems
300ec5653bf4347e14db0022443cf7c7ae2ecff8
2c359874b9bbf0619e59ef0a4240afddc1fb04a3
refs/heads/master
2021-07-12T02:00:29.863411
2021-02-25T15:35:46
2021-02-25T15:35:46
235,006,476
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
'''Runtime: 32 ms, faster than 11.35% of Python3 online submissions for To Lower Case. Memory Usage: 12.4 MB, less than 100.00% of Python3 online submissions for To Lower Case. ''' def toLowerCase(str): return str.lower()
UTF-8
Python
false
false
232
py
20
To Lower Case.py
20
0.711207
0.642241
0
7
32
92
mkuhn/se_protein
5,446,018,534,847
1b40afd2a6a7a51c1bf27e0a0ac2bff862087537
ed377333c996180c4ef9b9b7f4d9a532124e398e
/map_ann_7_to_9.py
2154d5eef1afc9244d201a03e531e3737f914f07
[]
no_license
https://github.com/mkuhn/se_protein
8bd1b4ece41b3a3d11d57f96d5a56abe89229b83
a809995bd56991bf0f73fd9ed367c32710606da4
refs/heads/master
2020-12-22T10:44:22.970738
2014-07-17T12:56:37
2014-07-17T12:56:37
236,755,343
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python2.7 # encoding: utf-8 from __future__ import print_function import sys import os import re from collections import defaultdict def main(): mapping = {} for line in open("string7to9.tsv"): (s7, s9) = line.strip("\n").split("\t") mapping[s7] = s9 for line in sy...
UTF-8
Python
false
false
1,091
py
22
map_ann_7_to_9.py
17
0.500458
0.484876
0
49
21.265306
75
cyan198/pure-predict
14,697,378,104,543
9d3a1e49769c656cce4c7124e5dbccca0f91b4c6
144226196dc63710126399bd512b2d32847e4dda
/pure_sklearn/xgboost/tests/test_xgboost.py
3d54d2fd44a9eaad07ccb5685ea0189a80a58dff
[ "Apache-2.0" ]
permissive
https://github.com/cyan198/pure-predict
011314230de72060d135c5bd7514a803020f8861
c3431b79af4df9794c9f99246fa359a6c72a10ee
refs/heads/master
2023-02-11T22:43:15.698909
2021-01-02T23:16:42
2021-01-02T23:16:42
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pytest import sys import numpy as np try: import xgboost from xgboost import XGBClassifier except ImportError: pass from sklearn.datasets import load_iris from pure_sklearn.map import convert_estimator METHODS = ["predict", "predict_proba"] @pytest.mark.skipif("xgboost" not in sys.modules, reaso...
UTF-8
Python
false
false
1,072
py
74
test_xgboost.py
69
0.54291
0.534515
0
35
29.628571
76