hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
af8eb22a7a8fbb0ab152b78c299a3fc57959c738
163
py
Python
79.py
tarunbodapati/sum.c
c343d6ac530b7f433093138ac52474df4c9c4441
[ "MIT" ]
null
null
null
79.py
tarunbodapati/sum.c
c343d6ac530b7f433093138ac52474df4c9c4441
[ "MIT" ]
null
null
null
79.py
tarunbodapati/sum.c
c343d6ac530b7f433093138ac52474df4c9c4441
[ "MIT" ]
null
null
null
x,y=map(int,input().split(" ")) count=0 for i in range(0,1000): if(x*y==i*i): count+=1 if(count==1): print("yes") else: print("no")
14.818182
31
0.484663
0
0
0
0
0
0
0
0
12
0.07362
af92ace02dba087d489cb1e5f3f4aa495505fa6e
654
py
Python
examples/basic_elasticache_password_protected.py
rtkefreure/redis-py-cluster
f0627c91ce23e8784dbc996078428c9bdbacb20b
[ "MIT" ]
1,075
2015-01-01T17:46:25.000Z
2022-03-31T17:55:18.000Z
examples/basic_elasticache_password_protected.py
rtkefreure/redis-py-cluster
f0627c91ce23e8784dbc996078428c9bdbacb20b
[ "MIT" ]
397
2015-01-04T08:39:03.000Z
2022-03-22T01:59:18.000Z
examples/basic_elasticache_password_protected.py
rtkefreure/redis-py-cluster
f0627c91ce23e8784dbc996078428c9bdbacb20b
[ "MIT" ]
373
2015-01-13T08:44:40.000Z
2022-03-29T02:18:20.000Z
from rediscluster import RedisCluster rc = RedisCluster( host='clustercfg.cfg-endpoint-name.aq25ta.euw1.cache.amazonaws.com', port=6379, password='password_is_protected', skip_full_coverage_check=True, # Bypass Redis CONFIG call to elasticache decode_responses=True, # decode_responses mu...
40.875
148
0.704893
0
0
0
0
0
0
0
0
376
0.574924
af950ed2adf47bfd5bbac8fc2d72461c9405f310
1,809
py
Python
lemonspotter/samplers/declare.py
martinruefenacht/lemonspotter
4e24759aded6536bbb3cdcc311e5eaf72d52c4e3
[ "MIT" ]
null
null
null
lemonspotter/samplers/declare.py
martinruefenacht/lemonspotter
4e24759aded6536bbb3cdcc311e5eaf72d52c4e3
[ "MIT" ]
20
2019-11-14T16:35:42.000Z
2021-05-17T14:55:44.000Z
lemonspotter/samplers/declare.py
martinruefenacht/lemonspotter
4e24759aded6536bbb3cdcc311e5eaf72d52c4e3
[ "MIT" ]
null
null
null
""" This module contains the definition of the DefaultSampler. """ import logging from typing import Iterable from lemonspotter.core.parameter import Direction from lemonspotter.core.sampler import Sampler from lemonspotter.core.variable import Variable from lemonspotter.core.function import Function from lemonspotte...
33.5
91
0.66335
1,450
0.801548
0
0
0
0
0
0
529
0.292427
af9558754aad314aeb8db737a2091bb0a63f662a
480
py
Python
source/python/LSWRC.py
JoHyukJun/algorithm-analysis
3eda22ce0eeb52490702206d73c04cff1eb3e72d
[ "Apache-2.0" ]
null
null
null
source/python/LSWRC.py
JoHyukJun/algorithm-analysis
3eda22ce0eeb52490702206d73c04cff1eb3e72d
[ "Apache-2.0" ]
null
null
null
source/python/LSWRC.py
JoHyukJun/algorithm-analysis
3eda22ce0eeb52490702206d73c04cff1eb3e72d
[ "Apache-2.0" ]
null
null
null
''' main.py Created by JO HYUK JUN on 2021 Copyright © 2021 JO HYUK JUN. All rights reserved. ''' class Solution: def lengthOfLongestSubstring(self, s: str) -> int: output = 0 str_set = [] for idx, val in enumerate(s): if val in str_set: s...
21.818182
58
0.525
366
0.760915
0
0
0
0
0
0
113
0.234927
af95fa980c5195e3c75aff212645fcf4a36ea392
2,532
py
Python
tyranokiller.py
satoki/tyranokiller
9a4d707ca9f0d2469e9cbd0b57f474b2c96c2d9d
[ "MIT" ]
5
2021-12-23T11:23:40.000Z
2022-01-01T22:48:18.000Z
tyranokiller.py
satoki/tyranoscript_vulnerability
9a4d707ca9f0d2469e9cbd0b57f474b2c96c2d9d
[ "MIT" ]
null
null
null
tyranokiller.py
satoki/tyranoscript_vulnerability
9a4d707ca9f0d2469e9cbd0b57f474b2c96c2d9d
[ "MIT" ]
null
null
null
# Exploit Title: TyranoScript 5.13b - Arbitrary Code Execution # Date: 27/03/2022 # Exploit Author: Satoki # Vendor Homepage: https://tyrano.jp/ # Software Link: https://github.com/ShikemokuMK/tyranoscript # # Version (Save Data ACE): # TyranoScriptV5 <= 5.04b # TyranoScript <= 4.83 # # Version (Development Data ...
30.506024
110
0.527646
0
0
0
0
0
0
0
0
1,847
0.729463
af97ce7ed6690110d340cf7da5e8b723433180ff
526
py
Python
forms.py
MarioAer/BubblesData
849cc6428b5e8d64f5517f94a714e3f737bfc75d
[ "MIT" ]
null
null
null
forms.py
MarioAer/BubblesData
849cc6428b5e8d64f5517f94a714e3f737bfc75d
[ "MIT" ]
null
null
null
forms.py
MarioAer/BubblesData
849cc6428b5e8d64f5517f94a714e3f737bfc75d
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- """(forms.py) Flask-Login Example: Login Form""" from flask_wtf import Form # import from flask_wtf, NOT wtforms from wtforms import StringField, PasswordField from wtforms.validators import InputRequired, Length # Define the LoginRorm class by sub-classing Form class LoginForm(Form): # T...
40.461538
83
0.741445
235
0.446768
0
0
0
0
0
0
228
0.43346
af9c8aaccf0095264c9bcfb36a5958fdb4382d26
1,322
py
Python
core/loader.py
1x-eng/ext-a-cy
d6efbabca89243c9c41ce4c130e9f963b2b42229
[ "MIT" ]
null
null
null
core/loader.py
1x-eng/ext-a-cy
d6efbabca89243c9c41ce4c130e9f963b2b42229
[ "MIT" ]
null
null
null
core/loader.py
1x-eng/ext-a-cy
d6efbabca89243c9c41ce4c130e9f963b2b42229
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By __author__='Pruthvi Kumar' # 30 June 2019. # pruthvikumar.123@gmail.com # L...
33.897436
114
0.67171
910
0.688351
0
0
0
0
0
0
400
0.302572
af9cba96e04a6dafd8fe9ffe1a97e239f33fd7e2
188
py
Python
improutils/__init__.py
ImprolabFIT/improutils
84666f88db594dd5d24cf946c635df37643ed309
[ "MIT" ]
null
null
null
improutils/__init__.py
ImprolabFIT/improutils
84666f88db594dd5d24cf946c635df37643ed309
[ "MIT" ]
null
null
null
improutils/__init__.py
ImprolabFIT/improutils
84666f88db594dd5d24cf946c635df37643ed309
[ "MIT" ]
null
null
null
from .other import * from .acquisition import * from .filtration import * from .preprocessing import * from .recognition import * from .segmentation import * from .visualisation import *
20.888889
28
0.771277
0
0
0
0
0
0
0
0
0
0
af9cf05604e40321edbad3928cd57491f9b1fcff
1,598
py
Python
Classicist Express/api/urls.py
RisalatShahriar/ccNews
d7b73bff86ac938d47be4f97d04a81af9ed00faf
[ "Apache-2.0" ]
null
null
null
Classicist Express/api/urls.py
RisalatShahriar/ccNews
d7b73bff86ac938d47be4f97d04a81af9ed00faf
[ "Apache-2.0" ]
null
null
null
Classicist Express/api/urls.py
RisalatShahriar/ccNews
d7b73bff86ac938d47be4f97d04a81af9ed00faf
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('bd', views.bdaffair, name="bd_api"), path('home', views.home_data, name='home_api'), path('cultural', views.cultural_insights, name='cultural_api'), path('sports', views.sports_insights, name='sports_api'), path('international',...
55.103448
83
0.71214
0
0
0
0
0
0
0
0
602
0.376721
af9ec8c3e054bbb041579522842ad9b2da17d23a
11,544
py
Python
farmer/ncc/metrics/segmentation_metrics.py
aiorhiroki/farmer.tf2
5d78f4b47b753ab2d595829c17fef7c6061235b5
[ "Apache-2.0" ]
null
null
null
farmer/ncc/metrics/segmentation_metrics.py
aiorhiroki/farmer.tf2
5d78f4b47b753ab2d595829c17fef7c6061235b5
[ "Apache-2.0" ]
7
2021-11-12T05:58:48.000Z
2022-02-25T07:05:26.000Z
farmer/ncc/metrics/segmentation_metrics.py
aiorhiroki/farmer.tf2
5d78f4b47b753ab2d595829c17fef7c6061235b5
[ "Apache-2.0" ]
null
null
null
import numpy as np from pathlib import Path import itertools from tqdm import tqdm from ..utils import get_imageset import matplotlib.pyplot as plt import cv2 import json from ..metrics.surface_dice import metrics as surface_distance from ..metrics.functional import calc_isolated_fp def calc_segmentation_metrics(confu...
34.981818
116
0.628638
0
0
0
0
0
0
0
0
1,988
0.172211
af9f58fe0e660b08a353e17203614fe5d6b9e0d5
46
py
Python
chatbot/__init__.py
rdorado79/chatbotlib
bfe44593fe218d13a8c55f80f0c13db67605a5b2
[ "MIT" ]
null
null
null
chatbot/__init__.py
rdorado79/chatbotlib
bfe44593fe218d13a8c55f80f0c13db67605a5b2
[ "MIT" ]
null
null
null
chatbot/__init__.py
rdorado79/chatbotlib
bfe44593fe218d13a8c55f80f0c13db67605a5b2
[ "MIT" ]
null
null
null
# Example package with a console entry point
15.333333
44
0.782609
0
0
0
0
0
0
0
0
44
0.956522
afa04ed205e39049b31fa8fd4108f5232fadca75
1,774
py
Python
mrbaviirc/template/actions/action_var.py
brianvanderburg2/python-mrbaviirc-template
6da213b30580d66fe7231c40bb7bbebb026a0789
[ "Apache-2.0" ]
null
null
null
mrbaviirc/template/actions/action_var.py
brianvanderburg2/python-mrbaviirc-template
6da213b30580d66fe7231c40bb7bbebb026a0789
[ "Apache-2.0" ]
null
null
null
mrbaviirc/template/actions/action_var.py
brianvanderburg2/python-mrbaviirc-template
6da213b30580d66fe7231c40bb7bbebb026a0789
[ "Apache-2.0" ]
null
null
null
""" Handler for the var action tag. """ # pylint: disable=too-few-public-methods,too-many-arguments,protected-access,unused-argument __author__ = "Brian Allen Vanderburg II" __copyright__ = "Copyright 2016-2019" __license__ = "Apache License 2.0" from . import ActionHandler, DefaultActionHandler from ..nodes import ...
28.612903
92
0.653326
1,345
0.758174
0
0
0
0
0
0
397
0.223788
afa0c7a4dbfb00577736a7f5962a39c917e15a9e
1,623
py
Python
tests/test_exp_worker_cred.py
RogerEMO/srd
40eb8bb02cfd3b1f60ed9eb3e361877fea744cb5
[ "MIT" ]
1
2021-11-22T18:15:09.000Z
2021-11-22T18:15:09.000Z
tests/test_exp_worker_cred.py
RogerEMO/srd
40eb8bb02cfd3b1f60ed9eb3e361877fea744cb5
[ "MIT" ]
3
2021-05-10T18:46:16.000Z
2021-06-01T16:51:48.000Z
tests/test_exp_worker_cred.py
RogerEMO/srd
40eb8bb02cfd3b1f60ed9eb3e361877fea744cb5
[ "MIT" ]
1
2021-05-05T17:20:06.000Z
2021-05-05T17:20:06.000Z
import pytest from math import isclose import sys sys.path.append('/Users/pyann/Dropbox (CEDIA)/srd/Model') import srd from srd import quebec # I use https://cffp.recherche.usherbrooke.ca/outils-ressources/guide-mesures-fiscales/credit-impot-prolongation-carriere/ # since they don't seem to adjust for taxabl...
36.066667
123
0.637708
0
0
0
0
1,192
0.734442
0
0
365
0.224892
afa13b4e4fc345a627c690ebb66190bf2e512666
1,382
py
Python
Prog1.py
tudoriliuta/UR3RL
9a98d530318f5931ddc195d8ffa7ebc406cd6419
[ "MIT" ]
1
2019-05-23T14:26:21.000Z
2019-05-23T14:26:21.000Z
Prog1.py
tudoriliuta/UR3RL
9a98d530318f5931ddc195d8ffa7ebc406cd6419
[ "MIT" ]
null
null
null
Prog1.py
tudoriliuta/UR3RL
9a98d530318f5931ddc195d8ffa7ebc406cd6419
[ "MIT" ]
null
null
null
# Type help("robolink") or help("robodk") for more information # Press F5 to run the script # Documentation: https://robodk.com/doc/en/RoboDK-API.html # Reference: https://robodk.com/doc/en/PythonAPI/index.html # Note: It is not required to keep a copy of this file, your python script is saved with the station from...
32.139535
100
0.644718
0
0
0
0
0
0
0
0
813
0.588278
afa16d72320b51ad48b9e7a6f4900aaa906c676a
101
py
Python
main.py
JesperKauppinen/dont-touch-the-spikes-clone
c5b0961fe8bbc0706191649bbae2d1784dd72e1d
[ "MIT" ]
null
null
null
main.py
JesperKauppinen/dont-touch-the-spikes-clone
c5b0961fe8bbc0706191649bbae2d1784dd72e1d
[ "MIT" ]
null
null
null
main.py
JesperKauppinen/dont-touch-the-spikes-clone
c5b0961fe8bbc0706191649bbae2d1784dd72e1d
[ "MIT" ]
null
null
null
from game import Game g = Game() while g.running: g.curr_menu.display_menu() g.game_loop()
12.625
30
0.673267
0
0
0
0
0
0
0
0
0
0
afa2159b2cf1eb45a5549805ce6ddf7bf5854552
203
py
Python
pych_client/exceptions.py
dioptra-io/pych
46ff9cedb8fac6b35c8eaab442834d9ce190e43d
[ "MIT" ]
null
null
null
pych_client/exceptions.py
dioptra-io/pych
46ff9cedb8fac6b35c8eaab442834d9ce190e43d
[ "MIT" ]
null
null
null
pych_client/exceptions.py
dioptra-io/pych
46ff9cedb8fac6b35c8eaab442834d9ce190e43d
[ "MIT" ]
null
null
null
class ClickHouseException(Exception): def __init__(self, query: str, err: str): err = "\n".join(err.split(". ")) msg = f"Query\n{query}\n\nError\n{err}" super().__init__(msg)
33.833333
47
0.591133
202
0.995074
0
0
0
0
0
0
41
0.20197
afa29bf04f32cf1f5c5165ddb76b18a6eec1cbfc
1,474
py
Python
ccdc/pixel.py
USGS-EROS/lcmap-gen
1be50eb316f7d737d6bbd000bd6a8b5006730928
[ "Unlicense" ]
6
2018-07-09T00:33:52.000Z
2019-11-14T16:36:39.000Z
ccdc/pixel.py
USGS-EROS/lcmap-gen
1be50eb316f7d737d6bbd000bd6a8b5006730928
[ "Unlicense" ]
1
2017-04-26T17:22:34.000Z
2017-04-26T17:38:59.000Z
ccdc/pixel.py
USGS-EROS/lcmap-gen
1be50eb316f7d737d6bbd000bd6a8b5006730928
[ "Unlicense" ]
2
2018-06-11T17:59:03.000Z
2018-07-09T00:33:54.000Z
from ccdc import cassandra from pyspark.sql.types import ArrayType from pyspark.sql.types import ByteType from pyspark.sql.types import IntegerType from pyspark.sql.types import StructField from pyspark.sql.types import StructType def table(): """Cassandra table name""" return 'pixel' def schema(): """S...
22.333333
70
0.603121
0
0
0
0
0
0
0
0
562
0.381275
afa4b7d2595f4e0c541626173ba9e42640a0a707
6,471
py
Python
ekmap_core/qgslabel_parser/label_parser.py
eKMap/ekmap-publisher-for-qgis
cb9dac6c29be3617c2155c1e38d9d1dffbdbad96
[ "MIT" ]
4
2020-11-11T07:07:55.000Z
2022-02-22T02:39:01.000Z
ekmap_core/qgslabel_parser/label_parser.py
eKMap/ekmap-publisher-for-qgis
cb9dac6c29be3617c2155c1e38d9d1dffbdbad96
[ "MIT" ]
2
2021-03-17T17:46:56.000Z
2021-03-18T08:19:04.000Z
ekmap_core/qgslabel_parser/label_parser.py
eKMap/ekmap-publisher-for-qgis
cb9dac6c29be3617c2155c1e38d9d1dffbdbad96
[ "MIT" ]
1
2021-10-31T21:00:55.000Z
2021-10-31T21:00:55.000Z
from PyQt5.QtWidgets import QMainWindow from ..ekmap_converter import eKConverter import re from qgis.core import QgsMessageLog class LabelParser: def __init__(self, labeling): self.labeling = labeling def _readTextStyle(self, settings): labelFormat = settings.format() field = settin...
36.767045
111
0.591871
6,339
0.979601
0
0
0
0
0
0
1,863
0.2879
afa690096a6121167933e215558dabc81606d2f3
8,069
py
Python
main.py
lyffly/CameraCalibration
aacdcc9ea711154060f078f0564f8143077cac88
[ "BSD-3-Clause" ]
null
null
null
main.py
lyffly/CameraCalibration
aacdcc9ea711154060f078f0564f8143077cac88
[ "BSD-3-Clause" ]
null
null
null
main.py
lyffly/CameraCalibration
aacdcc9ea711154060f078f0564f8143077cac88
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # coding by liuyunfei # 2020-4-12 import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QMessageBox from PyQt5.QtCore import QThread, pyqtSignal, QDateTime, QObject, QMutexLocker, QMutex, QTimer from PyQt5.QtGui import QPixmap from PyQt5 import Qt, QtCore from PyQt5.QtCo...
34.33617
137
0.587433
6,878
0.847775
0
0
0
0
0
0
396
0.048811
afaa3f5a9633f887b543c143ac5957ba0b5db6a8
145
py
Python
pythontraining/unittesting.py
srikanteswartalluri/pyutils
bf8d56ac9e9b0786861c08ef32eae49b021f20a3
[ "0BSD" ]
null
null
null
pythontraining/unittesting.py
srikanteswartalluri/pyutils
bf8d56ac9e9b0786861c08ef32eae49b021f20a3
[ "0BSD" ]
null
null
null
pythontraining/unittesting.py
srikanteswartalluri/pyutils
bf8d56ac9e9b0786861c08ef32eae49b021f20a3
[ "0BSD" ]
null
null
null
__author__ = 'talluri' def sum(*args): if len(args) == 0: return None s = 0 for arg in args: s += arg return s
13.181818
22
0.496552
0
0
0
0
0
0
0
0
9
0.062069
afaaa12bee233defec8a78a507b98355a9769f87
11,423
py
Python
actorcritic/envs/atari/model.py
jrobine/actor-critic
2f72d296c0b550982b0400b6afb7a7a0dfe3f144
[ "MIT" ]
10
2018-07-31T21:04:02.000Z
2022-02-03T18:58:45.000Z
actorcritic/envs/atari/model.py
jrobine/actor-critic
2f72d296c0b550982b0400b6afb7a7a0dfe3f144
[ "MIT" ]
null
null
null
actorcritic/envs/atari/model.py
jrobine/actor-critic
2f72d296c0b550982b0400b6afb7a7a0dfe3f144
[ "MIT" ]
1
2018-08-01T18:09:35.000Z
2018-08-01T18:09:35.000Z
"""An implementation of an actor-critic model that is aimed at Atari games.""" import gym import numpy as np import tensorflow as tf import actorcritic.nn as nn from actorcritic.baselines import StateValueFunction from actorcritic.model import ActorCriticModel from actorcritic.policies import SoftmaxPolicy class A...
46.246964
119
0.660597
11,109
0.972512
0
0
0
0
0
0
4,007
0.350784
afaf5d11e5a28c1db05bcfd2d0127aa64f8b14b1
18,044
py
Python
marcotti/etl/base/transform.py
soccermetrics/marcotti
eda2f19bd6cbc6f9c7482e8fe31b2233b33aacfd
[ "MIT" ]
30
2015-11-23T07:51:54.000Z
2020-06-29T16:11:55.000Z
marcotti/etl/base/transform.py
soccermetrics/marcotti
eda2f19bd6cbc6f9c7482e8fe31b2233b33aacfd
[ "MIT" ]
1
2016-06-26T18:44:47.000Z
2016-06-29T03:02:40.000Z
marcotti/etl/base/transform.py
soccermetrics/marcotti
eda2f19bd6cbc6f9c7482e8fe31b2233b33aacfd
[ "MIT" ]
8
2016-01-13T12:23:16.000Z
2021-10-11T07:39:33.000Z
import pandas as pd import marcotti.models.club as mc import marcotti.models.common.enums as enums import marcotti.models.common.overview as mco import marcotti.models.common.personnel as mcp import marcotti.models.common.suppliers as mcs from .workflows import WorkflowBase class MarcottiTransform(WorkflowBase): ...
54.349398
121
0.627854
16,036
0.888716
0
0
204
0.011306
0
0
4,060
0.225006
afb151ddaf6fe45b7776879d93b6a4036ec2ff77
2,863
py
Python
flow54/fuel_injector.py
corygoates/Flow54
d24fe113afb932df6a910b560c6d491693b87592
[ "MIT" ]
null
null
null
flow54/fuel_injector.py
corygoates/Flow54
d24fe113afb932df6a910b560c6d491693b87592
[ "MIT" ]
null
null
null
flow54/fuel_injector.py
corygoates/Flow54
d24fe113afb932df6a910b560c6d491693b87592
[ "MIT" ]
null
null
null
import copy import numpy as np from compressible_tools import * class FuelInjector: """A fuel injector. Parameters ---------- fuel : Species The fluid being fed through the injector. T : float Inlet temperature of injector. A : float Cross-sectional area. """ ...
24.895652
176
0.550472
2,796
0.976598
0
0
0
0
0
0
1,500
0.523926
afb26810722dea2343152102b81238f0ece5d0c5
1,976
py
Python
owoencode.py
glitchfur/owoencoder
ed81a03ba4bd504ca2de4da80fa618b12363b9db
[ "MIT" ]
4
2020-08-10T06:01:35.000Z
2021-08-30T02:26:29.000Z
owoencode.py
glitchfur/owoencoder
ed81a03ba4bd504ca2de4da80fa618b12363b9db
[ "MIT" ]
null
null
null
owoencode.py
glitchfur/owoencoder
ed81a03ba4bd504ca2de4da80fa618b12363b9db
[ "MIT" ]
1
2021-06-02T09:16:43.000Z
2021-06-02T09:16:43.000Z
#!/usr/bin/env python3 # owoencode.py, a part of owoencoder # Made by Glitch, 2020 # https://www.glitchfur.net from sys import argv, stdout, stderr from os.path import exists, split from os import remove KEEP_ORIG = False STDOUT_FLAG = False def main(): if len(argv) < 2: print("The syntax for running th...
30.875
77
0.577935
0
0
0
0
0
0
0
0
573
0.28998
afb31209b87b0007cddea5b09c524bff1b45d36d
2,589
py
Python
generators/query_gen.py
Abhipanda4/RQs_in_Regex_Graphs
80b86b5b3f92ef28102ac0f5049bb495b5cc07f9
[ "Apache-2.0" ]
2
2018-10-09T09:59:45.000Z
2021-11-21T17:01:47.000Z
generators/query_gen.py
Abhipanda4/RQs_in_Regex_Graphs
80b86b5b3f92ef28102ac0f5049bb495b5cc07f9
[ "Apache-2.0" ]
null
null
null
generators/query_gen.py
Abhipanda4/RQs_in_Regex_Graphs
80b86b5b3f92ef28102ac0f5049bb495b5cc07f9
[ "Apache-2.0" ]
null
null
null
# Fix number of node predicates at 1 out of 6 # this ensures queries with larger space of possible nodes # The number of colors in a query is varied from 1 to 5 import argparse import numpy as np from graph_gen import birth_years, genders, num_posts, num_friends possibilities = [1, 3, 4, 5] # do not consider equaliy ...
27.83871
83
0.565469
0
0
0
0
0
0
0
0
520
0.20085
afb50c8aa67608ab3deea105ffee6debac103ea3
195
py
Python
multiplepagesproject/prodforms.py
mandeep-django/admin-panel
30c65730e74004ec21cf891627fbbaa027f626db
[ "MIT" ]
null
null
null
multiplepagesproject/prodforms.py
mandeep-django/admin-panel
30c65730e74004ec21cf891627fbbaa027f626db
[ "MIT" ]
null
null
null
multiplepagesproject/prodforms.py
mandeep-django/admin-panel
30c65730e74004ec21cf891627fbbaa027f626db
[ "MIT" ]
null
null
null
from django import forms from multiplepagesproject.prodmodels import proddisplay class productforms(forms.ModelForm): class Meta: model = proddisplay fields = "__all__"
27.857143
56
0.723077
110
0.564103
0
0
0
0
0
0
9
0.046154
afb5ce60435e8b3c83936754903becf1fcb4fbdf
1,292
py
Python
communication/templatetags/discussion.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
communication/templatetags/discussion.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
11
2020-03-24T15:29:46.000Z
2022-03-11T23:14:48.000Z
communication/templatetags/discussion.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
import string from django.template import Context from django.template.loader import get_template from django import template register = template.Library() import crm @register.inclusion_tag('comments/form.html') def render_cedar_comment_form(**kwargs): object = kwargs.pop('object', None) parent_id = kwargs...
28.711111
81
0.670279
0
0
0
0
625
0.483746
0
0
777
0.601393
afb6bce0846f3ad5fdbe2619d6c7b2dd5348269a
3,504
py
Python
fairseq/criterions/cross_entropy.py
emailandxu/KUST-Fairseq-ST
95316cebc99d963c4aa671914ce219c5692f5fd6
[ "BSD-3-Clause" ]
null
null
null
fairseq/criterions/cross_entropy.py
emailandxu/KUST-Fairseq-ST
95316cebc99d963c4aa671914ce219c5692f5fd6
[ "BSD-3-Clause" ]
null
null
null
fairseq/criterions/cross_entropy.py
emailandxu/KUST-Fairseq-ST
95316cebc99d963c4aa671914ce219c5692f5fd6
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import math import torch import to...
37.276596
111
0.623002
3,102
0.87037
0
0
3,139
0.880752
0
0
1,676
0.470258
afb90e0689a3fd6f900cf89c2141c1e4deace929
365
py
Python
blog/models.py
adityabisoi/personal-portfolio
34e9f9dc1b78b12bf27f934ae71efa0058450c0d
[ "MIT" ]
1
2020-02-19T09:45:28.000Z
2020-02-19T09:45:28.000Z
blog/models.py
adityabisoi/personal-portfolio
34e9f9dc1b78b12bf27f934ae71efa0058450c0d
[ "MIT" ]
6
2021-03-19T04:39:19.000Z
2022-02-10T13:52:14.000Z
blog/models.py
adityabisoi/personal-portfolio
34e9f9dc1b78b12bf27f934ae71efa0058450c0d
[ "MIT" ]
null
null
null
from django.db import models class Blog(models.Model): title = models.CharField(max_length=15) date = models.DateField(auto_now_add=True) body = models.TextField() image = models.ImageField(upload_to='images/') #To return title to admin page def __str__(self): return self.title de...
26.071429
50
0.679452
335
0.917808
0
0
0
0
0
0
39
0.106849
afbb87c6ab776c79d599ae4c17e47909e935b3eb
3,845
py
Python
Year-2/Computational-math/src/labs/lab_2/methods.py
zubrailx/University-ITMO
9c746ab6cfa95ecd6ff02eb23e1f49c93337ec61
[ "MIT" ]
3
2021-10-13T05:01:37.000Z
2022-01-21T15:25:47.000Z
Year-2/Computational-math/src/labs/lab_2/methods.py
zubrailx/university
9c746ab6cfa95ecd6ff02eb23e1f49c93337ec61
[ "MIT" ]
null
null
null
Year-2/Computational-math/src/labs/lab_2/methods.py
zubrailx/university
9c746ab6cfa95ecd6ff02eb23e1f49c93337ec61
[ "MIT" ]
null
null
null
from copy import copy from modules.parse import parse from modules.equation import grad, node_flatten from modules.matrix import Matrix from modules.util import ProjectException from modules.util import Color, color_string def split_half(data: dict) -> dict: node_root = data["equation"][0] var_list = data["v...
40.904255
115
0.640312
0
0
0
0
0
0
0
0
720
0.187256
afbc104c7579cd278f56fcd197e11d8c1c44ade6
1,807
py
Python
TerraformToAnsibleInventory/args.py
mrlesmithjr/python-terraform-to-ansible-inventory
0ceb251c8fbdcf23d186f1a1d66684af1b28c86c
[ "MIT" ]
5
2018-07-17T15:46:57.000Z
2020-01-18T23:54:23.000Z
TerraformToAnsibleInventory/args.py
mrlesmithjr/python-terraform-to-ansible-inventory
0ceb251c8fbdcf23d186f1a1d66684af1b28c86c
[ "MIT" ]
11
2018-07-19T13:04:50.000Z
2019-10-22T13:38:01.000Z
TerraformToAnsibleInventory/args.py
mrlesmithjr/python-terraform-to-ansible-inventory
0ceb251c8fbdcf23d186f1a1d66684af1b28c86c
[ "MIT" ]
4
2019-09-27T18:27:17.000Z
2021-12-22T13:41:03.000Z
import argparse from _version import __version__ def parse(): """Parse command line arguments.""" PARSER = argparse.ArgumentParser() PARSER.add_argument('-b', '--backend', help='Define which Terraform backend to parse', choices=['local', 'consul'], default='...
51.628571
81
0.58052
0
0
0
0
0
0
0
0
744
0.411732
afbcc11a19deb6b6ae32cfc779f94a2a3949f37d
549
py
Python
wifi_radio/lockable_mpdclient.py
thomasvamos/wifi_radio
54a04b37cfbada82074af439a7b0ee12cedf3512
[ "MIT" ]
null
null
null
wifi_radio/lockable_mpdclient.py
thomasvamos/wifi_radio
54a04b37cfbada82074af439a7b0ee12cedf3512
[ "MIT" ]
null
null
null
wifi_radio/lockable_mpdclient.py
thomasvamos/wifi_radio
54a04b37cfbada82074af439a7b0ee12cedf3512
[ "MIT" ]
null
null
null
''' Wrapper for a lockable MPD client ''' from threading import Lock, Thread from random import choice from mpd import MPDClient class LockableMPDClient(MPDClient): def __init__(self, use_unicode=False): super(LockableMPDClient, self).__init__() self.use_unicode = use_unicode self._lock = ...
26.142857
49
0.668488
418
0.761384
0
0
0
0
0
0
41
0.074681
afbcd4f337d7fb85d3b0e527567a1d3d85e5d0ed
1,928
py
Python
test.py
raveendezoysa/American-Sign-Language-to-Text-Based-Translator
0e0d3bea9912c87c51f00728742dc67cd85b7e66
[ "MIT" ]
null
null
null
test.py
raveendezoysa/American-Sign-Language-to-Text-Based-Translator
0e0d3bea9912c87c51f00728742dc67cd85b7e66
[ "MIT" ]
null
null
null
test.py
raveendezoysa/American-Sign-Language-to-Text-Based-Translator
0e0d3bea9912c87c51f00728742dc67cd85b7e66
[ "MIT" ]
null
null
null
# importing libraries from keras.preprocessing.image import ImageDataGenerator from keras.models import Sequential from keras.layers import Conv2D, MaxPooling2D from keras.layers import Activation, Dropout, Flatten, Dense from keras import backend as K img_width, img_height = 224, 224 train_data_dir = 'v_data/train'...
27.542857
67
0.761411
0
0
0
0
0
0
0
0
169
0.087656
afbdd176b769632287834f6d6008afe844162c2f
245
py
Python
other/simpleOSC/sendbundle.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
7
2015-01-05T06:32:49.000Z
2020-10-30T19:29:07.000Z
other/simpleOSC/sendbundle.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
null
null
null
other/simpleOSC/sendbundle.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
4
2016-03-09T22:29:26.000Z
2021-04-07T13:52:28.000Z
import osc osc.init() # create and send a bundle bundle = osc.createBundle() osc.appendToBundle(bundle, "/test/bndlprt1", [1, 2.2, "333"]) osc.appendToBundle(bundle, "/test/bndlprt2", [4, 5.5, 6]) osc.sendBundle(bundle, "127.0.0.1", 9999)
24.5
61
0.677551
0
0
0
0
0
0
0
0
74
0.302041
afbe04768d0e6a472f75c12cbd235fcaf4b5e777
2,113
py
Python
intersimple-expert-rollout-setobs2.py
sisl/InteractionImitation
9c9ee8f21b53e71bbca86b0b79c6e6d913a20567
[ "MIT" ]
2
2022-03-13T19:43:08.000Z
2022-03-14T03:19:33.000Z
intersimple-expert-rollout-setobs2.py
sisl/InteractionImitation
9c9ee8f21b53e71bbca86b0b79c6e6d913a20567
[ "MIT" ]
null
null
null
intersimple-expert-rollout-setobs2.py
sisl/InteractionImitation
9c9ee8f21b53e71bbca86b0b79c6e6d913a20567
[ "MIT" ]
null
null
null
import torch import functools from src.core.sampling import rollout_sb3 from intersim.envs import IntersimpleLidarFlatIncrementingAgent from intersim.envs.intersimple import speed_reward from intersim.expert import NormalizedIntersimpleExpert from src.util.wrappers import CollisionPenaltyWrapper, Setobs import numpy as...
32.507692
88
0.630857
0
0
0
0
0
0
0
0
255
0.120681
afbe9673b618fa0388c83b7abcd87db09f9c7dda
2,840
py
Python
FeatureTransformation/UserInputFeatureScalling.py
Himanshu14k/AdultIncomePrediction_Project
522f170111c5e6e45ef1e26ef21f86f4ea3a8dcc
[ "MIT" ]
2
2021-09-06T08:31:46.000Z
2021-10-30T12:53:21.000Z
FeatureTransformation/UserInputFeatureScalling.py
Himanshu14k/AdultIncomePrediction_Project
522f170111c5e6e45ef1e26ef21f86f4ea3a8dcc
[ "MIT" ]
1
2021-09-07T13:53:26.000Z
2021-09-07T13:53:26.000Z
FeatureTransformation/UserInputFeatureScalling.py
Himanshu14k/AdultIncomePrediction_Project
522f170111c5e6e45ef1e26ef21f86f4ea3a8dcc
[ "MIT" ]
2
2021-09-13T17:20:56.000Z
2021-11-21T16:05:16.000Z
from joblib import load from pandas import DataFrame import pickle class FeatureScaling: def __init__(self, user_input, logger_obj, file_obj): try: self.logger_obj = logger_obj self.file_obj = file_obj self.logger_obj.log("INFO", 'Different user input value assign proce...
53.584906
171
0.633099
2,771
0.975704
0
0
0
0
0
0
1,023
0.360211
afbeec327d96ab2c12353a666a3a203a3a3bf18e
4,073
py
Python
pyShelly/debug.py
rfvermut/pyShelly
c2f27ef14d1eaf94c403858a898a919d0005d639
[ "MIT" ]
39
2019-03-19T11:09:26.000Z
2022-03-19T12:44:47.000Z
pyShelly/debug.py
rfvermut/pyShelly
c2f27ef14d1eaf94c403858a898a919d0005d639
[ "MIT" ]
34
2019-05-21T18:41:18.000Z
2022-03-27T07:30:49.000Z
pyShelly/debug.py
rfvermut/pyShelly
c2f27ef14d1eaf94c403858a898a919d0005d639
[ "MIT" ]
42
2019-03-28T15:18:59.000Z
2021-12-27T19:16:44.000Z
import socket import threading import json import sys from io import StringIO from .loop import Loop from .const import ( LOGGER ) class Debug_connection(Loop): def __init__(self, parent, connection, client_address): super(Debug_connection, self).__init__("Debug connection", parent._root) sel...
30.62406
94
0.499386
2,783
0.68328
0
0
0
0
0
0
1,257
0.308618
afc0461dd64d75f8650665858aa646a390a84868
972
py
Python
setup.py
AGOberprieler/allcopol
7fd3d8ad7c9ff8410155691d8a37fdbea7783c81
[ "MIT" ]
1
2020-10-19T08:22:50.000Z
2020-10-19T08:22:50.000Z
setup.py
AGOberprieler/allcopol
7fd3d8ad7c9ff8410155691d8a37fdbea7783c81
[ "MIT" ]
null
null
null
setup.py
AGOberprieler/allcopol
7fd3d8ad7c9ff8410155691d8a37fdbea7783c81
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as f: long_description = f.read() setup(name = "allcopol", version = "0.1.1", description = "AllCoPol: Inferring allele co-ancestry in polyploids", long_description = long_description, long_description_content_type = "text/ma...
30.375
73
0.644033
0
0
0
0
0
0
0
0
441
0.453704
afc04d85e4ad399b752a6a1b506501312782c229
2,686
py
Python
genalg/sample.py
davidkant/thresholds-ga
78988bb1bfa1c1eb32afc24edf59e5fde2f1c212
[ "Apache-2.0" ]
null
null
null
genalg/sample.py
davidkant/thresholds-ga
78988bb1bfa1c1eb32afc24edf59e5fde2f1c212
[ "Apache-2.0" ]
9
2018-05-06T18:55:29.000Z
2018-05-06T19:13:33.000Z
genalg/sample.py
davidkant/thresholds-ga
78988bb1bfa1c1eb32afc24edf59e5fde2f1c212
[ "Apache-2.0" ]
null
null
null
import spec import sonicfeatures import display import random import os class Sample: """Keep track of samples and their stuff.""" def __init__(self, genotype, gen=0, index=0, parents=None, fitness_func=None): self.genotype = genotype self.phentype = None self.fitness_func = fitness_f...
40.089552
120
0.624348
2,611
0.972077
0
0
616
0.229337
0
0
680
0.253165
afc156258025b1022c60a512cb7371bc599d1647
1,709
py
Python
11/VMWriter.py
aadityarautela/nand2tetris
64768087ae5f6903beeb17a01492d68d7b2354f6
[ "MIT" ]
null
null
null
11/VMWriter.py
aadityarautela/nand2tetris
64768087ae5f6903beeb17a01492d68d7b2354f6
[ "MIT" ]
null
null
null
11/VMWriter.py
aadityarautela/nand2tetris
64768087ae5f6903beeb17a01492d68d7b2354f6
[ "MIT" ]
null
null
null
import os class VMWriter(object): def __init__(self,fname): self.outfile = open(fname, 'w') def close(self): self.outfile.close() def write_cmd(self, cmd, arg1 = "", arg2 = ""): self.outfile.write(cmd + " " + str(arg1) + " " + str(arg2) + "\n") def write_push(self...
25.132353
74
0.576946
1,696
0.992393
0
0
0
0
0
0
170
0.099473
afc24baeb3d33abb5be32b2647fa2afb09362e83
1,945
py
Python
youtube_rss_subscriber/config.py
miquelruiz/youtube-rss-subscriber
0dbdb011faf910be7dfd4757cd7295b898d4297c
[ "WTFPL" ]
3
2021-03-21T07:43:12.000Z
2021-07-23T11:07:55.000Z
youtube_rss_subscriber/config.py
miquelruiz/youtube-rss-subscriber
0dbdb011faf910be7dfd4757cd7295b898d4297c
[ "WTFPL" ]
null
null
null
youtube_rss_subscriber/config.py
miquelruiz/youtube-rss-subscriber
0dbdb011faf910be7dfd4757cd7295b898d4297c
[ "WTFPL" ]
2
2021-04-11T13:26:29.000Z
2021-07-25T18:03:34.000Z
from typing import Any, Dict, List, Optional, cast from pathlib import Path import yaml CONFIG_FILE_NAME = "config.yml" CONFIG_DIRS = ( Path.home() / Path(".yrs"), Path("/etc/youtube-rss-subscriber"), ) class Config: _instance: Optional["Config"] = None _config: Dict[str, Any] _required_keys: L...
28.602941
79
0.568123
1,183
0.608226
0
0
226
0.116195
0
0
295
0.151671
afc59e6ec8b3a8d303a471a47f51dc9d406f4096
222
py
Python
rastervision/analyzer/__init__.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
4
2019-03-11T12:38:15.000Z
2021-04-06T14:57:52.000Z
rastervision/analyzer/__init__.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
null
null
null
rastervision/analyzer/__init__.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
1
2021-02-25T18:23:27.000Z
2021-02-25T18:23:27.000Z
# flake8: noqa from rastervision.analyzer.analyzer import * from rastervision.analyzer.analyzer_config import * from rastervision.analyzer.stats_analyzer import * from rastervision.analyzer.stats_analyzer_config import *
31.714286
57
0.846847
0
0
0
0
0
0
0
0
14
0.063063
afc811788a0b3ab1c60a2765e44c7a8fefe57ab0
2,010
py
Python
Chest X-Ray Analysis/model.py
HarshShah03325/Emotion_Recognition
d1760bbdedc55014896f0e1c7db47ee5e5a19dae
[ "MIT" ]
20
2021-11-08T05:43:31.000Z
2021-11-09T15:39:03.000Z
Chest X-Ray Analysis/model.py
HarshShah03325/Emotion_Recognition
d1760bbdedc55014896f0e1c7db47ee5e5a19dae
[ "MIT" ]
null
null
null
Chest X-Ray Analysis/model.py
HarshShah03325/Emotion_Recognition
d1760bbdedc55014896f0e1c7db47ee5e5a19dae
[ "MIT" ]
1
2021-10-31T02:53:05.000Z
2021-10-31T02:53:05.000Z
from tensorflow.keras.applications.densenet import DenseNet121 from tensorflow.keras.layers import Dense, GlobalAveragePooling2D from tensorflow.keras.models import Model from keras import backend as K from settings import Settings import numpy as np from helper import get_train_labels, compute_class_freqs from tensorf...
30
201
0.698507
0
0
0
0
0
0
0
0
570
0.283582
afcab14f17dffbf6475626aeb921c67d6e9af7bc
4,494
py
Python
Assets/ExpressiveRangeAnalyses/example_generator.py
rafaeldolfe/Mixed-initiative-Tile-based-Designer
9001f0e1b68ec8c9fa49d876d2cc6ec1426d1d01
[ "MIT" ]
null
null
null
Assets/ExpressiveRangeAnalyses/example_generator.py
rafaeldolfe/Mixed-initiative-Tile-based-Designer
9001f0e1b68ec8c9fa49d876d2cc6ec1426d1d01
[ "MIT" ]
null
null
null
Assets/ExpressiveRangeAnalyses/example_generator.py
rafaeldolfe/Mixed-initiative-Tile-based-Designer
9001f0e1b68ec8c9fa49d876d2cc6ec1426d1d01
[ "MIT" ]
null
null
null
import sys import numpy as np import math import matplotlib.pyplot as plt from numpy.lib.polynomial import poly import pandas as pd from matplotlib import cm import matplotlib.patheffects as path_effects import random class Run: def __init__(self, run_name, linearities, leniencies, ids): self.run_name = ru...
36.536585
198
0.715398
1,660
0.369381
0
0
0
0
0
0
390
0.086782
afcbed072ad157da39a96ed8b309d2b6f0eb45c5
781
py
Python
tests/test_utils.py
cdyfng/pyetheroll
84149f328a1dc6db47834d02ade50e21286f3409
[ "MIT" ]
1
2018-11-01T02:58:35.000Z
2018-11-01T02:58:35.000Z
tests/test_utils.py
cdyfng/pyetheroll
84149f328a1dc6db47834d02ade50e21286f3409
[ "MIT" ]
13
2019-03-13T13:21:42.000Z
2020-05-27T21:55:40.000Z
tests/test_utils.py
cdyfng/pyetheroll
84149f328a1dc6db47834d02ade50e21286f3409
[ "MIT" ]
2
2019-08-01T07:01:31.000Z
2021-12-20T05:09:02.000Z
from datetime import datetime from pyetheroll.utils import EtherollUtils, timestamp2datetime class TestEtherollUtils: def test_compute_profit(self): bet_size = 0.10 chances_win = 34 payout = EtherollUtils.compute_profit(bet_size, chances_win) assert payout == 0.19 bet_size...
28.925926
68
0.644046
681
0.871959
0
0
0
0
0
0
67
0.085787
afcd6032574bba34bea8e6fbfd6741b9fd4aa205
270
py
Python
micropython/002_plot_test.py
mirontoli/tolle-rasp
020638e86c167aedd7b556d8515a3adef70724af
[ "MIT" ]
2
2021-06-29T17:18:09.000Z
2022-01-25T08:29:59.000Z
micropython/002_plot_test.py
mirontoli/tolle-rasp
020638e86c167aedd7b556d8515a3adef70724af
[ "MIT" ]
null
null
null
micropython/002_plot_test.py
mirontoli/tolle-rasp
020638e86c167aedd7b556d8515a3adef70724af
[ "MIT" ]
null
null
null
# https://codewith.mu/en/tutorials/1.0/microbit from microbit import * flag = True while True: sleep(100) if button_a.was_pressed(): flag = not flag if flag: print((accelerometer.get_x(),)) else: print(accelerometer.get_values())
22.5
47
0.637037
0
0
0
0
0
0
0
0
47
0.174074
afcecca0aaa83b41a9ff96c5213253a69fa739e1
153
py
Python
osbot_aws/helpers/Fargate_Cluster.py
artem7902/OSBot-AWS
4b676b8323f18d3d9809d41263f3a71745ec2828
[ "Apache-2.0" ]
null
null
null
osbot_aws/helpers/Fargate_Cluster.py
artem7902/OSBot-AWS
4b676b8323f18d3d9809d41263f3a71745ec2828
[ "Apache-2.0" ]
null
null
null
osbot_aws/helpers/Fargate_Cluster.py
artem7902/OSBot-AWS
4b676b8323f18d3d9809d41263f3a71745ec2828
[ "Apache-2.0" ]
null
null
null
from osbot_aws.apis.Fargate import Fargate class Fargate_Cluster(Fargate): def __init__(self, account_id): super().__init__(account_id)
15.3
42
0.732026
105
0.686275
0
0
0
0
0
0
0
0
afceefa6ab42fdff336bb5e178d3b569a6751ee3
7,156
py
Python
adventxtend.py
Textovortex/AdventXtend
0818804daecb570c98b6d7793a99223d2f14665b
[ "MIT" ]
1
2021-04-16T12:04:56.000Z
2021-04-16T12:04:56.000Z
adventxtend.py
leha-code/adventXtend
0818804daecb570c98b6d7793a99223d2f14665b
[ "MIT" ]
2
2021-04-16T16:16:47.000Z
2021-04-18T01:19:06.000Z
adventxtend.py
leha-code/adventXtend
0818804daecb570c98b6d7793a99223d2f14665b
[ "MIT" ]
null
null
null
''' ________ ________ ___ ___ _______ ________ _________ ___ ___ _________ _______ ________ ________ |\ __ \|\ ___ \|\ \ / /|\ ___ \ |\ ___ \|\___ ___\|\ \ / /|\___ ___\\ ___ \ |\ ___ \|\ ___ \ \ \ \|\ \ \ \_|\ \ \ \ / / | \ __/|\ \ \\ \ \|___ \ \_|\ ...
50.394366
237
0.396311
4,238
0.59223
0
0
0
0
0
0
4,325
0.604388
afceffc0fa04029d539709b408be0aca115cbc14
415
py
Python
student.py
gabrielmccoll/python-learning
253dcf9df647dbdcaaeac498c962db39868d6604
[ "MIT" ]
null
null
null
student.py
gabrielmccoll/python-learning
253dcf9df647dbdcaaeac498c962db39868d6604
[ "MIT" ]
null
null
null
student.py
gabrielmccoll/python-learning
253dcf9df647dbdcaaeac498c962db39868d6604
[ "MIT" ]
null
null
null
students = [] class Student: school_name = "Springfield Elementary" #pass #tells the interpreter just to do nothing def __init__(self,name, student_id=332): self.name = name self.student_id = student_id students.append(self) def __str__(self): return "Student " + self.name def get_name_capitalize(s...
21.842105
48
0.73253
400
0.963855
0
0
0
0
0
0
81
0.195181
afcf06799a4c681aefacbbab3bd0c395c6f657a8
700
py
Python
led_panel_client/cli/commands.py
Glutexo/ledpanel-client
c23b5913f4a7727f0a878a4240187fb8c16be034
[ "MIT" ]
1
2019-01-26T14:53:36.000Z
2019-01-26T14:53:36.000Z
led_panel_client/cli/commands.py
Glutexo/ledpanel-client
c23b5913f4a7727f0a878a4240187fb8c16be034
[ "MIT" ]
3
2018-08-05T14:53:55.000Z
2019-01-27T11:15:45.000Z
led_panel_client/cli/commands.py
Glutexo/ledpanel-client
c23b5913f4a7727f0a878a4240187fb8c16be034
[ "MIT" ]
null
null
null
from ampy.pyboard import Pyboard from ampy.files import Files from .files import led_panel_client, max7219 from os.path import basename from sys import argv def put(): """ Uploads all necessary files to the pyboard. """ if len(argv) < 2: print("Pyboard COM port not specified. Usage: led_panel_...
28
102
0.687143
0
0
0
0
0
0
0
0
146
0.208571
afcfa558f77ea2152e94c0d489367f3ae1bc234b
3,241
py
Python
koopman-intro/args.py
AbsoluteStratos/blog-code
3a8e308d55931b053b8a47268c52d62e0fa16bd8
[ "MIT" ]
2
2021-07-30T10:04:18.000Z
2022-01-30T18:29:30.000Z
koopman-intro/args.py
AbsoluteStratos/blog-code
3a8e308d55931b053b8a47268c52d62e0fa16bd8
[ "MIT" ]
1
2021-10-17T20:08:41.000Z
2021-10-17T20:08:41.000Z
koopman-intro/args.py
AbsoluteStratos/blog-code
3a8e308d55931b053b8a47268c52d62e0fa16bd8
[ "MIT" ]
2
2021-07-30T10:04:20.000Z
2021-09-01T00:07:14.000Z
''' Into to deep learning Koopman operators === Author: Nicholas Geneva (MIT Liscense) url: https://nicholasgeneva.com/blog/ github: https://github.com/NickGeneva/blog-code === ''' import numpy as np import random import argparse import os, errno, copy, json import torch class Parser(argparse.ArgumentParser): def...
41.551282
122
0.624499
2,967
0.915458
0
0
0
0
0
0
1,156
0.35668
afcfa7df8b6551e0c9178682429e9831edd629a5
1,767
py
Python
tests/test_write_basic_udf.py
eodcgmbh/eodc-openeo-bindings
4e80eba036771a0c81359e1ac66862f1eead407b
[ "MIT" ]
null
null
null
tests/test_write_basic_udf.py
eodcgmbh/eodc-openeo-bindings
4e80eba036771a0c81359e1ac66862f1eead407b
[ "MIT" ]
7
2020-02-18T17:12:31.000Z
2020-09-24T07:19:04.000Z
tests/test_write_basic_udf.py
eodcgmbh/eodc-openeo-bindings
4e80eba036771a0c81359e1ac66862f1eead407b
[ "MIT" ]
null
null
null
""" This test checks the input file generation of a basic job using a python UDF. """ import os from eodc_openeo_bindings.job_writer.basic_writer import BasicJobWriter def test_basic_python_udf(test_folder, out_filepath_basic, backend_processes, S2_filepaths_short): evi_file = os.path.join(test_folder, 'proces...
39.266667
131
0.739106
0
0
0
0
0
0
0
0
238
0.134692
afd07ae84271209f560ab1e8af1cb6cd4f30c6a7
336
py
Python
server/object_detection/Constants.py
KimSangYeon-DGU/Fire_Alarm_CCTV
a5dd6c145c898e85bf0c42c03f12cb0415330d74
[ "Apache-2.0" ]
10
2018-09-05T15:20:05.000Z
2020-06-01T03:57:08.000Z
server/object_detection/Constants.py
KimSangYeon-DGU/Fire_Alarm_CCTV
a5dd6c145c898e85bf0c42c03f12cb0415330d74
[ "Apache-2.0" ]
null
null
null
server/object_detection/Constants.py
KimSangYeon-DGU/Fire_Alarm_CCTV
a5dd6c145c898e85bf0c42c03f12cb0415330d74
[ "Apache-2.0" ]
7
2019-06-19T05:44:23.000Z
2020-08-30T07:26:13.000Z
import socket as sock import os IP = sock.gethostname() CCTV_PORT = 9000 ANDR_PORT = 8000 CUR_DIR = os.getcwd() REC_DIR = os.path.join(CUR_DIR, "record") DB_ADDR = "Database server address" PUSH_ADDR = "Push notification server address" REG_ID = "Registration ID" NOTIF_COUNT = 4 QUEUE_SIZE = 30 REC_FILE_NUM = 60 NO...
18.666667
46
0.752976
0
0
0
0
0
0
0
0
84
0.25
afd20fab82d3922fc99876b2d016b1c0bd247c6a
7,878
py
Python
sanstitre1.py
mrrobotsca/NLP-AI2020
ff9c39f3a1d1dd2fbc57d596edf01d0e035d5b59
[ "Apache-2.0" ]
null
null
null
sanstitre1.py
mrrobotsca/NLP-AI2020
ff9c39f3a1d1dd2fbc57d596edf01d0e035d5b59
[ "Apache-2.0" ]
2
2021-06-08T21:48:56.000Z
2021-09-08T02:11:07.000Z
sanstitre1.py
mrrobotsca/NLP-AI2020
ff9c39f3a1d1dd2fbc57d596edf01d0e035d5b59
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Feb 27 14:14:47 2019 @author: DK0086 """ import odema as od import numpy as np from datetime import datetime import pandas as pd import geopy.distance import math import os import time import sys from geopy.geocoders import Nominatim geolocator = Nominatim(u...
37.514286
180
0.621351
0
0
0
0
0
0
0
0
3,700
0.469007
afd2843c7e52da7b669cdb447daf485dad48b407
4,398
py
Python
GlassdoorScrape/GlassdoorScrape/GlassdoorScrapeCore/GlassdoorScrapeInterviews.py
tlarsen7572/AlteryxTools
4bfaefbf59f7206215f42a6ca5b364f71c35fa1f
[ "BSD-2-Clause" ]
9
2019-05-29T12:53:03.000Z
2020-07-01T13:26:12.000Z
GlassdoorScrape/GlassdoorScrape/GlassdoorScrapeCore/GlassdoorScrapeInterviews.py
tlarsen7572/AlteryxTools
4bfaefbf59f7206215f42a6ca5b364f71c35fa1f
[ "BSD-2-Clause" ]
2
2018-07-20T00:23:46.000Z
2018-10-16T20:37:34.000Z
GlassdoorScrape/GlassdoorScrape/GlassdoorScrapeCore/GlassdoorScrapeInterviews.py
tlarsen7572/AlteryxTools
4bfaefbf59f7206215f42a6ca5b364f71c35fa1f
[ "BSD-2-Clause" ]
2
2019-03-15T13:43:36.000Z
2020-04-27T00:15:53.000Z
import GlassdoorScrapeCore.GlassdoorScrapeUtilities as Ut def decode_experience(html_string): if html_string.find("Positive", 0) != -1: return "Positive Experience" elif html_string.find("Neutral", 0) != -1: return "Neutral Experience" elif html_string.find("Negative", 0) != -1: re...
35.467742
135
0.571851
0
0
0
0
0
0
0
0
1,274
0.289677
afd436ddbf34c2bee6a32af594d6e66622817288
8,626
py
Python
qurkexp/join/cron.py
marcua/qurk_experiments
453c207ff50e730aefb6e1118e0f93e33babdb0b
[ "BSD-3-Clause" ]
1
2015-09-30T00:09:06.000Z
2015-09-30T00:09:06.000Z
qurkexp/join/cron.py
marcua/qurk_experiments
453c207ff50e730aefb6e1118e0f93e33babdb0b
[ "BSD-3-Clause" ]
null
null
null
qurkexp/join/cron.py
marcua/qurk_experiments
453c207ff50e730aefb6e1118e0f93e33babdb0b
[ "BSD-3-Clause" ]
null
null
null
import sys,os,base64,time,traceback from datetime import datetime ROOT = os.path.abspath('%s/../..' % os.path.abspath(os.path.dirname(__file__))) sys.path.append(ROOT) os.environ['DJANGO_SETTINGS_MODULE'] = 'qurkexp.settings' SLEEP_TIME = 10 if __name__ == '__main__': from django.conf import settings from qur...
40.308411
131
0.504405
0
0
0
0
0
0
0
0
1,991
0.230814
afd5a7231c757b5d59c10582041a64bcee61c37a
4,155
py
Python
30-Days-of-Python/Day_12.py
davidusken/Python
56d2103d6be1e7be850ba87a1ba1e113333ddf13
[ "MIT" ]
null
null
null
30-Days-of-Python/Day_12.py
davidusken/Python
56d2103d6be1e7be850ba87a1ba1e113333ddf13
[ "MIT" ]
null
null
null
30-Days-of-Python/Day_12.py
davidusken/Python
56d2103d6be1e7be850ba87a1ba1e113333ddf13
[ "MIT" ]
1
2021-02-28T12:52:55.000Z
2021-02-28T12:52:55.000Z
# Day 12: Functions # Exercises # Define four functions: add, subtract, divide, and multiply. Each function should take two arguments, and they should print the result of the arithmetic operation indicated by the function name. # When orders matters for an operation, the first argument should be treated as the left o...
43.736842
210
0.726113
0
0
0
0
0
0
0
0
2,880
0.690482
bb5df3fbda301f153649b52b26d0e9ba6ce8747f
24
py
Python
ckan_cloud_operator/providers/db/constants.py
MuhammadIsmailShahzad/ckan-cloud-operator
35a4ca88c4908d81d1040a21fca8904e77c4cded
[ "MIT" ]
14
2019-11-18T12:01:03.000Z
2021-09-15T15:29:50.000Z
ckan_cloud_operator/providers/db/constants.py
MuhammadIsmailShahzad/ckan-cloud-operator
35a4ca88c4908d81d1040a21fca8904e77c4cded
[ "MIT" ]
52
2019-09-09T14:22:41.000Z
2021-09-29T08:29:24.000Z
ckan_cloud_operator/providers/db/constants.py
MuhammadIsmailShahzad/ckan-cloud-operator
35a4ca88c4908d81d1040a21fca8904e77c4cded
[ "MIT" ]
8
2019-10-05T12:46:25.000Z
2021-09-15T15:13:05.000Z
PROVIDER_SUBMODULE='db'
12
23
0.833333
0
0
0
0
0
0
0
0
4
0.166667
bb5dfba5c5533938d6a17b1b05c8c187bd4dad1b
3,450
py
Python
models/combiner/combiner_network.py
tunasoup/multimodal-scene-classification
85f72da3f6ab947fff0929a6ff0e4a8d1fd34377
[ "MIT" ]
null
null
null
models/combiner/combiner_network.py
tunasoup/multimodal-scene-classification
85f72da3f6ab947fff0929a6ff0e4a8d1fd34377
[ "MIT" ]
null
null
null
models/combiner/combiner_network.py
tunasoup/multimodal-scene-classification
85f72da3f6ab947fff0929a6ff0e4a8d1fd34377
[ "MIT" ]
null
null
null
""" Contains the trainable sub-network of an ensemble classifier. Handles calling the training and evaluation. """ import torch import torch.nn as nn import torch.optim as optim from matplotlib.pyplot import show from utility.fusion_functions import (train_nn_combiner_model, test_...
35.9375
102
0.595072
446
0.129275
0
0
0
0
0
0
942
0.273043
bb5e3228f03e7078fb5aaf1eab536edafbe9b383
1,639
py
Python
gotools_rename.py
liuhewei/gotools-sublime
2c44f84024f9fd27ca5c347cab080b80397a32c2
[ "MIT" ]
60
2016-04-06T15:28:11.000Z
2021-01-26T13:08:19.000Z
gotools_rename.py
liuhewei/gotools-sublime
2c44f84024f9fd27ca5c347cab080b80397a32c2
[ "MIT" ]
19
2016-04-07T02:28:22.000Z
2019-05-16T14:32:14.000Z
gotools_rename.py
liuhewei/gotools-sublime
2c44f84024f9fd27ca5c347cab080b80397a32c2
[ "MIT" ]
18
2016-04-19T18:23:49.000Z
2021-08-31T14:32:03.000Z
import sublime import sublime_plugin import os from .gotools_util import Buffers from .gotools_util import GoBuffers from .gotools_util import Logger from .gotools_util import ToolRunner class GotoolsRenameCommand(sublime_plugin.TextCommand): def is_enabled(self): return GoBuffers.is_go_source(self.view) def...
38.116279
95
0.698597
1,449
0.884076
0
0
0
0
0
0
484
0.295302
bb5ffa2d4cc2b708f22acabc46b7a17e37cfa7ad
765
py
Python
backend/equipment/endpoints.py
Vini1979/Engenharia_Software_IF977
dee99b7a05736bd35935d30a88b61a1f273d7633
[ "MIT" ]
null
null
null
backend/equipment/endpoints.py
Vini1979/Engenharia_Software_IF977
dee99b7a05736bd35935d30a88b61a1f273d7633
[ "MIT" ]
1
2021-04-14T18:52:27.000Z
2021-04-14T18:52:27.000Z
backend/equipment/endpoints.py
Vini1979/Engenharia_Software_IF977
dee99b7a05736bd35935d30a88b61a1f273d7633
[ "MIT" ]
1
2021-04-27T18:15:13.000Z
2021-04-27T18:15:13.000Z
from rest_framework.generics import ListCreateAPIView, RetrieveUpdateDestroyAPIView from equipment.serializers import EquipmentSerializer, ItemSerializer from equipment.models import Item, Equipment class ListCreateItemEndpoint(ListCreateAPIView): serializer_class = ItemSerializer queryset = Item.objects.all...
31.875
83
0.831373
554
0.724183
0
0
0
0
0
0
0
0
bb601bdac4b627b652ca2cc549c648ed9d7b4ddf
1,286
py
Python
{{cookiecutter.project_slug}}/setup.py
mathemaphysics/cookiecutter-cpp-devcontainer
d9a8e23e165e3698b4a1cb4516a397450355466a
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/setup.py
mathemaphysics/cookiecutter-cpp-devcontainer
d9a8e23e165e3698b4a1cb4516a397450355466a
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/setup.py
mathemaphysics/cookiecutter-cpp-devcontainer
d9a8e23e165e3698b4a1cb4516a397450355466a
[ "MIT" ]
null
null
null
{%- set modname = cookiecutter.project_slug.replace('-', '') -%} from skbuild import setup {%- if cookiecutter.use_submodules == "No" %} import os import pybind11 {%- endif %} setup( name='{{ modname }}', version='0.0.1', author='{{ cookiecutter.full_name }}', author_email='your@email.com', descri...
31.365854
83
0.604977
0
0
0
0
0
0
0
0
574
0.446345
bb612a43c5e00fdec79d5ed2d464c2583287acfd
603
py
Python
lang/modules/os.py
pranavbaburaj/sh
dc0da9e10e7935310ae40d350c1897fcd65bce8f
[ "MIT" ]
4
2021-01-30T12:25:21.000Z
2022-03-13T07:23:19.000Z
lang/modules/os.py
pranavbaburaj/sh
dc0da9e10e7935310ae40d350c1897fcd65bce8f
[ "MIT" ]
3
2021-02-26T13:11:17.000Z
2021-06-04T17:26:05.000Z
lang/modules/os.py
pranavbaburaj/sh
dc0da9e10e7935310ae40d350c1897fcd65bce8f
[ "MIT" ]
1
2021-02-08T10:18:29.000Z
2021-02-08T10:18:29.000Z
import os, platform from clint.textui import colored as color class OperatingSystem(): @staticmethod def os_name(): return platform.system() @staticmethod def user_name(): return platform.uname().node @staticmethod def path(): return os.getcwd() de...
22.333333
42
0.593698
244
0.404643
0
0
198
0.328358
0
0
0
0
bb63df222835f6eb78ba3c732e704619ca12b613
899
py
Python
data/transcoder_evaluation_gfg/python/CHECK_STRING_FOLLOWS_ANBN_PATTERN_NOT.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/CHECK_STRING_FOLLOWS_ANBN_PATTERN_NOT.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/CHECK_STRING_FOLLOWS_ANBN_PATTERN_NOT.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( str ) : n = len ( str ) for i in range ( n ) : if ( str [ i ] != 'a' ) : break if (...
23.051282
64
0.506118
0
0
0
0
0
0
0
0
302
0.335929
bb64614546d6d512164770fa3b04fc627d4d3bf2
218
py
Python
api/urls.py
kaito1002/django-rest-init
8ece6311ea84c46e74a0ac0b7f42983f40a72c34
[ "MIT" ]
null
null
null
api/urls.py
kaito1002/django-rest-init
8ece6311ea84c46e74a0ac0b7f42983f40a72c34
[ "MIT" ]
null
null
null
api/urls.py
kaito1002/django-rest-init
8ece6311ea84c46e74a0ac0b7f42983f40a72c34
[ "MIT" ]
null
null
null
from rest_framework import routers from user.views import UserViewSet from .views import SampleViewSet router = routers.DefaultRouter() router.register('users', UserViewSet) router.register('samples', SampleViewSet)
24.222222
41
0.821101
0
0
0
0
0
0
0
0
16
0.073394
bb66ace576783c81b7f71f58e215ed9554b532e3
1,249
py
Python
iipython/embeds.py
plasma-chat/plugins
58dc5e6520e62fb473eb4fda4292b9adb424b75d
[ "MIT" ]
null
null
null
iipython/embeds.py
plasma-chat/plugins
58dc5e6520e62fb473eb4fda4292b9adb424b75d
[ "MIT" ]
null
null
null
iipython/embeds.py
plasma-chat/plugins
58dc5e6520e62fb473eb4fda4292b9adb424b75d
[ "MIT" ]
null
null
null
# Copyright 2022 iiPython # Modules import time # Initialization embed_size = 45 # Plugin class class EmbedPlugins(object): def __init__(self, eventmgr) -> None: self.meta = { "name": "Embeds", "author": "iiPython", "id": "embeds" } self.eventmgr = even...
29.046512
156
0.542834
1,150
0.92
0
0
0
0
0
0
221
0.1768
bb66fc7050d575d46b09f705e4a0c71d8c66cda1
11,303
py
Python
inn.py
NLipatov/INNer
88816c91bfb85f287b734aff69a5b60ad43f129e
[ "MIT" ]
null
null
null
inn.py
NLipatov/INNer
88816c91bfb85f287b734aff69a5b60ad43f129e
[ "MIT" ]
null
null
null
inn.py
NLipatov/INNer
88816c91bfb85f287b734aff69a5b60ad43f129e
[ "MIT" ]
null
null
null
import time, os, xlrd, xlwt, re, webbrowser, time_convert, Process_killer, tkinter as tk from tkinter import messagebox as mb from xlwt import easyxf from threading import Thread from selenium import webdriver from selenium.common.exceptions import SessionNotCreatedException from selenium.webdriver.chrome.options...
41.862963
116
0.508891
0
0
0
0
0
0
0
0
3,391
0.27736
bb67b96194c55ddd1e174b93f999f14cfde628ec
803
py
Python
backend/src/api/routes.py
gideonmandu/image-difference
50007e5a899f5f10f519ac76312cd60f76c2ddd2
[ "MIT" ]
null
null
null
backend/src/api/routes.py
gideonmandu/image-difference
50007e5a899f5f10f519ac76312cd60f76c2ddd2
[ "MIT" ]
null
null
null
backend/src/api/routes.py
gideonmandu/image-difference
50007e5a899f5f10f519ac76312cd60f76c2ddd2
[ "MIT" ]
null
null
null
import uuid from typing import Optional from fastapi import UploadFile, APIRouter from src.services.image_processing import ImageProcessor router = APIRouter(prefix="/file", tags=["passport & ID upload"]) # @router.get("",) # async def index(): # return {"test": "hello world"} @router.post("/upload/") async de...
28.678571
78
0.671233
0
0
0
0
515
0.641345
490
0.610212
262
0.326276
bb67eb4b7ecd3f699aaf7a537dafe8901082a0fc
1,474
py
Python
pdf_gen.py
MasatoHanayama/pdf_gen
b16491a31cea0d1a4931e979d600870d6be07c3e
[ "MIT" ]
1
2022-03-15T12:57:46.000Z
2022-03-15T12:57:46.000Z
pdf_gen.py
MasatoHanayama/pdf_gen
b16491a31cea0d1a4931e979d600870d6be07c3e
[ "MIT" ]
null
null
null
pdf_gen.py
MasatoHanayama/pdf_gen
b16491a31cea0d1a4931e979d600870d6be07c3e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import argparse import img2pdf import tqdm from natsort import natsorted from PIL import Image def pdf_gen(src, dst): pages = [] for file in natsorted(os.listdir(src)): if os.path.splitext(file)[-1] == '.jpg' or os.path.splitext(file)[-1] == '.jpeg' or os.path.splitex...
28.346154
129
0.586839
0
0
0
0
0
0
0
0
329
0.223202
bb67fb540424cdb298487932ac6c8b19b1c4e193
1,113
py
Python
userapiexpiry.py
tjarrettveracode/veracode-python-api_credentials_expiry-example
3188c53f81c4bf0b5f4d27f4aa1dc3de2f3f5aef
[ "MIT" ]
null
null
null
userapiexpiry.py
tjarrettveracode/veracode-python-api_credentials_expiry-example
3188c53f81c4bf0b5f4d27f4aa1dc3de2f3f5aef
[ "MIT" ]
null
null
null
userapiexpiry.py
tjarrettveracode/veracode-python-api_credentials_expiry-example
3188c53f81c4bf0b5f4d27f4aa1dc3de2f3f5aef
[ "MIT" ]
null
null
null
import sys import requests import datetime from dateutil.parser import parse from veracode_api_py import VeracodeAPI as vapi def creds_expire_days_warning(): creds = vapi().get_creds() exp = datetime.datetime.strptime(creds['expiration_ts'], "%Y-%m-%dT%H:%M:%S.%f%z") delta = exp - datetime.datetime.now()....
32.735294
115
0.645103
0
0
0
0
0
0
0
0
328
0.294699
bb68392d7aa3e6ae41470c5c442a63fe00343194
3,258
py
Python
recipes/tensorflow/samples/pytorch/cifar10/samples/tensorflow/scorer.py
arturrutkiewicz-divae/aep-rfm-score
705fc54e505fdb8763073401be7b97c81474b0a9
[ "Apache-2.0" ]
18
2018-12-13T18:53:31.000Z
2021-09-29T20:14:05.000Z
recipes/tensorflow/samples/pytorch/cifar10/samples/tensorflow/scorer.py
DalavanCloud/experience-platform-dsw-reference
2e0af85a47ec05b7cda77d61954c1cde0a625f5c
[ "Apache-2.0" ]
27
2019-01-02T22:52:51.000Z
2021-05-26T15:14:17.000Z
recipes/tensorflow/samples/pytorch/cifar10/samples/tensorflow/scorer.py
DalavanCloud/experience-platform-dsw-reference
2e0af85a47ec05b7cda77d61954c1cde0a625f5c
[ "Apache-2.0" ]
18
2019-01-09T19:34:57.000Z
2020-10-19T11:06:50.000Z
# # Copyright 2017 Adobe. # # 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,...
34.659574
75
0.533456
2,432
0.74647
0
0
0
0
0
0
963
0.29558
bb69473a0d64dae39589b39408b2ff33e2930247
1,486
py
Python
data_loading.py
dahouda2pro/deep-learned-embedding
a4428cf99eae86691286ec18a0656e632fbc4600
[ "CC0-1.0" ]
null
null
null
data_loading.py
dahouda2pro/deep-learned-embedding
a4428cf99eae86691286ec18a0656e632fbc4600
[ "CC0-1.0" ]
null
null
null
data_loading.py
dahouda2pro/deep-learned-embedding
a4428cf99eae86691286ec18a0656e632fbc4600
[ "CC0-1.0" ]
1
2021-12-21T05:27:19.000Z
2021-12-21T05:27:19.000Z
import pandas as pd import numpy as np print("Data Loading....") #data = pd.read_csv("adult.csv") data = pd.read_csv("adult_2.csv") # print(data) # print(data.columns) # print(data.shape) # print(data.info()) # print(data.nunique()) data.describe() data.isin(['?']).sum() data = data.replace('?', np.Na...
29.72
94
0.669583
0
0
0
0
0
0
0
0
636
0.427995
bb69a0519f4167f3e5c1740dabcb4206f8eb16f8
261
py
Python
Projects/ESP32Micropython/flash memory/newConnectTest.py
TizioMaurizio/ArduinoWorkshop
d38ede91c6b7a925eafb0272a5fa9f44885ae017
[ "MIT" ]
null
null
null
Projects/ESP32Micropython/flash memory/newConnectTest.py
TizioMaurizio/ArduinoWorkshop
d38ede91c6b7a925eafb0272a5fa9f44885ae017
[ "MIT" ]
null
null
null
Projects/ESP32Micropython/flash memory/newConnectTest.py
TizioMaurizio/ArduinoWorkshop
d38ede91c6b7a925eafb0272a5fa9f44885ae017
[ "MIT" ]
null
null
null
import network import time sta_if = network.WLAN(network.STA_IF) sta_if.active(True) for _ in range(10): sta_if.connect('RedmiMau', 'mau12397') time.sleep(1) if sta_if.isconnected(): print('Connected.') break time.sleep(11) else: print('Fail')
20.076923
39
0.701149
0
0
0
0
0
0
0
0
38
0.145594
bb6a551fb3c28dd9d932bdf287bf2fe78a03a168
1,313
py
Python
FilterPackets.py
aj351/peershark
80e06319f61381fe163383e5984d70a5f23760b4
[ "MIT" ]
31
2015-02-11T14:32:24.000Z
2022-02-10T11:08:23.000Z
FilterPackets.py
aj351/peershark
80e06319f61381fe163383e5984d70a5f23760b4
[ "MIT" ]
1
2015-12-29T11:17:45.000Z
2017-10-11T08:48:49.000Z
FilterPackets.py
aj351/peershark
80e06319f61381fe163383e5984d70a5f23760b4
[ "MIT" ]
26
2015-06-05T04:51:46.000Z
2022-03-22T20:28:52.000Z
## Module to obtain packet data from a pcap/dump file ## and save it in csv format using tshark. ## Filenames of input pcap files are taken from InputFiles.txt ## Tshark options are present in TsharkOptions.txt ## TsharkOptions.txt should not contain the -r option. ## usage: python FilterPackets.py #import global con...
27.93617
75
0.770754
0
0
0
0
0
0
0
0
515
0.392232
bb6b66c4796e5839d80de0a9f7880f3c7a632215
2,829
py
Python
cogs/start.py
Yureehh/Perfecto---O---Tron
cfd6f1819a9e4b7a9a406061bb7fadfea4084a86
[ "MIT" ]
null
null
null
cogs/start.py
Yureehh/Perfecto---O---Tron
cfd6f1819a9e4b7a9a406061bb7fadfea4084a86
[ "MIT" ]
1
2020-09-16T16:27:52.000Z
2020-09-16T16:27:52.000Z
cogs/start.py
Yureehh/Perfecto---O---Tron
cfd6f1819a9e4b7a9a406061bb7fadfea4084a86
[ "MIT" ]
null
null
null
import discord from discord.ext import commands,tasks from datetime import datetime import asyncio from itertools import cycle #number of minutes used at timer for loops MINUTES_TO_WAIT = 30 #in the brackets there's the class you are extending class Start(commands.Cog): def __init__(self, bot, messages=0, joined...
36.269231
183
0.625309
2,538
0.897137
0
0
1,438
0.508307
1,837
0.649346
730
0.258042
bb6cc5ff9b1a00d13872972359a28898848fa4c7
14,716
py
Python
tests/test_parser.py
RathmoreChaos/intficpy
a5076bba93208dc18dcbf2e4ad720af9e2127eda
[ "MIT" ]
25
2019-04-30T23:51:44.000Z
2022-03-23T02:02:54.000Z
tests/test_parser.py
RathmoreChaos/intficpy
a5076bba93208dc18dcbf2e4ad720af9e2127eda
[ "MIT" ]
4
2019-07-09T03:43:35.000Z
2022-01-10T23:41:46.000Z
tests/test_parser.py
RathmoreChaos/intficpy
a5076bba93208dc18dcbf2e4ad720af9e2127eda
[ "MIT" ]
5
2021-04-24T03:54:39.000Z
2022-01-06T20:59:03.000Z
from .helpers import IFPTestCase from intficpy.ifp_game import IFPGame from intficpy.thing_base import Thing from intficpy.things import Surface, UnderSpace from intficpy.actor import Actor, SpecialTopic from intficpy.verb import ( IndirectObjectVerb, GetVerb, LookVerb, SetOnVerb, LeadDirVerb, ...
32.414097
89
0.647323
14,251
0.968402
0
0
76
0.005164
0
0
3,058
0.207801
bb6dc22e8ea52200d58eae5889b340543ca4b618
51
py
Python
spacy_thai/__init__.py
KoichiYasuoka/spaCy-Thai
e70aedbd3c8c88e317a4c254d91b3d4151655d1d
[ "MIT" ]
15
2020-09-26T20:59:12.000Z
2022-03-10T05:14:53.000Z
spacy_thai/__init__.py
KoichiYasuoka/spaCy-Thai
e70aedbd3c8c88e317a4c254d91b3d4151655d1d
[ "MIT" ]
4
2020-12-13T18:58:08.000Z
2022-02-21T01:07:37.000Z
spacy_thai/__init__.py
KoichiYasuoka/spaCy-Thai
e70aedbd3c8c88e317a4c254d91b3d4151655d1d
[ "MIT" ]
3
2020-09-27T11:25:42.000Z
2021-05-13T08:48:03.000Z
from .spacy_thai import ThaiTagger,ThaiParser,load
25.5
50
0.862745
0
0
0
0
0
0
0
0
0
0
bb6e51b991925d3f2d075e10b6faa76829b92e27
965
py
Python
setup.py
KAJdev/pydisfish
aca538cb3e774b4e92469b4f0dd7c8f724088e16
[ "MIT" ]
1
2021-11-04T18:38:43.000Z
2021-11-04T18:38:43.000Z
setup.py
KAJdev/pydisfish
aca538cb3e774b4e92469b4f0dd7c8f724088e16
[ "MIT" ]
null
null
null
setup.py
KAJdev/pydisfish
aca538cb3e774b4e92469b4f0dd7c8f724088e16
[ "MIT" ]
null
null
null
import setuptools import re with open("README.md", "r") as fh: long_description = fh.read() version = '' with open('pydisfish/__init__.py') as f: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1) if not version: raise RuntimeError('version is not set') requi...
28.382353
99
0.65285
0
0
0
0
0
0
0
0
385
0.398964
bb70059c996805e1f7f560d971daa768591ddbce
9,173
py
Python
backup/data_bk.py
ieee820/BraTS2018-tumor-segmentation
22e1a22909a0c21503b5ef5fc6860a1e1131e851
[ "MIT" ]
157
2018-09-22T20:45:04.000Z
2022-01-24T13:08:09.000Z
backup/data_bk.py
bonjoura/BraTS2018-tumor-segmentation
22e1a22909a0c21503b5ef5fc6860a1e1131e851
[ "MIT" ]
null
null
null
backup/data_bk.py
bonjoura/BraTS2018-tumor-segmentation
22e1a22909a0c21503b5ef5fc6860a1e1131e851
[ "MIT" ]
53
2018-10-09T09:34:15.000Z
2021-08-14T10:24:43.000Z
import sys if sys.version_info[0] == 2: import Queue as queue else: import queue import os import math import multiprocessing as mp import threading import torch from torch.utils.data import Dataset import numpy as np from data_utils import get_receptive_field, get_sub_patch_shape, \ get_offset, sampl...
29.782468
94
0.578764
7,197
0.784585
946
0.103129
206
0.022457
0
0
887
0.096697
bb715b8832fba253f15741c5824e20ae8941000e
2,364
py
Python
backintime/candles_providers/binance_api_candles/binance_api_candles.py
akim-mukhtarov/backtesting
2d0491b919885eeddd62c4079c9c7292381cb4f9
[ "MIT" ]
null
null
null
backintime/candles_providers/binance_api_candles/binance_api_candles.py
akim-mukhtarov/backtesting
2d0491b919885eeddd62c4079c9c7292381cb4f9
[ "MIT" ]
null
null
null
backintime/candles_providers/binance_api_candles/binance_api_candles.py
akim-mukhtarov/backtesting
2d0491b919885eeddd62c4079c9c7292381cb4f9
[ "MIT" ]
null
null
null
from .utils import to_ms, to_candle from ..api_candles import ApiCandles from ...timeframes import Timeframes import datetime, time import requests as r class BinanceApiCandles(ApiCandles): _url = 'https://api.binance.com/api/v3/klines' # <Timeframes> : <str - binance str repr> _binance_interv...
31.945946
76
0.576565
2,200
0.930626
817
0.345601
0
0
0
0
314
0.132826
bb723206badf8174dc3f8ba35066d0a2d790ceab
2,110
py
Python
server/grading/models.py
jauhararifin/ugrade
c5bc0ce3920534cf289c739ffe8b83ceed9f52e8
[ "MIT" ]
15
2019-02-27T19:28:23.000Z
2019-07-20T17:54:46.000Z
server/grading/models.py
jauhararifin/ugrade
c5bc0ce3920534cf289c739ffe8b83ceed9f52e8
[ "MIT" ]
9
2020-09-04T18:30:56.000Z
2022-03-25T18:41:11.000Z
server/grading/models.py
jauhararifin/ugrade
c5bc0ce3920534cf289c739ffe8b83ceed9f52e8
[ "MIT" ]
2
2019-03-29T14:15:47.000Z
2019-04-12T06:08:11.000Z
import os import random from django.db import models from contests.models import Submission, User, Contest VERDICT = ( ('RTE', 'Run Time Error'), ('MLE', 'Memory Limit Exceeded'), ('TLE', 'Time Limit Exceeded'), ('WA', 'Wrong Answer'), ('CE', 'Compilation Error'), ('IE', 'Internal Error'), ...
32.96875
92
0.694313
1,446
0.685308
0
0
0
0
0
0
479
0.227014
bb7233933506ce378e6905eadbfa9e01a8d6c38d
2,295
py
Python
enaml/tests/widgets/test_spin_box.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
11
2015-01-04T14:29:23.000Z
2019-12-25T05:38:37.000Z
enaml/tests/widgets/test_spin_box.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
36
2015-02-20T00:56:53.000Z
2020-12-04T10:02:14.000Z
enaml/tests/widgets/test_spin_box.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
3
2015-11-19T15:11:37.000Z
2019-03-11T23:45:02.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2012, Enthought, Inc. # All rights reserved. #------------------------------------------------------------------------------ from enaml.validation.api import IntValidator from .enaml_test_case import EnamlTestCase class...
31.875
90
0.623094
1,911
0.83268
0
0
0
0
0
0
801
0.34902
bb723c07c298e3147c128f216ca171ac795e93ac
192
py
Python
src/lib/core_funcs.py
thekraftyman/discord-bot-starter
e6b9174ea346ec060ecda3f2b1d22f1eb6066f95
[ "MIT" ]
null
null
null
src/lib/core_funcs.py
thekraftyman/discord-bot-starter
e6b9174ea346ec060ecda3f2b1d22f1eb6066f95
[ "MIT" ]
null
null
null
src/lib/core_funcs.py
thekraftyman/discord-bot-starter
e6b9174ea346ec060ecda3f2b1d22f1eb6066f95
[ "MIT" ]
null
null
null
# core_funcs.py # By: thekraftyman ''' container for all of the core funcs that have been distributed among files ''' from src.lib.async_funcs import * from src.lib.non_async_funcs import *
19.2
74
0.760417
0
0
0
0
0
0
0
0
115
0.598958
bb724e768f60fb932f05a9b7ae174961837fa0fc
532
py
Python
core/models.py
rubberducklive/tcm_api
53d2b533e3f9251cce49bd4c1b8e9e65a03eaf04
[ "MIT" ]
null
null
null
core/models.py
rubberducklive/tcm_api
53d2b533e3f9251cce49bd4c1b8e9e65a03eaf04
[ "MIT" ]
null
null
null
core/models.py
rubberducklive/tcm_api
53d2b533e3f9251cce49bd4c1b8e9e65a03eaf04
[ "MIT" ]
null
null
null
import uuid from django.db import models class TimeStampedModel(models.Model): created_at = models.DateTimeField(auto_now_add=True) modified_at = models.DateTimeField(auto_now=True) class Meta(object): abstract = True class PrimaryUUIDModel(models.Model): id = models.UUIDField(primary_key=...
22.166667
79
0.734962
481
0.904135
0
0
0
0
0
0
0
0
bb72f9435fdc29920b70ac72d5ae0238e0aa1869
1,351
py
Python
oandapyV20-examples-master/src/console/greenlets/accountdetails.py
cdibble2011/OANDA
68327d6d65dd92952d7a1dc49fe29efca766d900
[ "MIT" ]
127
2017-02-28T17:34:14.000Z
2022-01-21T13:14:30.000Z
oandapyV20-examples-master/src/console/greenlets/accountdetails.py
cdibble2011/OANDA
68327d6d65dd92952d7a1dc49fe29efca766d900
[ "MIT" ]
36
2018-06-07T21:34:13.000Z
2022-03-13T21:01:43.000Z
oandapyV20-examples-master/src/console/greenlets/accountdetails.py
cdibble2011/OANDA
68327d6d65dd92952d7a1dc49fe29efca766d900
[ "MIT" ]
76
2017-01-02T14:15:07.000Z
2022-03-28T03:49:45.000Z
# -*- coding: utf-8 -*- import gevent from oandapyV20.endpoints.accounts import AccountDetails, AccountChanges class GAccountDetails(gevent.Greenlet): """Greenlet to handle account details/changes. Initially get the AccountDetails and then keep polling for account changes. In case of changes put tho...
32.95122
75
0.637306
1,236
0.914878
0
0
0
0
0
0
316
0.233901
bb73bd26c0031f64dbf994ec3a8a3952a7f0e16a
802
py
Python
wbsv/main.py
yswallow/wbsv-cli
30b68d0d1efd56fba99286d53470a39d317d6d9d
[ "MIT" ]
null
null
null
wbsv/main.py
yswallow/wbsv-cli
30b68d0d1efd56fba99286d53470a39d317d6d9d
[ "MIT" ]
null
null
null
wbsv/main.py
yswallow/wbsv-cli
30b68d0d1efd56fba99286d53470a39d317d6d9d
[ "MIT" ]
null
null
null
import sys from . import Archive from . import Find from . import ParseArgs from . import Interact def iter_urls(opt): """Iterate given urls for saving.""" try: for x in opt["urls"]: Archive.archive(Find.extract_uri_recursive(x, opt["level"]), x, opt["retry"]) ...
20.05
72
0.557357
0
0
0
0
0
0
0
0
145
0.180798
bb74b1ea7d5e069ac223adabbb64c46d9e5159e9
5,613
py
Python
Sapphire/CallStatement.py
Rhodolite/Parser-py
7743799794d92aa8560db11f1d6d5f00e5ac1925
[ "MIT" ]
null
null
null
Sapphire/CallStatement.py
Rhodolite/Parser-py
7743799794d92aa8560db11f1d6d5f00e5ac1925
[ "MIT" ]
null
null
null
Sapphire/CallStatement.py
Rhodolite/Parser-py
7743799794d92aa8560db11f1d6d5f00e5ac1925
[ "MIT" ]
null
null
null
# # Copyright (c) 2017-2018 Joy Diamond. All rights reserved. # @gem('Sapphire.CallStatement') def gem(): require_gem('Sapphire.BookcaseExpression') require_gem('Sapphire.MemberExpression') require_gem('Sapphire.Method') require_gem('Sapphire.Tree') class CallStatementBase(SapphireTrunk): ...
31.533708
112
0.549973
3,411
0.607696
0
0
5,545
0.987885
0
0
453
0.080706
bb75831e0db77f35e095a17d5451a6e61a18c00c
546
py
Python
languages/python/sqlalchemy-oso/tests/test_partial.py
johnhalbert/oso
3185cf3740b74c3c1deaca5b9ec738325de4c8a2
[ "Apache-2.0" ]
null
null
null
languages/python/sqlalchemy-oso/tests/test_partial.py
johnhalbert/oso
3185cf3740b74c3c1deaca5b9ec738325de4c8a2
[ "Apache-2.0" ]
null
null
null
languages/python/sqlalchemy-oso/tests/test_partial.py
johnhalbert/oso
3185cf3740b74c3c1deaca5b9ec738325de4c8a2
[ "Apache-2.0" ]
null
null
null
"""Unit tests for partial implementation.""" from polar.expression import Expression from polar.variable import Variable from sqlalchemy_oso.partial import dot_op_path def test_dot_op_path(): single = Expression("Dot", [Variable("_this"), "created_by"]) assert dot_op_path(single) == ["created_by"] doubl...
32.117647
69
0.705128
0
0
0
0
0
0
0
0
158
0.289377
bb75907adc83d289e117c742bd2e7ed7ea682464
426
py
Python
lib/version.py
Durendal/electrum-rby
0dadd13467d44bcc7128f0dec0fa1aeff8d22576
[ "MIT" ]
null
null
null
lib/version.py
Durendal/electrum-rby
0dadd13467d44bcc7128f0dec0fa1aeff8d22576
[ "MIT" ]
1
2021-11-15T17:47:29.000Z
2021-11-15T17:47:29.000Z
lib/version.py
Durendal/electrum-rby
0dadd13467d44bcc7128f0dec0fa1aeff8d22576
[ "MIT" ]
1
2017-11-13T23:19:46.000Z
2017-11-13T23:19:46.000Z
ELECTRUM_VERSION = '3.0' # version of the client package PROTOCOL_VERSION = '0.10' # protocol version requested # The hash of the mnemonic seed must begin with this SEED_PREFIX = '01' # Standard wallet SEED_PREFIX_2FA = '101' # Two-factor authentication def seed_prefix(seed_type): if seed_t...
32.769231
60
0.683099
0
0
0
0
0
0
0
0
190
0.446009
bb75ca51f4748a57620c013b53d94680ace60cc1
1,579
py
Python
src/url.py
nahueldebellis/TwitchTournamentGenerator
a0a203e08d836ad744850839385324c54314b8a4
[ "MIT" ]
null
null
null
src/url.py
nahueldebellis/TwitchTournamentGenerator
a0a203e08d836ad744850839385324c54314b8a4
[ "MIT" ]
null
null
null
src/url.py
nahueldebellis/TwitchTournamentGenerator
a0a203e08d836ad744850839385324c54314b8a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python from pyshorteners import Shortener """Url class""" class Url(): """This class format participants and add to an url and short the url""" cant_participants = 0 bracket = 0 def __init__(self): self.short_url = Shortener() self.url_final = ['https://scorecounter.com/t...
41.552632
88
0.627612
1,504
0.952502
0
0
0
0
0
0
395
0.250158
bb76a8caabf2f194e804291ce67ba419fda452c3
5,302
py
Python
UniPCoA.py
AdeBC/UniRPyCoA
f5b54297daf07856d9a88ebc8e6277e7be9b7ecc
[ "MIT" ]
null
null
null
UniPCoA.py
AdeBC/UniRPyCoA
f5b54297daf07856d9a88ebc8e6277e7be9b7ecc
[ "MIT" ]
null
null
null
UniPCoA.py
AdeBC/UniRPyCoA
f5b54297daf07856d9a88ebc8e6277e7be9b7ecc
[ "MIT" ]
null
null
null
import os import pandas as pd from plotnine import * import plotnine from matplotlib import pyplot as plt import matplotlib from scipy.spatial.distance import pdist, squareform from skbio.stats.ordination import pcoa from skbio.diversity import beta_diversity from skbio.io import read from skbio.tree import TreeNode im...
49.092593
169
0.704828
0
0
0
0
0
0
0
0
1,550
0.292343
bb77128dc910f27388f4e518fef5f850a41210e0
357
py
Python
web/impact/impact/graphql/types/location_type.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
5
2017-10-19T15:11:52.000Z
2020-03-08T07:16:21.000Z
web/impact/impact/graphql/types/location_type.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
182
2017-06-21T19:32:13.000Z
2021-03-22T13:38:16.000Z
web/impact/impact/graphql/types/location_type.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
1
2018-06-23T11:53:18.000Z
2018-06-23T11:53:18.000Z
from graphene_django import DjangoObjectType from accelerator.models import Location class LocationType(DjangoObjectType): class Meta: model = Location only_fields = ( 'street_address', 'timezone', 'country', 'state', 'name', ...
18.789474
44
0.521008
267
0.747899
0
0
0
0
0
0
58
0.162465
bb7baf8c8805cb067d4cf73845cfee7e1f0d116f
2,835
py
Python
invoice/spy/notify_osd.py
simone-campagna/invoice
6446cf6ebb158b895cd11d707eb019ae23833881
[ "Apache-2.0" ]
null
null
null
invoice/spy/notify_osd.py
simone-campagna/invoice
6446cf6ebb158b895cd11d707eb019ae23833881
[ "Apache-2.0" ]
16
2015-01-30T16:28:54.000Z
2015-03-02T14:18:56.000Z
invoice/spy/notify_osd.py
simone-campagna/invoice
6446cf6ebb158b895cd11d707eb019ae23833881
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2015 Simone Campagna # # 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...
35
114
0.65679
0
0
0
0
0
0
0
0
1,023
0.360847
bb7bc4b7cb8f753fbf39ae6cb16944a05b0ab207
3,878
py
Python
src/discoursegraphs/readwrite/salt/labels.py
arne-cl/discoursegraphs
4e14688e19c980ac9bbac75ff1bf5d751ef44ac3
[ "BSD-3-Clause" ]
41
2015-02-20T00:35:39.000Z
2022-03-15T13:54:13.000Z
src/discoursegraphs/readwrite/salt/labels.py
arne-cl/discoursegraphs
4e14688e19c980ac9bbac75ff1bf5d751ef44ac3
[ "BSD-3-Clause" ]
68
2015-01-09T18:07:38.000Z
2021-10-06T16:30:43.000Z
src/discoursegraphs/readwrite/salt/labels.py
arne-cl/discoursegraphs
4e14688e19c980ac9bbac75ff1bf5d751ef44ac3
[ "BSD-3-Clause" ]
8
2015-02-20T00:35:48.000Z
2021-10-30T14:09:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This module handles the parsing of SALT labels. There are three types of labels (SFeature, SElementId, SAnnotation). Labels can occur as children of these elements: 'layers', 'nodes', 'edges' and '{sDocumentStructure}SDocumentGraph'. """ from lxml.builder import Elem...
35.577982
79
0.60624
2,791
0.719701
0
0
856
0.220732
0
0
2,414
0.622486
bb7c19c39a756e836f832fe37756f912b98af313
1,214
py
Python
examples/stream_entries.py
feedly/python-api-client
a211734a77337145efa0d1a1ddfe484f74530998
[ "MIT" ]
31
2018-08-20T08:35:09.000Z
2022-03-21T04:17:27.000Z
examples/stream_entries.py
feedly/python-api-client
a211734a77337145efa0d1a1ddfe484f74530998
[ "MIT" ]
8
2018-10-17T18:09:44.000Z
2021-12-14T10:03:34.000Z
examples/stream_entries.py
feedly/python-api-client
a211734a77337145efa0d1a1ddfe484f74530998
[ "MIT" ]
7
2018-09-04T01:10:48.000Z
2021-08-19T11:07:54.000Z
from feedly.api_client.session import FeedlySession from feedly.api_client.stream import StreamOptions from feedly.api_client.utils import run_example def example_stream_entries(): """ This example will prompt you to enter a category name, download the 10 latest articles from it, and display their titles...
39.16129
117
0.74547
0
0
0
0
0
0
0
0
670
0.551895
bb809b94005596a2a1d4a23ab288a44cc7045e25
141
py
Python
program5.py
kashifrepo/Python-Saylani
1ac9fe05012ad716d4ef30d771d9828f91221ac6
[ "Apache-2.0" ]
null
null
null
program5.py
kashifrepo/Python-Saylani
1ac9fe05012ad716d4ef30d771d9828f91221ac6
[ "Apache-2.0" ]
null
null
null
program5.py
kashifrepo/Python-Saylani
1ac9fe05012ad716d4ef30d771d9828f91221ac6
[ "Apache-2.0" ]
null
null
null
# Program no 5 1stname = input(" Enter 1st name ") lastname = input(" Enter last name ") print 1stname[::-1] print lastname[::-1]
20.142857
38
0.617021
0
0
0
0
0
0
0
0
52
0.368794
bb835887638d97fd49e95038db89b9f00019f7b3
1,343
py
Python
setup.py
wo0dyn/django-basic-models-behaviors
19bbd09630c38451c89f32d38023053b23995db9
[ "BSD-3-Clause" ]
2
2016-07-14T00:29:59.000Z
2016-07-18T02:55:35.000Z
setup.py
wo0dyn/django-basic-models-behaviors
19bbd09630c38451c89f32d38023053b23995db9
[ "BSD-3-Clause" ]
5
2015-07-02T07:42:10.000Z
2020-06-05T16:54:04.000Z
setup.py
wo0dyn/django-basic-models-behaviors
19bbd09630c38451c89f32d38023053b23995db9
[ "BSD-3-Clause" ]
1
2015-10-20T10:11:35.000Z
2015-10-20T10:11:35.000Z
# -*- coding: utf-8 -*- import codecs import os from setuptools import setup def read(*parts): return codecs.open(os.path.join(os.path.dirname(__file__), *parts), encoding='utf-8').read() setup( name='django-basic-models-behaviors', version=__import__('basic_models_behaviors').__version__, descript...
31.97619
96
0.638124
0
0
0
0
0
0
0
0
760
0.565897
bb84b60c8bd64fa0c7fda5ba539335cf5ce1fc5a
10,746
py
Python
plistutils/nskeyedarchiver.py
sathwikv143/plistutils
fc7783449da1ed222547ceb5c416402216fa9b34
[ "BSD-3-Clause" ]
35
2017-10-17T17:24:16.000Z
2022-03-18T22:10:47.000Z
plistutils/nskeyedarchiver.py
sathwikv143/plistutils
fc7783449da1ed222547ceb5c416402216fa9b34
[ "BSD-3-Clause" ]
1
2021-07-09T01:06:30.000Z
2021-07-09T01:06:30.000Z
plistutils/nskeyedarchiver.py
sathwikv143/plistutils
fc7783449da1ed222547ceb5c416402216fa9b34
[ "BSD-3-Clause" ]
4
2018-11-17T15:52:36.000Z
2022-02-28T08:01:14.000Z
import logging from uuid import UUID from biplist import Data, Uid from plistutils.utils import parse_mac_absolute_time logger = logging.getLogger(__name__) class NSKeyedArchiveException(Exception): pass class NSKeyedArchiveParser(object): # https://developer.apple.com/documentation/foundation/nskeyed...
45.72766
170
0.622557
10,577
0.984273
0
0
2,464
0.229295
0
0
3,451
0.321143
bb85cd6b9000d3cdaff7738f7a55a4fc05c3ab98
89
py
Python
guillotina_volto/blocks/__init__.py
enfold/guillotina-volto
d38ee300470c813c99341eaeb2ba8a2b5fb7d778
[ "BSD-2-Clause" ]
5
2018-11-11T07:19:06.000Z
2020-01-18T11:04:15.000Z
guillotina_volto/blocks/__init__.py
enfold/guillotina-volto
d38ee300470c813c99341eaeb2ba8a2b5fb7d778
[ "BSD-2-Clause" ]
4
2021-05-14T20:21:03.000Z
2021-11-18T01:27:04.000Z
guillotina_volto/blocks/__init__.py
enfold/guillotina-volto
d38ee300470c813c99341eaeb2ba8a2b5fb7d778
[ "BSD-2-Clause" ]
2
2019-06-14T10:42:22.000Z
2020-05-09T13:09:09.000Z
from . import default # noqa from . import types # noqa from . import standard # noqa
22.25
30
0.696629
0
0
0
0
0
0
0
0
18
0.202247
bb86c442b96d2055b1909d4bb39b8d492cac5efe
1,131
py
Python
plotdotroot/plotdot/svgDraw/transform.py
hodeld/axidraw
b5009779d01f209b7fe712a92aa9c117ce32f70a
[ "MIT" ]
1
2020-07-28T15:09:57.000Z
2020-07-28T15:09:57.000Z
plotdotroot/plotdot/svgDraw/transform.py
hodeld/axidraw
b5009779d01f209b7fe712a92aa9c117ce32f70a
[ "MIT" ]
4
2021-04-08T21:33:10.000Z
2021-09-22T19:29:10.000Z
plotdotroot/plotdot/svgDraw/transform.py
hodeld/axidraw
b5009779d01f209b7fe712a92aa9c117ce32f70a
[ "MIT" ]
1
2022-03-18T18:07:27.000Z
2022-03-18T18:07:27.000Z
import random def scale(ele, sx, sy=None): if sy is None: sy = sx ele.scale(sx, sy) def translate(ele, sx, sy=0): ele.translate(sx, sy) def skew_x(ele, angle, sy=None): ele.skewX(angle) def skew_y(ele, angle, sy=None): ele.skewX(angle) def rotate(ele, angle, sy=None): ele.skewX(...
17.952381
57
0.568523
0
0
0
0
0
0
0
0
15
0.013263