hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
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
2
1.02M
avg_line_length
float64
1
417k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
1 class
is_sharp_comment_removed
bool
1 class
1c38b0c4ef7bf695efea339bdab4d6094cc2c8b8
2,092
py
Python
huji_lab/Display.py
stormage2/huji_lab
07734f1891d05177dd1395a4a3e4694e258ca0f8
[ "MIT" ]
null
null
null
huji_lab/Display.py
stormage2/huji_lab
07734f1891d05177dd1395a4a3e4694e258ca0f8
[ "MIT" ]
7
2018-10-16T17:02:15.000Z
2018-10-31T13:39:30.000Z
build/lib/huji_lab/Display.py
stormage2/huji_lab
07734f1891d05177dd1395a4a3e4694e258ca0f8
[ "MIT" ]
1
2018-10-21T11:43:55.000Z
2018-10-21T11:43:55.000Z
import matplotlib.pyplot as _plt from IPython.display import Image as _Image from IPython.display import display as _display from IPython.display import Markdown as _Markdown from IPython.display import Latex as _Latex """ # A dangerous override function, currently unimplemented. from uncertainties.core import Variabl...
28.27027
107
0.628107
import matplotlib.pyplot as _plt from IPython.display import Image as _Image from IPython.display import display as _display from IPython.display import Markdown as _Markdown from IPython.display import Latex as _Latex def print_color_bold(string, color='black'): text_line = _Markdown("<span style=\"color: " + c...
true
true
1c38b24548b3a8a34d4aa01e684231ba2be1e09f
26,473
py
Python
xrviz/dashboard.py
jhamman/xrviz
7b933f29330fed8c9ee6c11822058478f58d51a1
[ "BSD-3-Clause" ]
null
null
null
xrviz/dashboard.py
jhamman/xrviz
7b933f29330fed8c9ee6c11822058478f58d51a1
[ "BSD-3-Clause" ]
null
null
null
xrviz/dashboard.py
jhamman/xrviz
7b933f29330fed8c9ee6c11822058478f58d51a1
[ "BSD-3-Clause" ]
1
2021-01-06T17:07:43.000Z
2021-01-06T17:07:43.000Z
import ast import dask import panel as pn import pandas as pd import numpy as np import xarray as xr import hvplot.xarray import hvplot.pandas import holoviews as hv from holoviews import streams from bokeh.models import HoverTool import warnings from itertools import cycle import numpy from .sigslot import SigSlot fro...
43.82947
126
0.55736
import ast import dask import panel as pn import pandas as pd import numpy as np import xarray as xr import hvplot.xarray import hvplot.pandas import holoviews as hv from holoviews import streams from bokeh.models import HoverTool import warnings from itertools import cycle import numpy from .sigslot import SigSlot fro...
true
true
1c38b3278269bec67cf467d295393f336f4b67c6
923
py
Python
topics/urls.py
techstoreclub/codebook
b9b471403984189c890202bc8d7f735129115609
[ "MIT" ]
1
2020-06-09T06:04:16.000Z
2020-06-09T06:04:16.000Z
topics/urls.py
techstoreclub/codebook
b9b471403984189c890202bc8d7f735129115609
[ "MIT" ]
14
2020-03-30T20:08:30.000Z
2021-12-22T09:06:58.000Z
topics/urls.py
andychase/codebook
b9b471403984189c890202bc8d7f735129115609
[ "MIT" ]
1
2016-01-03T18:40:34.000Z
2016-01-03T18:40:34.000Z
from django.urls import re_path from django.contrib.auth import views as auth_views from topics.views import sso from .views import users from .views import topics app_name = 'topics' urlpatterns = [ # User authentication re_path(r'^_login/$', users.login_view, name='login'), re_path(r'^_login/sso$', sso...
38.458333
101
0.697725
from django.urls import re_path from django.contrib.auth import views as auth_views from topics.views import sso from .views import users from .views import topics app_name = 'topics' urlpatterns = [ re_path(r'^_login/$', users.login_view, name='login'), re_path(r'^_login/sso$', sso.sso), re_path(r'^...
true
true
1c38b37aeb114f496749e633a91ea5c09f773f91
373
py
Python
src/interpreter.py
SatishS11/Qrangen
917b6b9b09669b58251bbdc15427ea0105dbc521
[ "Apache-2.0" ]
2
2019-09-08T00:05:06.000Z
2020-07-22T18:39:41.000Z
src/interpreter.py
SatishS11/Qrangen
917b6b9b09669b58251bbdc15427ea0105dbc521
[ "Apache-2.0" ]
9
2020-03-24T17:07:02.000Z
2022-03-11T23:48:38.000Z
src/interpreter.py
SatishS11/Qrangen
917b6b9b09669b58251bbdc15427ea0105dbc521
[ "Apache-2.0" ]
4
2019-05-28T19:32:10.000Z
2021-03-04T09:50:04.000Z
class Interpreter: def __init__(self, n=1, mode='decimal'): self.mode = mode self.n = n def extract_random_number(self, result): numbers = result.get_memory() if self.mode == 'binary': return numbers else: return [int(number, 2) for number in num...
23.3125
57
0.58445
class Interpreter: def __init__(self, n=1, mode='decimal'): self.mode = mode self.n = n def extract_random_number(self, result): numbers = result.get_memory() if self.mode == 'binary': return numbers else: return [int(number, 2) for number in num...
true
true
1c38b4e2c6d0bbdea0a300cfd8975351afde846c
580
py
Python
backend/server/restapi/views.py
luismsanchez/RestaurantApp
3793be5ec814463a37dd8da7d1b2343a1d69e28b
[ "MIT" ]
null
null
null
backend/server/restapi/views.py
luismsanchez/RestaurantApp
3793be5ec814463a37dd8da7d1b2343a1d69e28b
[ "MIT" ]
null
null
null
backend/server/restapi/views.py
luismsanchez/RestaurantApp
3793be5ec814463a37dd8da7d1b2343a1d69e28b
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework import viewsets from .models import Cliente, Producto, Pedido from .serializer import ClienteSerializer, ProductoSerializer, PedidoSerializer class ClienteViewSet(viewsets.ModelViewSet): queryset = Cliente.objects.all() serializer_class = Clien...
34.117647
82
0.796552
from django.shortcuts import render from rest_framework import viewsets from .models import Cliente, Producto, Pedido from .serializer import ClienteSerializer, ProductoSerializer, PedidoSerializer class ClienteViewSet(viewsets.ModelViewSet): queryset = Cliente.objects.all() serializer_class = Clien...
true
true
1c38b5053ed48e42abbabd6171297061ed1cb8f3
1,521
py
Python
real_model.py
bryanlincoln/curiosity-driven-exploration
2c099eb851a9319845f06ca030fee1bf4d587de2
[ "MIT" ]
null
null
null
real_model.py
bryanlincoln/curiosity-driven-exploration
2c099eb851a9319845f06ca030fee1bf4d587de2
[ "MIT" ]
null
null
null
real_model.py
bryanlincoln/curiosity-driven-exploration
2c099eb851a9319845f06ca030fee1bf4d587de2
[ "MIT" ]
null
null
null
from chainer import Link, Chain, ChainList import chainer.links as L import chainer.functions as F import chainerrl class RealPPOModel(Chain): def __init__(self, n_actions): super(RealPPOModel, self).__init__() with self.init_scope(): self.conv1 = L.Convolution2D(None, 32, 8, stride=4)...
34.568182
96
0.566075
from chainer import Link, Chain, ChainList import chainer.links as L import chainer.functions as F import chainerrl class RealPPOModel(Chain): def __init__(self, n_actions): super(RealPPOModel, self).__init__() with self.init_scope(): self.conv1 = L.Convolution2D(None, 32, 8, stride=4)...
true
true
1c38b519a8a78124e3beaaa80e76163684eca1a6
813
py
Python
tf_encrypted/keras/layers/__init__.py
redshiftzero/tf-encrypted
d48de7ab37e270fac2a0ae1fc6de87cb6bd9ce6c
[ "Apache-2.0" ]
3
2018-10-18T19:36:02.000Z
2020-07-05T19:46:23.000Z
tf_encrypted/keras/layers/__init__.py
redshiftzero/tf-encrypted
d48de7ab37e270fac2a0ae1fc6de87cb6bd9ce6c
[ "Apache-2.0" ]
null
null
null
tf_encrypted/keras/layers/__init__.py
redshiftzero/tf-encrypted
d48de7ab37e270fac2a0ae1fc6de87cb6bd9ce6c
[ "Apache-2.0" ]
null
null
null
"""Higher-level layer abstractions built on TF Encrypted.""" from __future__ import absolute_import from tf_encrypted.keras.engine.input_layer import Input from tf_encrypted.keras.layers.activation import Activation from tf_encrypted.keras.layers.convolutional import Conv2D from tf_encrypted.keras.layers.dense import ...
30.111111
76
0.785978
from __future__ import absolute_import from tf_encrypted.keras.engine.input_layer import Input from tf_encrypted.keras.layers.activation import Activation from tf_encrypted.keras.layers.convolutional import Conv2D from tf_encrypted.keras.layers.dense import Dense from tf_encrypted.keras.layers.flatten import Flatten f...
true
true
1c38b64d2e426a225f775a07e698d2709589746f
1,362
py
Python
componere/area.py
abramsimon/componere
910f714eb049efd8b358dd96772bc5f6187af627
[ "Apache-2.0" ]
null
null
null
componere/area.py
abramsimon/componere
910f714eb049efd8b358dd96772bc5f6187af627
[ "Apache-2.0" ]
null
null
null
componere/area.py
abramsimon/componere
910f714eb049efd8b358dd96772bc5f6187af627
[ "Apache-2.0" ]
null
null
null
# Copyright 2o18 Premise Data # # 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, ...
31.674419
74
0.762849
class Area: identifier = None name = None parent_identifier = None def __init__(self, identifier, name=None, parent_identifier=None): self.identifier = identifier self.name = name self.parent_identifier = parent_identifier @classmethod def from_values_dict(cls, identifier, values_dict): if values_dict i...
true
true
1c38b6a146e1e25917896bb3994602aa15970f79
3,401
py
Python
scenario2.py
lvreynoso/Call-Routing-Project
8aeafe6c26d92ed93f32a0fc830bb53e339cb83a
[ "MIT" ]
null
null
null
scenario2.py
lvreynoso/Call-Routing-Project
8aeafe6c26d92ed93f32a0fc830bb53e339cb83a
[ "MIT" ]
null
null
null
scenario2.py
lvreynoso/Call-Routing-Project
8aeafe6c26d92ed93f32a0fc830bb53e339cb83a
[ "MIT" ]
null
null
null
import time import resource import platform # check if prefix is a valid prefix for phoneNumber def isPrefix(phoneNumber, prefix): if len(prefix) > len(phoneNumber): return False for i in range(len(prefix)): if (phoneNumber[i] != prefix[i]): return False return True #...
30.918182
97
0.6207
import time import resource import platform def isPrefix(phoneNumber, prefix): if len(prefix) > len(phoneNumber): return False for i in range(len(prefix)): if (phoneNumber[i] != prefix[i]): return False return True def findBestSolution(solutions): longestString = ...
true
true
1c38b6ae57e0008c1f492bc4516b097b764c9bc0
5,829
py
Python
awx/main/dispatch/worker/callback.py
Sicaine/awx
a1fe60da78445c7970eaa823e88ce21860053785
[ "Apache-2.0" ]
1
2019-03-07T11:54:50.000Z
2019-03-07T11:54:50.000Z
awx/main/dispatch/worker/callback.py
Sicaine/awx
a1fe60da78445c7970eaa823e88ce21860053785
[ "Apache-2.0" ]
1
2020-06-18T14:53:26.000Z
2020-06-18T14:53:26.000Z
awx/main/dispatch/worker/callback.py
Sicaine/awx
a1fe60da78445c7970eaa823e88ce21860053785
[ "Apache-2.0" ]
null
null
null
import logging import time import os import signal import traceback from django.conf import settings from django.db import DatabaseError, OperationalError, connection as django_connection from django.db.utils import InterfaceError, InternalError from awx.main.consumers import emit_channel_notification from awx.main.m...
44.496183
152
0.532853
import logging import time import os import signal import traceback from django.conf import settings from django.db import DatabaseError, OperationalError, connection as django_connection from django.db.utils import InterfaceError, InternalError from awx.main.consumers import emit_channel_notification from awx.main.m...
true
true
1c38b6e00ca40fee87d35cf4853cec01dcdb1aec
44,135
py
Python
xrft/xrft.py
RichardScottOZ/xrft
5b18b88957661b8f5e1967ec28e81c552c63834f
[ "MIT" ]
null
null
null
xrft/xrft.py
RichardScottOZ/xrft
5b18b88957661b8f5e1967ec28e81c552c63834f
[ "MIT" ]
null
null
null
xrft/xrft.py
RichardScottOZ/xrft
5b18b88957661b8f5e1967ec28e81c552c63834f
[ "MIT" ]
null
null
null
import warnings import operator import sys import functools as ft from functools import reduce import numpy as np import xarray as xr import pandas as pd import dask.array as dsar from dask import delayed import scipy.signal as sps import scipy.linalg as spl from .detrend import detrend as _detrend __all__ = [ ...
34.453552
542
0.620347
import warnings import operator import sys import functools as ft from functools import reduce import numpy as np import xarray as xr import pandas as pd import dask.array as dsar from dask import delayed import scipy.signal as sps import scipy.linalg as spl from .detrend import detrend as _detrend __all__ = [ ...
true
true
1c38b757134a77c1004ddbc6823505175387eb23
4,674
py
Python
tests/unit/models/test_job.py
amolkahat/cibyl
586c3c0a6b21a8f1b71db0c5b29e7d60f9cf0def
[ "Apache-2.0" ]
null
null
null
tests/unit/models/test_job.py
amolkahat/cibyl
586c3c0a6b21a8f1b71db0c5b29e7d60f9cf0def
[ "Apache-2.0" ]
null
null
null
tests/unit/models/test_job.py
amolkahat/cibyl
586c3c0a6b21a8f1b71db0c5b29e7d60f9cf0def
[ "Apache-2.0" ]
null
null
null
""" # Copyright 2022 Red Hat # # 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...
34.880597
78
0.629226
import unittest from cibyl.models.ci.build import Build from cibyl.models.ci.job import Job class TestJob(unittest.TestCase): def setUp(self): self.job_name = 'test-job' self.job_status = 'FAILURE' self.job_url = 'http://ci_system/test-job' self.builds = [Build("1")] self...
true
true
1c38b83aead408389e0116016b8e5521e4063ab7
88
py
Python
output/models/ms_data/regex/re_l21_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/regex/re_l21_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/regex/re_l21_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.regex.re_l21_xsd.re_l21 import Doc __all__ = [ "Doc", ]
14.666667
61
0.715909
from output.models.ms_data.regex.re_l21_xsd.re_l21 import Doc __all__ = [ "Doc", ]
true
true
1c38b861973e77d69b84bb9a7ed9781a38aa4742
1,441
py
Python
src/gui/MainLayout.py
tinfins/CMSC495-Group-3
0b7ea3c885322631d6dd3ef7ee96b6a98ba2392e
[ "MIT" ]
1
2021-02-11T01:18:08.000Z
2021-02-11T01:18:08.000Z
src/gui/MainLayout.py
tinfins/CMSC495-Group-3
0b7ea3c885322631d6dd3ef7ee96b6a98ba2392e
[ "MIT" ]
1
2021-01-28T00:03:15.000Z
2021-01-28T00:03:15.000Z
src/gui/MainLayout.py
tinfins/CMSC495-Group-3
0b7ea3c885322631d6dd3ef7ee96b6a98ba2392e
[ "MIT" ]
3
2021-02-13T22:45:14.000Z
2021-02-16T02:57:11.000Z
# Standard imports import logging.config import tkinter as tk from tkinter import ttk # Big Teacher module imports: import src.gui.MenuStatus as MenuStatus class MainLayout(tk.Frame): ''' Main GUI layout of application. Contains Menu Bar and Status Bar ''' def __init__(self, master, controller): ...
30.659574
70
0.644691
import logging.config import tkinter as tk from tkinter import ttk import src.gui.MenuStatus as MenuStatus class MainLayout(tk.Frame): def __init__(self, master, controller): ttk.Frame.__init__(self, master) self.logger = logging.getLogger(__name__) self.master = master self.contro...
true
true
1c38b86b63961d39979e82afb0da3ab99a95bef1
2,782
py
Python
examples/daal4py/decision_tree_classification_batch.py
owerbat/scikit-learn-intelex
986637668853a00f0047b7a8854ddb9fb3620549
[ "Apache-2.0" ]
336
2021-04-07T04:25:28.000Z
2022-03-29T09:18:44.000Z
examples/daal4py/decision_tree_classification_batch.py
owerbat/scikit-learn-intelex
986637668853a00f0047b7a8854ddb9fb3620549
[ "Apache-2.0" ]
213
2021-03-25T20:51:24.000Z
2022-03-31T09:04:13.000Z
examples/daal4py/decision_tree_classification_batch.py
owerbat/scikit-learn-intelex
986637668853a00f0047b7a8854ddb9fb3620549
[ "Apache-2.0" ]
43
2021-05-23T14:29:23.000Z
2022-03-04T08:12:53.000Z
#=============================================================================== # Copyright 2014-2021 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.apa...
38.638889
90
0.673976
import daal4py as d4p import numpy as np try: import pandas def read_csv(f, c, t=np.float64): return pandas.read_csv(f, usecols=c, delimiter=',', header=None, dtype=np.float32) except ImportError: def read_csv(f, c, t=np.float64): return np.loadtxt(f, usecols=c, delimiter=',', ndmin=...
true
true
1c38b9842852205b95892006d267eb3f51cd2da7
6,384
py
Python
mkt/commonplace/views.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
mkt/commonplace/views.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
mkt/commonplace/views.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
import datetime import importlib import json import os from urlparse import urlparse from django.conf import settings from django.core.files.storage import default_storage as storage from django.core.urlresolvers import resolve from django.http import HttpResponse, Http404 from django.shortcuts import render from djan...
31.761194
79
0.636122
import datetime import importlib import json import os from urlparse import urlparse from django.conf import settings from django.core.files.storage import default_storage as storage from django.core.urlresolvers import resolve from django.http import HttpResponse, Http404 from django.shortcuts import render from djan...
true
true
1c38b99bfb1848d9aba4d4d4a92c531feb23e7ae
2,226
py
Python
src/movieMain.py
o-x-y-g-e-n/Web-Scraping-With-Sentiment-Analysis
4f0faaefdbdc515165a58fd53942c2902c3e7372
[ "MIT" ]
3
2020-12-23T14:57:59.000Z
2021-06-14T07:30:25.000Z
src/movieMain.py
o-x-y-g-e-n/Web-Scraping-With-Sentiment-Analysis
4f0faaefdbdc515165a58fd53942c2902c3e7372
[ "MIT" ]
2
2021-04-06T18:21:56.000Z
2021-06-02T03:36:15.000Z
src/movieMain.py
o-x-y-g-e-n/Web-Scraping-With-Sentiment-Analysis
4f0faaefdbdc515165a58fd53942c2902c3e7372
[ "MIT" ]
1
2021-06-14T07:30:40.000Z
2021-06-14T07:30:40.000Z
import nltk,re,time,sys ,codecs,os,requests import xml.etree.ElementTree as ET from lxml import etree from nltk.corpus import stopwords from textblob import TextBlob from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.by import By from selenium.webdriver.common.keys...
32.735294
81
0.752022
import nltk,re,time,sys ,codecs,os,requests import xml.etree.ElementTree as ET from lxml import etree from nltk.corpus import stopwords from textblob import TextBlob from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.by import By from selenium.webdriver.common.keys...
true
true
1c38ba494a7048305333a4416b8225cce6de2a25
3,027
py
Python
vega/core/pipeline/multi_task_pipe_step.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/core/pipeline/multi_task_pipe_step.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/core/pipeline/multi_task_pipe_step.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE...
40.36
101
0.718203
import logging from vega.common.general import General from vega.common.class_factory import ClassFactory, ClassType from vega.report import ReportServer, ReportRecord, ReportClient from vega.common import Status from vega.core.scheduler import create_master from vega.core.pipeline.conf import PipeStepConfig from ve...
true
true
1c38bbb507524c08538e3489e0f8293d4dab2320
3,169
py
Python
user/views.py
myl7/conus
6eb2c9ee55c45d8b9c7f9de0e5998f94954b1a4e
[ "MIT" ]
null
null
null
user/views.py
myl7/conus
6eb2c9ee55c45d8b9c7f9de0e5998f94954b1a4e
[ "MIT" ]
null
null
null
user/views.py
myl7/conus
6eb2c9ee55c45d8b9c7f9de0e5998f94954b1a4e
[ "MIT" ]
null
null
null
import uuid import re from urllib.parse import urlencode from xml.etree import ElementTree import json from django.shortcuts import redirect, reverse from django.conf import settings from django.http.response import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import login, logout ...
32.010101
96
0.71095
import uuid import re from urllib.parse import urlencode from xml.etree import ElementTree import json from django.shortcuts import redirect, reverse from django.conf import settings from django.http.response import HttpResponse from django.contrib.auth.models import User from django.contrib.auth import login, logout ...
true
true
1c38bc5683d427dfa31b3e03713eb31a5e6faef6
1,987
py
Python
test/test_new_password.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2021-03-05T06:41:26.000Z
2021-03-05T06:41:26.000Z
test/test_new_password.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2021-09-07T08:56:58.000Z
2021-09-07T08:56:58.000Z
test/test_new_password.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2019-05-21T10:27:54.000Z
2019-05-21T10:27:54.000Z
# coding: utf-8 """ Talon.One API The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. #...
35.482143
647
0.67841
from __future__ import absolute_import import unittest import datetime import talon_one from talon_one.models.new_password import NewPassword from talon_one.rest import ApiException class TestNewPassword(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def make_in...
true
true
1c38bcecf5d2b10709950ef3d19204f26c5d8e6f
607
py
Python
var/spack/repos/builtin.mock/packages/indirect-mpich/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin.mock/packages/indirect-mpich/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin.mock/packages/indirect-mpich/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class IndirectMpich(Package): """Test case for a package that depends on MPI and one of ...
28.904762
73
0.710049
from spack.package import * class IndirectMpich(Package): homepage = "http://www.example.com" url = "http://www.example.com/indirect_mpich-1.0.tar.gz" version(1.0, '0123456789abcdef0123456789abcdef') depends_on('mpi') depends_on('direct-mpich')
true
true
1c38be7b5959d2a3c502984d191233707a0c0b2a
624
py
Python
setup.py
k4m454k/VerbariusRus
54bb20570d3013a93340df3be5592a20c5576322
[ "MIT" ]
2
2020-11-15T19:41:20.000Z
2020-11-15T21:22:05.000Z
setup.py
k4m454k/VerbariusRus
54bb20570d3013a93340df3be5592a20c5576322
[ "MIT" ]
null
null
null
setup.py
k4m454k/VerbariusRus
54bb20570d3013a93340df3be5592a20c5576322
[ "MIT" ]
1
2020-12-20T13:35:19.000Z
2020-12-20T13:35:19.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="verbarius", version="0.7", author="Vadim Apenko", author_email="k4m454k@gmail.com", description="VerbariusRus", long_description=long_description, long_description_content_type="te...
27.130435
50
0.658654
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="verbarius", version="0.7", author="Vadim Apenko", author_email="k4m454k@gmail.com", description="VerbariusRus", long_description=long_description, long_description_content_type="te...
true
true
1c38c04a0ea5aaf4c7610e0a4db970bfce3dc8d0
3,895
py
Python
tests/test_utils.py
Algebra8/pyopenapi3
ebfb2b99e185277845ac9fc53aafaa1505339c11
[ "MIT" ]
null
null
null
tests/test_utils.py
Algebra8/pyopenapi3
ebfb2b99e185277845ac9fc53aafaa1505339c11
[ "MIT" ]
21
2021-03-27T22:32:51.000Z
2021-04-13T05:37:17.000Z
tests/test_utils.py
Algebra8/pyopenapi3
ebfb2b99e185277845ac9fc53aafaa1505339c11
[ "MIT" ]
null
null
null
from unittest import mock from pyopenapi3.objects import ( TextPlainMediaType, JSONMediaType, ) from pyopenapi3.data_types import ( Email, Int64, String, Component, Array ) from pyopenapi3.schemas import ( MediaTypeObject, Int64DTSchema, ReferenceObject, ArrayDTSchema, A...
26.14094
72
0.674711
from unittest import mock from pyopenapi3.objects import ( TextPlainMediaType, JSONMediaType, ) from pyopenapi3.data_types import ( Email, Int64, String, Component, Array ) from pyopenapi3.schemas import ( MediaTypeObject, Int64DTSchema, ReferenceObject, ArrayDTSchema, A...
true
true
1c38c159ae02da710e19c4593c15a0eaa92ab01e
3,528
py
Python
python-midonetclient/src/midonetclient/neutron/chain_rule.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
python-midonetclient/src/midonetclient/neutron/chain_rule.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
python-midonetclient/src/midonetclient/neutron/chain_rule.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
1
2018-10-25T05:52:05.000Z
2018-10-25T05:52:05.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2014 Midokura Europe SARL, All Rights Reserved. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://w...
34.252427
76
0.673186
import logging from midonetclient import url_provider from midonetclient import util from midonetclient import vendor_media_type as mt LOG = logging.getLogger(__name__) class ChainRuleUrlProviderMixin(url_provider.UrlProviderMixin): def chain_url(self, chain_id): return self.template_url("chain_templ...
true
true
1c38c2d8958f5e1c652a51619a36b079c004fd36
37,135
py
Python
cinder/volume/drivers/pure.py
tlakshman26/cinder-https-changes
c688a0af521e8679ac8f68d3dd035fe998e736d3
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/pure.py
tlakshman26/cinder-https-changes
c688a0af521e8679ac8f68d3dd035fe998e736d3
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/pure.py
tlakshman26/cinder-https-changes
c688a0af521e8679ac8f68d3dd035fe998e736d3
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Pure Storage, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
39.547391
79
0.604632
import math import re import uuid from oslo_config import cfg from oslo_log import log as logging from oslo_utils import excutils from oslo_utils import units from cinder import exception from cinder.i18n import _, _LE, _LI, _LW from cinder import objects from cinder import utils from cinder.volume import driver fro...
true
true
1c38c2dcd187ff71b618077eaaff3992fe8344e0
7,427
py
Python
tests/micro/qemu/test_zephyr.py
zhenlohuang/tvm
fd2e6d17120a79533852c6bb705429d9c7bc286b
[ "Apache-2.0" ]
1
2021-06-08T11:55:55.000Z
2021-06-08T11:55:55.000Z
tests/micro/qemu/test_zephyr.py
zhenlohuang/tvm
fd2e6d17120a79533852c6bb705429d9c7bc286b
[ "Apache-2.0" ]
null
null
null
tests/micro/qemu/test_zephyr.py
zhenlohuang/tvm
fd2e6d17120a79533852c6bb705429d9c7bc286b
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.586207
99
0.667834
import contextlib import copy import datetime import glob import os import subprocess import sys import pytest import numpy as np import tvm import tvm.rpc import tvm.micro import tvm.relay as relay from tvm.micro.contrib import zephyr from tvm.contrib import utils BUILD = True DEBUG = False TARGET = None def ...
true
true
1c38c3384d90c21d61e7e321827695822dca8ba3
1,590
py
Python
tests/performance_boundaries.py
noah-ziethen/py-pde
b88e86439290c31284a4ac665a8e9ff34d08b494
[ "MIT" ]
null
null
null
tests/performance_boundaries.py
noah-ziethen/py-pde
b88e86439290c31284a4ac665a8e9ff34d08b494
[ "MIT" ]
null
null
null
tests/performance_boundaries.py
noah-ziethen/py-pde
b88e86439290c31284a4ac665a8e9ff34d08b494
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from pathlib import Path PACKAGE_PATH = Path(__file__).resolve().parents[1] sys.path.append(str(PACKAGE_PATH)) import numpy as np from pde import UnitGrid, ScalarField from pde.grids.boundaries.axes import Boundaries from pde.tools.misc import estimate_computation_speed def main...
30.576923
77
0.591824
import sys from pathlib import Path PACKAGE_PATH = Path(__file__).resolve().parents[1] sys.path.append(str(PACKAGE_PATH)) import numpy as np from pde import UnitGrid, ScalarField from pde.grids.boundaries.axes import Boundaries from pde.tools.misc import estimate_computation_speed def main(): print('Reports ...
true
true
1c38c3c9be5af7fa0cb76dea02e8fa8c675d90e3
1,466
py
Python
lsml/util/test/test_distance_transform.py
sandeepdas05/lsm-crack-width
38460e514d48f3424bb8d3bd58cb3eb330153e64
[ "BSD-3-Clause" ]
24
2020-01-30T15:53:33.000Z
2022-01-15T09:46:24.000Z
lsml/util/test/test_distance_transform.py
sandeepdas05/lsm-crack-width
38460e514d48f3424bb8d3bd58cb3eb330153e64
[ "BSD-3-Clause" ]
null
null
null
lsml/util/test/test_distance_transform.py
sandeepdas05/lsm-crack-width
38460e514d48f3424bb8d3bd58cb3eb330153e64
[ "BSD-3-Clause" ]
13
2019-12-05T08:32:11.000Z
2022-03-20T03:12:03.000Z
import unittest import numpy as np from lsml.util.distance_transform import ( distance_transform) class TestDistanceTransform(unittest.TestCase): def test_distance_transform(self): arr = np.r_[-1, -1, 1, -1, -1.] dist, mask = distance_transform(arr, band=1, dx=[1.]) true_dist = np...
27.148148
76
0.579127
import unittest import numpy as np from lsml.util.distance_transform import ( distance_transform) class TestDistanceTransform(unittest.TestCase): def test_distance_transform(self): arr = np.r_[-1, -1, 1, -1, -1.] dist, mask = distance_transform(arr, band=1, dx=[1.]) true_dist = np...
true
true
1c38c4f6facdf89d6944b5e36cd8a47770f49d78
1,735
py
Python
yzrpc/schema.py
ml444/yz-rpc
f3b6cb76dab72e1763d759080854c11aa6ade872
[ "Apache-2.0" ]
5
2021-04-28T09:12:04.000Z
2021-11-25T13:50:32.000Z
yzrpc/schema.py
ml444/yz-rpc
f3b6cb76dab72e1763d759080854c11aa6ade872
[ "Apache-2.0" ]
null
null
null
yzrpc/schema.py
ml444/yz-rpc
f3b6cb76dab72e1763d759080854c11aa6ade872
[ "Apache-2.0" ]
2
2021-07-27T04:11:51.000Z
2022-01-06T09:36:06.000Z
#!/usr/bin/python3.7+ # -*- coding:utf-8 -*- from typing import Tuple from pydantic.main import BaseModel from yzrpc.proto import __proto_meta__, Protobuf class SchemaMeta(type): def __new__(cls, cls_name: str, bases: Tuple, cls_dict: dict): if not bases or object in bases: return super().__n...
30.438596
83
0.618444
from typing import Tuple from pydantic.main import BaseModel from yzrpc.proto import __proto_meta__, Protobuf class SchemaMeta(type): def __new__(cls, cls_name: str, bases: Tuple, cls_dict: dict): if not bases or object in bases: return super().__new__(cls, cls_name, bases, cls_dict) ...
true
true
1c38c50dc1a147195769659ce2b2a6375f5fd9a1
101,789
py
Python
tests/unit/conftest.py
biorack/metatlas
ce3f03817a0a7c5500452689ad587ce94af26a1a
[ "BSD-3-Clause" ]
8
2016-08-10T22:29:39.000Z
2021-04-06T22:49:46.000Z
tests/unit/conftest.py
biorack/metatlas
ce3f03817a0a7c5500452689ad587ce94af26a1a
[ "BSD-3-Clause" ]
111
2016-04-27T23:18:12.000Z
2022-03-15T23:55:52.000Z
tests/unit/conftest.py
biorack/metatlas
ce3f03817a0a7c5500452689ad587ce94af26a1a
[ "BSD-3-Clause" ]
9
2016-08-21T16:23:02.000Z
2021-04-06T22:49:50.000Z
""" per-directory pytest configuration fixtures used across multiple files should go in here """ # pylint: disable=missing-function-docstring,unused-argument,line-too-long,too-many-lines,too-many-arguments import getpass import logging import os import sqlite3 import threading from datetime import datetime import py...
45.645291
1,115
0.518199
import getpass import logging import os import sqlite3 import threading from datetime import datetime import pytest import numpy as np import pandas as pd from metatlas.datastructures import metatlas_dataset as mads from metatlas.datastructures import metatlas_objects as metob from metatlas.datastructures import ob...
true
true
1c38c6e2555cdc9fef807ccf4fe2adf10311bc9a
13,688
py
Python
tensorflow_text/python/ops/bert_tokenizer_test.py
hashim361/text
141ed3ae72078a5da431831ce718c8d09fbf4f92
[ "Apache-2.0" ]
1
2020-10-10T14:10:07.000Z
2020-10-10T14:10:07.000Z
tensorflow_text/python/ops/bert_tokenizer_test.py
pranayjoshi/text
5a12211ac370f989ca359d232d3081a889e859dd
[ "Apache-2.0" ]
null
null
null
tensorflow_text/python/ops/bert_tokenizer_test.py
pranayjoshi/text
5a12211ac370f989ca359d232d3081a889e859dd
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 TF.Text 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 applicable law or ag...
31.179954
80
0.512566
from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl.testing import parameterized from tensorflow.python.framework import constant_op from tensorflow.python.framework import dtypes from tensorflow.python.framework import test_util from tensorflow.pyt...
true
true
1c38c88dcbb721938ada5fea44e2f9d10ead5848
1,957
py
Python
src/remake/operators/condition.py
MVilstrup/remake
ddeacae55ef3c329a7780c9ad4e508833cd9112e
[ "MIT" ]
null
null
null
src/remake/operators/condition.py
MVilstrup/remake
ddeacae55ef3c329a7780c9ad4e508833cd9112e
[ "MIT" ]
null
null
null
src/remake/operators/condition.py
MVilstrup/remake
ddeacae55ef3c329a7780c9ad4e508833cd9112e
[ "MIT" ]
null
null
null
import sys from functools import partial, lru_cache from remake.errors import ConditionRuntimeError, ConditionTooBroadError, InvalidConditionLocationError from remake.operators.base import BaseOperator from remake.utils import get_info class ConditionOperator(BaseOperator): START = "inputs" GROUPS = "groups"...
36.924528
105
0.701073
import sys from functools import partial, lru_cache from remake.errors import ConditionRuntimeError, ConditionTooBroadError, InvalidConditionLocationError from remake.operators.base import BaseOperator from remake.utils import get_info class ConditionOperator(BaseOperator): START = "inputs" GROUPS = "groups"...
true
true
1c38c8be779aad6c2630ee32ebf7313bb888d8e3
869
py
Python
drfexample/bookmarks/migrations/0002_auto_20190306_1630.py
craigderington/django-drf-examples
24e3abbdfcd5e5d3fbea9df54f80e41157194339
[ "Apache-2.0" ]
null
null
null
drfexample/bookmarks/migrations/0002_auto_20190306_1630.py
craigderington/django-drf-examples
24e3abbdfcd5e5d3fbea9df54f80e41157194339
[ "Apache-2.0" ]
4
2019-09-17T05:45:01.000Z
2021-06-10T21:15:07.000Z
drfexample/bookmarks/migrations/0002_auto_20190306_1630.py
craigderington/django-drf-examples
24e3abbdfcd5e5d3fbea9df54f80e41157194339
[ "Apache-2.0" ]
1
2020-04-25T06:48:34.000Z
2020-04-25T06:48:34.000Z
# Generated by Django 2.1.7 on 2019-03-06 16:30 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('bookmarks', '0001_initial'), ] operations = [ migrations.AlterField( ...
28.032258
136
0.61565
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('bookmarks', '0001_initial'), ] operations = [ migrations.AlterField( model_name='bookmark', name='...
true
true
1c38c8e85d5428ec424cf33acc88a75d728a55d7
1,180
py
Python
chapter5/demo/code/5-3_neural_network.py
hitaitengteng/python
4e07fe6755ef1e0e0c1193249446e5246c89236e
[ "MIT" ]
null
null
null
chapter5/demo/code/5-3_neural_network.py
hitaitengteng/python
4e07fe6755ef1e0e0c1193249446e5246c89236e
[ "MIT" ]
null
null
null
chapter5/demo/code/5-3_neural_network.py
hitaitengteng/python
4e07fe6755ef1e0e0c1193249446e5246c89236e
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- # 使用神经网络算法预测销量高低 import pandas as pd # 参数初始化 inputfile = '../data/sales_data.xls' data = pd.read_excel(inputfile, index_col=u'序号') # 导入数据 # 数据是类别标签,要将它转换为数据 # 用1来表示“好”、“是”、“高”这三个属性,用0来表示“坏”、“否”、“低” data[data == u'好'] = 1 data[data == u'是'] = 1 data[data == u'高'] = 1 data[data != 1] = 0 x = da...
30.25641
66
0.717797
import pandas as pd inputfile = '../data/sales_data.xls' data = pd.read_excel(inputfile, index_col=u'序号') data[data == u'好'] = 1 data[data == u'是'] = 1 data[data == u'高'] = 1 data[data != 1] = 0 x = data.iloc[:, :3].as_matrix().astype(int) y = data.iloc[:, 3].as_matrix().astype(int) from keras.models import Sequen...
true
true
1c38c9ad283531a271d1e7b3025f31ceae3f7b89
3,629
py
Python
playbooks/enumerate/interesting_files.py
Pheelbert/phcat
5a97b2033a733f9be217863f33bc442aee8a419b
[ "MIT" ]
null
null
null
playbooks/enumerate/interesting_files.py
Pheelbert/phcat
5a97b2033a733f9be217863f33bc442aee8a419b
[ "MIT" ]
null
null
null
playbooks/enumerate/interesting_files.py
Pheelbert/phcat
5a97b2033a733f9be217863f33bc442aee8a419b
[ "MIT" ]
null
null
null
from typing import List, Tuple from pheelshell import Pheelshell from playbooks.playbook import Playbook class EnumerateInterestingFiles(Playbook): @staticmethod def description(): return 'Finds interesting files that your user has some access to.' def __init__(self): super().__init__() ...
43.202381
162
0.622761
from typing import List, Tuple from pheelshell import Pheelshell from playbooks.playbook import Playbook class EnumerateInterestingFiles(Playbook): @staticmethod def description(): return 'Finds interesting files that your user has some access to.' def __init__(self): super().__init__() ...
true
true
1c38c9cd1a04d923a16609354e9b9b3da40f76c4
602
py
Python
var/spack/repos/builtin/packages/ngmlr/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/ngmlr/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-01-11T20:11:52.000Z
2019-01-11T20:11:52.000Z
var/spack/repos/builtin/packages/ngmlr/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-10-14T14:20:17.000Z
2020-10-14T14:20:17.000Z
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Ngmlr(CMakePackage): """Ngmlr is a long-read mapper designed to align PacBilo or Oxford ...
33.444444
73
0.722591
from spack import * class Ngmlr(CMakePackage): homepage = "https://github.com/philres/ngmlr" url = "https://github.com/philres/ngmlr/archive/v0.2.5.tar.gz" version('0.2.5', '1b2b1aaeb6a3accc8b9f3e5c29e77037')
true
true
1c38ca4dc80aa711ec0a11c3a3887d15fac2da33
195
py
Python
micasa/admin.py
kode-ai/JIRANI
cc31397fa9834da17d8fbba210fd6e29b904b118
[ "MIT" ]
null
null
null
micasa/admin.py
kode-ai/JIRANI
cc31397fa9834da17d8fbba210fd6e29b904b118
[ "MIT" ]
2
2021-06-10T22:20:59.000Z
2021-09-08T01:28:01.000Z
micasa/admin.py
kode-ai/JIRANI
cc31397fa9834da17d8fbba210fd6e29b904b118
[ "MIT" ]
1
2020-02-27T07:05:21.000Z
2020-02-27T07:05:21.000Z
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Hood) admin.site.register(Profile) admin.site.register(Business) admin.site.register(Post)
24.375
32
0.805128
from django.contrib import admin from .models import * admin.site.register(Hood) admin.site.register(Profile) admin.site.register(Business) admin.site.register(Post)
true
true
1c38ca4f0b0b985f7ba75056ec5c7c6e2582f6e6
1,120
py
Python
tests/funding_sources/test_funding_sources_program_gateway_create.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
tests/funding_sources/test_funding_sources_program_gateway_create.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
tests/funding_sources/test_funding_sources_program_gateway_create.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
import unittest from tests.lib.client import get_client from tests.lib.funding_sources import FundingSources from tests.lib.funding_source_verifications import verify_gateway_program_funding_source_response from marqeta.errors import MarqetaError class TestFundingSourceProgramGatewayCreate(unittest.TestCase): ""...
32.941176
97
0.748214
import unittest from tests.lib.client import get_client from tests.lib.funding_sources import FundingSources from tests.lib.funding_source_verifications import verify_gateway_program_funding_source_response from marqeta.errors import MarqetaError class TestFundingSourceProgramGatewayCreate(unittest.TestCase): @...
true
true
1c38ca8010cf51027ddcb508bb923252c7aac578
2,771
py
Python
scripts/run_frontend_tests.py
carolinajimenez26/oppia
8a8f07e37e11beb441a53635530e1d3cebe6beef
[ "Apache-2.0" ]
1
2019-11-05T09:32:39.000Z
2019-11-05T09:32:39.000Z
scripts/run_frontend_tests.py
TakorLucila/oppia
393a81474ddc02b7141eed80f33c720cde447517
[ "Apache-2.0" ]
13
2019-03-04T18:29:27.000Z
2019-08-24T23:27:36.000Z
scripts/run_frontend_tests.py
TakorLucila/oppia
393a81474ddc02b7141eed80f33c720cde447517
[ "Apache-2.0" ]
1
2020-10-04T06:54:41.000Z
2020-10-04T06:54:41.000Z
# Copyright 2019 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
31.850575
78
0.708409
from __future__ import absolute_import from __future__ import unicode_literals import argparse import os import subprocess import python_utils from . import build from . import common from . import install_third_party_libs from . import setup from . import setup_gae _PARSER = argparse.ArgumentParser(description=...
true
true
1c38cac45be561ac81e1260eb4cda1d43f3cefaa
5,525
py
Python
xero_python/payrolluk/models/earnings_order.py
sromero84/xero-python
89558c0baa8080c3f522701eb1b94f909248dbd7
[ "MIT" ]
null
null
null
xero_python/payrolluk/models/earnings_order.py
sromero84/xero-python
89558c0baa8080c3f522701eb1b94f909248dbd7
[ "MIT" ]
null
null
null
xero_python/payrolluk/models/earnings_order.py
sromero84/xero-python
89558c0baa8080c3f522701eb1b94f909248dbd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Xero Payroll UK This is the Xero Payroll API for orgs in the UK region. # noqa: E501 OpenAPI spec version: 2.3.4 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel class EarningsOrder(Ba...
28.776042
114
0.628959
import re from xero_python.models import BaseModel class EarningsOrder(BaseModel): openapi_types = { "id": "str", "name": "str", "statutory_deduction_category": "StatutoryDeductionCategory", "liability_account_id": "str", "current_record": "bool", } attribute...
true
true
1c38cb38e1d009b37783b5306145cc7c6a958358
3,311
py
Python
pyteiser/wrappers/preprocess_custom_expression_profile.py
goodarzilab/pyteiser
3ac78604c768957022cc7751ccdd337960a816f2
[ "MIT" ]
6
2020-12-01T08:10:07.000Z
2022-01-17T02:09:13.000Z
pyteiser/wrappers/preprocess_custom_expression_profile.py
goodarzilab/pyteiser
3ac78604c768957022cc7751ccdd337960a816f2
[ "MIT" ]
4
2021-05-19T06:24:30.000Z
2022-01-27T20:18:44.000Z
pyteiser/wrappers/preprocess_custom_expression_profile.py
goodarzilab/pyteiser
3ac78604c768957022cc7751ccdd337960a816f2
[ "MIT" ]
5
2020-07-04T02:05:30.000Z
2021-06-26T10:24:16.000Z
import numpy as np import pandas as pd import argparse from .. import IO def handler(raw_args = None): parser = argparse.ArgumentParser() parser.add_argument("--rna_bin_file", help="binarized sequence file", type=str) parser.add_argument("--exp_values_file", help="expression values in a csv format", typ...
39.891566
159
0.740562
import numpy as np import pandas as pd import argparse from .. import IO def handler(raw_args = None): parser = argparse.ArgumentParser() parser.add_argument("--rna_bin_file", help="binarized sequence file", type=str) parser.add_argument("--exp_values_file", help="expression values in a csv format", typ...
true
true
1c38cc555b631ea1f4f20f9527e9744aeeb5bda1
2,928
py
Python
font.py
SnorlaxH/neodgm
72844d6a32a6ba6c4064b03bc19ebe21d92037ed
[ "WTFPL" ]
null
null
null
font.py
SnorlaxH/neodgm
72844d6a32a6ba6c4064b03bc19ebe21d92037ed
[ "WTFPL" ]
null
null
null
font.py
SnorlaxH/neodgm
72844d6a32a6ba6c4064b03bc19ebe21d92037ed
[ "WTFPL" ]
null
null
null
import os import sys import glob import fontforge if len(sys.argv) < 2: print('Expected a version string as the first argument.') sys.exit(1) # # These tables are used to combine hangul syllable characters. # cho_tbl = [ [0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 3, 3, 1, 2, 4, 4, 4, 2, 1, 3, 0], [5, 5, 5, 5, 5,...
25.911504
78
0.612363
import os import sys import glob import fontforge if len(sys.argv) < 2: print('Expected a version string as the first argument.') sys.exit(1) cho_tbl = [ [0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 3, 3, 1, 2, 4, 4, 4, 2, 1, 3, 0], [5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 7, 7, 6, 6, 7, 7, 7, 6, 6, 7, 5] ] jung_tbl = [0, 1...
true
true
1c38cc6e68364eecde6dbfe7df3828874708e5bf
1,335
py
Python
setup.py
KingNonso/django-paystack
15cfccd54cf4d6aa45d52c492394280339aca3ca
[ "MIT" ]
null
null
null
setup.py
KingNonso/django-paystack
15cfccd54cf4d6aa45d52c492394280339aca3ca
[ "MIT" ]
null
null
null
setup.py
KingNonso/django-paystack
15cfccd54cf4d6aa45d52c492394280339aca3ca
[ "MIT" ]
null
null
null
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-paystack', ve...
35.131579
78
0.6397
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-paystack', version='0.2', packages=find_packages()...
true
true
1c38cf6402df531be865106d96fa9846fd8c5086
1,622
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/wsgi.py
huogerac/cookiecutter-django-simplesite
1b332aa1668b85b34dd486c451d1489abc8a719e
[ "BSD-3-Clause" ]
1
2016-10-22T22:42:24.000Z
2016-10-22T22:42:24.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/wsgi.py
huogerac/cookiecutter-django-simplesite
1b332aa1668b85b34dd486c451d1489abc8a719e
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/wsgi.py
huogerac/cookiecutter-django-simplesite
1b332aa1668b85b34dd486c451d1489abc8a719e
[ "BSD-3-Clause" ]
null
null
null
""" WSGI config for {{ cookiecutter.project_slug }} project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via t...
41.589744
102
0.800863
import os from os.path import abspath, dirname from sys import path SITE_ROOT = dirname(dirname(abspath(__file__))) path.append(SITE_ROOT) from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ cookiecutter.project_slug }}.settings.production") # setting points here. ...
true
true
1c38d23c0dff02c34905f15172951975a609a35b
4,537
py
Python
eval_segmentation.py
CheesyB/cpointnet
bcb3eaa44e50fc643e2b226457f4f583989664a9
[ "MIT" ]
null
null
null
eval_segmentation.py
CheesyB/cpointnet
bcb3eaa44e50fc643e2b226457f4f583989664a9
[ "MIT" ]
null
null
null
eval_segmentation.py
CheesyB/cpointnet
bcb3eaa44e50fc643e2b226457f4f583989664a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import glob import os import numpy as np import random import time import datetime import torch import torch.optim as optim from torch.autograd import Variable from pathlib import Path from torch.autograd import Variable from dataset.scenedataset import Sce...
34.633588
100
0.642495
import logging import glob import os import numpy as np import random import time import datetime import torch import torch.optim as optim from torch.autograd import Variable from pathlib import Path from torch.autograd import Variable from dataset.scenedataset import SceneDataset from pointnet import PointNetDenseC...
true
true
1c38d3247046cb64c3723310257d23830803db72
7,216
py
Python
src/resources/crawlerResource.py
juliangruendner/ketos_preprocessing
b56f2fd6efe3e9156959b9bafe9b5550214ea65a
[ "MIT" ]
2
2018-07-05T15:37:47.000Z
2018-09-24T18:11:20.000Z
src/resources/crawlerResource.py
juliangruendner/ketos_preprocessing
b56f2fd6efe3e9156959b9bafe9b5550214ea65a
[ "MIT" ]
null
null
null
src/resources/crawlerResource.py
juliangruendner/ketos_preprocessing
b56f2fd6efe3e9156959b9bafe9b5550214ea65a
[ "MIT" ]
null
null
null
from flask_restful import reqparse, abort from flask_restful_swagger_2 import swagger, Resource from resources import aggregationResource import configuration from flask import request from lib import mongodbConnection, crawler from bson.objectid import ObjectId from bson import json_util from datetime import datetime ...
34.859903
166
0.575388
from flask_restful import reqparse, abort from flask_restful_swagger_2 import swagger, Resource from resources import aggregationResource import configuration from flask import request from lib import mongodbConnection, crawler from bson.objectid import ObjectId from bson import json_util from datetime import datetime ...
true
true
1c38d5197986669398b23b7516d88f9ff6dafa61
18,451
py
Python
python/paddle/__init__.py
heliqi/Paddle
feb0ed1b912b66de55c30d8af1ccc61cc1fdf59b
[ "Apache-2.0" ]
null
null
null
python/paddle/__init__.py
heliqi/Paddle
feb0ed1b912b66de55c30d8af1ccc61cc1fdf59b
[ "Apache-2.0" ]
9
2021-08-03T11:39:03.000Z
2021-09-16T08:03:58.000Z
python/paddle/__init__.py
heliqi/Paddle
feb0ed1b912b66de55c30d8af1ccc61cc1fdf59b
[ "Apache-2.0" ]
1
2021-07-15T09:23:23.000Z
2021-07-15T09:23:23.000Z
# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
35.346743
90
0.643813
try: from paddle.version import full_version as __version__ from paddle.version import commit as __git_commit__ except ImportError: import sys sys.stderr.write('''Warning with import paddle: you should not import paddle from the source directory; please install paddlepaddle*.whl firstly.''' ...
true
true
1c38d75d08ff1af24cc784a0ef6f11ff30d07729
273
py
Python
python/design_patterns/env/lib/python3.7/site-packages/sphinxcontrib/htmlhelp/version.py
lmregus/Portfolio
9a751443edbfe5ff2b47cdeacca86761ed03e81f
[ "MIT" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
venv/lib/python3.6/site-packages/sphinxcontrib/htmlhelp/version.py
metu-sparg/higrid
ebee0f35ea1712a01f3fdbaae132127ce4833baf
[ "BSD-3-Clause" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
python/design_patterns/env/lib/python3.7/site-packages/sphinxcontrib/htmlhelp/version.py
lmregus/Portfolio
9a751443edbfe5ff2b47cdeacca86761ed03e81f
[ "MIT" ]
5
2019-04-27T01:19:47.000Z
2020-09-20T15:15:19.000Z
""" sphinxcontrib.htmlhelp.version ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2007-2019 by the Sphinx team, see README. :license: BSD, see LICENSE for details. """ __version__ = '1.0.1' __version_info__ = tuple(map(int, __version__.split('.')))
24.818182
67
0.604396
__version__ = '1.0.1' __version_info__ = tuple(map(int, __version__.split('.')))
true
true
1c38d7a1a902eec01def757b468cfc26b6556730
8,788
py
Python
plugins/callbacks.py
midhunsaji/emmawatsonfilter1bot
947c1649653f8421adb6ce4c1cfd64624ce43835
[ "MIT" ]
null
null
null
plugins/callbacks.py
midhunsaji/emmawatsonfilter1bot
947c1649653f8421adb6ce4c1cfd64624ce43835
[ "MIT" ]
null
null
null
plugins/callbacks.py
midhunsaji/emmawatsonfilter1bot
947c1649653f8421adb6ce4c1cfd64624ce43835
[ "MIT" ]
1
2021-12-31T02:30:44.000Z
2021-12-31T02:30:44.000Z
import os import ast from pyrogram import Client as trojanz from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton if bool(os.environ.get("WEBHOOK", False)): from sample_config import Config else: from config import Config from script import Script from database.filters_mdb import del_all, fin...
30.943662
104
0.517865
import os import ast from pyrogram import Client as trojanz from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton if bool(os.environ.get("WEBHOOK", False)): from sample_config import Config else: from config import Config from script import Script from database.filters_mdb import del_all, fin...
true
true
1c38d890af8cbf094361f06350486336a75eaec7
899
py
Python
accounts/models.py
DevangS/CoralNet
7c56d4ec95a771718175bd94c3ef51c4095082e3
[ "BSD-2-Clause" ]
4
2015-12-23T05:14:35.000Z
2019-07-09T03:27:10.000Z
accounts/models.py
DevangS/CoralNet
7c56d4ec95a771718175bd94c3ef51c4095082e3
[ "BSD-2-Clause" ]
3
2015-04-07T02:45:15.000Z
2015-07-01T19:25:10.000Z
accounts/models.py
DevangS/CoralNet
7c56d4ec95a771718175bd94c3ef51c4095082e3
[ "BSD-2-Clause" ]
2
2016-01-21T17:25:48.000Z
2019-08-29T18:42:14.000Z
from django.db import models from django.utils.translation import ugettext_lazy as _ from userena.models import UserenaLanguageBaseProfile from userena.models import User class Profile(UserenaLanguageBaseProfile): user = models.OneToOneField(User, unique = True, verbose_name = _('user'),related_name = 'my_profile'...
49.944444
116
0.756396
from django.db import models from django.utils.translation import ugettext_lazy as _ from userena.models import UserenaLanguageBaseProfile from userena.models import User class Profile(UserenaLanguageBaseProfile): user = models.OneToOneField(User, unique = True, verbose_name = _('user'),related_name = 'my_profile'...
true
true
1c38d961b79a4b3c0fee5af2ed73a4459bd5b507
2,988
py
Python
pyvisdk/client.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/client.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/client.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
''' Created on Mar 6, 2011 @author: eplaster ''' from suds import MethodNotFound import logging import os.path import suds import urllib log = logging.getLogger(__name__) log.setLevel(logging.INFO) WSDL_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'wsdl') class SudsClientFactory(object): _clie...
32.129032
124
0.60241
from suds import MethodNotFound import logging import os.path import suds import urllib log = logging.getLogger(__name__) log.setLevel(logging.INFO) WSDL_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'wsdl') class SudsClientFactory(object): _client = None _sms_client = None @classmethod ...
true
true
1c38db8cad4fa2f949d9f9b56d2d2eded4eb5d08
1,240
py
Python
code_samples/main_plotly_widget.py
lcopey/node_editor
04d56ae4c7f2149e46903d5dd2e46f3906ef69e6
[ "MIT" ]
1
2021-04-30T11:28:42.000Z
2021-04-30T11:28:42.000Z
code_samples/main_plotly_widget.py
lcopey/node_editor
04d56ae4c7f2149e46903d5dd2e46f3906ef69e6
[ "MIT" ]
null
null
null
code_samples/main_plotly_widget.py
lcopey/node_editor
04d56ae4c7f2149e46903d5dd2e46f3906ef69e6
[ "MIT" ]
null
null
null
from PyQt5 import QtCore, QtWidgets, QtWebEngineWidgets from PyQt5.QtWebEngineWidgets import QWebEngineView import plotly.express as px #pip : # pyqt5 5.15.2 # plotly 4.14.3 # pyqtwebengine 5.15.2 # pip # pyqt5 : 5.15.2 # plotly : 4.14.3 # pyqtwebengine : 5.15.2 cl...
28.837209
95
0.641129
from PyQt5 import QtCore, QtWidgets, QtWebEngineWidgets from PyQt5.QtWebEngineWidgets import QWebEngineView import plotly.express as px class Widget(QtWidgets.QWidget): def __init__(self, parent=None): super().__init__(parent) self.button = QtWidgets.QPushButton('Plot', self) self.browse...
true
true
1c38dccf149299beb8f21628c857cbba419d3635
1,839
py
Python
mkt/purchase/webpay_tasks.py
chrisdavidmills/zamboni
09e05bad2570663d25408793289c81324d3e952e
[ "BSD-3-Clause" ]
null
null
null
mkt/purchase/webpay_tasks.py
chrisdavidmills/zamboni
09e05bad2570663d25408793289c81324d3e952e
[ "BSD-3-Clause" ]
null
null
null
mkt/purchase/webpay_tasks.py
chrisdavidmills/zamboni
09e05bad2570663d25408793289c81324d3e952e
[ "BSD-3-Clause" ]
1
2021-03-13T00:33:12.000Z
2021-03-13T00:33:12.000Z
import logging from celeryutils import task from jingo.helpers import datetime from tower import ugettext as _ import amo from amo.decorators import write from amo.helpers import absolutify from amo.urlresolvers import reverse from amo.utils import get_locale_from_lang, send_html_mail_jinja from stats.models import C...
36.058824
73
0.656879
import logging from celeryutils import task from jingo.helpers import datetime from tower import ugettext as _ import amo from amo.decorators import write from amo.helpers import absolutify from amo.urlresolvers import reverse from amo.utils import get_locale_from_lang, send_html_mail_jinja from stats.models import C...
true
true
1c38ddf16aa8af9fd8d109632806264210930a3c
8,795
py
Python
readers/caption_graph_reader.py
yekeren/WSSGG
4d20dadffe7584ac2c7f26419960512380b8d06e
[ "Apache-2.0" ]
33
2021-04-14T01:27:34.000Z
2022-03-30T03:32:00.000Z
readers/caption_graph_reader.py
yekeren/WSSGG
4d20dadffe7584ac2c7f26419960512380b8d06e
[ "Apache-2.0" ]
null
null
null
readers/caption_graph_reader.py
yekeren/WSSGG
4d20dadffe7584ac2c7f26419960512380b8d06e
[ "Apache-2.0" ]
6
2021-04-14T14:43:19.000Z
2022-01-01T14:36:11.000Z
# Copyright 2020 Keren Ye, University of Pittsburgh # # 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...
35.18
80
0.66606
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from protos import reader_pb2 from tf_slim import tfexample_decoder from graph_nets import utils_tf from graph_nets.graphs import GraphsTuple def _parse_single_example(example, optio...
true
true
1c38de4ecdbdf4b3e8c0e08cbd427c35f5aa2c18
208
py
Python
directory_app/config.py
mdprewitt/sigmund_droid
aa33df7285f2ab468016c08c98505bc2f8436734
[ "MIT" ]
null
null
null
directory_app/config.py
mdprewitt/sigmund_droid
aa33df7285f2ab468016c08c98505bc2f8436734
[ "MIT" ]
null
null
null
directory_app/config.py
mdprewitt/sigmund_droid
aa33df7285f2ab468016c08c98505bc2f8436734
[ "MIT" ]
1
2017-05-31T16:34:36.000Z
2017-05-31T16:34:36.000Z
import os basedir = os.path.abspath(os.path.dirname(__file__)) SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'directory.db') SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
34.666667
78
0.764423
import os basedir = os.path.abspath(os.path.dirname(__file__)) SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'directory.db') SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
true
true
1c38df0326d8b746f40fd4e79b8d48711c60488c
15,455
py
Python
oscar/lib/python2.7/site-packages/dns/rdata.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/dns/rdata.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/dns/rdata.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2001-2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PRO...
33.671024
79
0.604465
from io import BytesIO import base64 import binascii import dns.exception import dns.name import dns.rdataclass import dns.rdatatype import dns.tokenizer import dns.wiredata from ._compat import xrange, string_types, text_type _hex_chunksize = 32 def _hexify(data, chunksize=_hex_chunksize): ...
true
true
1c38df18a2327e94efde55196d9aed1303aa21ac
51
py
Python
src/medias/__init__.py
jhernandez18p/backend-lmp
853e274f37fe8b3c6f811a4ccd8f33bf020015d2
[ "MIT" ]
14
2019-10-03T19:37:30.000Z
2019-10-16T02:12:32.000Z
src/medias/__init__.py
jhernandez18p/backend-lmp
853e274f37fe8b3c6f811a4ccd8f33bf020015d2
[ "MIT" ]
6
2020-02-11T23:20:46.000Z
2022-03-11T23:32:23.000Z
src/medias/__init__.py
jhernandez18p/backend-lmp
853e274f37fe8b3c6f811a4ccd8f33bf020015d2
[ "MIT" ]
null
null
null
default_app_config = 'src.medias.apps.MediasConfig'
51
51
0.843137
default_app_config = 'src.medias.apps.MediasConfig'
true
true
1c38dfcb0c4a00f686e8e705afe804167a437737
7,944
py
Python
jarvis.py
vineelsai26/J.A.R.V.I.S
5866f73c0186687c1f0ca17b6e0fdd04d627265f
[ "MIT" ]
37
2020-10-04T13:34:16.000Z
2021-12-15T10:44:15.000Z
jarvis.py
vineelsai26/J.A.R.V.I.S
5866f73c0186687c1f0ca17b6e0fdd04d627265f
[ "MIT" ]
13
2020-10-04T12:22:48.000Z
2020-11-01T14:03:26.000Z
jarvis.py
vineelsai26/J.A.R.V.I.S
5866f73c0186687c1f0ca17b6e0fdd04d627265f
[ "MIT" ]
29
2020-10-04T14:02:14.000Z
2021-10-09T08:02:07.000Z
import pyttsx3 import wikipedia import speech_recognition as sr import webbrowser import datetime import os import sys import smtplib import psutil import pyjokes import pyautogui from news import speak_news, getNewsUrl from diction import translate from loc import weather from youtube import youtube from quote import ...
28.6787
94
0.563444
import pyttsx3 import wikipedia import speech_recognition as sr import webbrowser import datetime import os import sys import smtplib import psutil import pyjokes import pyautogui from news import speak_news, getNewsUrl from diction import translate from loc import weather from youtube import youtube from quote import ...
true
true
1c38dfd1af8fff86c7708e78abee25fcf5601814
1,431
py
Python
blog/tests.py
Psemp/artsetforme_public
240bb8ef22c0589f168b24c0ee5ed8e9030fe94a
[ "MIT" ]
null
null
null
blog/tests.py
Psemp/artsetforme_public
240bb8ef22c0589f168b24c0ee5ed8e9030fe94a
[ "MIT" ]
1
2021-10-08T22:20:09.000Z
2021-10-08T22:20:09.000Z
blog/tests.py
Psemp/artsetforme_public
240bb8ef22c0589f168b24c0ee5ed8e9030fe94a
[ "MIT" ]
null
null
null
from django.test import TestCase from backoffice.models import Topic from django.utils import timezone from django.urls import reverse from .models import Blogpost class BlogTest(TestCase): def setUp(self): self.category_1_info = { 'name': 'topic1', } Topic.objects.create...
30.446809
89
0.596785
from django.test import TestCase from backoffice.models import Topic from django.utils import timezone from django.urls import reverse from .models import Blogpost class BlogTest(TestCase): def setUp(self): self.category_1_info = { 'name': 'topic1', } Topic.objects.create...
true
true
1c38e17812cf212a45e39667811982b47fb89a65
1,473
py
Python
corehq/apps/commtrack/management/commands/check_multiple_parentage.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/commtrack/management/commands/check_multiple_parentage.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/commtrack/management/commands/check_multiple_parentage.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
from django.core.management.base import BaseCommand from corehq.apps.domain.models import Domain from corehq.apps.locations.models import Location import csv class Command(BaseCommand): def handle(self, *args, **options): with open('parentage_results.csv', 'wb+') as csvfile: csv_writer = csv.w...
32.733333
72
0.401901
from django.core.management.base import BaseCommand from corehq.apps.domain.models import Domain from corehq.apps.locations.models import Location import csv class Command(BaseCommand): def handle(self, *args, **options): with open('parentage_results.csv', 'wb+') as csvfile: csv_writer = csv.w...
true
true
1c38e19e93cf4d8e629f1a1cad228bd6e23f1bd9
11,832
py
Python
051_East_Text_Detection/text_detection_video_openvino.py
IgiArdiyanto/PINTO_model_zoo
9247b56a7dff37f28a8a7822a7ef4dd9adf7234d
[ "MIT" ]
1,529
2019-12-11T13:36:23.000Z
2022-03-31T18:38:27.000Z
051_East_Text_Detection/text_detection_video_openvino.py
IgiArdiyanto/PINTO_model_zoo
9247b56a7dff37f28a8a7822a7ef4dd9adf7234d
[ "MIT" ]
200
2020-01-06T09:24:42.000Z
2022-03-31T17:29:08.000Z
051_East_Text_Detection/text_detection_video_openvino.py
IgiArdiyanto/PINTO_model_zoo
9247b56a7dff37f28a8a7822a7ef4dd9adf7234d
[ "MIT" ]
288
2020-02-21T14:56:02.000Z
2022-03-30T03:00:35.000Z
from imutils.video import VideoStream from imutils.video import FPS import numpy as np import argparse import imutils import time import cv2 import os try: from armv7l.openvino.inference_engine import IENetwork, IECore except: from openvino.inference_engine import IENetwork, IECore fpsstr = "" framecount = 0 t...
38.045016
149
0.634466
from imutils.video import VideoStream from imutils.video import FPS import numpy as np import argparse import imutils import time import cv2 import os try: from armv7l.openvino.inference_engine import IENetwork, IECore except: from openvino.inference_engine import IENetwork, IECore fpsstr = "" framecount = 0 t...
true
true
1c38e2c7aefebec42c213ec73e22b0e2e0d49554
1,135
py
Python
python-stdlib/ssl/setup.py
mkomon/micropython-lib
25ebe4a261e7b1c7c8471bceef2fd0e12837cdd2
[ "PSF-2.0" ]
1,556
2015-01-18T01:10:21.000Z
2022-03-31T23:27:33.000Z
python-stdlib/ssl/setup.py
Li-Lian1069/micropython-lib
1dfca5ad343b2841965df6c4e59f92d6d94a24bd
[ "PSF-2.0" ]
414
2015-01-01T09:01:22.000Z
2022-03-31T15:08:24.000Z
python-stdlib/ssl/setup.py
Li-Lian1069/micropython-lib
1dfca5ad343b2841965df6c4e59f92d6d94a24bd
[ "PSF-2.0" ]
859
2015-02-05T13:23:00.000Z
2022-03-28T02:28:16.000Z
import sys # Remove current dir from sys.path, otherwise setuptools will peek up our # module instead of system's. sys.path.pop(0) from setuptools import setup sys.path.append("..") import sdist_upip setup( name="micropython-ssl", version="0.1", description="Dummy ssl module for MicroPython", long_de...
45.4
490
0.757709
import sys sys.path.pop(0) from setuptools import setup sys.path.append("..") import sdist_upip setup( name="micropython-ssl", version="0.1", description="Dummy ssl module for MicroPython", long_description="This is a dummy implementation of a module for MicroPython standard library.\nIt contains zer...
true
true
1c38e33ae64f835b0c8934e37fcf8d2d6100be58
2,677
py
Python
scripts/import_csr_eeg.py
yhc29/eegdb
3c81921a549018aa0d669c77cd400640c2ca1c72
[ "MIT" ]
null
null
null
scripts/import_csr_eeg.py
yhc29/eegdb
3c81921a549018aa0d669c77cd400640c2ca1c72
[ "MIT" ]
null
null
null
scripts/import_csr_eeg.py
yhc29/eegdb
3c81921a549018aa0d669c77cd400640c2ca1c72
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '..') import os import random from datetime import datetime, timedelta from dateutil.relativedelta import relativedelta from multiprocessing.pool import ThreadPool import csv from Utils.timer import Timer from Eegdb.data_file import DataFile from Eegdb.eegdb import Eegdb import config....
35.223684
164
0.714606
import sys sys.path.insert(0, '..') import os import random from datetime import datetime, timedelta from dateutil.relativedelta import relativedelta from multiprocessing.pool import ThreadPool import csv from Utils.timer import Timer from Eegdb.data_file import DataFile from Eegdb.eegdb import Eegdb import config....
true
true
1c38e3923e3af9aa9fd3756c54ad05ccca71ff75
855
py
Python
cmsc-135/assignment-4/stadium_seating.py
joeypsmith/mc-projects
7082988f46036c336b37de25747cec69593156e3
[ "MIT" ]
null
null
null
cmsc-135/assignment-4/stadium_seating.py
joeypsmith/mc-projects
7082988f46036c336b37de25747cec69593156e3
[ "MIT" ]
null
null
null
cmsc-135/assignment-4/stadium_seating.py
joeypsmith/mc-projects
7082988f46036c336b37de25747cec69593156e3
[ "MIT" ]
null
null
null
#CMSC-135 Assignment 4: Stadium Seating #Programmer: Joseph Smith #Date: 3/2/2021 #Cost of each seat A_COST = 20 B_COST = 15 C_COST = 10 #Number of each seat aSeats = int(input("Enter count of A seats: ")) bSeats = int(input("Enter count of B seats: ")) cSeats = int(input("Enter count of C seats: ")) #Calculate inco...
24.428571
60
0.670175
A_COST = 20 B_COST = 15 C_COST = 10 aSeats = int(input("Enter count of A seats: ")) bSeats = int(input("Enter count of B seats: ")) cSeats = int(input("Enter count of C seats: ")) aIncome = float(aSeats * A_COST) bIncome = float(bSeats * B_COST) cIncome = float(cSeats * C_COST) def ShowIncome(a, b, c): prin...
true
true
1c38e393375be2e446618bdba6d55688060891ab
661
py
Python
examples/natel.py
romilly/reggie-dsl
cefe02acebcc3147bd976f91473a1e0e85ed7dac
[ "MIT" ]
1
2018-11-22T04:29:14.000Z
2018-11-22T04:29:14.000Z
examples/natel.py
romilly/reggie-dsl
cefe02acebcc3147bd976f91473a1e0e85ed7dac
[ "MIT" ]
1
2018-11-22T04:41:13.000Z
2018-11-22T04:41:13.000Z
examples/natel.py
romilly/reggie-dsl
cefe02acebcc3147bd976f91473a1e0e85ed7dac
[ "MIT" ]
null
null
null
from reggie.core import * d3 = multiple(digit, 3) d4 = d3 + digit international = name(optional(escape('+1')),'i') area = optional(osp + lp + name(d3,'area') + rp) local = osp + name(d3,'exchange') + dash + name(d4,'number') number = international + area + local def convert(text, area_default='123'): matched = m...
27.541667
61
0.635401
from reggie.core import * d3 = multiple(digit, 3) d4 = d3 + digit international = name(optional(escape('+1')),'i') area = optional(osp + lp + name(d3,'area') + rp) local = osp + name(d3,'exchange') + dash + name(d4,'number') number = international + area + local def convert(text, area_default='123'): matched = m...
true
true
1c38e54775ed5406e58b4f38865c4df2653ca4a2
678
py
Python
engine/client.py
aryaman0098/Record-Fetcher
93090e4eff40b7854a28cb603eb0c0eab2fc6e47
[ "MIT" ]
null
null
null
engine/client.py
aryaman0098/Record-Fetcher
93090e4eff40b7854a28cb603eb0c0eab2fc6e47
[ "MIT" ]
null
null
null
engine/client.py
aryaman0098/Record-Fetcher
93090e4eff40b7854a28cb603eb0c0eab2fc6e47
[ "MIT" ]
null
null
null
import sys from socket import * from protocol import * name=sys.argv[1] lang=sys.argv[2] email=sys.argv[3] phone=sys.argv[4] academic=sys.argv[5] other=sys.argv[6] auth=sys.argv[7] d={'name':name,'lang':lang,'email':email,'phone':phone,'academic':academic,'other':other,'auth':auth} for key in ['email','phone','...
19.941176
101
0.696165
import sys from socket import * from protocol import * name=sys.argv[1] lang=sys.argv[2] email=sys.argv[3] phone=sys.argv[4] academic=sys.argv[5] other=sys.argv[6] auth=sys.argv[7] d={'name':name,'lang':lang,'email':email,'phone':phone,'academic':academic,'other':other,'auth':auth} for key in ['email','phone','...
true
true
1c38e5c18e7249d59ec2dcd4084f1605730cbcc5
5,298
py
Python
kubernetes/client/models/v1_rolling_update_daemon_set.py
pllsxyc/python
442ebc019056c2dc246be94f85cf61f1e1d26a88
[ "Apache-2.0" ]
1
2019-10-07T13:54:36.000Z
2019-10-07T13:54:36.000Z
kubernetes/client/models/v1_rolling_update_daemon_set.py
pllsxyc/python
442ebc019056c2dc246be94f85cf61f1e1d26a88
[ "Apache-2.0" ]
8
2020-10-28T01:18:36.000Z
2021-06-11T01:06:15.000Z
kubernetes/client/models/v1_rolling_update_daemon_set.py
pllsxyc/python
442ebc019056c2dc246be94f85cf61f1e1d26a88
[ "Apache-2.0" ]
1
2021-03-16T16:05:33.000Z
2021-03-16T16:05:33.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
43.073171
852
0.662325
import pprint import re import six from kubernetes.client.configuration import Configuration class V1RollingUpdateDaemonSet(object): openapi_types = { 'max_unavailable': 'object' } attribute_map = { 'max_unavailable': 'maxUnavailable' } def __init__(self, max_unavailable=N...
true
true
1c38e71cf958ba8ee81d66f247f0a559745b91bb
181
py
Python
bin/linkEntropy.py
mikiec84/linkshop
72959ceca0003be226edeca6496f915502831596
[ "Apache-2.0" ]
6
2017-07-18T15:28:33.000Z
2020-03-03T14:45:45.000Z
bin/linkEntropy.py
mikiec84/linkshop
72959ceca0003be226edeca6496f915502831596
[ "Apache-2.0" ]
null
null
null
bin/linkEntropy.py
mikiec84/linkshop
72959ceca0003be226edeca6496f915502831596
[ "Apache-2.0" ]
3
2017-09-09T00:36:48.000Z
2020-03-03T14:45:49.000Z
#!/usr/bin/env python3 """Command-line wrapper for stats.cli_linkEntropy.""" import loadPath # Adds the project path. import linkograph.stats linkograph.stats.cli_linkEntropy()
20.111111
53
0.773481
import loadPath import linkograph.stats linkograph.stats.cli_linkEntropy()
true
true
1c38e7231d5c77c8bf1ca323c8fc43dd65c74f84
3,594
py
Python
lib/wrapper/faster_rcnn_wrapper.py
nikolaevra/tf-faster-rcnn
4a5a5f9cfd4dc6548ee9cf63f1122eadbc06ea39
[ "MIT" ]
null
null
null
lib/wrapper/faster_rcnn_wrapper.py
nikolaevra/tf-faster-rcnn
4a5a5f9cfd4dc6548ee9cf63f1122eadbc06ea39
[ "MIT" ]
null
null
null
lib/wrapper/faster_rcnn_wrapper.py
nikolaevra/tf-faster-rcnn
4a5a5f9cfd4dc6548ee9cf63f1122eadbc06ea39
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cv2 import os import tensorflow as tf from model.config import cfg from model.test import im_detect from nets.resnet_v1 import resnetv1 from nets.vgg16 import vgg16 from utils.timer import Timer CLASSE...
30.717949
94
0.584864
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cv2 import os import tensorflow as tf from model.config import cfg from model.test import im_detect from nets.resnet_v1 import resnetv1 from nets.vgg16 import vgg16 from utils.timer import Timer CLASSE...
true
true
1c38e83de610ddff4d22683d51874fa737b54bfb
65,385
py
Python
plotly/graph_objs/streamtube/_colorbar.py
paulamool/plotly.py
6121ac1f324e247e4e4b2964d65d7393377777c0
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/graph_objs/streamtube/_colorbar.py
paulamool/plotly.py
6121ac1f324e247e4e4b2964d65d7393377777c0
[ "MIT" ]
1
2020-12-15T16:56:11.000Z
2020-12-15T16:56:11.000Z
plotly/graph_objs/streamtube/_colorbar.py
skeptycal/plotly.py
2e5bf6e2f7c213295c405ece3e859f4d3f8030d1
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
from plotly.basedatatypes import BaseTraceHierarchyType import copy class ColorBar(BaseTraceHierarchyType): # bgcolor # ------- @property def bgcolor(self): """ Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex str...
36.815878
96
0.566323
from plotly.basedatatypes import BaseTraceHierarchyType import copy class ColorBar(BaseTraceHierarchyType): @property def bgcolor(self): return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): self['bgcolor'] = val @property def bordercolor(self): ...
true
true
1c38e8ca4141892217c904caf65e694fc01e78c1
1,325
py
Python
premailer/cache.py
rdhyee/premailer
bdbb8c263cba5fd5d59bc1690e11a93b15cb9b74
[ "BSD-3-Clause" ]
692
2015-01-02T19:33:21.000Z
2022-03-16T09:48:11.000Z
premailer/cache.py
rdhyee/premailer
bdbb8c263cba5fd5d59bc1690e11a93b15cb9b74
[ "BSD-3-Clause" ]
161
2015-01-01T21:16:21.000Z
2022-03-20T22:03:58.000Z
premailer/cache.py
rdhyee/premailer
bdbb8c263cba5fd5d59bc1690e11a93b15cb9b74
[ "BSD-3-Clause" ]
110
2015-01-29T20:37:13.000Z
2022-03-31T01:08:31.000Z
import functools import os import threading import cachetools # Available cache options. CACHE_IMPLEMENTATIONS = { "LFU": cachetools.LFUCache, "LRU": cachetools.LRUCache, "TTL": cachetools.TTLCache, } # Time to live (seconds) for entries in TTL cache. Defaults to 1 hour. TTL_CACHE_TIMEOUT = 1 * 60 * 60 ...
25.480769
84
0.70717
import functools import os import threading import cachetools CACHE_IMPLEMENTATIONS = { "LFU": cachetools.LFUCache, "LRU": cachetools.LRUCache, "TTL": cachetools.TTLCache, } TTL_CACHE_TIMEOUT = 1 * 60 * 60 DEFAULT_CACHE_MAXSIZE = 128 cache_access_lock = threading.RLock() cache_type = os.environ.get("...
true
true
1c38e915f9c1112c51ad32183021cebfb0c7561d
1,395
py
Python
firmware/xu4Mqtt/skyCamReaderWithSave.py
mi3nts/centralHub
92aab9510fff4331b7363cd1272b5779ccf167a1
[ "CC-BY-3.0" ]
null
null
null
firmware/xu4Mqtt/skyCamReaderWithSave.py
mi3nts/centralHub
92aab9510fff4331b7363cd1272b5779ccf167a1
[ "CC-BY-3.0" ]
6
2020-01-10T20:58:20.000Z
2020-01-10T21:46:54.000Z
firmware/xu4Mqtt/skyCamReaderWithSave.py
mi3nts/centralHub
92aab9510fff4331b7363cd1272b5779ccf167a1
[ "CC-BY-3.0" ]
4
2020-04-22T22:59:34.000Z
2021-04-29T17:33:34.000Z
from datetime import timezone import time import os import datetime import numpy as np import pickle from skimage import io, color import cv2 from mintsXU4 import mintsSkyCamReader as mSCR from mintsXU4 import mintsSensorReader as mSR from mintsXU4 import mintsDefinitions as mD dataFolder = mD.dataFolder def main(...
29.0625
125
0.731183
from datetime import timezone import time import os import datetime import numpy as np import pickle from skimage import io, color import cv2 from mintsXU4 import mintsSkyCamReader as mSCR from mintsXU4 import mintsSensorReader as mSR from mintsXU4 import mintsDefinitions as mD dataFolder = mD.dataFolder def main(...
true
true
1c38e94d2cddaf16dd7ce6167cdfa3d68a7f55d7
1,101
py
Python
GANS/MicroGan_2/sample/Discriminator.py
cmoimoro/gym-micropolis-ga
d105da7c624670083fc1d6e3acf265511d9e2df6
[ "MIT" ]
null
null
null
GANS/MicroGan_2/sample/Discriminator.py
cmoimoro/gym-micropolis-ga
d105da7c624670083fc1d6e3acf265511d9e2df6
[ "MIT" ]
null
null
null
GANS/MicroGan_2/sample/Discriminator.py
cmoimoro/gym-micropolis-ga
d105da7c624670083fc1d6e3acf265511d9e2df6
[ "MIT" ]
null
null
null
from settings import * import torch.nn as nn class Discriminator(nn.Module): def __init__(self, ngpu): super(Discriminator, self).__init__() self.ngpu = ngpu self.main = nn.Sequential( # input is (nc) x 64 x 64 nn.Conv2d(nc, ndf, 4, 2, 1, bias=False), nn....
36.7
61
0.504087
from settings import * import torch.nn as nn class Discriminator(nn.Module): def __init__(self, ngpu): super(Discriminator, self).__init__() self.ngpu = ngpu self.main = nn.Sequential( nn.Conv2d(nc, ndf, 4, 2, 1, bias=False), nn.LeakyReLU(0.2, inplace=Tru...
true
true
1c38eab8d70edab703890f91450fbf31b1951120
3,035
py
Python
bot/main.py
xXebicXx/amog-bot
1e924ca51a67d2dee6d149686fcee2d1da9bec81
[ "MIT" ]
null
null
null
bot/main.py
xXebicXx/amog-bot
1e924ca51a67d2dee6d149686fcee2d1da9bec81
[ "MIT" ]
null
null
null
bot/main.py
xXebicXx/amog-bot
1e924ca51a67d2dee6d149686fcee2d1da9bec81
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from asyncio import sleep import os import random from discord.utils import get thingtowatch = random.randint(1,5) if thingtowatch == 1: movie = "Among Us: The Movie" elif thingtowatch == 2: movie = "pornography" elif thingtowatch == 3: movie = "Uncle Dane" elif ...
27.098214
104
0.683031
import discord from discord.ext import commands from asyncio import sleep import os import random from discord.utils import get thingtowatch = random.randint(1,5) if thingtowatch == 1: movie = "Among Us: The Movie" elif thingtowatch == 2: movie = "pornography" elif thingtowatch == 3: movie = "Uncle Dane" elif ...
true
true
1c38eb6f905bfc3975686a29e979a88645590ddc
6,967
py
Python
playbooks/robusta_playbooks/daemonsets.py
pavangudiwada/robusta
cc1cb8a2e198f404e275a3947cf64e9f700f56f4
[ "MIT" ]
273
2021-12-28T20:48:48.000Z
2022-03-31T16:03:13.000Z
playbooks/robusta_playbooks/daemonsets.py
pavangudiwada/robusta
cc1cb8a2e198f404e275a3947cf64e9f700f56f4
[ "MIT" ]
103
2022-01-10T11:45:47.000Z
2022-03-31T16:31:11.000Z
playbooks/robusta_playbooks/daemonsets.py
pavangudiwada/robusta
cc1cb8a2e198f404e275a3947cf64e9f700f56f4
[ "MIT" ]
35
2021-12-30T15:30:14.000Z
2022-03-28T11:43:57.000Z
import logging from robusta.api import * @action def daemonset_fix_config(event: ExecutionBaseEvent): finding = Finding( title="Proposed fix", source=FindingSource.CALLBACK.value, aggregation_key="daemonset_fix_config", ) finding.add_enrichment( [ MarkdownBlock...
32.70892
126
0.591072
import logging from robusta.api import * @action def daemonset_fix_config(event: ExecutionBaseEvent): finding = Finding( title="Proposed fix", source=FindingSource.CALLBACK.value, aggregation_key="daemonset_fix_config", ) finding.add_enrichment( [ MarkdownBlock...
true
true
1c38ec052b5ddea8487aba11a06c53ea793be859
14,396
py
Python
src/cloudant/view.py
ssshah5/clone-python-cloudant
1939f6ffe1b36fd87e94e984fe300e4e109d2171
[ "Apache-2.0" ]
1
2017-01-22T21:42:20.000Z
2017-01-22T21:42:20.000Z
venv/lib/python3.5/site-packages/cloudant/view.py
remkohdev/python-flask-d3js-newssentiment
006e1083b6a307fda55b176eadb810aa08bd8b63
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.5/site-packages/cloudant/view.py
remkohdev/python-flask-d3js-newssentiment
006e1083b6a307fda55b176eadb810aa08bd8b63
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2015 IBM. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
37.295337
81
0.633996
import contextlib import posixpath from ._2to3 import STRTYPE from ._common_util import codify, get_docs from .result import Result from .error import CloudantArgumentError, CloudantException class View(dict): def __init__( self, ddoc, view_name, map_func=None, ...
true
true
1c38ec0726481b170f31d8e8aa55c5f50b3a5b24
418
py
Python
scico/test/osver.py
lanl/scico
976c9e5833f8f67eed2eaa43460d89fb09bb9f78
[ "BSD-3-Clause" ]
18
2021-09-21T18:55:11.000Z
2022-03-21T20:13:05.000Z
scico/test/osver.py
lanl/scico
976c9e5833f8f67eed2eaa43460d89fb09bb9f78
[ "BSD-3-Clause" ]
218
2021-09-21T21:45:08.000Z
2022-03-30T18:45:27.000Z
scico/test/osver.py
lanl/scico
976c9e5833f8f67eed2eaa43460d89fb09bb9f78
[ "BSD-3-Clause" ]
2
2021-09-23T22:44:47.000Z
2021-12-18T16:01:43.000Z
import platform from packaging.version import parse def osx_ver_geq_than(verstr): """Determine relative platform OSX version. Determine whether platform has OSX version that is as recent as or more recent than verstr. Returns ``False`` if the OS is not OSX. """ if platform.system() != "Darwin": ...
26.125
70
0.69378
import platform from packaging.version import parse def osx_ver_geq_than(verstr): if platform.system() != "Darwin": return False osxver = platform.mac_ver()[0] return parse(osxver) >= parse(verstr)
true
true
1c38ec844d9bc6690a842eedede54bb33740e663
1,682
py
Python
doks/rst/code.py
rec/doks
8fb1c2779bb40cbae9427c3be357231543e89d54
[ "MIT" ]
1
2020-10-31T03:25:23.000Z
2020-10-31T03:25:23.000Z
doks/rst/code.py
rec/doks
8fb1c2779bb40cbae9427c3be357231543e89d54
[ "MIT" ]
15
2020-05-29T11:50:13.000Z
2020-12-08T11:07:45.000Z
doks/rst/code.py
rec/doks
8fb1c2779bb40cbae9427c3be357231543e89d54
[ "MIT" ]
null
null
null
from pathlib import Path import configparser import inspect import os MSG = '`{msg} <https://{host}/{user}/{project}/{sep}/{file}#L{begin}-L{end}>`_' SEPARATORS = { 'github.com': 'blob/master', 'gitlab.com': '-/blob/master', } SECTIONS = '-=~_+*#`\':<>^"' _GIT_SUFFIX = '.git' _SSH_PREFIX = 'git@' _HTTPS_PREFI...
25.484848
79
0.550535
from pathlib import Path import configparser import inspect import os MSG = '`{msg} <https://{host}/{user}/{project}/{sep}/{file}#L{begin}-L{end}>`_' SEPARATORS = { 'github.com': 'blob/master', 'gitlab.com': '-/blob/master', } SECTIONS = '-=~_+*#`\':<>^"' _GIT_SUFFIX = '.git' _SSH_PREFIX = 'git@' _HTTPS_PREFI...
true
true
1c38f095c0a6cd3ff807c4e382e8d14fc253b7e3
258
py
Python
1038.py
gabriel1lima/Questoes---URI---Python
4e88d76cf7ea68baf0464071bc4f72ced7d746cd
[ "MIT" ]
1
2020-10-01T14:22:48.000Z
2020-10-01T14:22:48.000Z
1038.py
gabriel1lima/Questoes---URI---Python
4e88d76cf7ea68baf0464071bc4f72ced7d746cd
[ "MIT" ]
null
null
null
1038.py
gabriel1lima/Questoes---URI---Python
4e88d76cf7ea68baf0464071bc4f72ced7d746cd
[ "MIT" ]
7
2020-10-01T13:03:22.000Z
2020-10-02T16:10:25.000Z
a, b = input().split() a = int(a) b = int(b) if(a == 1): qtd = b * 4.00 elif(a == 2): qtd = b * 4.50 elif(a == 3): qtd = b * 5.00 elif(a == 4): qtd = b * 2.00 elif(a == 5): qtd = b * 1.50 print("Total: R$ {0:.2f}".format(qtd))
9.923077
38
0.418605
a, b = input().split() a = int(a) b = int(b) if(a == 1): qtd = b * 4.00 elif(a == 2): qtd = b * 4.50 elif(a == 3): qtd = b * 5.00 elif(a == 4): qtd = b * 2.00 elif(a == 5): qtd = b * 1.50 print("Total: R$ {0:.2f}".format(qtd))
true
true
1c38f0c0b4f51f9242a1fdcf3df4f3244bb65964
431
py
Python
client/upload.py
Shadey/3dsMouse
c485182d29da706f4b51ade3c63a5e7710bef8fc
[ "Unlicense" ]
null
null
null
client/upload.py
Shadey/3dsMouse
c485182d29da706f4b51ade3c63a5e7710bef8fc
[ "Unlicense" ]
null
null
null
client/upload.py
Shadey/3dsMouse
c485182d29da706f4b51ade3c63a5e7710bef8fc
[ "Unlicense" ]
null
null
null
#!/usr/bin/python from ftplib import FTP from glob import glob as files import os host = "192.168.0.18" port = 5000 rootname = os.getcwd().split("/")[-1] f = FTP() f.connect(host,port=port) try: f.cwd("3ds/"+rootname) except: f.mkd("3ds/"+rootname) for match in files(rootname+"*"): print("Sending",match) ...
21.55
42
0.647332
from ftplib import FTP from glob import glob as files import os host = "192.168.0.18" port = 5000 rootname = os.getcwd().split("/")[-1] f = FTP() f.connect(host,port=port) try: f.cwd("3ds/"+rootname) except: f.mkd("3ds/"+rootname) for match in files(rootname+"*"): print("Sending",match) with open(match,...
true
true
1c38f22e6c7d5e5f1997fb0e2b0250ba88cd41b7
7,494
py
Python
recbole/model/general_recommender/recvae.py
Ahren09/RecBole
b3921818dfbc1b81f9eda8d5e9f05bc9d9114089
[ "MIT" ]
1,773
2020-11-04T01:22:11.000Z
2022-03-31T08:05:41.000Z
recbole/model/general_recommender/recvae.py
chenyushuo/RecBole
f04084b8d2cffcb79eb9e4b21325f8f6c75c638e
[ "MIT" ]
378
2020-11-05T02:42:27.000Z
2022-03-31T22:57:04.000Z
recbole/model/general_recommender/recvae.py
chenyushuo/RecBole
f04084b8d2cffcb79eb9e4b21325f8f6c75c638e
[ "MIT" ]
354
2020-11-04T01:37:09.000Z
2022-03-31T10:39:32.000Z
# -*- coding: utf-8 -*- # @Time : 2021/2/28 # @Author : Lanling Xu # @Email : xulanling_sherry@163.com r""" RecVAE ################################################ Reference: Shenbin, Ilya, et al. "RecVAE: A new variational autoencoder for Top-N recommendations with implicit feedback." In WSDM 2020. Reference ...
36.202899
129
0.659995
import numpy as np from copy import deepcopy import torch import torch.nn as nn import torch.nn.functional as F from recbole.model.abstract_recommender import GeneralRecommender from recbole.model.init import xavier_normal_initialization from recbole.utils import InputType def swish(x): return x.mul(torch.sig...
true
true
1c38f295aae119c477441d6ff368dfdc82f6fb32
1,560
py
Python
setup.py
mardiros/creds
d442a05e4213d7ed335b13b5873cca834d0be4c3
[ "BSD-3-Clause" ]
null
null
null
setup.py
mardiros/creds
d442a05e4213d7ed335b13b5873cca834d0be4c3
[ "BSD-3-Clause" ]
null
null
null
setup.py
mardiros/creds
d442a05e4213d7ed335b13b5873cca834d0be4c3
[ "BSD-3-Clause" ]
null
null
null
import os import sys from setuptools import setup, find_packages py_version = sys.version_info[:2] if py_version < (3, 3): raise Exception("websockets requires Python >= 3.3.") here = os.path.abspath(os.path.dirname(__file__)) NAME = 'creds' with open(os.path.join(here, 'README.rst')) as readme: README = re...
25.57377
63
0.60641
import os import sys from setuptools import setup, find_packages py_version = sys.version_info[:2] if py_version < (3, 3): raise Exception("websockets requires Python >= 3.3.") here = os.path.abspath(os.path.dirname(__file__)) NAME = 'creds' with open(os.path.join(here, 'README.rst')) as readme: README = re...
true
true
1c38f463f37b5e3bc7741adb703b39a8e662b295
26,825
py
Python
tools/pg_bloat_check.py
payals/pgtreats
4aef2730f831886b2d48a39d9f5e8d9cee07178f
[ "PostgreSQL" ]
86
2015-02-18T17:53:23.000Z
2022-03-31T05:22:18.000Z
tools/pg_bloat_check.py
payals/pgtreats
4aef2730f831886b2d48a39d9f5e8d9cee07178f
[ "PostgreSQL" ]
2
2016-03-29T14:26:43.000Z
2017-07-25T19:58:24.000Z
tools/pg_bloat_check.py
payals/pgtreats
4aef2730f831886b2d48a39d9f5e8d9cee07178f
[ "PostgreSQL" ]
39
2015-01-26T13:10:25.000Z
2021-11-20T15:11:01.000Z
#!/usr/bin/env python # Script is maintained at https://github.com/keithf4/pg_bloat_check import argparse, csv, json, psycopg2, sys from psycopg2 import extras version = "2.1.1" parser = argparse.ArgumentParser(description="Provide a bloat report for PostgreSQL tables and/or indexes. This script uses the pgstattupl...
52.087379
701
0.586692
import argparse, csv, json, psycopg2, sys from psycopg2 import extras version = "2.1.1" parser = argparse.ArgumentParser(description="Provide a bloat report for PostgreSQL tables and/or indexes. This script uses the pgstattuple contrib module which must be installed first. Note that the query to check for bloat can...
true
true
1c38f4d7f27db7ee57691713ddffe76cb71264a9
6,279
py
Python
Bots/Python/Skills/CodeFirst/WaterfallSkillBot/dialogs/activity_router_dialog.py
gabog/BotFramework-FunctionalTests
9ebd811539648bf7d53f6f92af42ff8ef60344a1
[ "MIT" ]
1
2021-07-06T14:29:26.000Z
2021-07-06T14:29:26.000Z
Bots/Python/Skills/CodeFirst/WaterfallSkillBot/dialogs/activity_router_dialog.py
gabog/BotFramework-FunctionalTests
9ebd811539648bf7d53f6f92af42ff8ef60344a1
[ "MIT" ]
1
2021-04-23T14:54:34.000Z
2021-04-23T19:56:22.000Z
Bots/Python/Skills/CodeFirst/WaterfallSkillBot/dialogs/activity_router_dialog.py
GiulianoDolceTalianoSantoro/BotFramework-FunctionalTests
f21bded918cf9e51a296fcb0b87ad6495c59bea8
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import json from typing import Dict from datetime import datetime from botbuilder.core import MessageFactory, ConversationState from botbuilder.dialogs import ( WaterfallDialog, WaterfallStepContext, DialogTurnRe...
37.598802
99
0.697723
import json from typing import Dict from datetime import datetime from botbuilder.core import MessageFactory, ConversationState from botbuilder.dialogs import ( WaterfallDialog, WaterfallStepContext, DialogTurnResult, DialogTurnStatus, ComponentDialog, ) from botbuilder.dialogs.skills import ( ...
true
true
1c38f55a2049f9d2130eac35f1bf089857d791f8
144
py
Python
fondo_api/templatetags/env_var.py
Fonmon/Fondo-API
0c78eaab259df18219c01fceb67bd1b6ff8ec941
[ "MIT" ]
null
null
null
fondo_api/templatetags/env_var.py
Fonmon/Fondo-API
0c78eaab259df18219c01fceb67bd1b6ff8ec941
[ "MIT" ]
48
2018-01-13T14:52:52.000Z
2022-03-13T17:41:42.000Z
fondo_api/templatetags/env_var.py
Fonmon/Fondo-API
0c78eaab259df18219c01fceb67bd1b6ff8ec941
[ "MIT" ]
null
null
null
import os from django import template register = template.Library() @register.simple_tag def host(): return os.environ.get('HOST_URL_APP')
18
41
0.763889
import os from django import template register = template.Library() @register.simple_tag def host(): return os.environ.get('HOST_URL_APP')
true
true
1c38f55ce8ecf3a5a54085f7c982ef92d79f5983
87
py
Python
tutors/apps.py
JCorn64/QT-Study-App
f7c02878f0cf15e99d0a07c1a9d1b3cda745e77e
[ "PostgreSQL", "Unlicense" ]
7
2021-01-17T23:10:15.000Z
2021-02-01T21:35:36.000Z
main/tutors/apps.py
DiveshTheReal/studentutor
0d3ef57887bde4dd2ee40d68015598f9c8052ffd
[ "MIT" ]
7
2021-01-17T15:10:47.000Z
2022-03-12T00:53:49.000Z
tutors/apps.py
JCorn64/QT-Study-App
f7c02878f0cf15e99d0a07c1a9d1b3cda745e77e
[ "PostgreSQL", "Unlicense" ]
3
2021-01-18T09:36:16.000Z
2021-01-20T16:29:40.000Z
from django.apps import AppConfig class TutorsConfig(AppConfig): name = 'tutors'
14.5
33
0.747126
from django.apps import AppConfig class TutorsConfig(AppConfig): name = 'tutors'
true
true
1c38f596a128f5b5e06f64318ca590e1a20a4d12
4,934
py
Python
pydataproc/clusters.py
oli-hall/py-dataproc
c931f01731e451accb63b2f37d9b9f36d73b36b5
[ "MIT" ]
1
2017-11-03T11:11:25.000Z
2017-11-03T11:11:25.000Z
pydataproc/clusters.py
oli-hall/py-dataproc
c931f01731e451accb63b2f37d9b9f36d73b36b5
[ "MIT" ]
null
null
null
pydataproc/clusters.py
oli-hall/py-dataproc
c931f01731e451accb63b2f37d9b9f36d73b36b5
[ "MIT" ]
null
null
null
import time from googleapiclient.errors import HttpError from pydataproc.cluster import Cluster from pydataproc.logger import log from pydataproc.errors import ClusterAlreadyExistsException class Clusters(object): def __init__(self, dataproc): assert dataproc self.dataproc = dataproc def ...
39.472
103
0.597892
import time from googleapiclient.errors import HttpError from pydataproc.cluster import Cluster from pydataproc.logger import log from pydataproc.errors import ClusterAlreadyExistsException class Clusters(object): def __init__(self, dataproc): assert dataproc self.dataproc = dataproc def ...
true
true
1c38f6066920b707f5006a22c318e9355d2e4728
3,591
py
Python
code/setup.py
amarallab/waldo
e38d23d9474a0bcb7a94e685545edb0115b12af4
[ "MIT" ]
null
null
null
code/setup.py
amarallab/waldo
e38d23d9474a0bcb7a94e685545edb0115b12af4
[ "MIT" ]
null
null
null
code/setup.py
amarallab/waldo
e38d23d9474a0bcb7a94e685545edb0115b12af4
[ "MIT" ]
null
null
null
import os import glob from distutils.core import setup import sys import py2exe import matplotlib import FileDialog import multiworm HERE = os.path.dirname(os.path.abspath(__file__)) def find_data_files(source, target, patterns): if glob.has_magic(source) or glob.has_magic(target): raise ...
44.8875
129
0.416319
import os import glob from distutils.core import setup import sys import py2exe import matplotlib import FileDialog import multiworm HERE = os.path.dirname(os.path.abspath(__file__)) def find_data_files(source, target, patterns): if glob.has_magic(source) or glob.has_magic(target): raise ...
true
true
1c38f7d107393081787ef9e7d849ab1e3d091575
18,433
py
Python
.history/implementations/pixelda/pixelda_try_20190106200556.py
Napkin-DL/PyTorch-GAN
4668fb434a74a4e4771631944e4abfb0ec1c8795
[ "MIT" ]
null
null
null
.history/implementations/pixelda/pixelda_try_20190106200556.py
Napkin-DL/PyTorch-GAN
4668fb434a74a4e4771631944e4abfb0ec1c8795
[ "MIT" ]
null
null
null
.history/implementations/pixelda/pixelda_try_20190106200556.py
Napkin-DL/PyTorch-GAN
4668fb434a74a4e4771631944e4abfb0ec1c8795
[ "MIT" ]
null
null
null
import argparse import os import numpy as np import math import itertools import torchvision.transforms as transforms from torchvision.utils import save_image from torch.utils.data import DataLoader from torchvision import datasets from torch.autograd import Variable from mnistm import MNISTM import torch.nn as nn ...
39.219149
145
0.646287
import argparse import os import numpy as np import math import itertools import torchvision.transforms as transforms from torchvision.utils import save_image from torch.utils.data import DataLoader from torchvision import datasets from torch.autograd import Variable from mnistm import MNISTM import torch.nn as nn ...
true
true
1c38f90544ad7f9caa50911d9ab401d1222696e5
748
py
Python
aqi_data_crawler/aqi/pipelines.py
firest547/firest547.github.io
aef008faef4d7a37a5696cd2c52e84d48773d097
[ "MIT" ]
null
null
null
aqi_data_crawler/aqi/pipelines.py
firest547/firest547.github.io
aef008faef4d7a37a5696cd2c52e84d48773d097
[ "MIT" ]
1
2020-12-08T21:26:28.000Z
2020-12-08T21:26:28.000Z
aqi_data_crawler/aqi/pipelines.py
firest547/firest547.github.io
aef008faef4d7a37a5696cd2c52e84d48773d097
[ "MIT" ]
2
2020-12-08T21:10:15.000Z
2021-01-27T01:26:20.000Z
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to t he ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.pipelines.files import FilesPipeline import os import pathlib import re import subprocess class AQIPipeline(Fi...
27.703704
66
0.640374
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.pipelines.files import FilesPipeline import os import pathlib import re import subprocess class AQIPipeline(FilesPipeline): def process_item(self, item, spider): url = item["file_urls"][-1] file_name = re.split(r'Data...
true
true
1c38f9b6834b5e89da2e65143cfac40c9a8f8555
525
py
Python
Recursion2/Conclusion/largest_rectangle.py
mamoudmatook/Leetcode
59fb1612ee648a9b99ff7cc779ada5656c01ecd2
[ "MIT" ]
null
null
null
Recursion2/Conclusion/largest_rectangle.py
mamoudmatook/Leetcode
59fb1612ee648a9b99ff7cc779ada5656c01ecd2
[ "MIT" ]
null
null
null
Recursion2/Conclusion/largest_rectangle.py
mamoudmatook/Leetcode
59fb1612ee648a9b99ff7cc779ada5656c01ecd2
[ "MIT" ]
null
null
null
class Solution: def largestRectangleArea(self, heights: List[int]) -> int: def rec(start, end): if start > end: return 0 min_idx = start for i in range(start, end + 1): if heights[min_idx] > heights[i]: min_idx = i ...
35
62
0.447619
class Solution: def largestRectangleArea(self, heights: List[int]) -> int: def rec(start, end): if start > end: return 0 min_idx = start for i in range(start, end + 1): if heights[min_idx] > heights[i]: min_idx = i ...
true
true
1c38fa1649a2f3ffec8b11017b75e247c0ba37f2
11,051
py
Python
app/gameimpl/x01_match.py
jtessier-cit/soft8023-darts
51fb480b4c21a0cf49ffe1ef6e8e30855aee744e
[ "MIT" ]
null
null
null
app/gameimpl/x01_match.py
jtessier-cit/soft8023-darts
51fb480b4c21a0cf49ffe1ef6e8e30855aee744e
[ "MIT" ]
null
null
null
app/gameimpl/x01_match.py
jtessier-cit/soft8023-darts
51fb480b4c21a0cf49ffe1ef6e8e30855aee744e
[ "MIT" ]
null
null
null
import json import pika as pika from service.match_service import MatchVisitTemplate from service.match_service import MatchManager # Lab 03 add MatchStatus from datatype.enums import DartMultiplier, MatchStatus # CHECKOUTS = { # 170: "T20 T20 Bull", # 167: "T20 T19 Bull", # 164: "T20 T18 Bull", # 16...
32.218659
119
0.56936
import json import pika as pika from service.match_service import MatchVisitTemplate from service.match_service import MatchManager from datatype.enums import DartMultiplier, MatchStatus CHECKOUTS = { 2: "D1", 3: "1 D1", 4: "D2", 5: "3 D1", 6: "D3", 7: "5 D1", 8: "D4", 9: "5 D2", ...
true
true
1c38fb26366ef519e4f9e2c34379dc99e196f4c0
5,752
py
Python
spond/experimental/openimage/test/test_cooccurrence.py
rekcahpassyla/spond
8282a4f40bd145243f0e37b8542f0f30b16b96f9
[ "Apache-2.0" ]
1
2021-02-12T19:08:25.000Z
2021-02-12T19:08:25.000Z
spond/experimental/openimage/test/test_cooccurrence.py
rekcahpassyla/spond
8282a4f40bd145243f0e37b8542f0f30b16b96f9
[ "Apache-2.0" ]
8
2020-09-29T12:36:14.000Z
2021-02-18T16:25:03.000Z
spond/experimental/openimage/test/test_cooccurrence.py
rekcahpassyla/spond
8282a4f40bd145243f0e37b8542f0f30b16b96f9
[ "Apache-2.0" ]
5
2020-09-28T06:55:30.000Z
2021-01-06T14:21:16.000Z
import os import unittest import torch from spond.experimental.openimage import readfile class TestProcessing(unittest.TestCase): def setUp(self): self.rootdir = "." # image metadata file, contains image labels self.imgfn = "test-image-labels.csv" # labels metadata file, contains...
44.246154
90
0.573713
import os import unittest import torch from spond.experimental.openimage import readfile class TestProcessing(unittest.TestCase): def setUp(self): self.rootdir = "." self.imgfn = "test-image-labels.csv" self.labelsfn = "test-labels.csv" self.datafn = "test...
true
true
1c38fbc4fcfc4b3815961329dd7b42ba0e0af30a
3,892
py
Python
python3/koans/about_iteration.py
Buraisx/python_koans
de12cdfcf6bfb53b1d4d05dc5e567c53963607fe
[ "MIT" ]
null
null
null
python3/koans/about_iteration.py
Buraisx/python_koans
de12cdfcf6bfb53b1d4d05dc5e567c53963607fe
[ "MIT" ]
null
null
null
python3/koans/about_iteration.py
Buraisx/python_koans
de12cdfcf6bfb53b1d4d05dc5e567c53963607fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutIteration(Koan): def test_iterators_are_a_type(self): it = iter(range(1,6)) total = 0 for num in it: total += num self.assertEqual(15 , total) def test_iterating_with_next(self):...
28.202899
77
0.536485
from runner.koan import * class AboutIteration(Koan): def test_iterators_are_a_type(self): it = iter(range(1,6)) total = 0 for num in it: total += num self.assertEqual(15 , total) def test_iterating_with_next(self): stages = iter(['alpha','beta','gamma'...
true
true
1c38fc8f7c0c371003b969b2014fe5096eb2f9fd
333
py
Python
normflow/simple_flow_model.py
mbaddar1/normalizing-flows
d1409464a65234354b29ed9ea0ede2d12100440c
[ "MIT" ]
null
null
null
normflow/simple_flow_model.py
mbaddar1/normalizing-flows
d1409464a65234354b29ed9ea0ede2d12100440c
[ "MIT" ]
null
null
null
normflow/simple_flow_model.py
mbaddar1/normalizing-flows
d1409464a65234354b29ed9ea0ede2d12100440c
[ "MIT" ]
null
null
null
import torch.nn as nn import torch class SimpleFlowModel(nn.Module): def __init__(self, flows): super().__init__() self.flows = nn.ModuleList(flows) def forward(self, z): ld = 0. for flow in self.flows: z, ld_ = flow(z) ld += ld_ r...
20.8125
42
0.522523
import torch.nn as nn import torch class SimpleFlowModel(nn.Module): def __init__(self, flows): super().__init__() self.flows = nn.ModuleList(flows) def forward(self, z): ld = 0. for flow in self.flows: z, ld_ = flow(z) ld += ld_ r...
true
true
1c38fdbc199692b0e9f4a403726624c0ee8ac914
476
py
Python
apps/wallet/migrations/0009_auto_20200707_1324.py
ecoo-app/ecoo-backend
ffe54abcd2e8c1a18ef2fa992c45a10f8232a4a0
[ "MIT" ]
1
2021-03-31T18:25:44.000Z
2021-03-31T18:25:44.000Z
apps/wallet/migrations/0009_auto_20200707_1324.py
ecoo-app/ecoo-backend
ffe54abcd2e8c1a18ef2fa992c45a10f8232a4a0
[ "MIT" ]
null
null
null
apps/wallet/migrations/0009_auto_20200707_1324.py
ecoo-app/ecoo-backend
ffe54abcd2e8c1a18ef2fa992c45a10f8232a4a0
[ "MIT" ]
1
2021-01-14T09:27:42.000Z
2021-01-14T09:27:42.000Z
# Generated by Django 2.2.13 on 2020-07-07 13:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("wallet", "0008_auto_20200625_1546"), ] operations = [ migrations.AlterField( model_name="wallet", name="state", ...
22.666667
87
0.554622
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("wallet", "0008_auto_20200625_1546"), ] operations = [ migrations.AlterField( model_name="wallet", name="state", field=models.IntegerField( ...
true
true
1c38fe8d107ec09d3d5e7b582b79068ac3df3f61
18,926
py
Python
aiodropbox/aiodropbox/utils/__init__.py
bossjones/sandbox
9ae6a01576d42ff2616f38bad0df2c6d73afe91f
[ "MIT" ]
4
2022-02-23T11:03:32.000Z
2022-03-07T20:01:42.000Z
aiodropbox/aiodropbox/utils/__init__.py
bossjones/sandbox
9ae6a01576d42ff2616f38bad0df2c6d73afe91f
[ "MIT" ]
null
null
null
aiodropbox/aiodropbox/utils/__init__.py
bossjones/sandbox
9ae6a01576d42ff2616f38bad0df2c6d73afe91f
[ "MIT" ]
1
2022-02-23T11:03:32.000Z
2022-02-23T11:03:32.000Z
# NOTE: Via Red https://github.com/Cog-Creators/Red-DiscordBot/tree/V3/develop/redbot from __future__ import annotations import asyncio from asyncio import Semaphore, as_completed from asyncio.futures import isfuture from inspect import isawaitable as _isawaitable, signature as _signature from itertools import chain i...
29.251932
170
0.601765
from __future__ import annotations import asyncio from asyncio import Semaphore, as_completed from asyncio.futures import isfuture from inspect import isawaitable as _isawaitable, signature as _signature from itertools import chain import json import logging from pathlib import Path from typing import ( Any, ...
true
true
1c38fff85fd13310d28ad936b660726bf37a0a86
1,510
py
Python
docs/source/conf.py
Dlubal-Software/RFEM_Python_Client
9e29c598dadf380d49677c463931f0be659ccc40
[ "MIT" ]
16
2021-10-13T21:00:11.000Z
2022-03-21T11:12:09.000Z
docs/source/conf.py
Dlubal-Software/RFEM_Python_Client
9e29c598dadf380d49677c463931f0be659ccc40
[ "MIT" ]
49
2021-10-19T13:18:51.000Z
2022-03-30T08:20:17.000Z
docs/source/conf.py
Dlubal-Software/RFEM_Python_Client
9e29c598dadf380d49677c463931f0be659ccc40
[ "MIT" ]
7
2021-10-13T06:06:24.000Z
2022-03-29T17:48:39.000Z
import os import sys sys.path.insert(0, os.path.abspath('..\RFEM')) # -- Project information ----------------------------------------------------- project = 'RFEM/RSTAB Webservices' copyright = '2022, Dlubal Software' author = 'Dlubal Software' # The full version, including alpha/beta/rc tags release = '1.0.2' # S...
25.59322
86
0.691391
import os import sys sys.path.insert(0, os.path.abspath('..\RFEM')) project = 'RFEM/RSTAB Webservices' copyright = '2022, Dlubal Software' author = 'Dlubal Software' release = '1.0.2' extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx_autodoc_typehints'] templates_path = ['_templates'] exclude_pa...
true
true
1c39007f27f05eeab87f9f4f74dadb32c2d358d9
2,433
py
Python
runtime/translation/models/gnmt_large/gpus=4/stage1.py
vibhatha/pipedream
af6b811f5d01a68e9eb91065e5242fc1a075f279
[ "MIT" ]
null
null
null
runtime/translation/models/gnmt_large/gpus=4/stage1.py
vibhatha/pipedream
af6b811f5d01a68e9eb91065e5242fc1a075f279
[ "MIT" ]
null
null
null
runtime/translation/models/gnmt_large/gpus=4/stage1.py
vibhatha/pipedream
af6b811f5d01a68e9eb91065e5242fc1a075f279
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import torch from seq2seq.models.decoder import RecurrentAttention class Stage1(torch.nn.Module): def __init__(self): super(Stage1, self).__init__() self.layer10 = torch.nn.Embedding(32320, 1024, padding_idx=0) ...
36.863636
93
0.560625
import torch from seq2seq.models.decoder import RecurrentAttention class Stage1(torch.nn.Module): def __init__(self): super(Stage1, self).__init__() self.layer10 = torch.nn.Embedding(32320, 1024, padding_idx=0) self.layer12 = torch.nn.Dropout(p=0.2) self.layer13 = torch.nn...
true
true
1c390119a9c7cccdc60788e81648e86dbe5b1433
3,592
py
Python
lib/detect/utils/json_utils_test.py
nhattruongpham/ALPR_SSD_CTPN_LPRNet
b20bf84f1ecc56252da37c25d08a0b7d7e10477c
[ "MIT" ]
null
null
null
lib/detect/utils/json_utils_test.py
nhattruongpham/ALPR_SSD_CTPN_LPRNet
b20bf84f1ecc56252da37c25d08a0b7d7e10477c
[ "MIT" ]
null
null
null
lib/detect/utils/json_utils_test.py
nhattruongpham/ALPR_SSD_CTPN_LPRNet
b20bf84f1ecc56252da37c25d08a0b7d7e10477c
[ "MIT" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.653061
80
0.657016
import os import tensorflow as tf from retail_demo.object_detection.utils import json_utils class JsonUtilsTest(tf.test.TestCase): def testDumpReasonablePrecision(self): output_path = os.path.join(tf.test.get_temp_dir(), 'test.json') with tf.gfile.GFile(output_path, 'w') as f: json_utils.Dump(1.0, ...
true
true