hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
6e702ceebd6384acfed75804122d1e9b9864c6c7
2,776
py
Python
add.py
plasticuproject/cert-dbms
0a8f1d8eb69610fa1c0403c08d3d3ac057e3d698
[ "MIT" ]
null
null
null
add.py
plasticuproject/cert-dbms
0a8f1d8eb69610fa1c0403c08d3d3ac057e3d698
[ "MIT" ]
null
null
null
add.py
plasticuproject/cert-dbms
0a8f1d8eb69610fa1c0403c08d3d3ac057e3d698
[ "MIT" ]
1
2020-10-27T12:06:36.000Z
2020-10-27T12:06:36.000Z
#!/usr/bin/python3 """add.py""" from sys import argv import datetime import sqlite3 import pathlib PATH = pathlib.Path.cwd() HELP_TEXT = ''' Usage: add.py [-h] directory -h, --help bring up this help message directory directory with certs to add ''' def add_certs(cert_dir: str) -> None: """...
30.844444
193
0.583934
0
0
0
0
0
0
0
0
1,127
0.40598
6e710c139901b3edb6aaa6a1f60ac54de8da8353
209
py
Python
mrq_monitor.py
HyokaChen/violet
b89ddb4f909c2a40e76d89b665949e55086a7a80
[ "Apache-2.0" ]
1
2020-07-29T15:49:35.000Z
2020-07-29T15:49:35.000Z
mrq_monitor.py
HyokaChen/violet
b89ddb4f909c2a40e76d89b665949e55086a7a80
[ "Apache-2.0" ]
1
2019-12-19T10:19:57.000Z
2019-12-19T11:15:28.000Z
mrq_monitor.py
EmptyChan/violet
b89ddb4f909c2a40e76d89b665949e55086a7a80
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created with IntelliJ IDEA. Description: User: jinhuichen Date: 3/28/2018 4:17 PM Description: """ from mrq.dashboard.app import main if __name__ == '__main__': main()
16.076923
34
0.650718
0
0
0
0
0
0
0
0
143
0.684211
6e734b51dd3ec79fecc1a0e0800072ebad29c909
556
py
Python
lang/string/reverse-words.py
joez/letspy
9f653bc0071821fdb49da8c19787dc7e12921457
[ "Apache-2.0" ]
null
null
null
lang/string/reverse-words.py
joez/letspy
9f653bc0071821fdb49da8c19787dc7e12921457
[ "Apache-2.0" ]
null
null
null
lang/string/reverse-words.py
joez/letspy
9f653bc0071821fdb49da8c19787dc7e12921457
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 def reverse_words(s): return ' '.join(w[::-1] for w in s.split(' ')) def reverse_words_ext(s): # support other whitespaces strs, word = [], '' for c in s: if c.isspace(): if word: strs.append(word[::-1]) word = '' ...
19.857143
50
0.491007
0
0
0
0
0
0
0
0
71
0.127698
6e74495ac01d11fb500db642fc48819334b6af0a
140
py
Python
k8s/the-project/kubeless/ok-func.py
cjimti/mk
b303e147da77776baf5fee337e356ebeccbe2c01
[ "MIT" ]
1
2019-04-18T09:52:48.000Z
2019-04-18T09:52:48.000Z
k8s/the-project/kubeless/ok-func.py
cjimti/mk
b303e147da77776baf5fee337e356ebeccbe2c01
[ "MIT" ]
null
null
null
k8s/the-project/kubeless/ok-func.py
cjimti/mk
b303e147da77776baf5fee337e356ebeccbe2c01
[ "MIT" ]
null
null
null
import requests def ok(event, context): url = "http://ok:8080/" response = requests.request("GET", url) return response.text
15.555556
43
0.65
0
0
0
0
0
0
0
0
22
0.157143
6e74bf0ffc1a010178cf010d5be1824b1235b7ba
11,166
py
Python
python-scripts/gt_generate_python_curve.py
TrevisanGMW/maya
4e3b45210d09a1cd2a1c0419defe6a5ffa97cf92
[ "MIT" ]
26
2020-11-16T12:49:05.000Z
2022-03-09T20:39:22.000Z
python-scripts/gt_generate_python_curve.py
TrevisanGMW/maya
4e3b45210d09a1cd2a1c0419defe6a5ffa97cf92
[ "MIT" ]
47
2020-11-08T23:35:49.000Z
2022-03-10T03:43:00.000Z
python-scripts/gt_generate_python_curve.py
TrevisanGMW/maya
4e3b45210d09a1cd2a1c0419defe6a5ffa97cf92
[ "MIT" ]
5
2021-01-27T06:10:34.000Z
2021-10-30T23:29:44.000Z
""" Python Curve Generator @Guilherme Trevisan - github.com/TrevisanGMW/gt-tools - 2020-01-02 1.1 - 2020-01-03 Minor patch adjustments to the script 1.2 - 2020-06-07 Fixed random window widthHeight issue. Updated naming convention to make it clearer. (PEP8) Added length checker for selection befor...
40.901099
129
0.5729
0
0
0
0
0
0
0
0
3,321
0.297421
6e75ab3bf35f32714181bf627668b80eaa462378
1,766
py
Python
client/core/scene/summary.py
krerkkiat/space-invader
428b1041c9246b55cb63bc6c0b2ec20beb7a32ed
[ "MIT" ]
null
null
null
client/core/scene/summary.py
krerkkiat/space-invader
428b1041c9246b55cb63bc6c0b2ec20beb7a32ed
[ "MIT" ]
null
null
null
client/core/scene/summary.py
krerkkiat/space-invader
428b1041c9246b55cb63bc6c0b2ec20beb7a32ed
[ "MIT" ]
null
null
null
import pygame from config import Config from core.ui import Table, Button from core.scene import Scene from core.manager import SceneManager from core.scene.preload import Preload class SummaryScene(Scene): def __init__(self, game): super().__init__(game) self._background = pygame.display.get_sur...
34.627451
109
0.656285
1,584
0.896942
0
0
0
0
0
0
106
0.060023
6e7654580b77f1dbecf04a37ead830e9b06ecf31
198
py
Python
mwptoolkit/module/Encoder/__init__.py
ShubhamAnandJain/MWP-CS229
ce86233504fdb37e104a3944fd81d4606fbfa621
[ "MIT" ]
71
2021-03-08T06:06:15.000Z
2022-03-30T11:59:37.000Z
mwptoolkit/module/Encoder/__init__.py
ShubhamAnandJain/MWP-CS229
ce86233504fdb37e104a3944fd81d4606fbfa621
[ "MIT" ]
13
2021-09-07T12:38:23.000Z
2022-03-22T15:08:16.000Z
mwptoolkit/module/Encoder/__init__.py
ShubhamAnandJain/MWP-CS229
ce86233504fdb37e104a3944fd81d4606fbfa621
[ "MIT" ]
21
2021-02-16T07:46:36.000Z
2022-03-23T13:41:33.000Z
from __future__ import absolute_import from __future__ import print_function from __future__ import division from mwptoolkit.module.Encoder import graph_based_encoder,rnn_encoder,transformer_encoder
49.5
89
0.90404
0
0
0
0
0
0
0
0
0
0
6e78083845e016661893639e08ffab0d50cff621
546
py
Python
src/python/intensity/components/shutdown_if_empty.py
kripken/intensityengine
9ae352b4f526ecb180004ae4968db7f64f140762
[ "MIT" ]
31
2015-01-18T20:27:31.000Z
2021-07-03T03:58:47.000Z
src/python/intensity/components/shutdown_if_empty.py
JamesLinus/intensityengine
9ae352b4f526ecb180004ae4968db7f64f140762
[ "MIT" ]
4
2015-07-05T21:09:37.000Z
2019-09-06T14:34:59.000Z
src/python/intensity/components/shutdown_if_empty.py
JamesLinus/intensityengine
9ae352b4f526ecb180004ae4968db7f64f140762
[ "MIT" ]
11
2015-02-03T19:24:10.000Z
2019-09-20T10:59:50.000Z
# Copyright 2010 Alon Zakai ('kripken'). All rights reserved. # This file is part of Syntensity/the Intensity Engine, an open source project. See COPYING.txt for licensing. from intensity.signals import client_connect, client_disconnect from intensity.base import quit class Data: counter = 0 def add(sender, **...
22.75
110
0.717949
27
0.049451
0
0
0
0
0
0
171
0.313187
6e780b142bddebcec890df30277381a71e204488
694
py
Python
pyforms/utils/timeit.py
dominic-dev/pyformsd
23e31ceff2943bc0f7286d25dd14450a14b986af
[ "MIT" ]
null
null
null
pyforms/utils/timeit.py
dominic-dev/pyformsd
23e31ceff2943bc0f7286d25dd14450a14b986af
[ "MIT" ]
null
null
null
pyforms/utils/timeit.py
dominic-dev/pyformsd
23e31ceff2943bc0f7286d25dd14450a14b986af
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = "Ricardo Ribeiro" __credits__ = ["Ricardo Ribeiro"] __license__ = "MIT" __version__ = "0.0" __maintainer__ = "Ricardo Ribeiro" __email__ = "[email protected]" __status__ = "Development" import time from datetime import datetime, ...
27.76
156
0.674352
0
0
0
0
0
0
0
0
156
0.224784
6e7a4b454a8651618254290e5f7ef6b4e1cd99a9
1,388
py
Python
cogs/botinfo.py
MM-coder/salbot-rewrite
322c34ba85a2c852e02cd3c183d5a7a4a077ff6f
[ "Apache-2.0" ]
1
2020-08-17T05:14:58.000Z
2020-08-17T05:14:58.000Z
cogs/botinfo.py
MM-coder/salbot-rewrite
322c34ba85a2c852e02cd3c183d5a7a4a077ff6f
[ "Apache-2.0" ]
null
null
null
cogs/botinfo.py
MM-coder/salbot-rewrite
322c34ba85a2c852e02cd3c183d5a7a4a077ff6f
[ "Apache-2.0" ]
1
2020-08-17T16:57:30.000Z
2020-08-17T16:57:30.000Z
""" Created by vcokltfre at 2020-07-08 """ import json import logging import time from datetime import datetime import discord from discord.ext import commands from discord.ext.commands import has_any_role class BotInfo(commands.Cog): def __init__(self, bot): self.bot = bot self.logger = logging....
28.326531
119
0.591499
1,130
0.814121
0
0
760
0.54755
647
0.466138
225
0.162104
6e7b6d33ac9f184e61e6b426b75d7acfe7a99f1e
6,486
py
Python
ninja_extra/pagination.py
eadwinCode/django-ninja-extra
16246c466ab8895ba1bf29d69f3d3e9337031edd
[ "MIT" ]
43
2021-09-09T14:20:59.000Z
2022-03-28T00:38:52.000Z
ninja_extra/pagination.py
eadwinCode/django-ninja-extra
16246c466ab8895ba1bf29d69f3d3e9337031edd
[ "MIT" ]
6
2022-01-04T10:53:11.000Z
2022-03-28T19:53:46.000Z
ninja_extra/pagination.py
eadwinCode/django-ninja-extra
16246c466ab8895ba1bf29d69f3d3e9337031edd
[ "MIT" ]
null
null
null
import inspect import logging from collections import OrderedDict from functools import wraps from typing import TYPE_CHECKING, Any, Callable, Optional, Type, Union, cast, overload from django.core.paginator import InvalidPage, Page, Paginator from django.db.models import QuerySet from django.http import HttpRequest f...
31.333333
101
0.665433
3,061
0.47194
0
0
848
0.130743
0
0
512
0.078939
6e7bea4cb2b85ac4aa392fccc69253e8cb2356b9
547
py
Python
text-boxes/test-textbox01.py
rajorshi-mukherjee/gui-python
356eef26975e63de48b441d336d75a1f9c232cf3
[ "MIT" ]
null
null
null
text-boxes/test-textbox01.py
rajorshi-mukherjee/gui-python
356eef26975e63de48b441d336d75a1f9c232cf3
[ "MIT" ]
3
2022-01-02T18:04:24.000Z
2022-01-12T16:35:31.000Z
text-boxes/test-textbox01.py
rajorshi-mukherjee/gui-python
356eef26975e63de48b441d336d75a1f9c232cf3
[ "MIT" ]
null
null
null
# !/usr/bin/python3 from tkinter import * top = Tk() top.geometry("400x250") name = Label(top, text = "Name").place(x = 30,y = 50) email = Label(top, text = "Email").place(x = 30, y = 90) password = Label(top, text = "Password").place(x = 30, y = 130) sbmitbtn = Button(top, text = "Submit",act...
30.388889
117
0.575868
0
0
0
0
0
0
0
0
76
0.13894
6e7c1a4dd0214c41c2785c1779862d06bb157d94
873
py
Python
server/yafa/migrations/0002_auto_20160606_2216.py
mrmonkington/yafa
d15ba1fdaaa046e3bc07a7a44fb61213d686bb7d
[ "MIT" ]
null
null
null
server/yafa/migrations/0002_auto_20160606_2216.py
mrmonkington/yafa
d15ba1fdaaa046e3bc07a7a44fb61213d686bb7d
[ "MIT" ]
13
2016-08-10T19:22:35.000Z
2021-06-10T18:53:01.000Z
server/yafa/migrations/0002_auto_20160606_2216.py
mrmonkington/yafa
d15ba1fdaaa046e3bc07a7a44fb61213d686bb7d
[ "MIT" ]
2
2016-06-23T09:02:20.000Z
2021-03-22T11:39:20.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-06 22:16 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('yafa', '0001_initial'), ] operations = [ migrations.RemoveField( ...
24.25
63
0.54181
716
0.82016
0
0
0
0
0
0
142
0.162658
6e7d261c65a6ddf389725d10b7241f84b3620572
501
py
Python
toys/urls.py
julesc00/restful
11b5312caf4affeaa06e3ceb5b86a7c73357eed1
[ "MIT" ]
null
null
null
toys/urls.py
julesc00/restful
11b5312caf4affeaa06e3ceb5b86a7c73357eed1
[ "MIT" ]
null
null
null
toys/urls.py
julesc00/restful
11b5312caf4affeaa06e3ceb5b86a7c73357eed1
[ "MIT" ]
null
null
null
from django.urls import path from toys.views import (toy_list_view, toy_detail_view, toy_sql_view, toy_raw_sql_view, toy_aggregate_view) app_name = "toys" urlpatterns = [ path("toys/", toy_list_view, name="toys_list"), path("toys_sql/", toy_sql_view, name="toys_sql_list"), path("to...
35.785714
87
0.692615
0
0
0
0
0
0
0
0
129
0.257485
6e7e694936dd85ec6e3ce90826c00f74519f89dc
5,590
py
Python
predict_image.py
sempwn/kaggle-cats-v-dogs
0b0e50ca5208248d18b31bfdd456cdb6401060d7
[ "MIT" ]
null
null
null
predict_image.py
sempwn/kaggle-cats-v-dogs
0b0e50ca5208248d18b31bfdd456cdb6401060d7
[ "MIT" ]
null
null
null
predict_image.py
sempwn/kaggle-cats-v-dogs
0b0e50ca5208248d18b31bfdd456cdb6401060d7
[ "MIT" ]
null
null
null
'''This script goes along the blog post "Building powerful image classification models using very little data" from blog.keras.io. It uses data that can be downloaded at: https://www.kaggle.com/c/dogs-vs-cats/data In our setup, we: - created a data/ folder - created train/ and validation/ subfolders inside data/ - crea...
38.287671
111
0.719499
0
0
0
0
0
0
0
0
2,667
0.477102
6e7f3a4c08faec09d89aa387dcfdf45492ab2264
163
py
Python
ultimate-utils-proj-src/uutils/torch_uu/training/meta_training.py
brando90/ultimate-utils
9b7ca2e9d330333c4e49722d0708d65b22ed173a
[ "MIT" ]
5
2021-03-13T16:07:26.000Z
2021-09-09T17:00:36.000Z
ultimate-utils-proj-src/uutils/torch_uu/training/meta_training.py
brando90/ultimate-utils
9b7ca2e9d330333c4e49722d0708d65b22ed173a
[ "MIT" ]
8
2021-03-09T21:52:09.000Z
2021-12-02T17:23:33.000Z
ultimate-utils-proj-src/uutils/torch_uu/training/meta_training.py
brando90/ultimate-utils
9b7ca2e9d330333c4e49722d0708d65b22ed173a
[ "MIT" ]
5
2021-03-24T20:38:43.000Z
2022-03-17T07:54:12.000Z
""" TODO: Once I finish the d zero and high paper, I will port the code here. TODO: also put the epochs training, for the ml vs maml paper with synthetic data. """
40.75
81
0.730061
0
0
0
0
0
0
0
0
163
1
6e7ff5caf482e80185273f9434f18cc9786fbe99
692
py
Python
setup.py
ellwise/kedro-light
8f5a05d880f3ded23b024d5db72b5fc615e75230
[ "MIT" ]
2
2021-10-16T12:19:50.000Z
2022-01-20T16:50:14.000Z
setup.py
ellwise/kedro-light
8f5a05d880f3ded23b024d5db72b5fc615e75230
[ "MIT" ]
null
null
null
setup.py
ellwise/kedro-light
8f5a05d880f3ded23b024d5db72b5fc615e75230
[ "MIT" ]
null
null
null
from setuptools import setup from os import path # read the contents of your README file curr_dir = path.abspath(path.dirname(__file__)) with open(path.join(curr_dir, "README.md"), encoding="utf-8") as f: long_description = f.read() setup( name="kedro-light", version="0.1", description="A lightweight...
27.68
67
0.710983
0
0
0
0
0
0
0
0
233
0.336705
6e812cd9d9f3ad6325c8b7be7fb0c2f7d95ff84f
1,217
py
Python
app.py
mh-github/mh-wtgw
0e8d9b622954e14d1e24fda6fc6a4e63af2cd822
[ "CC0-1.0" ]
null
null
null
app.py
mh-github/mh-wtgw
0e8d9b622954e14d1e24fda6fc6a4e63af2cd822
[ "CC0-1.0" ]
null
null
null
app.py
mh-github/mh-wtgw
0e8d9b622954e14d1e24fda6fc6a4e63af2cd822
[ "CC0-1.0" ]
null
null
null
import random from flask import Flask, request, render_template, jsonify app = Flask(__name__) data_list = [] with open('data.txt', 'r') as data_file: data_list = data_file.readlines() @app.route("/", methods=['GET']) def index(): index = random.randint(1, len(data_list) - 1) clue = dat...
27.659091
98
0.57765
0
0
0
0
943
0.774856
0
0
172
0.141331
6e81c177879d88e6b010319496c61e52cdb196f1
13,606
py
Python
imported_files/plotting_cswl05.py
SoumyaShreeram/Locating_AGN_in_DM_halos
1cfbee69b2c000faee4ecb199d65c3235afbed42
[ "MIT" ]
null
null
null
imported_files/plotting_cswl05.py
SoumyaShreeram/Locating_AGN_in_DM_halos
1cfbee69b2c000faee4ecb199d65c3235afbed42
[ "MIT" ]
null
null
null
imported_files/plotting_cswl05.py
SoumyaShreeram/Locating_AGN_in_DM_halos
1cfbee69b2c000faee4ecb199d65c3235afbed42
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Plotting.py for notebook 05_Preliminary_comparison_of_simulations_AGN_fraction_with_data This python file contains all the functions used for plotting graphs and maps in the 2nd notebook (.ipynb) of the repository: 05. Preliminary comparison of the 𝑓MM between simulation and data Script wr...
43.193651
269
0.648317
0
0
0
0
0
0
0
0
3,965
0.291351
6e824c90d5cc97b09e96bf2d9fa8d40cff2f3778
1,797
py
Python
goatools/gosubdag/utils.py
camiloaruiz/goatools
3da97251ccb6c5e90b616c3f625513f8aba5aa10
[ "BSD-2-Clause" ]
null
null
null
goatools/gosubdag/utils.py
camiloaruiz/goatools
3da97251ccb6c5e90b616c3f625513f8aba5aa10
[ "BSD-2-Clause" ]
null
null
null
goatools/gosubdag/utils.py
camiloaruiz/goatools
3da97251ccb6c5e90b616c3f625513f8aba5aa10
[ "BSD-2-Clause" ]
null
null
null
"""Small lightweight utilities used frequently in GOATOOLS.""" __copyright__ = "Copyright (C) 2016-2018, DV Klopfenstein, H Tang, All rights reserved." __author__ = "DV Klopfenstein" def extract_kwargs(args, exp_keys, exp_elems): """Return user-specified keyword args in a dictionary and a set (for True/False ite...
41.790698
94
0.668893
0
0
0
0
0
0
0
0
742
0.41291
6e82b8d1720684c00d864fb512765fbff3379ce5
309
py
Python
nicos_ess/ymir/setups/forwarder.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
1
2021-03-26T10:30:45.000Z
2021-03-26T10:30:45.000Z
nicos_ess/ymir/setups/forwarder.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_ess/ymir/setups/forwarder.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
3
2020-08-04T18:35:05.000Z
2021-04-16T11:22:08.000Z
description = 'Monitors the status of the Forwarder' devices = dict( KafkaForwarder=device( 'nicos_ess.devices.forwarder.EpicsKafkaForwarder', description='Monitors the status of the Forwarder', statustopic='UTGARD_forwarderStatus', brokers=['172.30.242.20:9092']), )
30.9
59
0.68932
0
0
0
0
0
0
0
0
169
0.546926
6e83557731c2fd4923e8fa481bc7d1048e5e106e
985
py
Python
codetree/cli.py
slank/codetree
c1aad059ad31aa1b3cca80a89861c659fce217ac
[ "MIT" ]
2
2015-03-16T11:46:28.000Z
2017-04-01T13:58:47.000Z
codetree/cli.py
slank/codetree
c1aad059ad31aa1b3cca80a89861c659fce217ac
[ "MIT" ]
null
null
null
codetree/cli.py
slank/codetree
c1aad059ad31aa1b3cca80a89861c659fce217ac
[ "MIT" ]
null
null
null
from argparse import ArgumentParser import logging from .config import Config import sys def main(): ap = ArgumentParser() ap.add_argument("cfgfile", nargs="+", help="Codetree configuration file") verbosity = ap.add_mutually_exclusive_group(required=False) verbosity.add_argument("-v", "--verbose", act...
30.78125
82
0.655838
0
0
0
0
0
0
0
0
182
0.184772
6e85d5b6b7bc4a9b52702783da32bcd642bd2255
5,862
py
Python
notebooks/utils.py
cognoma/ml-workers
781763c8361d49023222c7349350c3c4774ce4fa
[ "BSD-3-Clause" ]
null
null
null
notebooks/utils.py
cognoma/ml-workers
781763c8361d49023222c7349350c3c4774ce4fa
[ "BSD-3-Clause" ]
13
2017-01-31T22:54:03.000Z
2021-02-02T21:42:33.000Z
notebooks/utils.py
cognoma/ml-workers
781763c8361d49023222c7349350c3c4774ce4fa
[ "BSD-3-Clause" ]
7
2017-06-29T14:19:11.000Z
2018-04-08T12:06:21.000Z
""" Methods for building Cognoma mutation classifiers Usage - Import only """ import pandas as pd from sklearn.metrics import roc_curve, roc_auc_score import plotnine as gg def theme_cognoma(fontsize_mult=1): return (gg.theme_bw(base_size=14 * fontsize_mult) + gg.theme(line=gg.element_line(color="#4...
42.788321
85
0.638519
0
0
0
0
0
0
0
0
2,485
0.423917
6e85eafe88b2abc4b10f2eb6623ed07ecab6567b
1,740
py
Python
docs/fossil-help-cmd.py
smitty1eGH/pyphlogiston
5134be190cdb31ace04ac5ce2e699a48e54e036e
[ "MIT" ]
null
null
null
docs/fossil-help-cmd.py
smitty1eGH/pyphlogiston
5134be190cdb31ace04ac5ce2e699a48e54e036e
[ "MIT" ]
null
null
null
docs/fossil-help-cmd.py
smitty1eGH/pyphlogiston
5134be190cdb31ace04ac5ce2e699a48e54e036e
[ "MIT" ]
null
null
null
from subprocess import run cmds = [ "3-way-merge", "ci", "help", "push", "stash", "add", "clean", "hook", "rebuild", "status", "addremove", "clone", "http", "reconstruct", "sync", "alerts", "close", "import", "redo", "tag", "all", ...
14.745763
77
0.440805
0
0
0
0
0
0
0
0
915
0.525862
6e89094dd4c599ed774bc54e2865f3ed2293d233
257
bzl
Python
internal/copts.bzl
zaucy/bzlws
a8f3e4b0bc168059ec92971b1ea7c214db2c5454
[ "MIT" ]
4
2021-07-21T01:43:50.000Z
2021-11-18T03:23:18.000Z
internal/copts.bzl
zaucy/bzlws
a8f3e4b0bc168059ec92971b1ea7c214db2c5454
[ "MIT" ]
null
null
null
internal/copts.bzl
zaucy/bzlws
a8f3e4b0bc168059ec92971b1ea7c214db2c5454
[ "MIT" ]
1
2022-02-03T07:53:17.000Z
2022-02-03T07:53:17.000Z
_msvc_copts = ["/std:c++17"] _clang_cl_copts = ["/std:c++17"] _gcc_copts = ["-std=c++17"] copts = select({ "@bazel_tools//tools/cpp:msvc": _msvc_copts, "@bazel_tools//tools/cpp:clang-cl": _clang_cl_copts, "//conditions:default": _gcc_copts, })
25.7
56
0.649805
0
0
0
0
0
0
0
0
122
0.474708
6e8aa5fdaccdc2cf8e079b7b4e650e213a55472a
1,154
py
Python
monitor.py
projectsbyif/trillian-demo-audit
5bb08ae3c359698d8beb47ced39d21e793539396
[ "Apache-2.0" ]
null
null
null
monitor.py
projectsbyif/trillian-demo-audit
5bb08ae3c359698d8beb47ced39d21e793539396
[ "Apache-2.0" ]
1
2021-06-02T02:13:46.000Z
2021-06-02T02:13:46.000Z
monitor.py
projectsbyif/trillian-demo-audit
5bb08ae3c359698d8beb47ced39d21e793539396
[ "Apache-2.0" ]
null
null
null
import logging import sys from trillian import TrillianLog from print_helper import Print from pprint import pprint def main(argv): logging.basicConfig(level=logging.INFO) trillian_log = TrillianLog.load_from_environment() Print.status('Checking signature on signed log root') validated_log_root = ...
26.227273
70
0.707972
0
0
0
0
0
0
0
0
403
0.34922
6e8b21d90213008722c8b31b5d6059ea9e59aa07
875
py
Python
src/geocurrency/units/urls.py
OpenPrunus/geocurrency
23cc075377d47ac631634cd71fd0e7d6b0a57bad
[ "MIT" ]
5
2021-01-28T16:45:49.000Z
2021-08-15T06:47:17.000Z
src/geocurrency/units/urls.py
OpenPrunus/geocurrency
23cc075377d47ac631634cd71fd0e7d6b0a57bad
[ "MIT" ]
8
2020-10-01T15:12:45.000Z
2021-10-05T14:45:33.000Z
src/geocurrency/units/urls.py
OpenPrunus/geocurrency
23cc075377d47ac631634cd71fd0e7d6b0a57bad
[ "MIT" ]
2
2021-01-28T16:43:16.000Z
2021-10-05T14:25:25.000Z
""" Units module URLs """ from django.conf.urls import url, include from django.urls import path from rest_framework import routers from .viewsets import UnitSystemViewset, UnitViewset, \ ConvertView, CustomUnitViewSet from geocurrency.calculations.viewsets import ValidateViewSet, CalculationView app_name = 'uni...
31.25
78
0.726857
0
0
0
0
0
0
0
0
214
0.244571
6e8ba5d71602dfafef83788dd25424753fb81302
22
py
Python
rtk/_reports_/__init__.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
null
null
null
rtk/_reports_/__init__.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
null
null
null
rtk/_reports_/__init__.py
rakhimov/rtk
adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63
[ "BSD-3-Clause" ]
2
2020-04-03T04:14:42.000Z
2021-02-22T05:30:35.000Z
from tabular import *
11
21
0.772727
0
0
0
0
0
0
0
0
0
0
6e8c6eb072fed5f8eeeb59211773c40061897cf1
383
py
Python
backend/urls.py
starmarek/organize-me-2
bd9b73d3e6d9a4ebc4cbb8a20c97729bdc6b1377
[ "MIT" ]
1
2021-03-09T20:49:51.000Z
2021-03-09T20:49:51.000Z
backend/urls.py
starmarek/organize-me-2
bd9b73d3e6d9a4ebc4cbb8a20c97729bdc6b1377
[ "MIT" ]
7
2021-05-08T11:05:15.000Z
2021-05-08T11:12:27.000Z
backend/urls.py
starmarek/organize-me-2
bd9b73d3e6d9a4ebc4cbb8a20c97729bdc6b1377
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import include, path from rest_framework import routers from .shifts.views import ShiftView from .workers.views import WorkerView router = routers.DefaultRouter() router.register("workers", WorkerView) router.register("shifts", ShiftView) urlpatterns = [ path("ad...
23.9375
38
0.762402
0
0
0
0
0
0
0
0
27
0.070496
6e8d075cdc130105dd93cb71efed865a3cfcfbc8
257
py
Python
ssk/alpha/api.py
jobliz/solid-state-kinetics
c5767b400b19bd0256c806001664f0b369718bab
[ "MIT" ]
2
2017-03-08T21:32:11.000Z
2017-07-19T03:27:18.000Z
ssk/alpha/api.py
jobliz/solid-state-kinetics
c5767b400b19bd0256c806001664f0b369718bab
[ "MIT" ]
null
null
null
ssk/alpha/api.py
jobliz/solid-state-kinetics
c5767b400b19bd0256c806001664f0b369718bab
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np from scipy import integrate __all__ = ['area', 'simple'] def simple(p): pass def area(p): cumul = np.hstack(([0], integrate.cumtrapz(np.abs(np.gradient(p))))) return cumul / max(cumul)
17.133333
72
0.669261
0
0
0
0
0
0
0
0
14
0.054475
6e8f20f780d781f8cdc23f8a2e62a4a9d0aaaf14
6,451
py
Python
randominette.py
Dutesier/randominette
2260c0f521d9fcc97f30a8cceb36c94dbee3d474
[ "MIT" ]
null
null
null
randominette.py
Dutesier/randominette
2260c0f521d9fcc97f30a8cceb36c94dbee3d474
[ "MIT" ]
null
null
null
randominette.py
Dutesier/randominette
2260c0f521d9fcc97f30a8cceb36c94dbee3d474
[ "MIT" ]
2
2022-01-19T00:27:59.000Z
2022-01-19T03:46:21.000Z
# **************************************************************************** # # # # ::: :::::::: # # randominette.py :+: :+: :+: ...
38.39881
148
0.509068
0
0
0
0
0
0
0
0
2,600
0.403038
6e918c5815dd4774b7932aa1ec3b9fffa1176641
750
py
Python
newsman/factories.py
acapitanelli/newsman
3f109f42afe6131383fba1e118b7b9457d76096b
[ "MIT" ]
null
null
null
newsman/factories.py
acapitanelli/newsman
3f109f42afe6131383fba1e118b7b9457d76096b
[ "MIT" ]
null
null
null
newsman/factories.py
acapitanelli/newsman
3f109f42afe6131383fba1e118b7b9457d76096b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """This module provides a way to initialize components for processing pipeline. Init functions are stored into a dictionary which can be used by `Pipeline` to load components on demand. """ from .pipeline import Byte2html, Html2text, Html2image, Html2meta, Text2title def build_factories(): ...
32.608696
78
0.698667
0
0
0
0
0
0
0
0
328
0.437333
6e91c4809b083bd8e190189c7a4286818bc08e69
3,673
py
Python
deprecated.py
thu-fit/DCGAN-anime
da549bd45a6ca3c4c5a8894945d3242c59f823a0
[ "MIT" ]
null
null
null
deprecated.py
thu-fit/DCGAN-anime
da549bd45a6ca3c4c5a8894945d3242c59f823a0
[ "MIT" ]
null
null
null
deprecated.py
thu-fit/DCGAN-anime
da549bd45a6ca3c4c5a8894945d3242c59f823a0
[ "MIT" ]
null
null
null
def sampler(self, z, y=None): '''generate iamge given z''' with tf.variable_scope("generator") as scope: # we hope the weights defined in generator to be reused scope.reuse_variables() if not self.y_dim: s_h, s_w = self.output_height, self.output_width s_h2, s_w2 = conv_ou...
39.494624
103
0.613395
0
0
0
0
0
0
0
0
453
0.123332
6e922f24956d34276912f3a429414da7e22eb9ef
14,915
py
Python
Prioritize/get_HPO_similarity_score.py
mbosio85/ediva
c0a1aa4dd8951fa659483164c3706fb9374beb95
[ "MIT" ]
1
2021-02-23T07:42:42.000Z
2021-02-23T07:42:42.000Z
Prioritize/get_HPO_similarity_score.py
mbosio85/ediva
c0a1aa4dd8951fa659483164c3706fb9374beb95
[ "MIT" ]
null
null
null
Prioritize/get_HPO_similarity_score.py
mbosio85/ediva
c0a1aa4dd8951fa659483164c3706fb9374beb95
[ "MIT" ]
1
2019-09-26T01:21:06.000Z
2019-09-26T01:21:06.000Z
## how we measure the similarity between two lists w/ IC per each node ## we have a DAG strucutre ## goal is for each Gene !! output a 'semantic distance' # based on https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2756558/ [but different] # with this two equal nodes will have distance '0' # maximum distance is -2log(1/...
32.852423
158
0.578947
0
0
0
0
0
0
0
0
5,381
0.360778
6e942a1e8c0fd4f03d779fd36629d8f97651ff14
364
py
Python
tests/tfgraph/utils/test_datasets.py
tfgraph/tfgraph
19ae968b3060275c631dc601757646abaf1f58a1
[ "Apache-2.0" ]
4
2017-07-23T13:48:35.000Z
2021-12-03T18:11:50.000Z
tests/tfgraph/utils/test_datasets.py
tfgraph/tfgraph
19ae968b3060275c631dc601757646abaf1f58a1
[ "Apache-2.0" ]
21
2017-07-23T13:15:20.000Z
2020-09-28T02:13:11.000Z
tests/tfgraph/utils/test_datasets.py
tfgraph/tfgraph
19ae968b3060275c631dc601757646abaf1f58a1
[ "Apache-2.0" ]
1
2017-07-28T10:28:04.000Z
2017-07-28T10:28:04.000Z
import tfgraph def test_data_sets_naive_4(): assert tfgraph.DataSets.naive_4().shape == (8, 2) def test_data_sets_naive_6(): assert tfgraph.DataSets.naive_6().shape == (9, 2) def test_data_sets_compose(): assert tfgraph.DataSets.compose_from_path("./datasets/wiki-Vote/wiki-Vote.csv", ...
24.266667
81
0.653846
0
0
0
0
0
0
0
0
36
0.098901
6e94f020370af25596b5a73fe263fae2cf996278
668
py
Python
deploy/virenv/lib/python2.7/site-packages/haystack/outputters/__init__.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
deploy/virenv/lib/python2.7/site-packages/haystack/outputters/__init__.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
deploy/virenv/lib/python2.7/site-packages/haystack/outputters/__init__.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ :mod:`haystack.outputs` -- classes that create an output ============================================================================== """ from haystack import utils class Outputter(object): """ Outputter interface """ def __init__(self, memory_handler): self._memory_h...
27.833333
85
0.591317
468
0.700599
0
0
0
0
0
0
217
0.32485
6e9649858a66821226a8387a5c2ae25467b9d1c9
631
py
Python
adminmgr/media/code/python/red3/BD_543_565_624_reducer.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
9
2019-11-08T02:05:27.000Z
2021-12-13T12:06:35.000Z
adminmgr/media/code/config/BD_543_565_624_reducer.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
6
2019-11-27T03:23:16.000Z
2021-06-10T19:15:13.000Z
adminmgr/media/code/python/red3/BD_543_565_624_reducer.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
4
2019-11-26T17:04:27.000Z
2021-12-13T11:57:03.000Z
#!/usr/bin/python3 import sys # f=open("reduce3.csv","w+") di={} for y in sys.stdin: Record=list(map(str,y.split(","))) if(len(Record)>3): Record=[Record[0]+","+Record[1],Record[2],Record[3]] s=int(Record[2][:-1]) if (Record[0],Record[1]) not in di: di[(Record[0],Record[1])]=[s,1] else: di[(Record[0],Record[...
24.269231
54
0.557845
0
0
0
0
0
0
0
0
81
0.128368
6e9740ebd2a997095586f788ec3e7c7b37619818
9,622
py
Python
hbgd_data_store_server/studies/management/commands/load_idx.py
pcstout/study-explorer
b49a6853d8155f1586360138ed7f87d165793184
[ "Apache-2.0" ]
2
2019-04-02T14:31:27.000Z
2020-04-13T20:41:46.000Z
hbgd_data_store_server/studies/management/commands/load_idx.py
pcstout/study-explorer
b49a6853d8155f1586360138ed7f87d165793184
[ "Apache-2.0" ]
7
2019-08-07T14:44:54.000Z
2020-06-05T17:30:51.000Z
hbgd_data_store_server/studies/management/commands/load_idx.py
pcstout/study-explorer
b49a6853d8155f1586360138ed7f87d165793184
[ "Apache-2.0" ]
1
2019-03-27T01:32:30.000Z
2019-03-27T01:32:30.000Z
# Copyright 2017-present, Bill & Melinda Gates Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
35.902985
84
0.610788
3,774
0.392226
0
0
0
0
0
0
2,285
0.237477
6e97ddc9ef075e7d004c1410ff22b946e2b0175d
1,937
py
Python
setup.py
hojinYang/neureca
b1eb7246b731b7a0c7264b47c1c27239b9fe1224
[ "Apache-2.0" ]
7
2021-08-24T14:34:33.000Z
2021-12-10T12:43:50.000Z
setup.py
hojinYang/neureca
b1eb7246b731b7a0c7264b47c1c27239b9fe1224
[ "Apache-2.0" ]
null
null
null
setup.py
hojinYang/neureca
b1eb7246b731b7a0c7264b47c1c27239b9fe1224
[ "Apache-2.0" ]
1
2021-09-10T17:50:38.000Z
2021-09-10T17:50:38.000Z
from setuptools import setup, find_packages with open("README.md", encoding="utf-8") as f: long_description = f.read() setup( name="neureca", version="0.0.1", description="A framework for building conversational recommender systems", long_description=long_description, long_description_content_...
32.283333
89
0.565823
0
0
0
0
0
0
0
0
1,124
0.580279
6e98642f2b6b958a07ac0e545cf862d4394aa56c
786
py
Python
Thread.PY/thread-rlock.py
Phoebus-Ma/Python-Helper
d880729f0bbfbc2b1503602fd74c9177ecd4e970
[ "MIT" ]
null
null
null
Thread.PY/thread-rlock.py
Phoebus-Ma/Python-Helper
d880729f0bbfbc2b1503602fd74c9177ecd4e970
[ "MIT" ]
null
null
null
Thread.PY/thread-rlock.py
Phoebus-Ma/Python-Helper
d880729f0bbfbc2b1503602fd74c9177ecd4e970
[ "MIT" ]
null
null
null
### # Thread rlock test. # # License - MIT. ### import time from threading import Thread, RLock # thread_test2 - Thread test2 function. def thread_test2(rlock): # { time.sleep(0.5) rlock.acquire() print('Third acquire.') rlock.release() # } # thread_test1 - Thread test1 function. def thread_test...
14.290909
64
0.619593
0
0
0
0
0
0
0
0
245
0.311705
6e98aa2320fefc8b613e9eb26ab879e97d03ea24
1,319
py
Python
api/python/tests/test_bingo_nosql.py
tsingdao-Tp/Indigo
b2d73faebb6a450e9b3d34fed553fad4f9d0012f
[ "Apache-2.0" ]
204
2015-11-06T21:34:34.000Z
2022-03-30T16:17:01.000Z
api/python/tests/test_bingo_nosql.py
tsingdao-Tp/Indigo
b2d73faebb6a450e9b3d34fed553fad4f9d0012f
[ "Apache-2.0" ]
509
2015-11-05T13:54:43.000Z
2022-03-30T22:15:30.000Z
api/python/tests/test_bingo_nosql.py
tsingdao-Tp/Indigo
b2d73faebb6a450e9b3d34fed553fad4f9d0012f
[ "Apache-2.0" ]
89
2015-11-17T08:22:54.000Z
2022-03-17T04:26:28.000Z
import shutil import tempfile from indigo.bingo import Bingo from tests import TestIndigoBase class TestBingo(TestIndigoBase): def setUp(self) -> None: super().setUp() self.test_folder = tempfile.mkdtemp() def tearDown(self) -> None: shutil.rmtree(self.test_folder) def test_mol...
33.820513
87
0.64746
1,220
0.924943
0
0
0
0
0
0
48
0.036391
6e9910237b294e11a1a1bbded611300e71f69a4f
3,932
py
Python
src/core/src/tortuga/scripts/get_kit.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
33
2018-03-02T17:07:39.000Z
2021-05-21T18:02:51.000Z
src/core/src/tortuga/scripts/get_kit.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
201
2018-03-05T14:28:24.000Z
2020-11-23T19:58:27.000Z
src/core/src/tortuga/scripts/get_kit.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
23
2018-03-02T17:21:59.000Z
2020-11-18T14:52:38.000Z
# Copyright 2008-2018 Univa Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
31.96748
74
0.559003
3,117
0.792726
0
0
0
0
0
0
1,171
0.297813
6e99d90082f82cff092fcb68582087a7ab692e17
2,264
py
Python
examples.py
ThyagoFRTS/power-eletric
dd26cd5ffb2aca0741d8983e57351488badc64da
[ "MIT" ]
1
2021-11-07T02:31:58.000Z
2021-11-07T02:31:58.000Z
examples.py
ThyagoFRTS/power-eletric
dd26cd5ffb2aca0741d8983e57351488badc64da
[ "MIT" ]
null
null
null
examples.py
ThyagoFRTS/power-eletric
dd26cd5ffb2aca0741d8983e57351488badc64da
[ "MIT" ]
null
null
null
from power_sizing import calculate_power_luminance from power_sizing import calculate_number_and_power_of_tugs from conductor_sizing import conduction_capacity from conductor_sizing import minimum_section from conductor_sizing import voltage_drop from conductor_sizing import harmonic_rate from neutral_sizing import get...
48.170213
153
0.774293
0
0
0
0
0
0
0
0
1,131
0.499558
6e9df45528e4294de8ca5838baa62293adbb002d
784
py
Python
myapp/migrations/0008_doctordata_specialist.py
sarodemayur55/Hospital_Management_Website
a90e64d2b02482d7ad69a807365bdc0abfca4212
[ "Apache-2.0" ]
1
2022-02-08T16:37:43.000Z
2022-02-08T16:37:43.000Z
myapp/migrations/0008_doctordata_specialist.py
sarodemayur55/Hospital_Management_Website
a90e64d2b02482d7ad69a807365bdc0abfca4212
[ "Apache-2.0" ]
null
null
null
myapp/migrations/0008_doctordata_specialist.py
sarodemayur55/Hospital_Management_Website
a90e64d2b02482d7ad69a807365bdc0abfca4212
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.6 on 2021-05-15 11:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myapp', '0007_auto_20210317_1817'), ] operations = [ migrations.CreateModel( name='doctordata', fields=[ ...
27.034483
83
0.53699
691
0.881378
0
0
0
0
0
0
135
0.172194
6e9f10181a7ecfeffe5b3e63362769aa8677cc14
12,338
py
Python
eventide/message.py
blakev/python-eventide
ef547a622c52eec8acb9d7ca4cc01fae0ab7bad0
[ "MIT" ]
1
2021-01-14T18:35:44.000Z
2021-01-14T18:35:44.000Z
eventide/message.py
blakev/python-eventide
ef547a622c52eec8acb9d7ca4cc01fae0ab7bad0
[ "MIT" ]
null
null
null
eventide/message.py
blakev/python-eventide
ef547a622c52eec8acb9d7ca4cc01fae0ab7bad0
[ "MIT" ]
2
2021-04-20T22:09:02.000Z
2021-07-29T21:52:30.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # # >> # python-eventide, 2020 # LiveViewTech # << from uuid import UUID, uuid4 from datetime import datetime from operator import attrgetter from functools import total_ordering from dataclasses import ( field, asdict, fields, dataclass, _process_...
33.710383
92
0.623197
9,040
0.732696
0
0
5,750
0.46604
0
0
3,830
0.310423
6e9f30208ea04fa7ad96c88e5f93a7fce170ab1e
10,926
py
Python
utils/minifier.py
MateuszDabrowski/elquent
9ff9c57d01a8ade7ebc7a903f228d4b7ed7324c4
[ "MIT" ]
4
2021-05-26T19:48:31.000Z
2022-03-01T03:52:39.000Z
utils/minifier.py
MateuszDabrowski/ELQuent
9ff9c57d01a8ade7ebc7a903f228d4b7ed7324c4
[ "MIT" ]
null
null
null
utils/minifier.py
MateuszDabrowski/ELQuent
9ff9c57d01a8ade7ebc7a903f228d4b7ed7324c4
[ "MIT" ]
3
2021-03-05T23:06:38.000Z
2021-10-05T19:56:28.000Z
#!/usr/bin/env python3.6 # -*- coding: utf8 -*- ''' ELQuent.minifier E-mail code minifier Mateusz Dąbrowski github.com/MateuszDabrowski linkedin.com/in/mateusz-dabrowski-marketing/ ''' import os import re import sys import json import pyperclip from colorama import Fore, Style, init # ELQuent imports import utils.a...
33.618462
116
0.532857
0
0
0
0
0
0
0
0
5,569
0.509049
6ea22002e9ef59fb7dc0ae80af6cf9fc57e8fc02
2,305
py
Python
doc/conf.py
safay/uta
bf3cf5a531aec4cca61f8926e79a624d01c76682
[ "Apache-2.0" ]
48
2016-09-20T16:28:46.000Z
2022-02-02T10:32:02.000Z
doc/conf.py
safay/uta
bf3cf5a531aec4cca61f8926e79a624d01c76682
[ "Apache-2.0" ]
45
2016-12-12T23:41:12.000Z
2022-02-09T11:48:04.000Z
doc/conf.py
safay/uta
bf3cf5a531aec4cca61f8926e79a624d01c76682
[ "Apache-2.0" ]
20
2016-10-09T10:16:44.000Z
2021-06-18T02:19:58.000Z
############################################################################ # Theme setup html_theme = 'invitae' html_theme_path = ['themes'] if html_theme == 'sphinx_rtd_theme': import sphinx_rtd_theme html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] elif html_theme == 'bootstrap': import sphi...
29.935065
77
0.647722
0
0
0
0
0
0
0
0
1,484
0.643818
6ea3527b6763af10afefd4e777c572e2ac4172fc
997
py
Python
exercises_gustguan/ex113.py
Ewerton12F/Python-Notebook
85c4d38c35c6063fb475c25ebf4645688ec9dbcb
[ "MIT" ]
null
null
null
exercises_gustguan/ex113.py
Ewerton12F/Python-Notebook
85c4d38c35c6063fb475c25ebf4645688ec9dbcb
[ "MIT" ]
null
null
null
exercises_gustguan/ex113.py
Ewerton12F/Python-Notebook
85c4d38c35c6063fb475c25ebf4645688ec9dbcb
[ "MIT" ]
null
null
null
def leiaInt(msg): while True: try: i = int(input(msg)) except (ValueError, TypeError): print('\033[1;3;31mERRO: Por favor, digite um número inteiro válido.\033[0;0;0m') continue except (KeyboardInterrupt): print('\n\033[1;3;33mUsuário preferiu ...
33.233333
93
0.565697
0
0
0
0
0
0
0
0
419
0.415263
6ea43d3eb6ab1823ba2e818e55cba7f4297fc931
10,851
py
Python
frameworks/kafka/tests/auth.py
minyk/dcos-activemq
57a0cf01053a7e2dc59020ed5cbb93f0d1c9cff1
[ "Apache-2.0" ]
null
null
null
frameworks/kafka/tests/auth.py
minyk/dcos-activemq
57a0cf01053a7e2dc59020ed5cbb93f0d1c9cff1
[ "Apache-2.0" ]
null
null
null
frameworks/kafka/tests/auth.py
minyk/dcos-activemq
57a0cf01053a7e2dc59020ed5cbb93f0d1c9cff1
[ "Apache-2.0" ]
null
null
null
import json import logging import retrying import sdk_cmd LOG = logging.getLogger(__name__) def wait_for_brokers(client: str, brokers: list): """ Run bootstrap on the specified client to resolve the list of brokers """ LOG.info("Running bootstrap to wait for DNS resolution") bootstrap_cmd = ['/o...
35.345277
117
0.599853
0
0
0
0
772
0.071146
0
0
3,565
0.328541
6ea45f9b51639f8a0b82e891df2cc0bae0501648
1,242
py
Python
python/problem-060.py
mbuhot/mbuhot-euler-solutions
30066543cfd2d84976beb0605839750b64f4b8ef
[ "MIT" ]
1
2015-12-18T13:25:41.000Z
2015-12-18T13:25:41.000Z
python/problem-060.py
mbuhot/mbuhot-euler-solutions
30066543cfd2d84976beb0605839750b64f4b8ef
[ "MIT" ]
null
null
null
python/problem-060.py
mbuhot/mbuhot-euler-solutions
30066543cfd2d84976beb0605839750b64f4b8ef
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import prime description = ''' Prime pair sets Problem 60 The primes 3, 7, 109, and 673, are quite remarkable. By taking any two primes and concatenating them in any order the result will always be prime. For example, taking 7 and 109, both 7109 and 1097 are prime. The sum of these four primes...
29.571429
313
0.681159
0
0
236
0.190016
0
0
0
0
492
0.396135
6ea54be459981a2401f315126f120b27aa749589
5,298
py
Python
multilanguage_frappe_website/hooks.py
developmentforpeople/frappe-multilingual-website
c0bf74453f3d1de6127ad174aab6c05360cc1ec1
[ "MIT" ]
null
null
null
multilanguage_frappe_website/hooks.py
developmentforpeople/frappe-multilingual-website
c0bf74453f3d1de6127ad174aab6c05360cc1ec1
[ "MIT" ]
null
null
null
multilanguage_frappe_website/hooks.py
developmentforpeople/frappe-multilingual-website
c0bf74453f3d1de6127ad174aab6c05360cc1ec1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "multilanguage_frappe_website" app_title = "Multilanguage Frappe Website" app_publisher = "DFP developmentforpeople" app_description = "Multilanguage Frappe Framework website example" app_icon = "octicon...
29.597765
99
0.714232
0
0
0
0
0
0
0
0
4,407
0.831823
6ea56221c4382d050ea20b187d845407bd8d039d
90
py
Python
renormalizer/mps/tdh/__init__.py
liwt31/Renormalizer
123a9d53f4f5f32c0088c255475f0ee60d02c745
[ "Apache-2.0" ]
null
null
null
renormalizer/mps/tdh/__init__.py
liwt31/Renormalizer
123a9d53f4f5f32c0088c255475f0ee60d02c745
[ "Apache-2.0" ]
null
null
null
renormalizer/mps/tdh/__init__.py
liwt31/Renormalizer
123a9d53f4f5f32c0088c255475f0ee60d02c745
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from renormalizer.mps.tdh.propagation import unitary_propagation
22.5
64
0.755556
0
0
0
0
0
0
0
0
23
0.255556
6ea5d0975fd4eec1bb06ec6bc86c9a210abd074c
398
py
Python
items/Boots_Of_Speed.py
ivoryhuang/LOL_simple_text_version
13c98721ad094c4eb6b835c838805c77dc9075c5
[ "MIT" ]
2
2017-01-08T15:53:49.000Z
2017-01-19T17:24:53.000Z
items/Boots_Of_Speed.py
ivoryhuang/LOL_simple_text_version
13c98721ad094c4eb6b835c838805c77dc9075c5
[ "MIT" ]
null
null
null
items/Boots_Of_Speed.py
ivoryhuang/LOL_simple_text_version
13c98721ad094c4eb6b835c838805c77dc9075c5
[ "MIT" ]
null
null
null
from items.Item import Item class Boots_Of_Speed(Item): def __init__(self): Item.__init__(self, name='Boots of Speed', code=1001, cost=300, sell=210) self.sub_items = None def stats(self, champ): champ.move_speed += 25 return "%s move speed increase %d" % (champ.name, 25) def remove_stats(self, champ): ...
28.428571
75
0.701005
369
0.927136
0
0
0
0
0
0
70
0.175879
6ea618363d6a6f275346b95643dd61b27b8e3d12
12,045
py
Python
RsNet/train_models.py
gehuangyi20/random_spiking
c98b550420ae4061b9d47ca475e86c981caf5514
[ "MIT" ]
1
2020-08-03T17:47:40.000Z
2020-08-03T17:47:40.000Z
RsNet/train_models.py
gehuangyi20/random_spiking
c98b550420ae4061b9d47ca475e86c981caf5514
[ "MIT" ]
null
null
null
RsNet/train_models.py
gehuangyi20/random_spiking
c98b550420ae4061b9d47ca475e86c981caf5514
[ "MIT" ]
null
null
null
## train_models.py -- train the neural network models for attacking ## ## Copyright (C) 2016, Nicholas Carlini <[email protected]>. ## ## This program is licenced under the BSD 2-Clause licence, ## contained in the LICENCE file in this directory. ## Modified for the needs of MagNet. import os import argparse impor...
47.235294
118
0.703778
0
0
0
0
0
0
0
0
2,179
0.180905
6ea71b4513f1f9f11b82f5034de5e9e21242e450
3,151
py
Python
link_crawler.py
Stevearzh/greedy-spider
ca8b1d892e4ac5066ab33aafe7755ee959ef630a
[ "MIT" ]
null
null
null
link_crawler.py
Stevearzh/greedy-spider
ca8b1d892e4ac5066ab33aafe7755ee959ef630a
[ "MIT" ]
null
null
null
link_crawler.py
Stevearzh/greedy-spider
ca8b1d892e4ac5066ab33aafe7755ee959ef630a
[ "MIT" ]
null
null
null
import datetime import re import time import urllib from urllib import robotparser from urllib.request import urlparse from downloader import Downloader DEFAULT_DELAY = 5 DEFAULT_DEPTH = -1 DEFAULT_URL = -1 DEFAULT_AGENT = 'wswp' DEFAULT_RETRY = 1 DEFAULT_TIMEOUT = 60 DEFAULT_IGNORE_ROBOTS = False def link_crawler...
28.645455
100
0.668042
0
0
0
0
0
0
0
0
969
0.307521
6ea734988dbfada1408954f978d47bd46b1b2de0
1,994
py
Python
Array.diff.py
ErosMLima/last-classes-js-py-node-php
14775adaa3372c03c1e73d0699516f759e162dc5
[ "MIT" ]
2
2020-08-01T03:31:28.000Z
2021-02-02T15:17:31.000Z
Array.diff.py
ErosMLima/last-classes-js-py-node-php
14775adaa3372c03c1e73d0699516f759e162dc5
[ "MIT" ]
null
null
null
Array.diff.py
ErosMLima/last-classes-js-py-node-php
14775adaa3372c03c1e73d0699516f759e162dc5
[ "MIT" ]
null
null
null
#Array.diff.py OKS function array_diff(a, b) { return a.filter(function(x) { return b,index(x) == -1; }); } #solution 2 for array,diff function array_diff(a, b) { return a.filter(e => !b.includes(e)); } function array_diff(a, b) { return a.filter(e => !b.includes(e)); } #Bouncing Balls ok ...
18.127273
76
0.587763
0
0
0
0
0
0
0
0
180
0.090271
6ea869001bb831aa67afe2e798624becb8124601
4,535
py
Python
scripts/bcbb_helpers/process_run_info.py
parlundin/scilifelab
e5f4be45e2e9ff6c0756be46ad34dfb7d20a4b4a
[ "MIT" ]
1
2016-03-21T14:04:09.000Z
2016-03-21T14:04:09.000Z
scripts/bcbb_helpers/process_run_info.py
parlundin/scilifelab
e5f4be45e2e9ff6c0756be46ad34dfb7d20a4b4a
[ "MIT" ]
35
2015-01-22T08:25:02.000Z
2020-02-17T12:09:12.000Z
scripts/bcbb_helpers/process_run_info.py
parlundin/scilifelab
e5f4be45e2e9ff6c0756be46ad34dfb7d20a4b4a
[ "MIT" ]
6
2015-01-16T15:32:08.000Z
2020-01-30T14:34:40.000Z
#!/usr/bin/env python import os import sys import yaml from optparse import OptionParser def main(run_info_yaml, lane, out_file, genome_build, barcode_type, trim, ascii, analysis, description, clear_description, verbose): if verbose: print "Verifying that %s exists" % run_info_yaml assert os.path.exists(r...
44.460784
132
0.622712
0
0
0
0
0
0
0
0
1,041
0.229548
6ea886c1faad67e0969ccc2de41ff81ea08b3480
196
py
Python
app/forms.py
haibincoder/DjangoTensorflow
7fc606fa5121f0c48d7c8e649775094d86e6387a
[ "MIT" ]
17
2018-07-21T04:14:09.000Z
2022-03-09T08:32:49.000Z
app/forms.py
haibincoder/DjangoTensorflow
7fc606fa5121f0c48d7c8e649775094d86e6387a
[ "MIT" ]
24
2020-01-28T22:11:42.000Z
2022-03-11T23:47:43.000Z
app/forms.py
haibincoder/DjangoTensorflow
7fc606fa5121f0c48d7c8e649775094d86e6387a
[ "MIT" ]
7
2018-12-13T08:55:07.000Z
2021-06-26T08:08:01.000Z
from django import forms #from app.models import Image # class ImageForm(forms.ModelForm): # class Meta: # model = Image # name = ['name'] # location = ['location']
17.818182
35
0.591837
0
0
0
0
0
0
0
0
162
0.826531
6ea8ed0768136e88f53d0dbb5391ad2ceecced0d
3,914
py
Python
python/create_account_with_captcha.py
shivanshbindal9/MediaWiki-Action-API-Code-Samples
7d673e73d7cabbf4342a18d275b271e7d4456808
[ "MIT" ]
null
null
null
python/create_account_with_captcha.py
shivanshbindal9/MediaWiki-Action-API-Code-Samples
7d673e73d7cabbf4342a18d275b271e7d4456808
[ "MIT" ]
null
null
null
python/create_account_with_captcha.py
shivanshbindal9/MediaWiki-Action-API-Code-Samples
7d673e73d7cabbf4342a18d275b271e7d4456808
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ create_account_with_captcha.py MediaWiki Action API Code Samples Demo of `createaccount` module: Create an account on a wiki with a special authentication extension installed. This example considers a case of a wiki where captcha is enabled through extensions like ConfirmEdi...
29.428571
94
0.625447
0
0
0
0
1,080
0.275933
0
0
1,702
0.434849
6ea998dc1fdefa4215c75aefbef6ea7363fe98e0
2,396
py
Python
main.py
smartsnake/PasswordGenerator
985f05b81271d7a18c0f99fc77870754c48102d5
[ "MIT" ]
null
null
null
main.py
smartsnake/PasswordGenerator
985f05b81271d7a18c0f99fc77870754c48102d5
[ "MIT" ]
null
null
null
main.py
smartsnake/PasswordGenerator
985f05b81271d7a18c0f99fc77870754c48102d5
[ "MIT" ]
null
null
null
import sys,os import argparse from util.MongoUtil import MongoUtil from util.Generator import Generator #Custom help messages def help_msg(name=None): return '''main.py [-h] [--length LENGTH] [--search SEARCHFIELD SEARCHTEXT] ''' def search_usage(): return'''python main.py --search website example....
34.724638
117
0.603506
0
0
0
0
0
0
0
0
842
0.351419
6eaaaf9c78bb564348f5f92937368a9dbc35cca5
66
py
Python
src/clusto/drivers/devices/networkswitches/__init__.py
rongoro/clusto
d6425433e5132e8778feeb9db4b8dd80b933b030
[ "BSD-3-Clause" ]
5
2015-07-19T08:28:01.000Z
2021-07-08T14:49:27.000Z
src/clusto/drivers/devices/networkswitches/__init__.py
wt/clusto
c114ce7c42dcfa33c1e79f4d3b49313115fea06b
[ "BSD-3-Clause" ]
null
null
null
src/clusto/drivers/devices/networkswitches/__init__.py
wt/clusto
c114ce7c42dcfa33c1e79f4d3b49313115fea06b
[ "BSD-3-Clause" ]
5
2015-01-06T07:57:07.000Z
2021-11-10T18:01:33.000Z
from basicnetworkswitch import * from cisconetworkswitch import *
22
32
0.848485
0
0
0
0
0
0
0
0
0
0
6eabff19e23935994d6606bc2eb537d62eca55d2
498
py
Python
referralnote/urls.py
fahimfarhan/cancer-web-app
6c5d8c5c90b0909cbd161d2ae87b4f12549bdfef
[ "MIT" ]
null
null
null
referralnote/urls.py
fahimfarhan/cancer-web-app
6c5d8c5c90b0909cbd161d2ae87b4f12549bdfef
[ "MIT" ]
5
2021-03-18T20:13:38.000Z
2022-01-13T00:35:37.000Z
referralnote/urls.py
fahimfarhan/cancer-web-app
6c5d8c5c90b0909cbd161d2ae87b4f12549bdfef
[ "MIT" ]
null
null
null
from django.conf.urls import url from referralnote import views app_name = 'referral_note' #view_obj = views.ReferralNotes() urlpatterns = [ url(r'^(?P<p_id>[0-9]+)/delete_referralnote/(?P<notenum>[0-9]+)$', views.delete_refnote, name='delete_referralnote'), url(r'^(?P<p_id>[0-9]+)/edit_referralnote...
31.125
120
0.688755
0
0
0
0
0
0
0
0
265
0.532129
6eac2fd4f481feb51a0c938cf7a2f928ddd2ec46
742
py
Python
beetlesafari/io/_imread_raw.py
haesleinhuepf/beetle-safari
a6c90d10b6b4d67c153f87c83c02bd23f2b13843
[ "BSD-3-Clause" ]
null
null
null
beetlesafari/io/_imread_raw.py
haesleinhuepf/beetle-safari
a6c90d10b6b4d67c153f87c83c02bd23f2b13843
[ "BSD-3-Clause" ]
null
null
null
beetlesafari/io/_imread_raw.py
haesleinhuepf/beetle-safari
a6c90d10b6b4d67c153f87c83c02bd23f2b13843
[ "BSD-3-Clause" ]
null
null
null
# thanks to max9111, https://stackoverflow.com/questions/41651998/python-read-and-convert-raw-3d-image-file import numpy as np from functools import lru_cache @lru_cache(maxsize=2) def imread_raw(filename : str, width : int = 1, height : int = 1, depth : int = 1, dtype = np.uint16): """Loads a raw image file (3D) ...
27.481481
107
0.663073
0
0
0
0
582
0.784367
0
0
404
0.544474
6eaca75829400aaa4a8f204a5c147dfdc9d105dc
655
py
Python
brain_games/games/gcd.py
belousovromnik/python-project-lvl1
11b4160b083b38c64b42ddd529d1379538eb9230
[ "MIT" ]
null
null
null
brain_games/games/gcd.py
belousovromnik/python-project-lvl1
11b4160b083b38c64b42ddd529d1379538eb9230
[ "MIT" ]
null
null
null
brain_games/games/gcd.py
belousovromnik/python-project-lvl1
11b4160b083b38c64b42ddd529d1379538eb9230
[ "MIT" ]
null
null
null
import random from brain_games.constants import MINIMAL_RANDOM, MAXIMAL_RANDOM def greeting(): return 'Find the greatest common divisor of given numbers.' def main_action(): first_el = random.randint(MINIMAL_RANDOM, MAXIMAL_RANDOM) second_el = random.randint(MINIMAL_RANDOM, MAXIMAL_RANDOM) correct_...
24.259259
64
0.728244
0
0
0
0
0
0
0
0
95
0.14158
6eaef18c836b626ea67de2012928ab0468afa91b
10,336
py
Python
highest_iso.py
chem-william/helix_fit
b9921b0068f1a3084985ca820094a0db15b6aac2
[ "MIT" ]
null
null
null
highest_iso.py
chem-william/helix_fit
b9921b0068f1a3084985ca820094a0db15b6aac2
[ "MIT" ]
null
null
null
highest_iso.py
chem-william/helix_fit
b9921b0068f1a3084985ca820094a0db15b6aac2
[ "MIT" ]
null
null
null
import os from ase.visualize import view from mpl_toolkits.mplot3d import Axes3D # noqa from scipy.optimize import curve_fit from tqdm import tqdm import matplotlib.pyplot as plt import numpy as np import seaborn as sns sns.set( style="ticks", rc={ "font.family": "Arial", "font.size": 40, ...
31.039039
95
0.544601
0
0
0
0
0
0
0
0
3,603
0.348587
6eb0570098060d342879612db34c154166a28bf0
477
py
Python
adlibre_dms/views.py
adlibre/Adlibre-DMS
96ce41b5699e2ea58e3ca560d46d481e954f17a4
[ "BSD-3-Clause" ]
48
2015-02-25T03:20:35.000Z
2022-03-11T09:02:42.000Z
adlibre_dms/views.py
adlibre/Adlibre-DMS
96ce41b5699e2ea58e3ca560d46d481e954f17a4
[ "BSD-3-Clause" ]
6
2015-01-09T08:30:53.000Z
2016-12-05T15:03:01.000Z
adlibre_dms/views.py
adlibre/Adlibre-DMS
96ce41b5699e2ea58e3ca560d46d481e954f17a4
[ "BSD-3-Clause" ]
24
2015-01-15T11:41:40.000Z
2022-03-17T20:31:06.000Z
from django.conf import settings from django import http from django.template import RequestContext, loader def server_error(request, template_name='500.html'): """ 500 error handler. Templates: `500.html` Context: MEDIA_URL Path of static media (e.g. "media.example.org") """ ...
26.5
65
0.685535
0
0
0
0
0
0
0
0
173
0.362683
6eb100cce3b9fcde7fec2f63e9fe107b7c59b8c7
372
py
Python
operations/fleet_management/migrations/0005_merge_20171213_1548.py
kaizer88/emps
2669b32c46befcf1a19390fb25013817e6b00980
[ "MIT" ]
null
null
null
operations/fleet_management/migrations/0005_merge_20171213_1548.py
kaizer88/emps
2669b32c46befcf1a19390fb25013817e6b00980
[ "MIT" ]
null
null
null
operations/fleet_management/migrations/0005_merge_20171213_1548.py
kaizer88/emps
2669b32c46befcf1a19390fb25013817e6b00980
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-13 13:48 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('fleet_management', '0003_vehicledocument_document_type'), ('fleet_management', '0004_inciden...
21.882353
67
0.693548
222
0.596774
0
0
0
0
0
0
173
0.465054
6eb3861496ef592c07af6ae7b192e47f4452b309
1,481
py
Python
secure_ml/attack/model_inversion.py
Koukyosyumei/secure_ml
9da24f4ce4782ec2f6dd63b0437f657a0e190e40
[ "MIT" ]
10
2021-02-23T01:32:48.000Z
2021-11-16T06:02:26.000Z
secure_ml/attack/model_inversion.py
Koukyosyumei/secure_ml
9da24f4ce4782ec2f6dd63b0437f657a0e190e40
[ "MIT" ]
2
2021-05-16T08:38:19.000Z
2021-06-20T09:01:45.000Z
secure_ml/attack/model_inversion.py
Koukyosyumei/secure_ml
9da24f4ce4782ec2f6dd63b0437f657a0e190e40
[ "MIT" ]
4
2021-02-25T04:33:06.000Z
2021-08-17T05:43:47.000Z
import torch from ..attack.base_attack import BaseAttacker class Model_inversion(BaseAttacker): def __init__(self, target_model, input_shape): """implementation of model inversion attack reference https://dl.acm.org/doi/pdf/10.1145/2810103.2813677 Args: target_model: model...
30.854167
73
0.574612
1,418
0.957461
0
0
0
0
0
0
729
0.492235
6eb49308c616d061678bacc901cf34896446490d
448
py
Python
tests/integration_tests/data/service_utils_integration_test/main_service.py
ZacharyATanenbaum/service_framework
b5dde4407998350d1b7ad09284110b986fd4e12a
[ "MIT" ]
1
2020-03-20T21:33:56.000Z
2020-03-20T21:33:56.000Z
tests/integration_tests/data/service_utils_integration_test/main_service.py
ZacharyATanenbaum/service_framework
b5dde4407998350d1b7ad09284110b986fd4e12a
[ "MIT" ]
1
2020-03-22T03:48:45.000Z
2020-03-22T03:48:45.000Z
tests/integration_tests/data/service_utils_integration_test/main_service.py
ZacharyATanenbaum/service_framework
b5dde4407998350d1b7ad09284110b986fd4e12a
[ "MIT" ]
null
null
null
""" Basic service for testing the service_utils run_main """ def main(to_send, config): print('Hello World Main...') connection_models = { 'out': { 'out_connection_1': { 'connection_type': 'requester', 'required_arguments': { 'this_is_a_test_arg': str, ...
22.4
60
0.517857
0
0
0
0
0
0
0
0
221
0.493304
6eba09dcdf024f11f4d2e6c7da43fa66a4daf005
788
py
Python
Curso de Python/Mundo 2/aula12/ex045.py
josevini/python
45cde6d0ae8310b1d8ebb30ae1dd17c0ad0dd02a
[ "MIT" ]
null
null
null
Curso de Python/Mundo 2/aula12/ex045.py
josevini/python
45cde6d0ae8310b1d8ebb30ae1dd17c0ad0dd02a
[ "MIT" ]
null
null
null
Curso de Python/Mundo 2/aula12/ex045.py
josevini/python
45cde6d0ae8310b1d8ebb30ae1dd17c0ad0dd02a
[ "MIT" ]
null
null
null
from time import sleep from random import randint itens = ('Pedra', 'Papel', 'Tesoura') print('Suas opções: ') print("""[ 0 ] PEDRA [ 1 ] PAPEL [ 2 ] TESOURA""") computador = randint(0,2) jogador = int(input('Qual é a sua jogada? ')) print('JO') sleep(1) print('KEN') sleep(1) print('PO!!!') print('-=' * 11) print('Comp...
29.185185
110
0.651015
0
0
0
0
0
0
0
0
229
0.288413
6eba2b9c96279d6bf89fd584cbe501fd83d1e0c7
2,708
py
Python
wtdb_test.py
hughgrigg/wtdb
6614053cbbc0086d5470ee7e9f2d6a68fdb9ed94
[ "MIT" ]
null
null
null
wtdb_test.py
hughgrigg/wtdb
6614053cbbc0086d5470ee7e9f2d6a68fdb9ed94
[ "MIT" ]
null
null
null
wtdb_test.py
hughgrigg/wtdb
6614053cbbc0086d5470ee7e9f2d6a68fdb9ed94
[ "MIT" ]
null
null
null
import wtdb import unittest class TestWtdbFunctions(unittest.TestCase): def test_n_swaps_zero(self): self.assertEqual( frozenset(), wtdb.n_swaps('foo', 'bar', 0), ) def test_n_swaps_single(self): self.assertSequenceEqual( { frozense...
28.505263
77
0.531388
2,580
0.952733
0
0
0
0
0
0
441
0.162851
6ebb9230b1ec2e150157978f3bf6129f5b2db4e9
5,423
py
Python
envisionpy/processor_network/BandstructureNetworkHandler.py
Vevn/ENVISIoN
d0e48a5ec38ed95375f632eafdc5814415f0f570
[ "BSD-2-Clause" ]
null
null
null
envisionpy/processor_network/BandstructureNetworkHandler.py
Vevn/ENVISIoN
d0e48a5ec38ed95375f632eafdc5814415f0f570
[ "BSD-2-Clause" ]
null
null
null
envisionpy/processor_network/BandstructureNetworkHandler.py
Vevn/ENVISIoN
d0e48a5ec38ed95375f632eafdc5814415f0f570
[ "BSD-2-Clause" ]
1
2020-05-15T14:52:19.000Z
2020-05-15T14:52:19.000Z
# ENVISIoN # # Copyright (c) 2019 Jesper Ericsson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list o...
47.570175
130
0.650009
3,798
0.70035
0
0
0
0
0
0
3,273
0.60354
6ebdf946af2b4bf33b3b815af562307b2b1a73fd
26,442
py
Python
smt/decoder/stackdecoder.py
kenkov/smt
db0a9fff15876442f1895b3ef730e91f7c84ad9b
[ "MIT" ]
83
2015-01-12T14:40:08.000Z
2022-01-07T09:41:09.000Z
smt/decoder/stackdecoder.py
HimmelStein/smt
db0a9fff15876442f1895b3ef730e91f7c84ad9b
[ "MIT" ]
1
2016-12-08T21:22:23.000Z
2016-12-08T21:22:23.000Z
smt/decoder/stackdecoder.py
HimmelStein/smt
db0a9fff15876442f1895b3ef730e91f7c84ad9b
[ "MIT" ]
38
2015-04-08T04:39:13.000Z
2021-11-14T13:16:19.000Z
#! /usr/bin/env python # coding:utf-8 from __future__ import division, print_function import math # sqlalchemy import sqlalchemy from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine from sqlalchemy import Column, TEXT, REAL, INTEGER from sqlalchemy.orm import sessionmaker from s...
32.444172
79
0.514182
13,066
0.494138
0
0
1,361
0.051471
0
0
3,838
0.145148
6ebe31c36f436e8ae484085447aaa84df7e9db45
6,711
py
Python
amoebaelib/generate_histogram_plot.py
laelbarlow/amoebae
3c6607bcb64a60baee2f19f0a25e14b325e9725d
[ "Apache-2.0" ]
8
2020-07-16T21:36:38.000Z
2021-11-28T08:32:05.000Z
amoebaelib/generate_histogram_plot.py
laelbarlow/amoebae
3c6607bcb64a60baee2f19f0a25e14b325e9725d
[ "Apache-2.0" ]
null
null
null
amoebaelib/generate_histogram_plot.py
laelbarlow/amoebae
3c6607bcb64a60baee2f19f0a25e14b325e9725d
[ "Apache-2.0" ]
1
2020-07-31T21:21:15.000Z
2020-07-31T21:21:15.000Z
#!/usr/bin/env python3 # Copyright 2018 Lael D. Barlow # # 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.069444
119
0.58203
0
0
0
0
0
0
0
0
3,612
0.538221
6ebfe39e2bd770fe4ca5a9e9da4a3af5efa9f58a
12,838
py
Python
fast_segmentation/core/evaluate.py
eilonshi/tevel-segmentation
bf9168fafa181ff4eac1d1eba0b0f8a06f5daae1
[ "MIT" ]
null
null
null
fast_segmentation/core/evaluate.py
eilonshi/tevel-segmentation
bf9168fafa181ff4eac1d1eba0b0f8a06f5daae1
[ "MIT" ]
null
null
null
fast_segmentation/core/evaluate.py
eilonshi/tevel-segmentation
bf9168fafa181ff4eac1d1eba0b0f8a06f5daae1
[ "MIT" ]
null
null
null
import os import os.path as osp import logging import argparse import math import yaml from tabulate import tabulate from torch.utils.data import Dataset from tqdm import tqdm from typing import Tuple, List import torch import torch.nn as nn import torch.nn.functional as functional import torch.distributed as dist f...
38.668675
119
0.621436
6,754
0.526094
0
0
3,347
0.26071
0
0
1,165
0.090746
6ec38b237400c36dd79206a7de24521d924c26b5
940
py
Python
talent/urls.py
flannerykj/urbanapplause
c9b6c0f9a2f65b869fe1e6fa921972e7236e4fe5
[ "MIT" ]
null
null
null
talent/urls.py
flannerykj/urbanapplause
c9b6c0f9a2f65b869fe1e6fa921972e7236e4fe5
[ "MIT" ]
null
null
null
talent/urls.py
flannerykj/urbanapplause
c9b6c0f9a2f65b869fe1e6fa921972e7236e4fe5
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'talent' urlpatterns = [ url(r'^$', views.IndexView.as_view(), name='index'), url(r'^musicians/$', views.MusicianIndex.as_view(), name='musicians'), url(r'^musicians/(?P<pk>[0-9]+)/$', views.MusicianDetail.as_view(), name='musician-detail'), ...
55.294118
98
0.659574
0
0
0
0
0
0
0
0
373
0.396809
6ec48fdaa8687076f0c91144e66c1442f92aee33
402
py
Python
examples/modular_bot/bot.py
fuzzysearch404/discord-ext-modules
f97406dedee6cd8862bcc1f15ff994dde79f4c90
[ "MIT" ]
null
null
null
examples/modular_bot/bot.py
fuzzysearch404/discord-ext-modules
f97406dedee6cd8862bcc1f15ff994dde79f4c90
[ "MIT" ]
null
null
null
examples/modular_bot/bot.py
fuzzysearch404/discord-ext-modules
f97406dedee6cd8862bcc1f15ff994dde79f4c90
[ "MIT" ]
null
null
null
import discord from discord.ext.modules import ModularCommandClient if __name__ == "__main__": client = ModularCommandClient(intents=discord.Intents.none()) @client.event async def on_ready(): print("Logged on as {0}!".format(client.user)) client.load_extension("commands.hello_module") c...
26.8
65
0.731343
0
0
0
0
94
0.233831
76
0.189055
94
0.233831
6ec4b74ab4db122d30b5b736d0e106eb22df1a59
11,282
py
Python
plazma.py
caos21/Grodi
3ae09f9283f3e1afdd641943e2244afc78511053
[ "Apache-2.0" ]
2
2019-12-11T16:19:46.000Z
2020-08-19T20:14:18.000Z
plazma.py
caos21/Grodi
3ae09f9283f3e1afdd641943e2244afc78511053
[ "Apache-2.0" ]
null
null
null
plazma.py
caos21/Grodi
3ae09f9283f3e1afdd641943e2244afc78511053
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Benjamin Santos # # 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.713846
87
0.576139
9,236
0.818649
0
0
0
0
0
0
2,096
0.185783
6ec6806b3360ba70b659e8d4a38b4d380d150247
1,842
py
Python
sftpgo_client/base/models/crypt_fs_config.py
ramnes/sftpgo-client
016da5e11274362eb2e4c2d0e78e2b88c25ea515
[ "MIT" ]
5
2021-03-23T15:59:30.000Z
2021-06-30T09:50:55.000Z
sftpgo_client/base/models/crypt_fs_config.py
ramnes/sftpgo-client
016da5e11274362eb2e4c2d0e78e2b88c25ea515
[ "MIT" ]
2
2021-03-24T22:06:12.000Z
2021-07-28T11:59:52.000Z
sftpgo_client/base/models/crypt_fs_config.py
ramnes/sftpgo-client
016da5e11274362eb2e4c2d0e78e2b88c25ea515
[ "MIT" ]
1
2022-01-18T17:04:32.000Z
2022-01-18T17:04:32.000Z
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..models.secret import Secret from ..types import UNSET, Unset T = TypeVar("T", bound="CryptFsConfig") @attr.s(auto_attribs=True) class CryptFsConfig: """Crypt filesystem configuration details""" passphrase: Union[Unset, Secret] = U...
29.238095
77
0.647123
1,632
0.885993
0
0
1,659
0.900651
0
0
86
0.046688
6ec843c15f7247a66d7807de9b1b0eb37d884ff5
3,598
py
Python
venvs/sitio_web/restaurantes/views.py
mmaguero/MII-SSBW16-17
25b6c340c63a2fbe8342b48ec7f730b68c58d1bc
[ "MIT" ]
1
2017-04-22T11:02:38.000Z
2017-04-22T11:02:38.000Z
venvs/sitio_web/restaurantes/views.py
mmaguero/MII-SSBW16-17
25b6c340c63a2fbe8342b48ec7f730b68c58d1bc
[ "MIT" ]
4
2017-06-17T16:10:45.000Z
2022-02-13T20:23:04.000Z
venvs/sitio_web/restaurantes/views.py
mmaguero/MII-SSBW16-17
25b6c340c63a2fbe8342b48ec7f730b68c58d1bc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.shortcuts import render, HttpResponse,redirect from django.http import JsonResponse from .forms import RestaurantesForm from .models import restaurants, addr#, image from django.contrib.auth.decorators import login_required import logging log = logging.getLogger(__name__) # Create...
30.491525
248
0.636465
0
0
0
0
2,096
0.582222
0
0
1,343
0.373056
6ec8b33e8b06b3f5e838904586efee4b116849d8
3,705
py
Python
networking-master/CodeBlue.py
Marzooq13579/Hack-Gadgets
4b9351c4465f3e01fb0390b1e86dfe7c26237a19
[ "MIT" ]
8
2019-02-17T20:11:46.000Z
2019-10-18T06:27:16.000Z
networking-master/CodeBlue.py
Marzooq13579/Hack-Gadgets
4b9351c4465f3e01fb0390b1e86dfe7c26237a19
[ "MIT" ]
null
null
null
networking-master/CodeBlue.py
Marzooq13579/Hack-Gadgets
4b9351c4465f3e01fb0390b1e86dfe7c26237a19
[ "MIT" ]
4
2019-02-17T23:00:18.000Z
2019-10-18T06:27:14.000Z
import cb, time, struct, sys, random, string try: import console console.set_color(0.0,0.2,1) print """ _____ _ _____ _ | |___ _| |___| __ | |_ _ ___ | --| . | . | -_| __ -| | | | -_| |_____|___|___|___|_____|_|___|___| _____ _ __/ ___/ ...
23.301887
98
0.57139
2,414
0.651552
0
0
0
0
0
0
940
0.253711
6ecb10199a77a73ed62e4b61289eba8a812c02c6
342
py
Python
products/urls.py
Tsatsubii/tsatsubii-helpdesk
baee05b4fd1aedfda8e4039c45f182f29e8db348
[ "MIT" ]
null
null
null
products/urls.py
Tsatsubii/tsatsubii-helpdesk
baee05b4fd1aedfda8e4039c45f182f29e8db348
[ "MIT" ]
null
null
null
products/urls.py
Tsatsubii/tsatsubii-helpdesk
baee05b4fd1aedfda8e4039c45f182f29e8db348
[ "MIT" ]
null
null
null
from django.urls import path from .views import * app_name = 'products' urlpatterns = [ path('create', CreateProduct.as_view(), name='create'), path('view/<int:pk>', ProductDetail.as_view(), name='detail'), path('list', ProductList.as_view(), name='list'), path('<int:pk>/update', ProductUpdate.as_view...
28.5
68
0.666667
0
0
0
0
0
0
0
0
86
0.251462
6ecb7c2943ca6eaec822d4f6b7669ca1cd39c2c1
13,004
py
Python
src/panoramic/cli/errors.py
kubamahnert/panoramic-cli
036f45a05d39f5762088ce23dbe367b938192f79
[ "MIT" ]
5
2020-11-13T17:26:59.000Z
2021-03-19T15:11:26.000Z
src/panoramic/cli/errors.py
kubamahnert/panoramic-cli
036f45a05d39f5762088ce23dbe367b938192f79
[ "MIT" ]
5
2020-10-28T10:22:35.000Z
2021-01-27T17:33:58.000Z
src/panoramic/cli/errors.py
kubamahnert/panoramic-cli
036f45a05d39f5762088ce23dbe367b938192f79
[ "MIT" ]
3
2021-01-26T07:58:03.000Z
2021-03-11T13:28:34.000Z
import functools import os import signal import sys from abc import ABC from enum import Enum from pathlib import Path from typing import Callable, ClassVar, List, Optional from jsonschema.exceptions import ValidationError as JsonSchemaValidationError from requests.exceptions import RequestException from yaml.error im...
30.383178
119
0.661181
11,813
0.908413
0
0
399
0.030683
0
0
3,493
0.26861
6ecd09c39c02e164cec80cd3178067eb0c5adcdc
336
py
Python
server/src/__init__.py
dmitrijbozhkov/zno-library
888ccde7163f8ac6746e4065f47d5070eadff5a7
[ "Apache-2.0" ]
null
null
null
server/src/__init__.py
dmitrijbozhkov/zno-library
888ccde7163f8ac6746e4065f47d5070eadff5a7
[ "Apache-2.0" ]
null
null
null
server/src/__init__.py
dmitrijbozhkov/zno-library
888ccde7163f8ac6746e4065f47d5070eadff5a7
[ "Apache-2.0" ]
null
null
null
""" Builds and runs application """ from app import app, user_datastore, db from api_module.api_routes import api from auth_module.auth_routes import auth app.register_blueprint(api) app.register_blueprint(auth) if __name__ == "__main__": # database = create_db(connection_str) # attach_db(g, database) app...
25.846154
42
0.758929
0
0
0
0
0
0
0
0
107
0.318452
6ecdc7cb0a885b814b6a6f30cd78f9066a128b3b
381
py
Python
flask_miracle/__init__.py
tdpsk/flask-miracle-acl
426a9845854678d00108cf5f91ada9323968b524
[ "BSD-2-Clause" ]
2
2018-01-17T15:57:38.000Z
2018-02-06T00:03:16.000Z
flask_miracle/__init__.py
tdpsk/flask-miracle-acl
426a9845854678d00108cf5f91ada9323968b524
[ "BSD-2-Clause" ]
null
null
null
flask_miracle/__init__.py
tdpsk/flask-miracle-acl
426a9845854678d00108cf5f91ada9323968b524
[ "BSD-2-Clause" ]
null
null
null
''' flask_miracle ------------- This module provides a fabric layer between the Flask framework and the Miracle ACL library. :copyright: (c) 2017 by Timo Puschkasch. :license: BSD, see LICENSE for more details. ''' from .base import Acl from .functions import check_all, check_any, set_current_...
27.214286
75
0.716535
0
0
0
0
0
0
0
0
239
0.627297
6ecea48303630a92cce0c4706954968c1cd05d0f
134
py
Python
sopy/tags/__init__.py
AlexFrazer/sopython-site
4ede64cf6d04def596be13feeaa4d84ce8503ef3
[ "BSD-3-Clause" ]
81
2015-02-17T17:07:27.000Z
2021-08-15T17:46:13.000Z
sopy/tags/__init__.py
AlexFrazer/sopython-site
4ede64cf6d04def596be13feeaa4d84ce8503ef3
[ "BSD-3-Clause" ]
81
2015-02-17T17:04:16.000Z
2021-02-21T03:52:55.000Z
sopy/tags/__init__.py
AlexFrazer/sopython-site
4ede64cf6d04def596be13feeaa4d84ce8503ef3
[ "BSD-3-Clause" ]
29
2015-01-18T18:28:06.000Z
2022-02-05T03:11:04.000Z
from flask import Blueprint bp = Blueprint('tags', __name__) @bp.record_once def register(state): from sopy.tags import models
14.888889
32
0.746269
0
0
0
0
69
0.514925
0
0
6
0.044776
6eceaf402774f48fd5e753b9693ff245ec9cc7ae
152
py
Python
{{cookiecutter.project_slug}}/backend/api/v1/handlers/__init__.py
devalv/cookiecutter-fastapi
c7cfd3caa14b40dcc5d8ff6bdb6e25cfed3c9d00
[ "MIT" ]
2
2021-12-26T00:10:19.000Z
2022-01-30T21:24:31.000Z
{{cookiecutter.project_slug}}/backend/api/v1/handlers/__init__.py
devalv/cookiecutter-fastapi
c7cfd3caa14b40dcc5d8ff6bdb6e25cfed3c9d00
[ "MIT" ]
1
2021-10-10T17:38:30.000Z
2021-10-10T18:30:24.000Z
{{cookiecutter.project_slug}}/backend/api/v1/handlers/__init__.py
devalv/cookiecutter-fastapi
c7cfd3caa14b40dcc5d8ff6bdb6e25cfed3c9d00
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """{{ cookiecutter.project_slug }} rest-api handlers.""" from .security import security_router __all__ = ("security_router",)
21.714286
56
0.684211
0
0
0
0
0
0
0
0
96
0.631579
6eceb56b5b2b3973a3c6557e579442305e42471b
3,374
py
Python
asyncspotify/album.py
minibox24/asyncspotify
3767cf19cf598fb179883cffd878e2440c16a57c
[ "MIT" ]
7
2020-06-16T21:24:42.000Z
2022-03-10T20:23:29.000Z
asyncspotify/album.py
minibox24/asyncspotify
3767cf19cf598fb179883cffd878e2440c16a57c
[ "MIT" ]
13
2020-03-22T12:07:04.000Z
2021-08-15T19:06:57.000Z
asyncspotify/album.py
minibox24/asyncspotify
3767cf19cf598fb179883cffd878e2440c16a57c
[ "MIT" ]
5
2020-03-22T18:21:55.000Z
2021-10-03T06:30:30.000Z
from datetime import datetime from .mixins import ArtistMixin, ExternalIDMixin, ExternalURLMixin, ImageMixin, TrackMixin from .object import SpotifyObject from .track import SimpleTrack class _BaseAlbum(SpotifyObject, TrackMixin, ImageMixin, ExternalURLMixin, ArtistMixin): _type = 'album' _track_class = SimpleTrac...
31.830189
224
0.727623
3,178
0.941909
0
0
0
0
0
0
2,082
0.617072
6ecf4bd8dbec5f43c3a5dbb66ff367208ec1e14c
73
py
Python
virustotal_intelligence/__init__.py
elastic/opencti-connector-vti
52bd6e8c40a8b96f34316b87d4550f308844abbe
[ "Apache-2.0" ]
1
2022-02-11T13:36:11.000Z
2022-02-11T13:36:11.000Z
virustotal_intelligence/__init__.py
elastic/opencti-connector-vti
52bd6e8c40a8b96f34316b87d4550f308844abbe
[ "Apache-2.0" ]
null
null
null
virustotal_intelligence/__init__.py
elastic/opencti-connector-vti
52bd6e8c40a8b96f34316b87d4550f308844abbe
[ "Apache-2.0" ]
null
null
null
__version__ = "5.1.3" LOGGER_NAME = "connector.virustotal_intelligence"
18.25
49
0.780822
0
0
0
0
0
0
0
0
42
0.575342
6ed12b3edc7505ed891b2d8f3913b9e4dec71522
152
py
Python
training/config_interface/__init__.py
khoehlein/CNNs-for-Wind-Field-Downscaling
eb8418d4d893fcb2beb929abb241281b7a9b6a95
[ "MIT" ]
5
2021-05-05T06:08:52.000Z
2022-03-24T04:57:52.000Z
training/config_interface/__init__.py
khoehlein/CNNs-for-Wind-Field-Downscaling
eb8418d4d893fcb2beb929abb241281b7a9b6a95
[ "MIT" ]
null
null
null
training/config_interface/__init__.py
khoehlein/CNNs-for-Wind-Field-Downscaling
eb8418d4d893fcb2beb929abb241281b7a9b6a95
[ "MIT" ]
2
2021-08-07T05:18:05.000Z
2022-03-31T03:48:37.000Z
from training.config_interface.BaseTrainingProcess import BaseTrainingProcess from training.config_interface.BaseTrainingEpoch import BaseTrainingEpoch
50.666667
77
0.921053
0
0
0
0
0
0
0
0
0
0
6ed14769a9b989c5617ba6fd0d9b5db6ab25f970
2,948
py
Python
tools_box/_hr/doctype/stationaries_log/stationaries_log.py
maisonarmani/Tools_Box
4f8cc3a0deac1be50a3ac80758a10608faf58454
[ "MIT" ]
4
2017-09-25T23:34:08.000Z
2020-07-17T23:52:26.000Z
tools_box/_hr/doctype/stationaries_log/stationaries_log.py
maisonarmani/Tools_Box
4f8cc3a0deac1be50a3ac80758a10608faf58454
[ "MIT" ]
null
null
null
tools_box/_hr/doctype/stationaries_log/stationaries_log.py
maisonarmani/Tools_Box
4f8cc3a0deac1be50a3ac80758a10608faf58454
[ "MIT" ]
5
2017-06-02T01:58:32.000Z
2022-02-22T16:59:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, [email protected] and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class StationariesLog(Document): def on_submit(self): for item in self....
30.708333
123
0.640095
137
0.046472
0
0
0
0
0
0
608
0.206242
6ed16212d719203dc9c8b385ee044edff5accf55
205
py
Python
html/semantics/scripting-1/the-script-element/module/resources/delayed-modulescript.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
8
2019-04-09T21:13:05.000Z
2021-11-23T17:25:18.000Z
html/semantics/scripting-1/the-script-element/module/resources/delayed-modulescript.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
21
2021-03-31T19:48:22.000Z
2022-03-12T00:24:53.000Z
html/semantics/scripting-1/the-script-element/module/resources/delayed-modulescript.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
11
2019-04-12T01:20:16.000Z
2021-11-23T17:25:02.000Z
import time def main(request, response): delay = float(request.GET.first("ms", 500)) time.sleep(delay / 1E3); return [("Content-type", "text/javascript")], "export let delayedLoaded = true;"
25.625
84
0.663415
0
0
0
0
0
0
0
0
69
0.336585
6ed320ed0b2ababd92ec43fa0249838c7f41091f
1,119
py
Python
build_scripts/yariv_shaders/yariv_to_hex.py
danilw/vulkan-shadertoy-launcher
8a8a00f2f32d5c4dc64b625a9bdfe4adcdc5c4ec
[ "MIT" ]
37
2020-03-16T00:21:03.000Z
2022-03-04T23:30:30.000Z
build_scripts/yariv_shaders/yariv_to_hex.py
danilw/vulkan-shadertoy-launcher
8a8a00f2f32d5c4dc64b625a9bdfe4adcdc5c4ec
[ "MIT" ]
1
2020-06-04T12:29:24.000Z
2021-03-14T21:31:55.000Z
example_game/shaders/yariv_to_hex.py
danilw/vulkan_shader_launcher
e41c5a9c0f35a72e12a5300f194e9faff83aa684
[ "MIT" ]
2
2021-03-27T06:28:53.000Z
2021-09-05T20:29:36.000Z
import struct import os import sys import subprocess if len(sys.argv) != 2: print('Usage: python %s filename \n output is *.spv *.yariv and *.hex file \n' % sys.argv[0]) quit() inputfilepath = sys.argv[1] outputname = os.path.basename(inputfilepath) outdir = os.path.dirname(inputfilepath) ginfile = os.path.basen...
23.808511
98
0.670241
0
0
0
0
0
0
0
0
183
0.163539
6ed529dee684fd60fac1d8d89d7b4a98c0265b6b
3,672
py
Python
gui/cli.py
HaoZeke/prest
eec6b34bde4e060f52a391662347918995ded245
[ "BSD-3-Clause" ]
null
null
null
gui/cli.py
HaoZeke/prest
eec6b34bde4e060f52a391662347918995ded245
[ "BSD-3-Clause" ]
null
null
null
gui/cli.py
HaoZeke/prest
eec6b34bde4e060f52a391662347918995ded245
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import sys import logging import argparse import tqdm import dataset.budgetary from model import * from test import MockWorker from dataset import load_raw_csv from gui.estimation import Options as EstimationOpts from dataset.experimental_data import ExperimentalData logging.basicConfig(level...
31.655172
106
0.659586
369
0.10049
0
0
0
0
0
0
540
0.147059
6ed7f888ecc9bba08e6a0dcd86d63bb68f3e4ae3
12,156
py
Python
KML.py
ncareol/PlanFlight
c38b3e1a99f52655cae9e1b4f4c2ee06e56833eb
[ "BSD-3-Clause" ]
1
2021-06-16T01:10:35.000Z
2021-06-16T01:10:35.000Z
KML.py
NCAR/PlanFlight
c38b3e1a99f52655cae9e1b4f4c2ee06e56833eb
[ "BSD-3-Clause" ]
null
null
null
KML.py
NCAR/PlanFlight
c38b3e1a99f52655cae9e1b4f4c2ee06e56833eb
[ "BSD-3-Clause" ]
null
null
null
# file KML.py # "Produces a kml file from the track as defined in ModuleConstructor.Track." # Strategy here is to produce two .kml files, one that references # google.com and one that references acserver.raf.ucar.edu, the latter # for use on the aircraft to avoid remote connections to google.com # in flight. The latter...
48.430279
116
0.618707
0
0
0
0
0
0
0
0
6,830
0.561862
6ed8e2ed4b2704d5c1be4866ec0fcfee29634e45
1,932
py
Python
api.py
amagrabi/oeb-importer-proto
f93b1ac1834e10595c8d89e23cde1fadfc88d009
[ "Apache-2.0" ]
null
null
null
api.py
amagrabi/oeb-importer-proto
f93b1ac1834e10595c8d89e23cde1fadfc88d009
[ "Apache-2.0" ]
null
null
null
api.py
amagrabi/oeb-importer-proto
f93b1ac1834e10595c8d89e23cde1fadfc88d009
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Functions to make API calls. @author: amagrabi """ import requests def login(client_id, client_secret, project_key, scope, host = 'EU'): '''Authentification Args: client_id: client_id. client_secret: client_secret. project_key...
29.272727
104
0.59058
0
0
0
0
0
0
0
0
1,161
0.600932
6ed978e5e0ccff6910a7ff36922b214818cfc125
769
py
Python
model/addParams.py
thegricean/modals
9bb267a64542ee30e2770d79d9cd5d9cce890be8
[ "MIT" ]
null
null
null
model/addParams.py
thegricean/modals
9bb267a64542ee30e2770d79d9cd5d9cce890be8
[ "MIT" ]
null
null
null
model/addParams.py
thegricean/modals
9bb267a64542ee30e2770d79d9cd5d9cce890be8
[ "MIT" ]
null
null
null
import sys, re, string, numpy p_strongs = numpy.arange(0.1, 0.9, 0.1) costs = range(3, 10, 1) for p_s in p_strongs: p_meds = numpy.arange(0.1, 1-p_s, 0.1) for p_m in p_meds: p_w = 1 - p_s - p_m for cost in costs: filename = str(p_s) + "_" + str(p_m) + "_" + str(p_w) + "_" + str(cos...
40.473684
186
0.461638
0
0
0
0
0
0
0
0
192
0.249675
6ed9b7c639af766ee8c222459a703935071b14fd
1,625
py
Python
shuttl/Storage.py
shuttl-io/shuttl-cms
50c85db0de42e901c371561270be6425cc65eccc
[ "MIT" ]
2
2017-06-26T18:06:58.000Z
2017-10-11T21:45:29.000Z
shuttl/Storage.py
shuttl-io/shuttl-cms
50c85db0de42e901c371561270be6425cc65eccc
[ "MIT" ]
null
null
null
shuttl/Storage.py
shuttl-io/shuttl-cms
50c85db0de42e901c371561270be6425cc65eccc
[ "MIT" ]
null
null
null
import boto3 as aws import botocore from shuttl import app ## Class for AWS S3 storage class Storage: bucket = None ##< the bucket the file belongs to s3 = aws.resource("s3") ##< The s3 instance @classmethod def GetBucket(cls, bucketName): try: cls.bucket = cls.s3.Bucket(bucketN...
28.508772
93
0.603692
1,535
0.944615
0
0
1,394
0.857846
0
0
175
0.107692
6edba8dc188676342b22f5209b14d0e344cc743f
21,822
py
Python
util/process_results.py
blackoutjack/jamweaver
31533556617e9190e565b2c9edd7e7752ce71f32
[ "BSD-3-Clause" ]
2
2015-08-14T12:34:27.000Z
2015-10-15T04:07:17.000Z
util/process_results.py
blackoutjack/jamweaver
31533556617e9190e565b2c9edd7e7752ce71f32
[ "BSD-3-Clause" ]
null
null
null
util/process_results.py
blackoutjack/jamweaver
31533556617e9190e565b2c9edd7e7752ce71f32
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # # This script is used to analyze, tabulate, and graph data generated by # the JAM weaver and by JAMScript performance instrumentation. It was # used to produce figures presented in the experimental results section # of ``Efficient Runtime Enforcement Techniques for Policy Weaving,'' # published at F...
32.091176
242
0.645129
0
0
0
0
0
0
0
0
5,459
0.25016
6edbba4a74356991de5aa46330579ce20ab0026e
245
py
Python
Controller/hone_control.py
pupeng/hone
8fb2618a51478049c73158f1d54e7165a37dffcf
[ "BSD-3-Clause" ]
5
2017-02-18T12:39:13.000Z
2021-03-29T09:21:58.000Z
Controller/hone_control.py
pupeng/hone
8fb2618a51478049c73158f1d54e7165a37dffcf
[ "BSD-3-Clause" ]
null
null
null
Controller/hone_control.py
pupeng/hone
8fb2618a51478049c73158f1d54e7165a37dffcf
[ "BSD-3-Clause" ]
7
2015-08-12T10:08:21.000Z
2018-08-30T12:55:25.000Z
# Copyright (c) 2011-2013 Peng Sun. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the COPYRIGHT file. # hone_control.py # a placeholder file for any control jobs HONE runtime generates
35
72
0.767347
0
0
0
0
0
0
0
0
239
0.97551