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
d52dbcb5f5f927e8beee568c91222838c4d49f6e
11,606
py
Python
cross_correlation.py
sbargy/cross-correlation
ee6f991758dbe6715d8cbf3ec03b07407f2acdf1
[ "MIT" ]
null
null
null
cross_correlation.py
sbargy/cross-correlation
ee6f991758dbe6715d8cbf3ec03b07407f2acdf1
[ "MIT" ]
null
null
null
cross_correlation.py
sbargy/cross-correlation
ee6f991758dbe6715d8cbf3ec03b07407f2acdf1
[ "MIT" ]
1
2020-06-23T21:06:33.000Z
2020-06-23T21:06:33.000Z
#!/usr/bin/env python3 # system imports import argparse import sys # obspy imports from obspy.clients.fdsn import Client from obspy import read, read_inventory, UTCDateTime from scipy import signal from obspy.signal.cross_correlation import correlate, xcorr_max from obspy.clients.fdsn.header import FDSNNoDataExceptio...
41.45
126
0.525418
287
0.024729
0
0
0
0
0
0
2,978
0.256591
d52e9d0960091a82d4473fa8f90e1a3e2e15884d
32,810
py
Python
djcloudbridge/serializers.py
almahmoud/djcloudbridge
0a00ccefb217cc3962315019405dd176956c1830
[ "MIT" ]
null
null
null
djcloudbridge/serializers.py
almahmoud/djcloudbridge
0a00ccefb217cc3962315019405dd176956c1830
[ "MIT" ]
null
null
null
djcloudbridge/serializers.py
almahmoud/djcloudbridge
0a00ccefb217cc3962315019405dd176956c1830
[ "MIT" ]
null
null
null
import urllib from cloudbridge.cloud.interfaces.resources import TrafficDirection from rest_auth.serializers import UserDetailsSerializer from rest_framework import serializers from rest_framework.reverse import reverse from . import models from . import view_helpers from .drf_helpers import CustomHyperlinkedIdenti...
38.6
79
0.65666
32,229
0.982292
0
0
0
0
0
0
5,286
0.161109
d52fc94190a48ed5868310e2aad92eeeb9feb60b
866
py
Python
what_apps/mooncalendar/admin.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
what_apps/mooncalendar/admin.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
what_apps/mooncalendar/admin.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
from what_apps.mooncalendar.models import Event from what_apps.mooncalendar.models import Moon from django.contrib import admin class EventAdmin(admin.ModelAdmin): list_display = 'name', fieldsets = [ (None, {'fields': ['name']}), ('description', {'fields':['description']}), ('Date info...
30.928571
63
0.575058
646
0.745958
0
0
0
0
0
0
233
0.269053
d53250d431f3b7786477248a4bd086c3905e3d46
4,019
py
Python
kvdbclient/bigtable/utils.py
seung-lab/KVDbClient
4b82ded0c19b89cc9887ed60998583989a086506
[ "MIT" ]
null
null
null
kvdbclient/bigtable/utils.py
seung-lab/KVDbClient
4b82ded0c19b89cc9887ed60998583989a086506
[ "MIT" ]
null
null
null
kvdbclient/bigtable/utils.py
seung-lab/KVDbClient
4b82ded0c19b89cc9887ed60998583989a086506
[ "MIT" ]
null
null
null
from typing import Dict from typing import Union from typing import Iterable from typing import Optional from datetime import datetime from datetime import timedelta import numpy as np from google.cloud.bigtable.row_data import PartialRowData from google.cloud.bigtable.row_filters import RowFilter from . import attri...
34.646552
93
0.718089
0
0
0
0
0
0
0
0
606
0.150784
d5341906de628d8bd34733d0c157d31c4b909dfe
551
py
Python
Introducing_CircuitPlaygroundExpress/CircuitPlaygroundExpress_LightSensor_cpx.py
joewalk102/Adafruit_Learning_System_Guides
2bda607f8c433c661a2d9d40b4db4fd132334c9a
[ "MIT" ]
665
2017-09-27T21:20:14.000Z
2022-03-31T09:09:25.000Z
Introducing_CircuitPlaygroundExpress/CircuitPlaygroundExpress_LightSensor_cpx.py
joewalk102/Adafruit_Learning_System_Guides
2bda607f8c433c661a2d9d40b4db4fd132334c9a
[ "MIT" ]
641
2017-10-03T19:46:37.000Z
2022-03-30T18:28:46.000Z
Introducing_CircuitPlaygroundExpress/CircuitPlaygroundExpress_LightSensor_cpx.py
joewalk102/Adafruit_Learning_System_Guides
2bda607f8c433c661a2d9d40b4db4fd132334c9a
[ "MIT" ]
734
2017-10-02T22:47:38.000Z
2022-03-30T14:03:51.000Z
# CircuitPlaygroundExpress_LightSensor # reads the on-board light sensor and graphs the brighness with NeoPixels import time from adafruit_circuitplayground.express import cpx from simpleio import map_range cpx.pixels.brightness = 0.05 while True: # light value remaped to pixel position peak = map_range(cpx...
22.958333
73
0.653358
0
0
0
0
0
0
0
0
150
0.272232
d534b5964680d262bdbcff4ab014dca342de302c
3,258
py
Python
mpc.py
clovaai/subword-qac
df7a9a557a594712f757adccf86fdaf365bff601
[ "MIT" ]
65
2019-09-04T01:53:31.000Z
2022-03-13T09:39:47.000Z
mpc.py
naver-ai/subword-qac
df7a9a557a594712f757adccf86fdaf365bff601
[ "MIT" ]
3
2020-10-09T14:24:54.000Z
2021-08-24T06:23:09.000Z
mpc.py
naver-ai/subword-qac
df7a9a557a594712f757adccf86fdaf365bff601
[ "MIT" ]
13
2019-09-09T11:19:43.000Z
2021-08-30T23:10:06.000Z
""" Copyright (c) 2019-present NAVER Corp. MIT License """ import os import sys import json import logging import argparse import pickle from tqdm import tqdm from dataset import read_data, PrefixDataset from trie import Trie from metric import calc_rank, calc_partial_rank, mrr_summary, mrl_summary logging.basicCo...
33.244898
105
0.656845
0
0
0
0
0
0
0
0
641
0.196746
d534d824de326bc7eb62d09547d2ef9f6480689c
813
py
Python
old_source_code/Experiment 4 Extended Game Convergency/plotHistory.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
old_source_code/Experiment 4 Extended Game Convergency/plotHistory.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
old_source_code/Experiment 4 Extended Game Convergency/plotHistory.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Apr 16 18:18:29 2020 @author: xuhuiying """ import numpy as np import matplotlib.pyplot as plt def plotHistory(history,times,xLabelText,yLabelText,legendText):#画出每个history plot each history history = np.array(history) #history是二维数组 history is a 2D...
32.52
98
0.682657
0
0
0
0
0
0
0
0
398
0.478941
d535465b4cadf1f4ee90d4f52f137ea35dc5bc11
56
py
Python
dominion/cards/__init__.py
billletson/dominion
ad430e20aa1615758091df1ca39a5fc7313e921e
[ "MIT" ]
null
null
null
dominion/cards/__init__.py
billletson/dominion
ad430e20aa1615758091df1ca39a5fc7313e921e
[ "MIT" ]
null
null
null
dominion/cards/__init__.py
billletson/dominion
ad430e20aa1615758091df1ca39a5fc7313e921e
[ "MIT" ]
null
null
null
from .constants import * from .actions import ACTIONS
18.666667
29
0.767857
0
0
0
0
0
0
0
0
0
0
d535a3e83f35b85829a2417b8b9cf8c664d410a0
1,497
py
Python
VMTranslator.py
Nismirno/n2tVMTranslator
0274f5a51a5e3209e3536c1de5b4ff8b3824a116
[ "MIT" ]
null
null
null
VMTranslator.py
Nismirno/n2tVMTranslator
0274f5a51a5e3209e3536c1de5b4ff8b3824a116
[ "MIT" ]
null
null
null
VMTranslator.py
Nismirno/n2tVMTranslator
0274f5a51a5e3209e3536c1de5b4ff8b3824a116
[ "MIT" ]
null
null
null
#!/usr/bin/env python from VMParser import Parser from VMCodewriter import CodeWriter from pathlib import Path import sys def processDirectory(inputPath): fileName = str(inputPath.stem) myWriter = CodeWriter(fileName) lines = myWriter.initHeader() for f in inputPath.glob("*.vm"): lines += proc...
28.788462
56
0.637275
0
0
0
0
0
0
0
0
216
0.144289
d535db0b037e93b7fd2d6697df93c4c6ea03dea8
19,343
py
Python
python/package/solution.py
pchtsp/ROADEF2018
442dfe919a41fa993155226b601625917e632577
[ "MIT" ]
null
null
null
python/package/solution.py
pchtsp/ROADEF2018
442dfe919a41fa993155226b601625917e632577
[ "MIT" ]
null
null
null
python/package/solution.py
pchtsp/ROADEF2018
442dfe919a41fa993155226b601625917e632577
[ "MIT" ]
null
null
null
import package.data_input as di import ete3 import math import package.instance as inst import package.params as pm import numpy as np import matplotlib try: import tkinter except: matplotlib.use('Qt5Agg', warn=False, force=True) import matplotlib.pyplot as plt import palettable as pal import pprint as pp impor...
39.964876
132
0.596133
18,313
0.946262
0
0
1,981
0.102361
0
0
3,955
0.204361
d535e635e6b66ba70c20fb56aebb09ef9c95a99d
2,435
py
Python
tests/engine/training/test_fingerprinting.py
fintzd/rasa
6359be5509c7d87cd29c2ab5149bc45e843fea85
[ "Apache-2.0" ]
9,701
2019-04-16T15:46:27.000Z
2022-03-31T11:52:18.000Z
tests/engine/training/test_fingerprinting.py
fintzd/rasa
6359be5509c7d87cd29c2ab5149bc45e843fea85
[ "Apache-2.0" ]
6,420
2019-04-16T15:58:22.000Z
2022-03-31T17:54:35.000Z
tests/engine/training/test_fingerprinting.py
fintzd/rasa
6359be5509c7d87cd29c2ab5149bc45e843fea85
[ "Apache-2.0" ]
3,063
2019-04-16T15:23:52.000Z
2022-03-31T00:01:12.000Z
import inspect from unittest.mock import Mock from _pytest.monkeypatch import MonkeyPatch from rasa.core.policies.ted_policy import TEDPolicy from rasa.engine.training import fingerprinting from rasa.nlu.classifiers.diet_classifier import DIETClassifier from rasa.nlu.selectors.response_selector import ResponseSelector...
30.822785
88
0.725667
0
0
0
0
0
0
0
0
133
0.05462
d535fc7f00accf0db8f763c0a2459c7d2e6f66c8
10,068
py
Python
smarty/cli_smirky.py
openforcefield/smarty
882d54b6d6d0fada748c71789964b07be2210a6a
[ "MIT" ]
10
2018-03-29T15:31:50.000Z
2022-02-17T14:04:37.000Z
smarty/cli_smirky.py
openforcefield/smarty
882d54b6d6d0fada748c71789964b07be2210a6a
[ "MIT" ]
14
2017-11-22T21:27:25.000Z
2019-01-24T04:50:42.000Z
smarty/cli_smirky.py
openforcefield/smarty
882d54b6d6d0fada748c71789964b07be2210a6a
[ "MIT" ]
2
2019-03-05T22:52:26.000Z
2022-02-17T14:05:06.000Z
""" Command-line driver example for SMIRKY. """ import sys import string import time from optparse import OptionParser # For parsing of command line arguments import smarty from openforcefield.utils import utils import os import math import copy import re import numpy from numpy import random def main(): # Cre...
53.839572
309
0.689114
0
0
0
0
0
0
0
0
5,509
0.547179
d53653c57078f22dc6820daf96fa072146e66f13
100
py
Python
zim/plugins/zimclip/tests/__init__.py
stiles69/bin
a327326ae22933e44c7ee2268f973dcedf7c8b3c
[ "MIT" ]
null
null
null
zim/plugins/zimclip/tests/__init__.py
stiles69/bin
a327326ae22933e44c7ee2268f973dcedf7c8b3c
[ "MIT" ]
null
null
null
zim/plugins/zimclip/tests/__init__.py
stiles69/bin
a327326ae22933e44c7ee2268f973dcedf7c8b3c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import os import sys import unittest # FIXME Do some tests
11.111111
23
0.7
0
0
0
0
0
0
0
0
44
0.44
d536849becbcd8fd7d2759bd7a26ed03c8235dce
9,800
py
Python
fastai/classifyAllSnippets.py
jtbr/tv-news-quality
0aa57a67ff3f3207e5cdf4129d58ea967e698e90
[ "MIT" ]
null
null
null
fastai/classifyAllSnippets.py
jtbr/tv-news-quality
0aa57a67ff3f3207e5cdf4129d58ea967e698e90
[ "MIT" ]
null
null
null
fastai/classifyAllSnippets.py
jtbr/tv-news-quality
0aa57a67ff3f3207e5cdf4129d58ea967e698e90
[ "MIT" ]
null
null
null
from collections import defaultdict, deque from datetime import datetime import pandas as pd import random import numpy as np import sys sys.path.append("..") # Adds higher directory to python modules path. from common import Label_DbFields, Synthetic_Category_Group_Names, Other_Synthetic_Group_Names, MultiLabel_Group_...
52.12766
205
0.655612
0
0
0
0
0
0
0
0
4,013
0.40949
d536b7482bc290966d04a1055fdea35f0784a032
3,385
py
Python
LDDMM_Python/lddmm_python/modules/io/anim3D.py
tt6746690/lddmm-ot
98e45d44969221b0fc8206560d9b7a655ef7e137
[ "MIT" ]
48
2017-08-04T03:30:22.000Z
2022-03-09T03:24:11.000Z
LDDMM_Python/lddmm_python/modules/io/anim3D.py
hushunbo/lddmm-ot
5af26fe32ae440c598ed403ce2876e98d6e1c692
[ "MIT" ]
null
null
null
LDDMM_Python/lddmm_python/modules/io/anim3D.py
hushunbo/lddmm-ot
5af26fe32ae440c598ed403ce2876e98d6e1c692
[ "MIT" ]
15
2017-09-30T18:55:48.000Z
2021-04-27T18:27:55.000Z
# We use a slightly hacked version of the plot.ly js/python library lddmm_python = __import__(__name__.split('.')[0]) print(lddmm_python) import lddmm_python.lib.plotly as plotly import re from pylab import * from IPython.html.widgets import interact from IPython.display import HTML, display from pprint import pprint ...
28.686441
113
0.644313
2,898
0.85613
0
0
0
0
0
0
575
0.169867
d537bbba3a9ba3ab580ea135450c563c974dfe24
3,180
py
Python
driftbase/api/users.py
directivegames/drift-base
5fc7d4686c56e93fc22178f3b1bb49239d7eee45
[ "MIT" ]
1
2021-09-04T01:45:44.000Z
2021-09-04T01:45:44.000Z
driftbase/api/users.py
directivegames/drift-base
5fc7d4686c56e93fc22178f3b1bb49239d7eee45
[ "MIT" ]
30
2020-12-09T04:10:26.000Z
2022-03-02T02:34:49.000Z
driftbase/api/users.py
directivegames/drift-base
5fc7d4686c56e93fc22178f3b1bb49239d7eee45
[ "MIT" ]
null
null
null
import logging import http.client as http_client from flask import url_for, g from flask.views import MethodView import marshmallow as ma from flask_smorest import Blueprint, abort from marshmallow_sqlalchemy import SQLAlchemyAutoSchema from drift.core.extensions.urlregistry import Endpoints from driftbase.models.db i...
27.894737
96
0.654403
2,119
0.666352
0
0
1,556
0.489308
0
0
476
0.149686
d539894b90e242423be7b5a80d8dab14133e7cdc
1,342
py
Python
xlsx2x.py
KhanShaheb34/xlsx2pdf
2ed6c687ac1ae664fb0599c8b9138a3bdc0cd828
[ "MIT" ]
null
null
null
xlsx2x.py
KhanShaheb34/xlsx2pdf
2ed6c687ac1ae664fb0599c8b9138a3bdc0cd828
[ "MIT" ]
null
null
null
xlsx2x.py
KhanShaheb34/xlsx2pdf
2ed6c687ac1ae664fb0599c8b9138a3bdc0cd828
[ "MIT" ]
null
null
null
import os import cv2 import jpype import shutil import weasyprint from bs4 import BeautifulSoup jpype.startJVM() from asposecells.api import * def generatePDF(XLSXPath, OutPath): workbook = Workbook(XLSXPath) workbook.save(f"sheet.html", SaveFormat.HTML) with open(f'./sheet_files/sheet001.htm') as f: ...
25.807692
68
0.612519
0
0
0
0
0
0
0
0
447
0.333085
d53a3a12bcf8b7a3bf6b3520d6ff05036c95f9f7
6,912
py
Python
test/test_one.py
hellhound/pyejdb
cdb8285eef5417cd1fcaf84ecdfa2f2cb0fa6a18
[ "Python-2.0", "OLDAP-2.3" ]
null
null
null
test/test_one.py
hellhound/pyejdb
cdb8285eef5417cd1fcaf84ecdfa2f2cb0fa6a18
[ "Python-2.0", "OLDAP-2.3" ]
null
null
null
test/test_one.py
hellhound/pyejdb
cdb8285eef5417cd1fcaf84ecdfa2f2cb0fa6a18
[ "Python-2.0", "OLDAP-2.3" ]
2
2015-08-11T17:00:17.000Z
2021-01-04T08:34:47.000Z
#-*- coding: utf8 -*- # ************************************************************************************************* # Python API for EJDB database library http://ejdb.org # Copyright (C) 2012-2013 Softmotions Ltd. # # This file is part of EJDB. # EJDB is free software; you can redistribute it and/or modify i...
34.38806
99
0.552228
5,494
0.79485
0
0
359
0.051939
0
0
2,238
0.323785
d53acbe8d2fd10ef53b5cd93c9f759efa5b93c91
242
py
Python
accounts/urls.py
bekzod-fayzikuloff/djChat
d58e882c26d461b110c8b3277998108214d72fd5
[ "MIT" ]
null
null
null
accounts/urls.py
bekzod-fayzikuloff/djChat
d58e882c26d461b110c8b3277998108214d72fd5
[ "MIT" ]
null
null
null
accounts/urls.py
bekzod-fayzikuloff/djChat
d58e882c26d461b110c8b3277998108214d72fd5
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'users' urlpatterns = [ path('<int:pk>/', views.user_profile, name='user_profile'), path('messages/<int:pk>/', views.PrivateMessageView.as_view(), name='private_message') ]
26.888889
90
0.706612
0
0
0
0
0
0
0
0
69
0.285124
d53b07a8a498ac3b78d4cd3571eb5f9210cc5922
2,029
py
Python
vkmz/__main__.py
HegemanLab/VKMZ
5876c24913a3b778980b6d1d4046f4c481222005
[ "MIT" ]
1
2022-01-12T15:41:00.000Z
2022-01-12T15:41:00.000Z
vkmz/__main__.py
HegemanLab/VanKrevelin_galaxy_wrapper
5876c24913a3b778980b6d1d4046f4c481222005
[ "MIT" ]
2
2021-06-09T14:41:47.000Z
2021-06-09T17:56:30.000Z
vkmz/__main__.py
HegemanLab/VanKrevelin_galaxy_wrapper
5876c24913a3b778980b6d1d4046f4c481222005
[ "MIT" ]
2
2018-07-26T21:55:17.000Z
2018-08-01T17:59:00.000Z
#!/usr/bin/env python def main(): """Main flow control of vkmz Read input data into feature objects. Results in dictionaries for samples and features. Then, make predictions for features. Features without predictions are removed by default. Finally, write results. """ from vkmz.ar...
32.206349
81
0.638245
0
0
0
0
0
0
0
0
669
0.329719
d53da663fdb9651c945c63d8d3b450c89e7a3a5a
1,076
py
Python
python/problem-080.py
mbuhot/mbuhot-euler-solutions
30066543cfd2d84976beb0605839750b64f4b8ef
[ "MIT" ]
1
2015-12-18T13:25:41.000Z
2015-12-18T13:25:41.000Z
python/problem-080.py
mbuhot/mbuhot-euler-solutions
30066543cfd2d84976beb0605839750b64f4b8ef
[ "MIT" ]
null
null
null
python/problem-080.py
mbuhot/mbuhot-euler-solutions
30066543cfd2d84976beb0605839750b64f4b8ef
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 from math import sqrt from decimal import getcontext, Decimal description = ''' Square root digital expansion Problem 80 It is well known that if the square root of a natural number is not an integer, then it is irrational. The decimal expansion of such square roots is infinite without any rep...
34.709677
195
0.746283
0
0
0
0
0
0
0
0
685
0.636617
d53df78809e1584483410583a6ebc437b5a2b0ef
36
py
Python
indra/assemblers/tsv/__init__.py
zebulon2/indra
7727ddcab52ad8012eb6592635bfa114e904bd48
[ "BSD-2-Clause" ]
136
2016-02-11T22:06:37.000Z
2022-03-31T17:26:20.000Z
indra/assemblers/tsv/__init__.py
zebulon2/indra
7727ddcab52ad8012eb6592635bfa114e904bd48
[ "BSD-2-Clause" ]
748
2016-02-03T16:27:56.000Z
2022-03-09T14:27:54.000Z
indra/assemblers/tsv/__init__.py
zebulon2/indra
7727ddcab52ad8012eb6592635bfa114e904bd48
[ "BSD-2-Clause" ]
56
2015-08-28T14:03:44.000Z
2022-02-04T06:15:55.000Z
from .assembler import TsvAssembler
18
35
0.861111
0
0
0
0
0
0
0
0
0
0
d53e507f1e8d5bf59c86b10b14c714438e608427
971
py
Python
binary_classifiers/KerasLogReg.py
zcikojevic/toxic-language-detection
32e0e83fbc5d341dbb77bfa677f78dce82960861
[ "MIT" ]
1
2019-07-02T08:12:21.000Z
2019-07-02T08:12:21.000Z
binary_classifiers/KerasLogReg.py
zcikojevic/toxic-language-detection
32e0e83fbc5d341dbb77bfa677f78dce82960861
[ "MIT" ]
null
null
null
binary_classifiers/KerasLogReg.py
zcikojevic/toxic-language-detection
32e0e83fbc5d341dbb77bfa677f78dce82960861
[ "MIT" ]
null
null
null
from keras.layers import Dense from keras.models import Sequential from keras.wrappers.scikit_learn import KerasClassifier from run_binary_classifier import run from keras import regularizers def keras_logreg_model(): model = Sequential() model.add(Dense(units=1, input_shape=(2,), ...
31.322581
91
0.658084
0
0
0
0
0
0
0
0
228
0.234809
d53f500a66c4a9814996ed105b5158ad59abc0ad
1,910
py
Python
phantomapp/migrations/0009_order_orderproduct.py
t7hm1/My-django-project
cf1a86a5134a86af510f9392a748f129954d1c76
[ "MIT" ]
5
2018-09-21T13:56:19.000Z
2019-10-23T23:48:20.000Z
phantomapp/migrations/0009_order_orderproduct.py
mach1el/My-django-project
cf1a86a5134a86af510f9392a748f129954d1c76
[ "MIT" ]
null
null
null
phantomapp/migrations/0009_order_orderproduct.py
mach1el/My-django-project
cf1a86a5134a86af510f9392a748f129954d1c76
[ "MIT" ]
1
2019-01-11T10:41:55.000Z
2019-01-11T10:41:55.000Z
# Generated by Django 2.1 on 2018-09-06 02:03 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('phantomapp', '0008_auto_20180904_2102'), ] operations = [ migrations.CreateModel( name='Order', ...
42.444444
146
0.575916
1,786
0.935079
0
0
0
0
0
0
336
0.175916
d53f7a92ad96592864829c170139b3f620bcb9e7
109
py
Python
aiohttp_devtools/start/__init__.py
antonmyronyuk/aiohttp-devtools
be06d295a8911a43f7ad582a88a3d64d6482b6e8
[ "MIT" ]
2
2018-11-13T06:34:17.000Z
2019-01-08T14:33:09.000Z
aiohttp_devtools/start/__init__.py
theruziev/aiohttp-devtools
8ab8a621964c8af0021c62e7971eea8c04f534e8
[ "MIT" ]
1
2021-02-27T14:13:58.000Z
2021-02-27T14:13:58.000Z
aiohttp_devtools/start/__init__.py
theruziev/aiohttp-devtools
8ab8a621964c8af0021c62e7971eea8c04f534e8
[ "MIT" ]
null
null
null
# flake8: noqa from .main import DatabaseChoice, ExampleChoice, SessionChoices, StartProject, TemplateChoice
36.333333
93
0.834862
0
0
0
0
0
0
0
0
14
0.12844
d540205fcfb3b4dcc91f1525818782cb26364ac5
178
py
Python
epmclib/getPMID.py
tarrow/epmclib
aea429d640b0e4a7375db4bd90ce04693c940340
[ "MIT" ]
2
2015-12-07T17:56:25.000Z
2016-01-28T16:47:21.000Z
epmclib/getPMID.py
tarrow/epmclib
aea429d640b0e4a7375db4bd90ce04693c940340
[ "MIT" ]
8
2015-12-03T17:57:54.000Z
2016-01-21T10:22:10.000Z
epmclib/getPMID.py
tarrow/epmclib
aea429d640b0e4a7375db4bd90ce04693c940340
[ "MIT" ]
null
null
null
from . getID import getID class getPMID(getID): """Add the correct query string to only search for PMIDs""" def __init__(self, id): self.query = 'ext_id:' + id + ' src:med'
25.428571
60
0.679775
150
0.842697
0
0
0
0
0
0
78
0.438202
d5410810359ac36bb644e7de8c9340cf0988d530
560
py
Python
test/test_levelsymmetric.py
camminady/sphericalquadpy
0646547cc69e27de7ce36f4b519d4f420ef443e7
[ "MIT" ]
1
2020-11-15T23:47:48.000Z
2020-11-15T23:47:48.000Z
test/test_levelsymmetric.py
camminady/sphericalquadpy
0646547cc69e27de7ce36f4b519d4f420ef443e7
[ "MIT" ]
1
2019-04-09T08:38:21.000Z
2019-04-09T08:38:21.000Z
test/test_levelsymmetric.py
camminady/sphericalquadpy
0646547cc69e27de7ce36f4b519d4f420ef443e7
[ "MIT" ]
1
2020-12-19T21:12:59.000Z
2020-12-19T21:12:59.000Z
from sphericalquadpy.levelsymmetric.levelsymmetric import Levelsymmetric import pytest def test_levelsymmetric(): Q = Levelsymmetric(order=4) assert Q.name() == "Levelsymmetric Quadrature" assert Q.getmaximalorder() == 20 with pytest.raises(Exception): _ = Levelsymmetric(order=-10) Q =...
23.333333
72
0.707143
0
0
0
0
0
0
0
0
27
0.048214
d541c05f38e8c5156b01666be9ab4d4d64d8249a
2,202
py
Python
skinport/enums.py
PaxxPatriot/skinport.py
37cf131aa468a3218a6bb694c5fead0353c32623
[ "MIT" ]
null
null
null
skinport/enums.py
PaxxPatriot/skinport.py
37cf131aa468a3218a6bb694c5fead0353c32623
[ "MIT" ]
1
2022-02-23T19:17:16.000Z
2022-02-23T19:17:16.000Z
skinport/enums.py
PaxxPatriot/skinport.py
37cf131aa468a3218a6bb694c5fead0353c32623
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2022 PaxxPatriot Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
22.701031
78
0.653951
989
0.449137
0
0
0
0
0
0
1,321
0.599909
d5434f4d2e70af5a0a1a114b544845f6ac8dde26
387
py
Python
lib/mcapi.py
RalphORama/MCPerms
099d9169b1c7992b7d1c9b72003b846366eb78f7
[ "MIT" ]
3
2017-12-01T09:39:36.000Z
2021-07-27T23:52:11.000Z
lib/mcapi.py
RalphORama/MCPerms
099d9169b1c7992b7d1c9b72003b846366eb78f7
[ "MIT" ]
null
null
null
lib/mcapi.py
RalphORama/MCPerms
099d9169b1c7992b7d1c9b72003b846366eb78f7
[ "MIT" ]
2
2019-02-25T19:05:05.000Z
2020-02-12T13:17:01.000Z
from requests import get from json import loads from time import time from uuid import UUID def username_to_uuid(username, when=int(time())): url = 'https://api.mojang.com/users/profiles/minecraft/{}?at={}' r = get(url.format(username, when)) if r.status_code == 200: data = loads(r.text) ...
21.5
68
0.648579
0
0
0
0
0
0
0
0
62
0.160207
d543530f4df09080f53a3a25090b0d0f7018de42
329
py
Python
src/dictionaries/generic_subjects.py
FNClassificator/FNC-classificators
c159a04dff9edb714f69b323f6c46a15de63c278
[ "Apache-2.0" ]
null
null
null
src/dictionaries/generic_subjects.py
FNClassificator/FNC-classificators
c159a04dff9edb714f69b323f6c46a15de63c278
[ "Apache-2.0" ]
null
null
null
src/dictionaries/generic_subjects.py
FNClassificator/FNC-classificators
c159a04dff9edb714f69b323f6c46a15de63c278
[ "Apache-2.0" ]
null
null
null
GENERIC = [ 'Half of US adults have had family jailed', 'Judge stopped me winning election', 'Stock markets stabilise after earlier sell-off' ] NON_GENERIC = [ 'Leicester helicopter rotor controls failed', 'Pizza Express founder Peter Boizot dies aged 89', 'Senior Tory suggests vote could be d...
27.416667
54
0.711246
0
0
0
0
0
0
0
0
262
0.796353
d543615e9951c7852a85d6e69de555518f2e11f8
604
py
Python
tests/testPublishedServices.py
mapledyne/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
3
2019-04-17T13:07:30.000Z
2021-09-09T22:01:14.000Z
tests/testPublishedServices.py
FulcrumIT/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
10
2016-11-02T20:48:38.000Z
2021-09-15T15:29:34.000Z
tests/testPublishedServices.py
FulcrumIT/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
3
2016-03-03T07:25:13.000Z
2016-08-30T15:33:03.000Z
"""Test Skytap published services API access.""" import json import os import time import sys sys.path.append('..') from skytap.Environments import Environments # noqa from skytap.framework.ApiClient import ApiClient # noqa environments = Environments() def test_ps_values(): """Ensure published service capabi...
24.16
64
0.650662
0
0
0
0
0
0
0
0
124
0.205298
d543b90b04fcf2474056db6ca2936d01a704158e
396
py
Python
Python3/0828-Count-Unique-Characters-of-All-Substrings-of-a-Given-String/soln-1.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/0828-Count-Unique-Characters-of-All-Substrings-of-a-Given-String/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/0828-Count-Unique-Characters-of-All-Substrings-of-a-Given-String/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution: def uniqueLetterString(self, S: str) -> int: idxes = {ch : (-1, -1) for ch in string.ascii_uppercase} ans = 0 for idx, ch in enumerate(S): i, j = idxes[ch] ans += (j - i) * (idx - j) idxes[ch] = j, idx for i, j in idxes.values(): ...
33
64
0.45202
395
0.997475
0
0
0
0
0
0
0
0
d5495231e3d431fe1e3c8b0e5b54558d71f22bf7
411
py
Python
pythonDesafios/desafio031.py
mateusdev7/desafios-python
6160ddc84548c7af7f5775f9acabe58238f83008
[ "MIT" ]
null
null
null
pythonDesafios/desafio031.py
mateusdev7/desafios-python
6160ddc84548c7af7f5775f9acabe58238f83008
[ "MIT" ]
null
null
null
pythonDesafios/desafio031.py
mateusdev7/desafios-python
6160ddc84548c7af7f5775f9acabe58238f83008
[ "MIT" ]
null
null
null
from time import sleep print('-=-' * 15) print('Iremos calcular o preço da sua viagem (R$)') print('-=-' * 15) distancia = float(input('Qual a distância da viagem?\n>')) print('CALCULANDO...') sleep(2) if distancia <= 200: preco = distancia * 0.50 print(f'O preço da sua viagem vai custar R${preco:.2f}') else:...
25.6875
60
0.644769
0
0
0
0
0
0
0
0
203
0.489157
d54a0002af3d3a00d396f68eb323f46a1f109f28
357
py
Python
backend/saas_framework/sharing/views.py
snarayanank2/django-workspaces
46ef92a4caa95eee617a24ead284e533422afca0
[ "MIT" ]
1
2021-01-27T17:51:58.000Z
2021-01-27T17:51:58.000Z
backend/saas_framework/sharing/views.py
snarayanank2/django-workspaces
46ef92a4caa95eee617a24ead284e533422afca0
[ "MIT" ]
6
2021-03-30T13:51:35.000Z
2022-03-02T09:24:07.000Z
backend/saas_framework/sharing/views.py
snarayanank2/django-workspaces
46ef92a4caa95eee617a24ead284e533422afca0
[ "MIT" ]
1
2022-03-18T08:43:17.000Z
2022-03-18T08:43:17.000Z
import logging from rest_framework import viewsets from saas_framework.sharing.models import Sharing from saas_framework.sharing.serializers import SharingSerializer logger = logging.getLogger(__name__) class SharingViewSet(viewsets.ModelViewSet): queryset = Sharing.objects.all() serializer_class = SharingSe...
27.461538
64
0.820728
150
0.420168
0
0
0
0
0
0
12
0.033613
d54ab457563a7da1ea0a8ea69694b17e69f12c37
228
py
Python
meridian/acupoints/yifeng41.py
sinotradition/meridian
8c6c1762b204b72346be4bbfb74dedd792ae3024
[ "Apache-2.0" ]
5
2015-12-14T15:14:23.000Z
2022-02-09T10:15:33.000Z
meridian/acupoints/yifeng41.py
sinotradition/meridian
8c6c1762b204b72346be4bbfb74dedd792ae3024
[ "Apache-2.0" ]
null
null
null
meridian/acupoints/yifeng41.py
sinotradition/meridian
8c6c1762b204b72346be4bbfb74dedd792ae3024
[ "Apache-2.0" ]
3
2015-11-27T05:23:49.000Z
2020-11-28T09:01:56.000Z
#!/usr/bin/python #coding=utf-8 ''' @author: sheng @license: ''' SPELL=u'yìfēng' CN=u'翳风' NAME=u'yifeng41' CHANNEL='sanjiao' CHANNEL_FULLNAME='SanjiaoChannelofHand-Shaoyang' SEQ='SJ17' if __name__ == '__main__': pass
10.857143
48
0.688596
0
0
0
0
0
0
0
0
150
0.641026
d54b09c1f95475f540ec4196ed5f07e9af5e2f80
2,090
py
Python
Entities/ImageAnotation.py
mylenefarias/360RAT
e6b6037c0e4f90a79f0e4a9e7afee887af2b1a82
[ "MIT" ]
null
null
null
Entities/ImageAnotation.py
mylenefarias/360RAT
e6b6037c0e4f90a79f0e4a9e7afee887af2b1a82
[ "MIT" ]
null
null
null
Entities/ImageAnotation.py
mylenefarias/360RAT
e6b6037c0e4f90a79f0e4a9e7afee887af2b1a82
[ "MIT" ]
2
2022-02-25T02:33:28.000Z
2022-02-25T10:10:21.000Z
class Image_Anotation: def __init__(self, id, image, path_image): self.id = id self.FOV = [0.30,0.60] self.image = image self.list_roi=[] self.list_compose_ROI=[] self.id_roi=0 self.path_image = path_image def set_image(self, image): self.imag...
24.880952
53
0.552153
2,067
0.988995
0
0
0
0
0
0
25
0.011962
d54b25a37b893cdc466d3bbbe69d97e87c53a99c
106
py
Python
qubeInfraSight/projectoffice/apps.py
debaleena2019/QubInfraInsight
70b0b2654f6589e65283bd6fc779b13be32512ab
[ "Apache-2.0" ]
1
2019-06-17T06:06:11.000Z
2019-06-17T06:06:11.000Z
qubeInfraSight/projectoffice/apps.py
debaleena2019/QubInfraInsight
70b0b2654f6589e65283bd6fc779b13be32512ab
[ "Apache-2.0" ]
null
null
null
qubeInfraSight/projectoffice/apps.py
debaleena2019/QubInfraInsight
70b0b2654f6589e65283bd6fc779b13be32512ab
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class ProjectofficeConfig(AppConfig): name = 'projectoffice'
17.666667
38
0.745283
65
0.613208
0
0
0
0
0
0
15
0.141509
d54c2dcbd7cf59b2c57685116f1d61c741d7e2cb
2,874
py
Python
object_detection/realtime_detection.py
pcrete/humanet
a956c0903d4a6ebff987da723ce8e80ada692585
[ "Apache-2.0" ]
7
2019-10-25T12:35:02.000Z
2022-03-24T02:14:43.000Z
object_detection/realtime_detection.py
pcrete/humanet
a956c0903d4a6ebff987da723ce8e80ada692585
[ "Apache-2.0" ]
null
null
null
object_detection/realtime_detection.py
pcrete/humanet
a956c0903d4a6ebff987da723ce8e80ada692585
[ "Apache-2.0" ]
2
2019-11-30T03:22:37.000Z
2020-10-06T07:17:36.000Z
import numpy as np import os import six.moves.urllib as urllib import sys import tarfile import tensorflow as tf import zipfile import cv2 from collections import defaultdict from io import StringIO from matplotlib import pyplot as plt from PIL import Image sys.path.insert(0, os.path.abspath("..")) from utils import ...
29.326531
122
0.753653
0
0
0
0
0
0
0
0
380
0.13222
d54c9a0268801c4210ca35761a0c8999bcb5ec81
1,832
py
Python
stupidV2.py
Devansh-ops/HashCode2021
c1450a0bd81fff5a8d6b402188576024727587d9
[ "MIT" ]
null
null
null
stupidV2.py
Devansh-ops/HashCode2021
c1450a0bd81fff5a8d6b402188576024727587d9
[ "MIT" ]
null
null
null
stupidV2.py
Devansh-ops/HashCode2021
c1450a0bd81fff5a8d6b402188576024727587d9
[ "MIT" ]
null
null
null
# Hashcode 2021 # Team Depresso # Problem - Traffic Signaling ## Data Containers class Street: def __init__(self,start,end,name,L): self.start = start self.end = end self.name = name self.time = L def show(self): print(self.start,self.end,self.name,self.time) class Car: def __init__(sel...
24.756757
70
0.581332
475
0.257035
0
0
0
0
0
0
742
0.401515
d54d660e19d06efe546719fe102b385e9d155b60
3,178
py
Python
notebooks/uplifts/dea_383.py
NHSDigital/medicines-text-mining-tool
bea1efddd832b614fdb00ae8df5f8dc206ba81b0
[ "MIT" ]
1
2022-03-31T13:04:05.000Z
2022-03-31T13:04:05.000Z
notebooks/uplifts/dea_383.py
NHSDigital/medicines-text-mining-tool
bea1efddd832b614fdb00ae8df5f8dc206ba81b0
[ "MIT" ]
null
null
null
notebooks/uplifts/dea_383.py
NHSDigital/medicines-text-mining-tool
bea1efddd832b614fdb00ae8df5f8dc206ba81b0
[ "MIT" ]
null
null
null
# Databricks notebook source # MAGIC %run ../_modules/epma_global/functions # COMMAND ---------- # MAGIC %run ../_modules/epma_global/test_helpers # COMMAND ---------- from pyspark.sql import functions as F # COMMAND ---------- dbutils.widgets.text('db', '', 'db') DB = dbutils.widgets.get('db') assert DB dbutils...
36.113636
125
0.704216
0
0
0
0
0
0
0
0
1,042
0.327879
d54e3560503b5dd94b9ef2b1f63b8e1ccc96eeee
164
py
Python
allauth/socialaccount/providers/stripe/urls.py
mina-gaid/scp
38e1cd303d4728a987df117f666ce194e241ed1a
[ "MIT" ]
1
2018-04-06T21:36:59.000Z
2018-04-06T21:36:59.000Z
allauth/socialaccount/providers/stripe/urls.py
mina-gaid/scp
38e1cd303d4728a987df117f666ce194e241ed1a
[ "MIT" ]
6
2020-06-05T18:44:19.000Z
2022-01-13T00:48:56.000Z
allauth/socialaccount/providers/stripe/urls.py
mina-gaid/scp
38e1cd303d4728a987df117f666ce194e241ed1a
[ "MIT" ]
1
2022-02-01T17:19:28.000Z
2022-02-01T17:19:28.000Z
from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns from .provider import StripeProvider urlpatterns = default_urlpatterns(StripeProvider)
32.8
75
0.878049
0
0
0
0
0
0
0
0
0
0
d54e772528672c15b49db9bb963f2e75f766bb4b
1,491
py
Python
state-change-localization-classification/slowFast-perceiver/models/frameselection_models.py
EGO4D/hands-and-objects
76d6ce6af1a9db4007ea24eb315f3f0eaea26bc2
[ "MIT" ]
24
2021-10-15T20:17:38.000Z
2022-03-30T18:54:55.000Z
state-change-localization-classification/slowFast-perceiver/models/frameselection_models.py
EGO4D/hands-and-objects
76d6ce6af1a9db4007ea24eb315f3f0eaea26bc2
[ "MIT" ]
1
2022-03-09T03:35:42.000Z
2022-03-10T20:50:24.000Z
state-change-localization-classification/slowFast-perceiver/models/frameselection_models.py
EGO4D/hands-and-objects
76d6ce6af1a9db4007ea24eb315f3f0eaea26bc2
[ "MIT" ]
4
2021-11-18T19:22:16.000Z
2022-03-21T02:51:35.000Z
import torch import torch.nn as nn import torchvision.models as models from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence from .build import MODEL_REGISTRY @MODEL_REGISTRY.register() class CNNRNN(nn.Module): def __init__(self, cfg): super().__init__() input_dim = 512 ...
29.82
96
0.602951
1,282
0.859826
0
0
1,309
0.877934
0
0
10
0.006707
d54fb479ac6c0ddd4d66b98b5bfa4aea9b2fd454
5,829
py
Python
azurelinuxagent/daemon/resourcedisk/openwrt.py
koifans/WALinuxAgent
236c6c12d89757589411651ae015640d371251a4
[ "Apache-2.0" ]
1
2020-11-23T10:48:28.000Z
2020-11-23T10:48:28.000Z
azurelinuxagent/daemon/resourcedisk/openwrt.py
koifans/WALinuxAgent
236c6c12d89757589411651ae015640d371251a4
[ "Apache-2.0" ]
1
2019-06-06T13:24:55.000Z
2019-06-06T13:24:55.000Z
azurelinuxagent/daemon/resourcedisk/openwrt.py
koifans/WALinuxAgent
236c6c12d89757589411651ae015640d371251a4
[ "Apache-2.0" ]
null
null
null
# Microsoft Azure Linux Agent # # Copyright 2018 Microsoft Corporation # Copyright 2018 Sonus Networks, Inc. (d.b.a. Ribbon Communications Operating Company) # # 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 ...
42.860294
109
0.593927
4,701
0.806485
0
0
0
0
0
0
2,014
0.345514
d5519eaf2867f48a79c81e7d904b4b74a968d747
1,828
py
Python
lib/stacks/publish_to_social/lambda/send_report.py
shaftoe/api-l3x-in
06426f62708051b570e8839398562982d770903f
[ "Apache-2.0" ]
11
2020-03-01T15:24:09.000Z
2022-01-06T08:31:31.000Z
lib/stacks/publish_to_social/lambda/send_report.py
sierrezinal/api-l3x-in
0c5122a29ecd8f94cb9b99909499c330969d26ee
[ "Apache-2.0" ]
1
2020-08-28T15:25:39.000Z
2020-08-30T07:35:59.000Z
lib/stacks/publish_to_social/lambda/send_report.py
sierrezinal/api-l3x-in
0c5122a29ecd8f94cb9b99909499c330969d26ee
[ "Apache-2.0" ]
5
2020-10-15T03:06:37.000Z
2021-09-29T07:07:18.000Z
from os import environ as env import json import utils import utils.aws as aws import utils.handlers as handlers def put_record_to_logstream(event: utils.LambdaEvent) -> str: """Put a record of source Lambda execution in LogWatch Logs.""" log_group_name = env["REPORT_LOG_GROUP_NAME"] utils.Log.info("Fet...
34.490566
82
0.571116
0
0
0
0
0
0
0
0
457
0.25
d551aabe726e69db8b462ea2ce644c9f926174ad
2,999
py
Python
RAMLFlask/Server.py
nm-wu/RAMLFlask
003ceb0f0b68d0d80d8fb8fcd6d5b329a1608dd0
[ "BSD-3-Clause" ]
4
2017-11-30T10:23:12.000Z
2020-06-07T01:05:12.000Z
RAMLFlask/Server.py
nm-wu/RAMLFlask
003ceb0f0b68d0d80d8fb8fcd6d5b329a1608dd0
[ "BSD-3-Clause" ]
null
null
null
RAMLFlask/Server.py
nm-wu/RAMLFlask
003ceb0f0b68d0d80d8fb8fcd6d5b329a1608dd0
[ "BSD-3-Clause" ]
1
2017-12-14T17:11:05.000Z
2017-12-14T17:11:05.000Z
import os from importlib import import_module from flask import Flask import ConfigParser import Printer class Server: def __init__(self, generator, comparison, config_file='config.ini'): # Generator class self.gen = generator # Comparison class self.comp = comparison cp...
34.872093
109
0.596199
2,893
0.964655
0
0
0
0
0
0
388
0.129376
d551c440a4a93ff739f21c92c784dfb223859c3d
416
py
Python
native/public/urls.py
Andrew-Chen-Wang/django-3.0-private-messaging
d7c02c42dfd077cd234df3ed08d7ed692dc2b4c7
[ "BSD-3-Clause" ]
1
2020-05-21T03:17:29.000Z
2020-05-21T03:17:29.000Z
native/public/urls.py
Andrew-Chen-Wang/django-3.0-private-messaging
d7c02c42dfd077cd234df3ed08d7ed692dc2b4c7
[ "BSD-3-Clause" ]
7
2021-03-30T12:48:24.000Z
2021-06-10T18:35:08.000Z
native/public/urls.py
Andrew-Chen-Wang/django-3.0-private-messaging
d7c02c42dfd077cd234df3ed08d7ed692dc2b4c7
[ "BSD-3-Clause" ]
1
2020-05-05T08:31:16.000Z
2020-05-05T08:31:16.000Z
from django.urls import path, include from . import views urlpatterns = [ path("", views.index, name="index"), # Authentication path("accounts/", include("django.contrib.auth.urls")), path("accounts/register/", views.register, name="register"), # Test URLs path("test/wsconn", views.wsconn, na...
24.470588
64
0.653846
0
0
0
0
0
0
0
0
163
0.391827
d5537a673b3a26aa0f21d11d643794a306a0cc11
4,337
py
Python
drex-atari/train.py
abalakrishna123/CoRL2019-DREX
b80b3308559261f7144d173ee293eb3c5b4a0502
[ "MIT" ]
36
2019-11-02T02:48:47.000Z
2022-03-04T19:10:28.000Z
drex-atari/train.py
abalakrishna123/CoRL2019-DREX
b80b3308559261f7144d173ee293eb3c5b4a0502
[ "MIT" ]
16
2019-10-31T16:19:34.000Z
2022-03-12T00:02:27.000Z
drex-atari/train.py
abalakrishna123/CoRL2019-DREX
b80b3308559261f7144d173ee293eb3c5b4a0502
[ "MIT" ]
13
2019-11-06T08:32:06.000Z
2022-02-28T06:56:10.000Z
import os from bc import Imitator import numpy as np from dataset import Example, Dataset import utils #from ale_wrapper import ALEInterfaceWrapper from evaluator import Evaluator from pdb import set_trace import matplotlib.pyplot as plt #try bmh plt.style.use('bmh') def smooth(losses, run=10): new_losses = [] ...
29.107383
111
0.587733
0
0
0
0
0
0
0
0
993
0.22896
d5539201acc74777191577d0a77d4057f6de4e8d
153
py
Python
graphgallery/utils/ipynb.py
EdisonLeeeee/GraphGallery
4eec9c5136bda14809bd22584b26cc346cdb633b
[ "MIT" ]
300
2020-08-09T04:27:41.000Z
2022-03-30T07:43:41.000Z
graphgallery/utils/ipynb.py
EdisonLeeeee/GraphGallery
4eec9c5136bda14809bd22584b26cc346cdb633b
[ "MIT" ]
5
2020-11-05T06:16:50.000Z
2021-12-11T05:05:22.000Z
graphgallery/utils/ipynb.py
EdisonLeeeee/GraphGallery
4eec9c5136bda14809bd22584b26cc346cdb633b
[ "MIT" ]
51
2020-09-23T15:37:12.000Z
2022-03-05T01:28:56.000Z
from IPython import get_ipython from IPython.display import display def is_ipynb(): return type(get_ipython()).__module__.startswith('ipykernel.')
21.857143
66
0.784314
0
0
0
0
0
0
0
0
12
0.078431
d55427688a084bec0e9255b152935a5e5812cfae
8,526
py
Python
monitoring/prober/scd/test_subscription_queries.py
rpai1/dss
79d8110c336851b155a6e5417692ec68b70c0c07
[ "Apache-2.0" ]
1
2021-03-06T19:31:04.000Z
2021-03-06T19:31:04.000Z
monitoring/prober/scd/test_subscription_queries.py
rpai1/dss
79d8110c336851b155a6e5417692ec68b70c0c07
[ "Apache-2.0" ]
null
null
null
monitoring/prober/scd/test_subscription_queries.py
rpai1/dss
79d8110c336851b155a6e5417692ec68b70c0c07
[ "Apache-2.0" ]
1
2020-09-20T22:15:36.000Z
2020-09-20T22:15:36.000Z
"""Strategic conflict detection Subscription query tests: - add a few Subscriptions spaced in time and footprints - query with various combinations of arguments """ import datetime from monitoring.monitorlib.infrastructure import default_scope from monitoring.monitorlib import scd from monitoring.monitorlib.scd ...
34.518219
108
0.700563
0
0
0
0
5,522
0.647666
0
0
1,976
0.231762
d55558bb3f6a8ea15ddbd66ee162839cfc0d523b
516
py
Python
backend/mp/apps/questionnarie/migrations/0002_auto_20200327_1422.py
shidashui/mymp
75d81906908395ece1c8d12249d6afc4bd2d0704
[ "MIT" ]
1
2020-03-14T12:33:24.000Z
2020-03-14T12:33:24.000Z
backend/mp/apps/questionnarie/migrations/0002_auto_20200327_1422.py
shidashui/mymp
75d81906908395ece1c8d12249d6afc4bd2d0704
[ "MIT" ]
8
2021-03-19T00:59:11.000Z
2022-03-12T00:19:38.000Z
backend/mp/apps/questionnarie/migrations/0002_auto_20200327_1422.py
shidashui/mymp
75d81906908395ece1c8d12249d6afc4bd2d0704
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-27 14:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('questionnarie', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='questionnaire', name='email', ...
22.434783
70
0.581395
427
0.821154
0
0
0
0
0
0
132
0.253846
d55583a4f654b4e383a9599f22b9a53cb07d00f4
2,250
py
Python
engine/scene.py
amirgeva/retroupy
1ee19b36a72c5f592cce150d1d0382a00ccdc4a0
[ "BSD-3-Clause" ]
null
null
null
engine/scene.py
amirgeva/retroupy
1ee19b36a72c5f592cce150d1d0382a00ccdc4a0
[ "BSD-3-Clause" ]
null
null
null
engine/scene.py
amirgeva/retroupy
1ee19b36a72c5f592cce150d1d0382a00ccdc4a0
[ "BSD-3-Clause" ]
null
null
null
from .rtree import RTree from .utils import Point # EXPORT class Scene(object): def __init__(self): self.entities = {} self.dynamics = set() self.statics = set() self.rtree = RTree() def add(self, entity): eid = entity.get_id() self.entities[eid] = entity ...
33.58209
72
0.509333
2,188
0.972444
0
0
0
0
0
0
315
0.14
d555ba2edd936b2db086f718b541516f58f3e05b
1,192
py
Python
tests/test_pages/test_views.py
wilfredinni/merken
f15f168f58e9391fcafeeda7ad17232fffab2a14
[ "MIT" ]
5
2020-05-06T03:34:07.000Z
2022-03-25T10:05:30.000Z
tests/test_pages/test_views.py
MaxCodeXTC/merken
040515e43dcc9bdcf23f51ea15b49b4d2af64964
[ "MIT" ]
17
2019-08-28T22:10:47.000Z
2021-06-09T18:19:00.000Z
tests/test_pages/test_views.py
MaxCodeXTC/merken
040515e43dcc9bdcf23f51ea15b49b4d2af64964
[ "MIT" ]
1
2020-06-15T08:34:16.000Z
2020-06-15T08:34:16.000Z
from django.test import TestCase, Client from django.urls import reverse from apps.pages.models import Page class TestPageView(TestCase): def setUp(self): self.client = Client() Page.objects.create(slug="test_slug") def test_page_GET(self): url = reverse("page_app:page", args=["test_...
30.564103
68
0.666946
1,077
0.903523
0
0
0
0
0
0
152
0.127517
d556e06f516793a26ef5cbe49151f9799ff8daf6
1,148
py
Python
sequal/mass_spectrometry.py
bschulzlab/glypniro
383429932cda2f6cc8b70be57a954de9b9c0f6d4
[ "MIT" ]
1
2021-03-08T13:29:17.000Z
2021-03-08T13:29:17.000Z
sequal/mass_spectrometry.py
bschulzlab/glypniro
383429932cda2f6cc8b70be57a954de9b9c0f6d4
[ "MIT" ]
null
null
null
sequal/mass_spectrometry.py
bschulzlab/glypniro
383429932cda2f6cc8b70be57a954de9b9c0f6d4
[ "MIT" ]
null
null
null
from sequal.ion import Ion ax = "ax" by = "by" cz = "cz" # calculate non-labile modifications and yield associated transition # For example "by" would yield a tuple of "b" and "y" transitions. def fragment_non_labile(sequence, fragment_type): for i in range(1, sequence.seq_length, 1): left = Ion(sequence[...
30.210526
101
0.678571
276
0.240418
301
0.262195
0
0
0
0
250
0.21777
d55772963e28794e8a087234f1d656d1c4c7b7a0
444
py
Python
scapula/transform/encoded_rt_to_r9.py
fengjixuchui/scapula
0ca411d8571622a6f7411bf423c3b662030e550b
[ "MIT" ]
7
2019-10-11T17:35:00.000Z
2020-04-06T00:51:18.000Z
scapula/transform/encoded_rt_to_r9.py
fengjixuchui/scapula
0ca411d8571622a6f7411bf423c3b662030e550b
[ "MIT" ]
null
null
null
scapula/transform/encoded_rt_to_r9.py
fengjixuchui/scapula
0ca411d8571622a6f7411bf423c3b662030e550b
[ "MIT" ]
3
2019-10-12T01:51:20.000Z
2019-11-12T15:15:37.000Z
import shoulder class EncodedRtToR9(shoulder.transform.abstract_transform.AbstractTransform): @property def description(self): d = "changing src/dest register for encoded accessors from r0 to r9" return d def do_transform(self, reg): for am in reg.access_mechanisms["mrs_register"]...
24.666667
77
0.650901
425
0.957207
0
0
130
0.292793
0
0
92
0.207207
d557f1cb2328fe8b59c23cb0bcb3af7a0541259f
1,642
py
Python
model/user.py
fi-ksi/dashboard-alpha
aaa800d02f78f198a95faf27af2bc8afeca4b867
[ "MIT" ]
null
null
null
model/user.py
fi-ksi/dashboard-alpha
aaa800d02f78f198a95faf27af2bc8afeca4b867
[ "MIT" ]
24
2019-05-14T19:13:38.000Z
2022-03-14T10:51:55.000Z
model/user.py
fi-ksi/dashboard-alpha
aaa800d02f78f198a95faf27af2bc8afeca4b867
[ "MIT" ]
null
null
null
import datetime from sqlalchemy import Column, Integer, String, Boolean, Enum, Text, text from sqlalchemy.types import TIMESTAMP from sqlalchemy.orm import relationship from sqlalchemy.ext.hybrid import hybrid_property from . import Base class User(Base): __tablename__ = 'users' __table_args__ = { '...
34.208333
79
0.665043
1,399
0.85201
0
0
90
0.054811
0
0
241
0.146772
d55801396ba40004f6ae580dd0df2cf475baa674
4,999
py
Python
order.py
bogdanmagometa/logistics-system
8c69c29f23354c37dddec299eaa7031092430daf
[ "MIT" ]
null
null
null
order.py
bogdanmagometa/logistics-system
8c69c29f23354c37dddec299eaa7031092430daf
[ "MIT" ]
null
null
null
order.py
bogdanmagometa/logistics-system
8c69c29f23354c37dddec299eaa7031092430daf
[ "MIT" ]
null
null
null
""" order.py This module contains classes needed for emulating logistics system. In particular, the following classes are here: Item Vehicle Order Location """ import copy from typing import List class Item: """A class used to represent an item for logistics system. Attributes ---------- name : str...
27.927374
99
0.576715
4,719
0.943989
0
0
0
0
0
0
3,570
0.714143
d55a7d09487a4d342d812df22a9da92debc35a70
28
py
Python
homeassistant/components/ripple/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/ripple/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/ripple/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The ripple component."""
14
27
0.642857
0
0
0
0
0
0
0
0
27
0.964286
d55a7fec2efd8d806f3e68ef5a593dad286e8eeb
8,362
py
Python
synapse/cmds/hive.py
ackroute/synapse
51197f89ab372d2e357bcd054358352ecca66840
[ "Apache-2.0" ]
216
2017-01-17T18:52:50.000Z
2022-03-31T18:44:49.000Z
synapse/cmds/hive.py
ackroute/synapse
51197f89ab372d2e357bcd054358352ecca66840
[ "Apache-2.0" ]
2,189
2017-01-17T22:31:48.000Z
2022-03-31T20:41:45.000Z
synapse/cmds/hive.py
ackroute/synapse
51197f89ab372d2e357bcd054358352ecca66840
[ "Apache-2.0" ]
44
2017-01-17T16:50:57.000Z
2022-03-16T18:35:52.000Z
import os import json import shlex import pprint import asyncio import tempfile import functools import subprocess import synapse.exc as s_exc import synapse.common as s_common import synapse.lib.cmd as s_cmd import synapse.lib.cli as s_cli ListHelp = ''' Lists all the keys underneath a particular key in the hive. ...
35.2827
118
0.556565
7,321
0.875508
0
0
141
0.016862
5,132
0.613729
2,218
0.265248
d55b66f29d249e5be6c857b36e678994e5a67ff0
1,888
py
Python
bfmplot/colortools.py
benmaier/bfmplot
e5af40c8a90862cdb443438f0bd343bb8de5f44c
[ "MIT" ]
3
2020-07-17T15:19:48.000Z
2020-08-08T23:35:48.000Z
bfmplot/colortools.py
benmaier/bfmplot
e5af40c8a90862cdb443438f0bd343bb8de5f44c
[ "MIT" ]
null
null
null
bfmplot/colortools.py
benmaier/bfmplot
e5af40c8a90862cdb443438f0bd343bb8de5f44c
[ "MIT" ]
1
2020-10-22T12:59:58.000Z
2020-10-22T12:59:58.000Z
""" Contains methods to convert hex colors to rgb colors and to brighten/darken colors. """ import numpy as np def h2r(_hex): """ Convert a hex string to an RGB-tuple. """ if _hex.startswith('#'): l = _hex[1:] else: l = _hex return [ a/255. for a in bytes.fromhex(l) ] def r2h...
23.6
75
0.528072
0
0
0
0
0
0
0
0
545
0.288665
d55ba82230322a219b1f4cd74baae15cd90185fa
13,815
py
Python
newscout_web/news_site/migrations/0002_auto_20190819_1230.py
rsqwerty/newscout_web
8be095cc3e1a95d6ccf5cd8c43d3f13746b263f2
[ "Apache-2.0" ]
3
2019-10-30T07:15:59.000Z
2021-12-26T20:59:05.000Z
newscout_web/news_site/migrations/0002_auto_20190819_1230.py
rsqwerty/newscout_web
8be095cc3e1a95d6ccf5cd8c43d3f13746b263f2
[ "Apache-2.0" ]
322
2019-10-30T07:12:36.000Z
2022-02-10T10:55:32.000Z
newscout_web/news_site/migrations/0002_auto_20190819_1230.py
rsqwerty/newscout_web
8be095cc3e1a95d6ccf5cd8c43d3f13746b263f2
[ "Apache-2.0" ]
7
2019-10-30T13:34:54.000Z
2021-12-27T12:08:07.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2019-08-19 12:30 from __future__ import unicode_literals from django.conf import settings import django.contrib.auth.validators import django.core.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone ...
44.708738
317
0.573941
13,494
0.976764
0
0
0
0
0
0
2,354
0.170394
d55c43761228c894fc64e5f30843f83b9761d7c9
658
py
Python
Redeye(1.1).py
AkshayraviC09YC47/R3DEY3
05c2e47740263b22b5fb0fcc4cff89566a950209
[ "Apache-2.0" ]
1
2020-07-07T16:18:47.000Z
2020-07-07T16:18:47.000Z
Redeye(1.1).py
AkshayraviC09YC47/R3DEY3
05c2e47740263b22b5fb0fcc4cff89566a950209
[ "Apache-2.0" ]
null
null
null
Redeye(1.1).py
AkshayraviC09YC47/R3DEY3
05c2e47740263b22b5fb0fcc4cff89566a950209
[ "Apache-2.0" ]
null
null
null
#!usr/bin/env python3 import os import requests os.system("clear") print(""" ▒█▀▀█ █▀▀█ ▒█▀▀▄ ░░ ▒█▀▀▀ ▒█░░▒█ █▀▀█ ▒█▄▄▀ ░░▀▄ ▒█░▒█ ▀▀ ▒█▀▀▀ ▒█▄▄▄█ ░░▀▄ ▒█░▒█ █▄▄█ ▒█▄▄▀ ░░ ▒█▄▄▄ ░░▒█░░ █▄▄█""") print("<---------Coded By Copycat---------->") print("") url = input("[+] Site Name: ") shell_name = input("[+] Shell Name:...
21.933333
59
0.416413
0
0
0
0
0
0
0
0
456
0.540284
d55cda12da93006ace57b91df18f253f81460e74
460
py
Python
organization/job_urls.py
opendream/asip
20583aca6393102d425401d55ea32ac6b78be048
[ "MIT" ]
null
null
null
organization/job_urls.py
opendream/asip
20583aca6393102d425401d55ea32ac6b78be048
[ "MIT" ]
8
2020-03-24T17:11:49.000Z
2022-01-13T01:18:11.000Z
organization/job_urls.py
opendream/asip
20583aca6393102d425401d55ea32ac6b78be048
[ "MIT" ]
null
null
null
from django.conf.urls import url, patterns urlpatterns = patterns('organization.views', url(r'^organization/(?P<organization_id>\d+)/job/create/$', 'job_create', name='job_create'), url(r'^job/create/$', 'job_create_standalone', name='job_create_standalone'), url(r'^job/(?P<job_id>\d+)/edit/$', 'job_edit'...
41.818182
97
0.654348
0
0
0
0
0
0
0
0
288
0.626087
d55d9b1686825eb1a58575cb08bd3504ed4c5ca6
337
py
Python
awards/tasks.py
fgmacedo/django-awards
a5307a96f8d39abdd466eb854049dd0f7b13eaee
[ "MIT" ]
null
null
null
awards/tasks.py
fgmacedo/django-awards
a5307a96f8d39abdd466eb854049dd0f7b13eaee
[ "MIT" ]
305
2017-05-16T17:45:58.000Z
2022-03-18T07:20:22.000Z
awards/tasks.py
fgmacedo/django-awards
a5307a96f8d39abdd466eb854049dd0f7b13eaee
[ "MIT" ]
null
null
null
from celery.task import Task from ..notifications.contextmanagers import BatchNotifications class AsyncBadgeAward(Task): ignore_result = True def run(self, badge, state, **kwargs): # from celery.contrib import rdb; rdb.set_trace() with BatchNotifications(): badge.actually_possibl...
25.923077
62
0.712166
241
0.715134
0
0
0
0
0
0
49
0.145401
d55e1d50fdcd5b0ae9b87802278f9d5ea632048b
5,128
py
Python
py/desispec/pipeline/tasks/psfnight.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
24
2015-09-29T06:06:29.000Z
2022-01-14T07:31:45.000Z
py/desispec/pipeline/tasks/psfnight.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
1,452
2015-02-26T00:14:23.000Z
2022-03-31T23:35:10.000Z
py/desispec/pipeline/tasks/psfnight.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
25
2015-02-06T21:39:13.000Z
2022-02-22T14:16:31.000Z
# # See top-level LICENSE.rst file for Copyright information # # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from collections import OrderedDict from ..defs import (task_name_sep, task_state_to_int, task_int_to_state) from ...util import option_list from ...io import find...
32.66242
142
0.582878
4,596
0.896256
0
0
0
0
0
0
1,743
0.339899
d55eab7fd5f16ed25a0e81651ee54d23764c963e
150
py
Python
octopus/config/NEO_EXPLORER.py
ZarvisD/octopus
3e238721fccfec69a69a1635b8a0dc485e525e69
[ "MIT" ]
2
2019-01-19T07:12:02.000Z
2021-08-14T13:23:37.000Z
octopus/config/NEO_EXPLORER.py
ZarvisD/octopus
3e238721fccfec69a69a1635b8a0dc485e525e69
[ "MIT" ]
null
null
null
octopus/config/NEO_EXPLORER.py
ZarvisD/octopus
3e238721fccfec69a69a1635b8a0dc485e525e69
[ "MIT" ]
1
2019-01-19T07:12:05.000Z
2019-01-19T07:12:05.000Z
NEO_HOST = "seed3.neo.org" MAINNET_HTTP_RPC_PORT = 10332 MAINNET_HTTPS_RPC_PORT = 10331 TESTNET_HTTP_RPC_PORT = 20332 TESTNET_HTTPS_RPC_PORT = 20331
21.428571
30
0.833333
0
0
0
0
0
0
0
0
15
0.1
d55ecdd36992a28fb470a18a8005d9df4ba25380
1,141
py
Python
Project_Euler/10_sum_primes_2000000/find_sum.py
perlygatekeeper/glowing-robot
7ef5eb089f552a1de309092606c95e805e6723a0
[ "Artistic-2.0" ]
2
2015-06-05T15:40:06.000Z
2020-03-19T17:08:37.000Z
Project_Euler/10_sum_primes_2000000/find_sum.py
perlygatekeeper/glowing-robot
7ef5eb089f552a1de309092606c95e805e6723a0
[ "Artistic-2.0" ]
null
null
null
Project_Euler/10_sum_primes_2000000/find_sum.py
perlygatekeeper/glowing-robot
7ef5eb089f552a1de309092606c95e805e6723a0
[ "Artistic-2.0" ]
null
null
null
#!/opt/local/bin/python import timeit import time import sys def sieveOfSundaram(n=1000): # this version returns a dictionary for quick lookup of primes <= n # this version returns a list for easy identification of nth prime k = int(( n - 2 ) / 2 ) a = [0] * ( k + 1 ) # primes = {} primes = [] ...
27.166667
75
0.534619
0
0
0
0
0
0
0
0
387
0.339176
d561a4358751853a43b858854e0ddacafff4f534
1,895
py
Python
public/images/articles/automate-your-style/graph.py
twolfson/twolfson.com
f7a76784f97e1bac3fe2e09815f2b5d76dda3239
[ "MIT" ]
10
2015-01-08T15:36:18.000Z
2020-09-26T13:46:32.000Z
public/images/articles/automate-your-style/graph.py
twolfson/twolfson.com
f7a76784f97e1bac3fe2e09815f2b5d76dda3239
[ "MIT" ]
14
2015-09-28T08:25:07.000Z
2016-11-02T06:21:34.000Z
public/images/articles/automate-your-style/graph.py
twolfson/twolfson.com
f7a76784f97e1bac3fe2e09815f2b5d76dda3239
[ "MIT" ]
3
2016-01-16T15:56:20.000Z
2017-07-23T12:58:39.000Z
# Load in our dependencies # Forking from http://matplotlib.org/xkcd/examples/showcase/xkcd.html from matplotlib import pyplot import numpy """ Comments on PRs about style 20 | --------\ | | | | | | | | 1 | \--\ 0 | ------- ------------------...
27.071429
115
0.608443
0
0
0
0
0
0
0
0
1,017
0.536675
d56289df74f4674cf5abeb1309158e1e0a013342
457
py
Python
class1/class_1_yaml.py
daveg999/Automation_class
d23652ecae56b790684971dda6e85a1d2367e22b
[ "Apache-2.0" ]
null
null
null
class1/class_1_yaml.py
daveg999/Automation_class
d23652ecae56b790684971dda6e85a1d2367e22b
[ "Apache-2.0" ]
null
null
null
class1/class_1_yaml.py
daveg999/Automation_class
d23652ecae56b790684971dda6e85a1d2367e22b
[ "Apache-2.0" ]
null
null
null
import yaml import json yaml_list = range(5) yaml_list.append('string1') yaml_list.append('string2') yaml_list.append({}) yaml_list[-1] {} yaml_list[-1]['critter1'] = 'hedgehog' yaml_list[-1]['critter2'] = 'bunny' yaml_list[-1]['dungeon_levels'] = range(5) yaml_list.append('list_end') with open("class1_list.yml", "w"...
21.761905
57
0.706783
0
0
0
0
0
0
0
0
122
0.266958
d564cb51b33bc55213dfe9dbf9c99c0386c1608f
402
py
Python
ch05/first.n.squares.manual.method.py
ibiscum/Learn-Python-Programming-Third-Edition
c8e0061e97b16c9b55250cc720a8bc7613cb6cca
[ "MIT" ]
null
null
null
ch05/first.n.squares.manual.method.py
ibiscum/Learn-Python-Programming-Third-Edition
c8e0061e97b16c9b55250cc720a8bc7613cb6cca
[ "MIT" ]
null
null
null
ch05/first.n.squares.manual.method.py
ibiscum/Learn-Python-Programming-Third-Edition
c8e0061e97b16c9b55250cc720a8bc7613cb6cca
[ "MIT" ]
null
null
null
# first.n.squares.manual.method.py def get_squares_gen(n): for x in range(n): yield x ** 2 squares = get_squares_gen(3) print(squares.__next__()) # prints: 0 print(squares.__next__()) # prints: 1 print(squares.__next__()) # prints: 4 # the following raises StopIteration, the generator is exhausted, # a...
28.714286
65
0.723881
0
0
67
0.166667
0
0
0
0
190
0.472637
d5675b3789a7238a94e6d0ec1c781776af8848b8
3,737
py
Python
products/admin.py
silver-whale-enterprises-llc/amzproduzer
25e63f64b0ef09241475c72af9a710dcb7d9e926
[ "Apache-2.0" ]
1
2019-07-22T14:03:11.000Z
2019-07-22T14:03:11.000Z
products/admin.py
silver-whale-enterprises-llc/amzproduzer
25e63f64b0ef09241475c72af9a710dcb7d9e926
[ "Apache-2.0" ]
null
null
null
products/admin.py
silver-whale-enterprises-llc/amzproduzer
25e63f64b0ef09241475c72af9a710dcb7d9e926
[ "Apache-2.0" ]
null
null
null
import csv from django.contrib import admin from django.forms import ModelForm from django.http import HttpRequest from products.models import AmazonCategory, AmazonProductListing from products.tasks import process_inventory_upload from products.utils import find_price_col_index, save_status, find_identifier_col_inde...
32.780702
113
0.613059
3,062
0.819374
0
0
0
0
0
0
803
0.214878
d56a6b6cc928e92831ff43c629863b6b344a0193
614
py
Python
examples/bintree.py
jdrprod/Pym-s
e68dfb840bd36fe60cda02de3b96762e9138071a
[ "MIT" ]
3
2019-08-16T20:54:09.000Z
2020-04-26T02:43:57.000Z
examples/bintree.py
jdrprod/Pym-s
e68dfb840bd36fe60cda02de3b96762e9138071a
[ "MIT" ]
null
null
null
examples/bintree.py
jdrprod/Pym-s
e68dfb840bd36fe60cda02de3b96762e9138071a
[ "MIT" ]
null
null
null
class binary_tree: def __init__(self): pass class Node(binary_tree): __field_0 : int __field_1 : binary_tree __field_2 : binary_tree def __init__(self, arg_0 : int , arg_1 : binary_tree , arg_2 : binary_tree ): self.__field_0 = arg_0 self.__field_1 = arg_1 self.__fi...
24.56
81
0.636808
608
0.990228
154
0.250814
0
0
0
0
0
0
d56af4bb09c9819923a740a48a9336b6c5056a35
42
py
Python
python_module/sirius/utils/exceptions.py
mtaillefumier/SIRIUS
50ec1c202c019113c5660f1966b170dec9dfd4d4
[ "BSD-2-Clause" ]
77
2016-03-18T08:38:30.000Z
2022-03-11T14:06:25.000Z
python_module/sirius/utils/exceptions.py
simonpintarelli/SIRIUS
f4b5c4810af2a3ea1e67992d65750535227da84b
[ "BSD-2-Clause" ]
240
2016-04-12T16:39:11.000Z
2022-03-31T08:46:12.000Z
python_module/sirius/utils/exceptions.py
simonpintarelli/SIRIUS
f4b5c4810af2a3ea1e67992d65750535227da84b
[ "BSD-2-Clause" ]
43
2016-03-18T17:45:07.000Z
2022-02-28T05:27:59.000Z
class NotEnoughBands(Exception): pass
14
32
0.761905
41
0.97619
0
0
0
0
0
0
0
0
d56fd836050b26c8b6384555a79574597fcc5e6a
197
py
Python
pyCLI/main.py
tillstud/spotirss
407dbdcc1e625527fec041bd07a19bf4ac456817
[ "MIT" ]
null
null
null
pyCLI/main.py
tillstud/spotirss
407dbdcc1e625527fec041bd07a19bf4ac456817
[ "MIT" ]
null
null
null
pyCLI/main.py
tillstud/spotirss
407dbdcc1e625527fec041bd07a19bf4ac456817
[ "MIT" ]
null
null
null
from pyCLI.config import Config from pyCLI.logging import logger def main(config: Config): print(config.pycli_message) logger.debug("If you enter 'pyCLI -v', you will see this message!")
24.625
71
0.741117
0
0
0
0
0
0
0
0
53
0.269036
d572ea68caef2b7338a29025f406b9ba5ae03a5f
3,164
py
Python
tests/Output/__init__.py
FreekDS/git-ci-analyzer
33e179ea2e569a9df3aefee40b96e5ff6d70da1f
[ "MIT" ]
1
2022-01-16T16:18:59.000Z
2022-01-16T16:18:59.000Z
tests/Output/__init__.py
FreekDS/git-ci-analyzer
33e179ea2e569a9df3aefee40b96e5ff6d70da1f
[ "MIT" ]
null
null
null
tests/Output/__init__.py
FreekDS/git-ci-analyzer
33e179ea2e569a9df3aefee40b96e5ff6d70da1f
[ "MIT" ]
null
null
null
import pytest from analyzer.config import LATE_MERGING, SKIP_FAILING_TESTS, SLOW_BUILD, BROKEN_RELEASE @pytest.fixture(scope='module') def antipattern_data_hd(): """ Happy day antipattern data :return: happy day antipattern data """ return { LATE_MERGING: {}, SKIP_FAILING_TESTS: {}...
26.366667
88
0.469343
0
0
0
0
3,046
0.962705
0
0
947
0.299305
d574fc52182f76e129c8ec44d9cbcfde16ecf130
513
py
Python
app/apps/taskker/migrations/0013_auto_20200703_1530.py
calinbule/taskker
0dbe5a238c9ca231abd7c9a78931fd0c6523453d
[ "MIT" ]
null
null
null
app/apps/taskker/migrations/0013_auto_20200703_1530.py
calinbule/taskker
0dbe5a238c9ca231abd7c9a78931fd0c6523453d
[ "MIT" ]
3
2021-06-04T23:32:25.000Z
2021-09-22T19:21:20.000Z
app/apps/taskker/migrations/0013_auto_20200703_1530.py
calinbule/taskker
0dbe5a238c9ca231abd7c9a78931fd0c6523453d
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-03 15:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('taskker', '0012_auto_20200703_1529'), ] operations = [ migrations.AlterField( model_name='task', name='priority', ...
27
177
0.594542
420
0.818713
0
0
0
0
0
0
180
0.350877
d57698c6c78a214bdc3e21206cf0cac8e0f389e4
21,498
py
Python
fhir/resources/specimendefinition.py
chgl/fhir.resources
35b22314642640c0b25960ab5b2855e7c51749ef
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/specimendefinition.py
chgl/fhir.resources
35b22314642640c0b25960ab5b2855e7c51749ef
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/specimendefinition.py
chgl/fhir.resources
35b22314642640c0b25960ab5b2855e7c51749ef
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/SpecimenDefinition Release: R4 Version: 4.0.1 Build ID: 9346c8cc45 Last updated: 2019-11-01T09:29:23.356+11:00 """ import typing from pydantic import Field, root_validator from pydantic.error_wrappers import ErrorWrapper, ValidationError from...
38.389286
93
0.634199
21,045
0.978928
0
0
6,526
0.303563
0
0
9,918
0.461345
d576c12c0ca80e35e6f43cee787a2cfd1e8bfe55
8,415
py
Python
binlin/model/syn/sympairs_newenc.py
UKPLab/inlg2019-revisiting-binlin
250196403ee4050cac78c547add90087ea04243f
[ "Apache-2.0" ]
1
2021-12-15T08:44:35.000Z
2021-12-15T08:44:35.000Z
binlin/model/syn/sympairs_newenc.py
UKPLab/inlg2019-revisiting-binlin
250196403ee4050cac78c547add90087ea04243f
[ "Apache-2.0" ]
3
2021-03-19T04:07:44.000Z
2022-01-13T01:40:50.000Z
binlin/model/syn/sympairs_newenc.py
UKPLab/inlg2019-revisiting-binlin
250196403ee4050cac78c547add90087ea04243f
[ "Apache-2.0" ]
null
null
null
import logging from typing import Dict, List, Tuple, Union import numpy as np import torch import torch.nn.functional as F from networkx import DiGraph from torch import Tensor, nn as nn from torch.autograd.variable import Variable from binlin.data.ud import index_data from binlin.model.nn_utils import get_embed_matr...
40.456731
122
0.651337
7,803
0.927273
0
0
411
0.048841
0
0
1,387
0.164825
d576c1660c434219aa62d4d9116e13d2df8e9624
1,563
py
Python
mazeChallenge/nicolovescera_tommasoromani_nicoloposta/data_analyzer.py
NicoloPosta/pybootcamp-challenges
c20a44df413a6adc6e18c7052cf55bdbf760838c
[ "Apache-2.0" ]
null
null
null
mazeChallenge/nicolovescera_tommasoromani_nicoloposta/data_analyzer.py
NicoloPosta/pybootcamp-challenges
c20a44df413a6adc6e18c7052cf55bdbf760838c
[ "Apache-2.0" ]
null
null
null
mazeChallenge/nicolovescera_tommasoromani_nicoloposta/data_analyzer.py
NicoloPosta/pybootcamp-challenges
c20a44df413a6adc6e18c7052cf55bdbf760838c
[ "Apache-2.0" ]
null
null
null
from plotter import load_data import pandas as pd import matplotlib.pyplot as plt import numpy as np # Stampa il dataframe passatogli come istogramma def plot_coordinata(data: pd.DataFrame, coordinata: str, alpha_value=1.0, title="Grafico 1"): data = data[[coordinata,'color']] rosse = data[data['color'] == ...
30.057692
108
0.651951
0
0
0
0
0
0
0
0
463
0.296036
d57d0a31e680bead64fbb6304d9ea92f18b64649
1,281
py
Python
complex_data_structure/7_map_filter_reduce.py
hardikid/learn-python
6b3684c9d459dc10ed41e3328daf49313a34b375
[ "MIT" ]
1
2019-11-19T11:42:50.000Z
2019-11-19T11:42:50.000Z
complex_data_structure/7_map_filter_reduce.py
hardikid/learn-python
6b3684c9d459dc10ed41e3328daf49313a34b375
[ "MIT" ]
5
2021-08-23T20:36:02.000Z
2022-02-03T13:20:23.000Z
complex_data_structure/7_map_filter_reduce.py
ihardik/learn-python
6b3684c9d459dc10ed41e3328daf49313a34b375
[ "MIT" ]
null
null
null
######## map # Transform each object of list # i.e. multiple each object by 3 in [0,1,2,3] x = range(5) print(list(x)) y = map(lambda x: x*3,x) def multiply_5(num): return num*5 print(list(y)) y = map(multiply_5,x) print(list(y)) ######## filter # Removed items from list based on condition y = fi...
16.0125
66
0.558938
0
0
0
0
0
0
0
0
345
0.269321
d57e965e9de5274c6fa912c32713dec8917703fa
10,781
py
Python
venv/lib/python3.8/site-packages/ansible_collections/community/crypto/plugins/module_utils/acme/challenges.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_collections/community/crypto/plugins/module_utils/acme/challenges.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_collections/community/crypto/plugins/module_utils/acme/challenges.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright: (c) 2016 Michael Gruener <michael.gruener@chaosmoon.net> # Copyright: (c) 2021 Felix Fontein <felix@fontein.de> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass...
35.580858
127
0.602727
9,201
0.853446
0
0
1,555
0.144235
0
0
2,738
0.253965
d57eb3183cea1c9fed2cc78a667014a3b96be463
115
py
Python
example/order_scope_level/feature2/test_b.py
DevilXD/pytest-order
88685d802cb18bf04f72d0e8ec484d56bb3473d3
[ "MIT" ]
41
2021-03-16T07:57:00.000Z
2022-03-01T10:02:10.000Z
example/order_scope_level/feature2/test_b.py
DevilXD/pytest-order
88685d802cb18bf04f72d0e8ec484d56bb3473d3
[ "MIT" ]
39
2021-03-04T16:50:04.000Z
2022-02-18T18:51:14.000Z
example/order_scope_level/feature2/test_b.py
DevilXD/pytest-order
88685d802cb18bf04f72d0e8ec484d56bb3473d3
[ "MIT" ]
9
2021-03-04T18:27:12.000Z
2021-12-16T06:46:13.000Z
import pytest @pytest.mark.order(4) def test_four(): pass @pytest.mark.order(3) def test_three(): pass
9.583333
21
0.669565
0
0
0
0
95
0.826087
0
0
0
0
d57fd865a85ee217ca78b18a3c2f824a1af7f759
31,890
py
Python
locate_lane_lines.py
StoicLobster/Udacity-SelfDrivingCar-T1P4
2425cc5859861af9add86f6b3c42c2dd1faf0560
[ "MIT" ]
null
null
null
locate_lane_lines.py
StoicLobster/Udacity-SelfDrivingCar-T1P4
2425cc5859861af9add86f6b3c42c2dd1faf0560
[ "MIT" ]
null
null
null
locate_lane_lines.py
StoicLobster/Udacity-SelfDrivingCar-T1P4
2425cc5859861af9add86f6b3c42c2dd1faf0560
[ "MIT" ]
null
null
null
## This script will define the functions used in the locate lane lines pipeline ## The end of this script will process a video file to locate and plot the lane lines import pickle import numpy as np import cv2 import matplotlib.pyplot as plt import matplotlib.image as mpimg from moviepy.editor import VideoFileClip imp...
46.28447
314
0.648448
22,127
0.693854
0
0
0
0
0
0
9,934
0.311508
d5807ccd0fe241a944ff08bce957e0086ab7a9c8
3,772
py
Python
platforms/aws.py
HyechurnJang/c3mon
f5e053141372d39684e192e7c6d956125109b3c1
[ "Apache-2.0" ]
null
null
null
platforms/aws.py
HyechurnJang/c3mon
f5e053141372d39684e192e7c6d956125109b3c1
[ "Apache-2.0" ]
null
null
null
platforms/aws.py
HyechurnJang/c3mon
f5e053141372d39684e192e7c6d956125109b3c1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 2017. 12. 22. @author: HyechurnJang ''' import boto3 from datetime import datetime, timedelta class AWS: def __init__(self): self.ec2 = boto3.resource('ec2') self.cw = boto3.client('cloudwatch') def getVMs(self): aws ...
35.252336
83
0.391835
3,626
0.961294
0
0
0
0
0
0
678
0.179745
d58122ce2f5990ff0998eb5aff14ea21851d770b
1,700
py
Python
experimental/language_structure/vrnn/experiments/linear_vrnn/multiwoz_synth_bert.py
BlackHC/uncertainty-baselines
1a28be3e41e14d8ab74dfa1e3eed15f113718f03
[ "Apache-2.0" ]
null
null
null
experimental/language_structure/vrnn/experiments/linear_vrnn/multiwoz_synth_bert.py
BlackHC/uncertainty-baselines
1a28be3e41e14d8ab74dfa1e3eed15f113718f03
[ "Apache-2.0" ]
null
null
null
experimental/language_structure/vrnn/experiments/linear_vrnn/multiwoz_synth_bert.py
BlackHC/uncertainty-baselines
1a28be3e41e14d8ab74dfa1e3eed15f113718f03
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Uncertainty Baselines Authors. # # 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 ap...
32.692308
121
0.704706
0
0
0
0
0
0
0
0
985
0.579412
d581520a36615c52af59cc8c463ee9a8af5f732e
1,201
py
Python
src/ufdl/json/core/filter/_FilterSpec.py
waikato-ufdl/ufdl-json-messages
408901bdf79aa9ae7cff1af165deee83e62f6088
[ "Apache-2.0" ]
null
null
null
src/ufdl/json/core/filter/_FilterSpec.py
waikato-ufdl/ufdl-json-messages
408901bdf79aa9ae7cff1af165deee83e62f6088
[ "Apache-2.0" ]
null
null
null
src/ufdl/json/core/filter/_FilterSpec.py
waikato-ufdl/ufdl-json-messages
408901bdf79aa9ae7cff1af165deee83e62f6088
[ "Apache-2.0" ]
null
null
null
from typing import List from wai.json.object import StrictJSONObject from wai.json.object.property import ArrayProperty, OneOfProperty, BoolProperty from .field import * from .logical import * from ._FilterExpression import FilterExpression from ._OrderBy import OrderBy class FilterSpec(StrictJSONObject['FilterSpec...
30.025
79
0.677769
925
0.770192
0
0
0
0
0
0
268
0.223147
d582ca9816237ee2b7fbc9eac1fc86001c97f980
290
py
Python
basecam/__init__.py
sdss/baseCam
d5222f2c93df8e5b6ef894f32eca28b1cd3b3616
[ "BSD-3-Clause" ]
null
null
null
basecam/__init__.py
sdss/baseCam
d5222f2c93df8e5b6ef894f32eca28b1cd3b3616
[ "BSD-3-Clause" ]
18
2020-01-13T20:57:48.000Z
2021-06-22T14:43:16.000Z
basecam/__init__.py
sdss/basecam
526f8be1b7c83e087e8f78484e63ba18531dce87
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 # flake8: noqa from sdsstools import get_package_version NAME = "sdss-basecam" __version__ = get_package_version(__file__, "sdss-basecam") or "dev" from .camera import * from .events import * from .exceptions import * from .exposure import * from .notifier import *
17.058824
68
0.748276
0
0
0
0
0
0
0
0
64
0.22069
d5837ed5c9e1f4853a3b61828f36313098836798
571
py
Python
temboo/core/Library/Wordnik/Account/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Wordnik/Account/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Wordnik/Account/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
from temboo.Library.Wordnik.Account.GetAuthToken import GetAuthToken, GetAuthTokenInputSet, GetAuthTokenResultSet, GetAuthTokenChoreographyExecution from temboo.Library.Wordnik.Account.GetKeyStatus import GetKeyStatus, GetKeyStatusInputSet, GetKeyStatusResultSet, GetKeyStatusChoreographyExecution from temboo.Library.Wo...
114.2
148
0.901926
0
0
0
0
0
0
0
0
0
0
d5838d0257d9eb7381eaac633cc981dbc3c1bfec
9,691
py
Python
transpose-alsaseq.py
zubilewiczm/transpose
82cfc256555150cec7772584ab5699434f5d94fd
[ "MIT" ]
null
null
null
transpose-alsaseq.py
zubilewiczm/transpose
82cfc256555150cec7772584ab5699434f5d94fd
[ "MIT" ]
null
null
null
transpose-alsaseq.py
zubilewiczm/transpose
82cfc256555150cec7772584ab5699434f5d94fd
[ "MIT" ]
null
null
null
from transpose import * import alsaseq import alsamidi import random # Requires https://github.com/ppaez/alsaseq package. alsaseq.client("pyTranspose", 0, 1, True) class IntervalsGame(Game): """ IntervalsGame(name=None, autosave=True, **settings) : Game A game to practice recognizing asceending, descendi...
39.555102
79
0.53947
9,568
0.982845
1,646
0.169081
879
0.090293
0
0
4,918
0.505187
d583e428836551045c331cfd1d586014de193689
9,585
py
Python
condor_parser.py
ASchidler/pace17
755e9d652c7d4d9dd1f71fb508ebf773efee8488
[ "MIT" ]
1
2019-01-15T16:58:03.000Z
2019-01-15T16:58:03.000Z
condor_parser.py
ASchidler/pace17
755e9d652c7d4d9dd1f71fb508ebf773efee8488
[ "MIT" ]
null
null
null
condor_parser.py
ASchidler/pace17
755e9d652c7d4d9dd1f71fb508ebf773efee8488
[ "MIT" ]
null
null
null
import os import sys from collections import defaultdict import re import pandas as pd import matplotlib.pyplot as plt class InstanceResult: """Represents the result of one instance run""" def __init__(self): # General info, name of the instance, run ID, time, memory und time for reductions se...
32.491525
119
0.592593
1,216
0.126865
0
0
0
0
0
0
1,209
0.126135
d585f8540e934ba68420f975699c9080a2e5b0cd
100,242
py
Python
apps/vtktools/vtkToolsGUI.py
rboman/progs
c60b4e0487d01ccd007bcba79d1548ebe1685655
[ "Apache-2.0" ]
2
2021-12-12T13:26:06.000Z
2022-03-03T16:14:53.000Z
apps/vtktools/vtkToolsGUI.py
rboman/progs
c60b4e0487d01ccd007bcba79d1548ebe1685655
[ "Apache-2.0" ]
5
2019-03-01T07:08:46.000Z
2019-04-28T07:32:42.000Z
apps/vtktools/vtkToolsGUI.py
rboman/progs
c60b4e0487d01ccd007bcba79d1548ebe1685655
[ "Apache-2.0" ]
2
2017-12-13T13:13:52.000Z
2019-03-13T20:08:15.000Z
#! /usr/bin/env python3 # -*- coding: utf-8; -*- # # vtkToolsGUI - VTK/Tk/Python interface by RoBo - modified by vidot # - modified by MM to create a distributable exe independent of Metafor # jan 2019: # F:\src\VTK-7.1.0\Wrapping\Python\vtk\tk\vtkLoadPythonTkWidgets.py # change "vtkCommonCorePython" => "vtk.vtkComm...
41.7675
159
0.573412
97,907
0.976677
0
0
0
0
0
0
17,086
0.170442
d58748147e2304d51e1ae95549251daa443eaa7d
45,013
py
Python
Element.py
darinpeetz/Phase_Field
f7169dadbe6f94ed85613da130104fc318358224
[ "MIT" ]
2
2020-05-28T22:01:49.000Z
2021-09-10T02:23:04.000Z
Element.py
darinpeetz/Phase_Field
f7169dadbe6f94ed85613da130104fc318358224
[ "MIT" ]
null
null
null
Element.py
darinpeetz/Phase_Field
f7169dadbe6f94ed85613da130104fc318358224
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jun 17 14:03:42 2018 @author: Darin """ import numpy as np from matplotlib.patches import Polygon class Element: """ Functions avaiable in this class -------------------------------- __init__ : constructor _Get_GP : Gets the Gauss points ...
38.837791
135
0.459601
44,859
0.996579
0
0
0
0
0
0
17,971
0.39924
d588539983a2e180d430faf9156fe49f7c14386f
372
py
Python
server/tests/test_env.py
amiralis1365/cards-game
db44eaefd0c10c7876be52e97534f7e4201c9581
[ "CNRI-Python" ]
null
null
null
server/tests/test_env.py
amiralis1365/cards-game
db44eaefd0c10c7876be52e97534f7e4201c9581
[ "CNRI-Python" ]
null
null
null
server/tests/test_env.py
amiralis1365/cards-game
db44eaefd0c10c7876be52e97534f7e4201c9581
[ "CNRI-Python" ]
null
null
null
"""Sanity test environment setup.""" import os.path from django.conf import settings from django.test import TestCase class EnvTestCase(TestCase): """Environment test cases.""" def test_env_file_exists(self): """Test environment file exists.""" env_file = os.path.join(settings.DEFAULT_ENV_PA...
24.8
66
0.701613
250
0.672043
0
0
0
0
0
0
106
0.284946
d5887287725e2e8a0b6a2fd0c2f42b466eaaa2d4
1,705
py
Python
iglovikov_helper_functions/utils/inpainting_utils.py
AIChuY/iglovikov_helper_functions
46383c7a8b0f8dbdbf7907e119b6c2417877ad33
[ "MIT" ]
46
2019-09-21T02:05:50.000Z
2022-01-02T10:27:56.000Z
iglovikov_helper_functions/utils/inpainting_utils.py
AIChuY/iglovikov_helper_functions
46383c7a8b0f8dbdbf7907e119b6c2417877ad33
[ "MIT" ]
9
2020-04-05T01:19:56.000Z
2021-08-02T16:53:18.000Z
iglovikov_helper_functions/utils/inpainting_utils.py
AIChuY/iglovikov_helper_functions
46383c7a8b0f8dbdbf7907e119b6c2417877ad33
[ "MIT" ]
14
2019-09-21T02:54:17.000Z
2022-02-28T11:58:34.000Z
import math import random from typing import Tuple import cv2 import numpy as np def np_free_form_mask( max_vertex: int, max_length: int, max_brush_width: int, max_angle: int, height: int, width: int ) -> np.ndarray: mask = np.zeros((height, width), np.float32) num_vertex = random.randint(0, max_vertex)...
28.898305
99
0.629912
0
0
0
0
0
0
0
0
0
0
d588f6a87c411fe8a97c1726c5e01863027c6a64
2,393
py
Python
tests/tester/test_tester.py
Rajpratik71/workload-collocation-agent
6cf7bdab97ff61d85c21c3effecea632a225c668
[ "Apache-2.0" ]
40
2019-05-16T16:42:33.000Z
2021-11-18T06:33:03.000Z
tests/tester/test_tester.py
Rajpratik71/workload-collocation-agent
6cf7bdab97ff61d85c21c3effecea632a225c668
[ "Apache-2.0" ]
72
2019-05-09T02:30:25.000Z
2020-11-17T09:24:44.000Z
tests/tester/test_tester.py
Rajpratik71/workload-collocation-agent
6cf7bdab97ff61d85c21c3effecea632a225c668
[ "Apache-2.0" ]
26
2019-05-20T09:13:38.000Z
2021-12-15T17:57:21.000Z
# Copyright (c) 2019 Intel Corporation # 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 w...
35.191176
74
0.708734
0
0
0
0
1,573
0.657334
0
0
885
0.369829
d5892906d499f0f5a6f042d091d257df411e9d0c
31,503
py
Python
etl/parsers/etw/Microsoft_Windows_USB_USBHUB.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_Windows_USB_USBHUB.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_Windows_USB_USBHUB.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-Windows-USB-USBHUB GUID : 7426a56b-e2d5-4b30-bdef-b31815c1a74a """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from etl....
29.917379
123
0.669301
21,864
0.694029
0
0
30,821
0.978351
0
0
10,300
0.326953
d5894d927b0277f7ba467a9bda0d567ef57efa68
678
py
Python
tests/testapp/models/caretaker.py
BBooijLiewes/django-binder
b5bf0aad14657fd57d575f9a0ef21468533f64a7
[ "MIT" ]
null
null
null
tests/testapp/models/caretaker.py
BBooijLiewes/django-binder
b5bf0aad14657fd57d575f9a0ef21468533f64a7
[ "MIT" ]
null
null
null
tests/testapp/models/caretaker.py
BBooijLiewes/django-binder
b5bf0aad14657fd57d575f9a0ef21468533f64a7
[ "MIT" ]
null
null
null
from django.db import models from django.db.models import Count, F, Max from binder.models import BinderModel class Caretaker(BinderModel): name = models.TextField() last_seen = models.DateTimeField(null=True, blank=True) # We have the ssn for each caretaker. We have to make sure that nobody can access this ssn in...
28.25
108
0.731563
566
0.834808
0
0
0
0
0
0
224
0.330383
d58b4673e8699aa22b8c8f9e9c79b3d6ac592f80
292
py
Python
blog/2017-12-17--python-ssh-logger/scripts/create_threads.py
mpolinowski/gatsby-starter-minimal-blog
cdb628357e806be211c3220bfb7b50ac0c204a6c
[ "MIT" ]
1
2020-10-20T16:39:11.000Z
2020-10-20T16:39:11.000Z
blog/2017-12-17--python-ssh-logger/scripts/create_threads.py
mpolinowski/gatsby-starter-minimal-blog
cdb628357e806be211c3220bfb7b50ac0c204a6c
[ "MIT" ]
null
null
null
blog/2017-12-17--python-ssh-logger/scripts/create_threads.py
mpolinowski/gatsby-starter-minimal-blog
cdb628357e806be211c3220bfb7b50ac0c204a6c
[ "MIT" ]
null
null
null
import threading # Create threads for each SSH connection def create_threads(list, function): threads = [] for ip in list: th = threading.Thread(target = function, args = (ip,)) th.start() threads.append(th) for th in threads: th.join()
20.857143
62
0.59589
0
0
0
0
0
0
0
0
40
0.136986
d58c1422d124dbf9b76d6fdfb103b78c63395525
1,129
py
Python
generate_csv.py
KishanChandravanshi/forecast-cyclone-path
766bb8440206b24d34ccd0eae488e2651d4e0467
[ "MIT" ]
null
null
null
generate_csv.py
KishanChandravanshi/forecast-cyclone-path
766bb8440206b24d34ccd0eae488e2651d4e0467
[ "MIT" ]
null
null
null
generate_csv.py
KishanChandravanshi/forecast-cyclone-path
766bb8440206b24d34ccd0eae488e2651d4e0467
[ "MIT" ]
null
null
null
import cv2 from darkflow.net.build import TFNet import numpy as np import glob import matplotlib.pyplot as plt options = { 'model': 'cfg/yolo-v2.cfg', 'load':8375, 'gpu':0.8, 'threshold':0.1 } count = 1 tfnet = TFNet(options) color = [0, 255, 0] files_path = glob.glob('data_from_imd' + "\\*.jpg") for file in files_path...
33.205882
92
0.583702
0
0
0
0
0
0
0
0
260
0.230292
d58d822662d574ca4045a6e27ecef06bb1dab250
1,421
py
Python
weibo/items.py
flyhighfairy/weibo
469f21543facaba828fa7c0ad0dd8da130192fba
[ "MIT" ]
1
2018-01-23T19:36:27.000Z
2018-01-23T19:36:27.000Z
weibo/items.py
flyhighfairy/weibo
469f21543facaba828fa7c0ad0dd8da130192fba
[ "MIT" ]
null
null
null
weibo/items.py
flyhighfairy/weibo
469f21543facaba828fa7c0ad0dd8da130192fba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class WeiboVMblogsItem(scrapy.Item): domain = scrapy.Field() uid = scrapy.Field() mblog_id = scrapy.Field() mblog_content = scrapy.Field...
30.891304
137
0.63969
1,250
0.879662
0
0
0
0
0
0
633
0.445461
d58eecd34de9c6681c2ee538dc026e2a42c6715b
4,284
py
Python
examples/acoustics/vibro_acoustic3d.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
1
2021-05-15T16:28:45.000Z
2021-05-15T16:28:45.000Z
examples/acoustics/vibro_acoustic3d.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
examples/acoustics/vibro_acoustic3d.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
r""" Vibro-acoustic problem 3D acoustic domain with 2D perforated deforming interface. *Master problem*: defined in 3D acoustic domain (``vibro_acoustic3d.py``) *Slave subproblem*: 2D perforated interface (``vibro_acoustic3d_mid.py``) Master 3D problem - find :math:`p` (acoustic pressure) and :math:`g` (transversal...
29.544828
73
0.538749
0
0
0
0
0
0
0
0
3,156
0.736695