hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a2344ed66e39868f0b7f906d38c04836219aa94
190
py
Python
kipp/aio/exceptions.py
Laisky/kipp
7b0d0a0121f06fb7f9c0fea386ad30e92c6fe2d2
[ "MIT" ]
8
2019-01-11T11:02:34.000Z
2020-03-05T11:09:38.000Z
kipp/aio/exceptions.py
Laisky/kipp
7b0d0a0121f06fb7f9c0fea386ad30e92c6fe2d2
[ "MIT" ]
null
null
null
kipp/aio/exceptions.py
Laisky/kipp
7b0d0a0121f06fb7f9c0fea386ad30e92c6fe2d2
[ "MIT" ]
2
2019-01-11T11:02:43.000Z
2019-09-09T03:27:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals from tornado.gen import TimeoutError from kipp.libs.aio import KippAIOException, KippAIOTimeoutError
21.111111
63
0.784211
4a234537b3f9a25d6723641e8a24c56e43675ec2
734
py
Python
Ex60.py
Kevinwmiguel/PythonExercises
e976b274d8f17f427b2bcf0c2a614c0043478ea5
[ "MIT" ]
null
null
null
Ex60.py
Kevinwmiguel/PythonExercises
e976b274d8f17f427b2bcf0c2a614c0043478ea5
[ "MIT" ]
null
null
null
Ex60.py
Kevinwmiguel/PythonExercises
e976b274d8f17f427b2bcf0c2a614c0043478ea5
[ "MIT" ]
null
null
null
""" Ex 60 - Create a program that reads several integers from the keyboard. the program will only stop when the user enters the value 999, which is the stop condition. at the end, show how many numbers were entered and what was the sum between them. (disregarding the flag) """ # ----- function ----- def header(): ...
22.242424
269
0.579019
4a23454fad7ca5528382afa785286ee8f5c25761
1,067
py
Python
featurelist.py
IdeaBot/basics
50c89001aceebebd2a67ad59c7c75d9db0843d0e
[ "MIT" ]
null
null
null
featurelist.py
IdeaBot/basics
50c89001aceebebd2a67ad59c7c75d9db0843d0e
[ "MIT" ]
null
null
null
featurelist.py
IdeaBot/basics
50c89001aceebebd2a67ad59c7c75d9db0843d0e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jan 22 19:11:09 2018 @author: Yuhas """ from libs import command import re class Command(command.DirectOnlyCommand): '''Gives information about my features **Usage** ```@Idea featurelist [-v]``` If you're interested in helping to improve Idea, check out what happens w...
28.078947
96
0.665417
4a23469577c6add5436b474a646f77472822109a
1,998
py
Python
secondary.py
moonstruckblossm/dto
fc79ad847b922a4e9ac29c13aff1bd081fd1e55d
[ "MIT" ]
null
null
null
secondary.py
moonstruckblossm/dto
fc79ad847b922a4e9ac29c13aff1bd081fd1e55d
[ "MIT" ]
null
null
null
secondary.py
moonstruckblossm/dto
fc79ad847b922a4e9ac29c13aff1bd081fd1e55d
[ "MIT" ]
null
null
null
#author: <author here> # date: <date here> # --------------- Section 3 --------------- # # String Duplication / Pattern Recognition # # you may choose to use any symbol, it does not have to be the dollar sign # create the following pattern using string duplication and print statments: # # $ # $$ # $$$ # $$$$ # $$$$...
24.365854
121
0.633634
4a234731d73f6968c6a545284bca205fe4b0706b
534
py
Python
tests/onegov/ballot/collections/test_ballots.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/ballot/collections/test_ballots.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/ballot/collections/test_ballots.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import date from onegov.ballot import Ballot from onegov.ballot import BallotCollection from onegov.ballot import Vote def test_ballots(session): vote = Vote( title="A", shortcode="Z", domain='federation', date=date(2015, 6, 14) ) vote.ballots.append(Ballot(ty...
23.217391
66
0.672285
4a234859b9e49491f1fdd6d0ea72561ff9de1bf2
2,242
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/compressed_texture_pixel_storage.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/compressed_texture_pixel_storage.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/compressed_texture_pixel_storage.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''OpenGL extension ARB.compressed_texture_pixel_storage This module customises the behaviour of the OpenGL.raw.GL.ARB.compressed_texture_pixel_storage to provide a more Python-friendly API Overview (from the spec) This extension expands the functionality of the PixelStore modes to allow UNPACK_ROW_LEN...
47.702128
79
0.806423
4a2348910b4e2550c6e7ecb69a45349005ae093b
513
py
Python
2-Medium/minFallingPathSum.py
Sma-Das/Leetcode
6f9b8f069e2ef198408abd6780fd0697a8bebada
[ "MIT" ]
null
null
null
2-Medium/minFallingPathSum.py
Sma-Das/Leetcode
6f9b8f069e2ef198408abd6780fd0697a8bebada
[ "MIT" ]
null
null
null
2-Medium/minFallingPathSum.py
Sma-Das/Leetcode
6f9b8f069e2ef198408abd6780fd0697a8bebada
[ "MIT" ]
null
null
null
def minFallingPathSum(): if not matrix: return 0 for row in range(1, len(matrix)): prev_row = matrix[row-1] for column in range(c := len(matrix[0])): v = matrix[row][column] ops = [] if column > 0: ops.append(prev_row[column-1] + v) ...
30.176471
50
0.497076
4a2348aa758efa3397f34553e80e46dd7cf6c6ed
1,481
py
Python
process_build.py
jbaker10/sal-saml
861fe0ec10324698e6b617dec70d053016a7be8c
[ "Apache-2.0" ]
null
null
null
process_build.py
jbaker10/sal-saml
861fe0ec10324698e6b617dec70d053016a7be8c
[ "Apache-2.0" ]
null
null
null
process_build.py
jbaker10/sal-saml
861fe0ec10324698e6b617dec70d053016a7be8c
[ "Apache-2.0" ]
null
null
null
import argparse import subprocess import os # parser = argparse.ArgumentParser() # parser.add_argument('tag', nargs='?', default='') # args = parser.parse_args() tag = os.getenv('TAG', '') if tag == '': if os.getenv('CIRCLE_BRANCH') == 'master': tag = 'latest' else: tag = os.getenv('CIRCLE_B...
22.784615
115
0.682647
4a2348c1c29175bde51385f4fb781604b44dea52
12,564
py
Python
dans_pymodules/ascii2h5block.py
DanielWinklehner/dans_pymodules
04dfdaeccc171712cad6eb24202608e2eda21eca
[ "MIT" ]
null
null
null
dans_pymodules/ascii2h5block.py
DanielWinklehner/dans_pymodules
04dfdaeccc171712cad6eb24202608e2eda21eca
[ "MIT" ]
null
null
null
dans_pymodules/ascii2h5block.py
DanielWinklehner/dans_pymodules
04dfdaeccc171712cad6eb24202608e2eda21eca
[ "MIT" ]
null
null
null
import h5py import numpy as np class TableToH5(object): def __init__(self, spacing, r_min, r_max, filename='my_h5'): self.spacing = spacing self.r_min = r_min self.r_max = r_max self.filename = filename # Create a new h5 file self.h5_file = h5py.File(filename + '....
42.30303
118
0.558103
4a23492fd99a74e70aaa55e7955eb4eac1084ba8
467
py
Python
config.py
najma-amin/News-Highlights
caad6c5af7650c2cc8490f100d070573fe18f6a6
[ "MIT" ]
7
2019-03-14T08:15:39.000Z
2021-01-21T11:34:32.000Z
config.py
najma-amin/News-Highlights
caad6c5af7650c2cc8490f100d070573fe18f6a6
[ "MIT" ]
null
null
null
config.py
najma-amin/News-Highlights
caad6c5af7650c2cc8490f100d070573fe18f6a6
[ "MIT" ]
11
2019-02-15T07:19:43.000Z
2021-08-06T06:16:31.000Z
import os class Config: NEWS_SOURCES_BASE_URL ='https://newsapi.org/v2/sources?language=en&category={}&apiKey={}' ARTICLES_BASE_URL = 'https://newsapi.org/v2/everything?language=en&sources={}&apiKey={}' NEWS_API_KEY = os.environ.get('NEWS_API_KEY') @staticmethod def init_app(app): pass clas...
18.68
93
0.704497
4a2349ff0102dcdbfd999d882769e8afc9f8d74d
2,144
py
Python
modules/signatures/windows/injection_explorer.py
Yuanmessi/Bold-Falcon
00fcaba0b3d9c462b9d20ecb256ff85db5d119e2
[ "BSD-3-Clause" ]
24
2021-06-21T07:35:37.000Z
2022-03-22T03:33:59.000Z
modules/signatures/windows/injection_explorer.py
Yuanmessi/Bold-Falcon
00fcaba0b3d9c462b9d20ecb256ff85db5d119e2
[ "BSD-3-Clause" ]
3
2021-07-01T08:09:05.000Z
2022-01-28T03:38:36.000Z
modules/signatures/windows/injection_explorer.py
Yuanmessi/Bold-Falcon
00fcaba0b3d9c462b9d20ecb256ff85db5d119e2
[ "BSD-3-Clause" ]
6
2021-06-22T05:32:57.000Z
2022-02-11T02:05:45.000Z
# Copyright (C) 2017 Kevin Ross # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the...
37.614035
145
0.662313
4a234aeb79361b458bd7aefc243f75f0a41c3ec5
1,429
py
Python
beastx/modules/recent flooder.py
Digasi123percy/Beast-X
cf2c47db6af0c4afaa3b51b76ef7a1a2f0e0bc81
[ "MIT" ]
11
2021-11-07T12:04:20.000Z
2022-03-10T10:32:59.000Z
beastx/modules/recent flooder.py
Digasi123percy/Beast-X
cf2c47db6af0c4afaa3b51b76ef7a1a2f0e0bc81
[ "MIT" ]
null
null
null
beastx/modules/recent flooder.py
Digasi123percy/Beast-X
cf2c47db6af0c4afaa3b51b76ef7a1a2f0e0bc81
[ "MIT" ]
114
2021-11-07T13:11:19.000Z
2022-03-31T02:00:04.000Z
from telethon import events import asyncio from beastx import bot as javes from beastx.utils import admin_cmd @javes.on(admin_cmd("chaos2")) async def _(event): if event.fwd_from: return animation_interval = 0 animation_ttl = range(0,100000000000000000000000000000000000000000000000000...
68.047619
778
0.343597
4a234b5d0b7069f7087d1046c8d84fc3563751d8
631
py
Python
num/romanToInt.py
hikair/leetcode_py
f917fd619fa25960e5d046aa512ac0d582f2084a
[ "Apache-2.0" ]
null
null
null
num/romanToInt.py
hikair/leetcode_py
f917fd619fa25960e5d046aa512ac0d582f2084a
[ "Apache-2.0" ]
null
null
null
num/romanToInt.py
hikair/leetcode_py
f917fd619fa25960e5d046aa512ac0d582f2084a
[ "Apache-2.0" ]
null
null
null
class Solution: def romanToInt(self, s): map = {'I':1,'V':5,'X':10,'L':50,'C':100,'D':500,'M':1000} size = len(s) num = 0 for index,str in enumerate(s): sign = 1 if index + 1 < size: if map[str] < map[s[index+1]]: sign = -1 ...
27.434783
66
0.524564
4a234bed2ae9f0fffbcaf874086727ac51e1cdcd
2,965
py
Python
06-sistemaLinear/sistemaLinear_v11/uteis.py
jonasht/python
68cf6bd7e27d71a104917d402bbd443afb82810d
[ "MIT" ]
null
null
null
06-sistemaLinear/sistemaLinear_v11/uteis.py
jonasht/python
68cf6bd7e27d71a104917d402bbd443afb82810d
[ "MIT" ]
null
null
null
06-sistemaLinear/sistemaLinear_v11/uteis.py
jonasht/python
68cf6bd7e27d71a104917d402bbd443afb82810d
[ "MIT" ]
null
null
null
import numpy as np conta = '2x-32y3z=20' vars_conta = ['x', 'y', 'z', '='] import exemplo as ex def remove_dirty(conta): vars_toRemove = ['[', ']', ',', '\''] for var in vars_toRemove: conta = conta.replace(var, '') return conta def insert_1var(conta): conta_copy = list(conta) i = 0...
20.308219
62
0.483642
4a234c83e8610cdcd3dcd1ebd1579f6862ec60c4
486
py
Python
api.py
idomoz/rpc-over-http
f5161241d185411a0be4720e69a878506dd2018e
[ "MIT" ]
3
2018-10-19T20:54:07.000Z
2020-06-04T16:32:59.000Z
api.py
idomoz/rpc-over-http
f5161241d185411a0be4720e69a878506dd2018e
[ "MIT" ]
null
null
null
api.py
idomoz/rpc-over-http
f5161241d185411a0be4720e69a878506dd2018e
[ "MIT" ]
null
null
null
def logout_user(address): pass def register_user(username, password, age): pass BANNES_ADDRESS = '1.1.1.1' def login(username, password, request): if username == 'foo' and password == 'bar' and request.remote_addr != BANNES_ADDRESS: return 'logged in!' return 'forbidden' ...
20.25
90
0.666667
4a234dabc6de0b221e02074da71f8b3f09cf4c7b
3,565
py
Python
bindings/python/ensmallen/datasets/string/thioalkalivibriospakl19.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/thioalkalivibriospakl19.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/thioalkalivibriospakl19.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Thioalkalivibrio sp. AKL19. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--pro...
33.009259
223
0.677419
4a234dfefb9a906744480adb007a16bb213e816d
1,755
py
Python
web_api/yonyou/outputs/sale_delivery.py
zhanghe06/flask_restful
6ef54f3f7efbbaff6169e963dcf45ab25e11e593
[ "MIT" ]
1
2020-12-04T03:15:47.000Z
2020-12-04T03:15:47.000Z
web_api/yonyou/outputs/sale_delivery.py
zhanghe06/flask_restful
6ef54f3f7efbbaff6169e963dcf45ab25e11e593
[ "MIT" ]
1
2021-06-01T22:24:27.000Z
2021-06-01T22:24:27.000Z
web_api/yonyou/outputs/sale_delivery.py
zhanghe06/flask_restful
6ef54f3f7efbbaff6169e963dcf45ab25e11e593
[ "MIT" ]
2
2020-12-04T03:16:18.000Z
2021-09-04T14:10:12.000Z
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: sale_delivery.py @time: 2018-07-24 16:58 """ from __future__ import unicode_literals from flask_restful import fields fields_item_sale_delivery = { 'id': fields.Integer(attribute='ID'), 'code': fields.String(attribute='c...
37.340426
82
0.702564
4a234f249046ba4c6ab779d8f0b2c474974be586
5,296
py
Python
origins/allometric.py
weka511/fractals
fa4e39677ea3ed7713e40a55b9453b2826f11a6c
[ "MIT" ]
2
2020-07-22T01:39:49.000Z
2020-07-28T04:36:22.000Z
origins/allometric.py
weka511/fractals
fa4e39677ea3ed7713e40a55b9453b2826f11a6c
[ "MIT" ]
11
2019-06-20T03:20:12.000Z
2020-07-20T03:07:55.000Z
origins/allometric.py
weka511/complexity
435ffab978e4499aea7c2c83788533867cc9b062
[ "MIT" ]
null
null
null
# Copyright (C) 2019-2020 Greenweaves Software Limited # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, me...
41.375
107
0.653512
4a23509fb070c1002f2d1a07178e3ef9ecaa9e96
961
py
Python
sagas/kit/viz_base.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
3
2020-01-11T13:55:38.000Z
2020-08-25T22:34:15.000Z
sagas/kit/viz_base.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
null
null
null
sagas/kit/viz_base.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
1
2021-01-01T05:21:44.000Z
2021-01-01T05:21:44.000Z
class BaseViz(object): def __init__(self, shape='egg', size='8,5', fontsize=0, enable_node_pos=False, translit_lang=None): from graphviz import Digraph self.f = Digraph('deps', filename='deps.gv') self.f.attr(rankdir='LR', size=size) # font 'Calibri' support Arabic text self....
34.321429
103
0.600416
4a2351043bd5f90834060be78606dce4cdf58b90
3,614
py
Python
ProgramFlow/tkinter/screen.py
kumarvgit/python3
318c5e7503fafc9c60082fa123e2930bd82a4ec9
[ "MIT" ]
null
null
null
ProgramFlow/tkinter/screen.py
kumarvgit/python3
318c5e7503fafc9c60082fa123e2930bd82a4ec9
[ "MIT" ]
null
null
null
ProgramFlow/tkinter/screen.py
kumarvgit/python3
318c5e7503fafc9c60082fa123e2930bd82a4ec9
[ "MIT" ]
null
null
null
try: import tkinter except ImportError: # python 2 import Tkinter as tkinter import os mainWindow = tkinter.Tk() mainWindow.title("Grid Demo") mainWindow.geometry('640x480-8-200') mainWindow['padx'] = 8 label= tkinter.Label(mainWindow, text="Tkinter Grid Demo") label.grid(row=0, column=0, columnspan=3) ma...
36.877551
140
0.749032
4a2351d637ce620252cb8d887145ae4806c5ae75
176
py
Python
StoreApp/errors.py
ttimms/coffee_shop
34bc240a71d005b575d6ea2801990cadad2021f8
[ "MIT" ]
null
null
null
StoreApp/errors.py
ttimms/coffee_shop
34bc240a71d005b575d6ea2801990cadad2021f8
[ "MIT" ]
null
null
null
StoreApp/errors.py
ttimms/coffee_shop
34bc240a71d005b575d6ea2801990cadad2021f8
[ "MIT" ]
null
null
null
from flask import render_template from StoreApp import storeApp, db, routes @storeApp.errorhandler(404) def not_found_error(error): return render_template('404.html'), 404
29.333333
43
0.801136
4a2351e24e91028103fe2654bcf5f5505c72a94a
77,842
py
Python
sarpy/io/complex/gff.py
mstewart-vsc/sarpy
2c9a51f1961524da8607cdb5042da0ec5b65130c
[ "MIT" ]
null
null
null
sarpy/io/complex/gff.py
mstewart-vsc/sarpy
2c9a51f1961524da8607cdb5042da0ec5b65130c
[ "MIT" ]
null
null
null
sarpy/io/complex/gff.py
mstewart-vsc/sarpy
2c9a51f1961524da8607cdb5042da0ec5b65130c
[ "MIT" ]
null
null
null
""" Functionality for reading a GFF file into a SICD model. Note: This has been tested on files of version 1.8 and 2.5, but hopefully works for others. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging import os import struct from typing import Union, BinaryIO from datetime impo...
36.459953
118
0.597993
4a2352991407d83d432cfaed248c401e43e49893
208
py
Python
1_beginner/chapter6/practice/too_long.py
code4tomorrow/Python
035b6f5d8fd635a16caaff78bcd3f582663dadc3
[ "MIT" ]
4
2021-03-01T00:32:45.000Z
2021-05-21T22:01:52.000Z
1_beginner/chapter6/practice/too_long.py
code4tomorrow/Python
035b6f5d8fd635a16caaff78bcd3f582663dadc3
[ "MIT" ]
29
2020-09-12T22:56:04.000Z
2021-09-25T17:08:42.000Z
1_beginner/chapter6/practice/too_long.py
code4tomorrow/Python
035b6f5d8fd635a16caaff78bcd3f582663dadc3
[ "MIT" ]
7
2021-02-25T01:50:55.000Z
2022-02-28T00:00:42.000Z
""" Too Long Print and remove all elements with length greater than 4 in a given list of strings. """ # list to help you test your code the_list = ["dragon", "cab", "science", "dove", "lime", "river", "pop"]
26
71
0.673077
4a2352e749b000c1813e809ee35548b9ba1864cd
203
py
Python
zilencer/forms.py
fearless0307/zulip
378d14af7ea73a9a83c7245706cd918bec5a37bf
[ "Apache-2.0" ]
4
2019-06-04T09:06:53.000Z
2019-06-04T09:07:47.000Z
zilencer/forms.py
fearless0307/zulip
378d14af7ea73a9a83c7245706cd918bec5a37bf
[ "Apache-2.0" ]
58
2018-11-27T15:18:54.000Z
2018-12-09T13:43:07.000Z
zilencer/forms.py
fearless0307/zulip
378d14af7ea73a9a83c7245706cd918bec5a37bf
[ "Apache-2.0" ]
9
2019-11-04T18:59:29.000Z
2022-03-22T17:46:37.000Z
from django import forms class EnterpriseToSForm(forms.Form): full_name = forms.CharField(max_length=100) company = forms.CharField(max_length=100) terms = forms.BooleanField(required=True)
29
47
0.768473
4a235394f2b4f0eb563dcd2fd14c6b4ff89123cd
43,838
py
Python
python/ray/autoscaler/_private/commands.py
luanagbmartins/ray
6e3721a34eced8013ac4ff8ecd60105ea4056050
[ "Apache-2.0" ]
null
null
null
python/ray/autoscaler/_private/commands.py
luanagbmartins/ray
6e3721a34eced8013ac4ff8ecd60105ea4056050
[ "Apache-2.0" ]
null
null
null
python/ray/autoscaler/_private/commands.py
luanagbmartins/ray
6e3721a34eced8013ac4ff8ecd60105ea4056050
[ "Apache-2.0" ]
1
2021-10-11T22:53:49.000Z
2021-10-11T22:53:49.000Z
import copy import hashlib import json import logging import os import random import sys import subprocess import tempfile import time from types import ModuleType from typing import Any, Dict, List, Optional, Tuple, Union import click import redis import yaml try: # py3 from shlex import quote except ImportError...
38.286463
79
0.579748
4a23545b08cfaa954390eb0ed19d51c28ee9f033
193,592
py
Python
pysnmp-with-texts/OPENWAVE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/OPENWAVE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/OPENWAVE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module OPENWAVE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OPENWAVE-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:35:08 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019,...
138.181299
11,912
0.787729
4a23555eff788fa6188ab6355ad62a5e2404a9ab
23,524
py
Python
appengine/swarming/swarming_bot/api/platforms/win.py
hixio-mh/luci-py
5e2606b0db8f5dac25e9f84fdf71d103da393894
[ "Apache-2.0" ]
null
null
null
appengine/swarming/swarming_bot/api/platforms/win.py
hixio-mh/luci-py
5e2606b0db8f5dac25e9f84fdf71d103da393894
[ "Apache-2.0" ]
1
2022-03-02T11:45:18.000Z
2022-03-02T11:45:18.000Z
appengine/swarming/swarming_bot/api/platforms/win.py
hixio-mh/luci-py
5e2606b0db8f5dac25e9f84fdf71d103da393894
[ "Apache-2.0" ]
1
2021-07-23T15:32:55.000Z
2021-07-23T15:32:55.000Z
# Copyright 2015 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Windows specific utility functions.""" import ctypes import logging import os import platform import re import string import subprocess import...
33.462304
97
0.682622
4a2355645635ae3f52184b9127fc3590ce385342
7,621
py
Python
desertbot/ircbase.py
Helle-Daryd/DesertBot
0b497db135a4c08dfbdb59108f830ba12fdc6465
[ "MIT", "BSD-3-Clause" ]
7
2018-03-20T17:10:10.000Z
2021-11-17T18:58:04.000Z
desertbot/ircbase.py
Helle-Daryd/DesertBot
0b497db135a4c08dfbdb59108f830ba12fdc6465
[ "MIT", "BSD-3-Clause" ]
109
2015-08-20T13:16:35.000Z
2022-01-21T19:40:35.000Z
desertbot/ircbase.py
Helle-Daryd/DesertBot
0b497db135a4c08dfbdb59108f830ba12fdc6465
[ "MIT", "BSD-3-Clause" ]
7
2018-03-29T05:55:01.000Z
2021-02-05T19:19:39.000Z
""" Copyright © 2012-2014 Desert Bus for Hope Engineering Team Copyright © 2015-2020 Jacob Riddle (ElementalAlchemist) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code mus...
40.973118
140
0.552421
4a23557cb86462fac2fb1d4e34038074dd9e18b5
823
py
Python
redbot/syntax/__init__.py
Malvoz/redbot
0edef8d4efefddde49d36cd97e471fc187837169
[ "MIT" ]
167
2015-01-07T16:34:56.000Z
2022-02-20T15:20:06.000Z
redbot/syntax/__init__.py
Malvoz/redbot
0edef8d4efefddde49d36cd97e471fc187837169
[ "MIT" ]
180
2015-02-01T01:37:53.000Z
2022-02-17T04:32:01.000Z
redbot/syntax/__init__.py
Malvoz/redbot
0edef8d4efefddde49d36cd97e471fc187837169
[ "MIT" ]
32
2015-05-20T21:00:13.000Z
2022-02-16T10:14:15.000Z
import re import sys import types __all__ = [ "rfc3986", "rfc5234", "rfc5322", "rfc5646", "rfc5987", "rfc5988", "rfc7230", "rfc7231", "rfc7232", "rfc7233", "rfc7234", "rfc7235", ] def check_regex() -> None: """Grab all the regex in this module.""" for module_na...
21.657895
59
0.55407
4a23570c3a08e4a952749b028739cc9c4be0d158
152
py
Python
__Courses__/Python - Introduction to Python Programming - Udacity/C2. Data Structures/format().py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
__Courses__/Python - Introduction to Python Programming - Udacity/C2. Data Structures/format().py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
__Courses__/Python - Introduction to Python Programming - Udacity/C2. Data Structures/format().py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
length, width, height = 52, 40, 100 print("The dimensions are {{ {} x {} x {} }}".format(length, width, height)) # The dimensions are { 52 x 40 x 100 }
38
76
0.625
4a235755796edca8737a15a588797c2c676659e1
3,482
py
Python
strings.py
fossabot/one_poker_bot
5dbe36ba590ba6da8035f42b9a36348052473ca2
[ "Unlicense" ]
null
null
null
strings.py
fossabot/one_poker_bot
5dbe36ba590ba6da8035f42b9a36348052473ca2
[ "Unlicense" ]
1
2018-12-17T18:15:24.000Z
2018-12-17T18:15:24.000Z
strings.py
fossabot/one_poker_bot
5dbe36ba590ba6da8035f42b9a36348052473ca2
[ "Unlicense" ]
1
2018-12-17T18:13:05.000Z
2018-12-17T18:13:05.000Z
# -*- encoding: utf 8 -*- class Strings: TOKEN = "___YOURBOTSTOKEN___" #write here your bot's token GREETINGS = "`Welcome to One Poker. If you wish to participate press the Play button. `" RULES = "One Poker is a game in which two people play following these rules:\n1. Both of you will receive 10 lives, you can ...
64.481481
770
0.681218
4a2357760196e3ef5e13d8da80d279e39cc98f4d
659
py
Python
6-NLP/1-Introduction-to-NLP/bot.py
GDaglio/ML-For-Beginners
0b7ad551455490d0ca46f6de1469ee64ee08fb10
[ "MIT" ]
null
null
null
6-NLP/1-Introduction-to-NLP/bot.py
GDaglio/ML-For-Beginners
0b7ad551455490d0ca46f6de1469ee64ee08fb10
[ "MIT" ]
null
null
null
6-NLP/1-Introduction-to-NLP/bot.py
GDaglio/ML-For-Beginners
0b7ad551455490d0ca46f6de1469ee64ee08fb10
[ "MIT" ]
null
null
null
import random random_responses = ["That is quite interesting, please tell me more.", "I see. Do go on.", "Why do you say that?", "Funny weather we've been having, isn't it?", "Let's change the subject.", "Did you catch...
29.954545
70
0.564492
4a23599aba3f23af75e4b7bbe17d84f2f2a857e0
8,801
py
Python
src/dieter/parser.py
catseye/Dieter
8824138c150db2ec6f03559461fd5b60500a54b7
[ "BSD-3-Clause" ]
null
null
null
src/dieter/parser.py
catseye/Dieter
8824138c150db2ec6f03559461fd5b60500a54b7
[ "BSD-3-Clause" ]
null
null
null
src/dieter/parser.py
catseye/Dieter
8824138c150db2ec6f03559461fd5b60500a54b7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ parser.py -- parser for the Dieter programming language. $Id: parser.py 382 2010-01-28 23:40:43Z cpressey $ """ import dieter.ast as ast class Parser(object): """ A recursive-descent parser for Dieter. """ def __init__(self, scanner): """ Creates a new Par...
35.631579
81
0.506533
4a2359d79ee49c96a85c8acb885798b60827137c
30,416
py
Python
chat_downloader/sites/facebook.py
Leodmanx2/chat-downloader
285da713f57c099840ddf89d492549821c891fda
[ "MIT" ]
306
2021-02-03T12:19:14.000Z
2022-03-31T02:07:20.000Z
chat_downloader/sites/facebook.py
z1001123/chat-downloader
ef68e28ac5898ed3e424ca1b9fbbbe73377cbb1e
[ "MIT" ]
79
2021-02-03T11:48:29.000Z
2022-03-28T19:14:18.000Z
chat_downloader/sites/facebook.py
z1001123/chat-downloader
ef68e28ac5898ed3e424ca1b9fbbbe73377cbb1e
[ "MIT" ]
53
2021-02-09T21:55:11.000Z
2022-03-28T21:17:40.000Z
from .common import ( Chat, BaseChatDownloader, Remapper as r, Image ) from ..utils.core import ( remove_prefixes, multi_get, seconds_to_time, camel_case_split, ensure_seconds, attempts, regex_search, base64_encode, ) from ..utils.timed_utils import interruptible_sleep f...
31.849215
119
0.553163
4a2359e14e50723d7696cb828fe387b3a29efcc2
369
py
Python
tests/integration/modules/ard.py
mosen/salt-osx
818d4ae89bb2853b28999a8ddb883c0fe1b1a657
[ "MIT" ]
68
2015-02-11T00:53:54.000Z
2021-11-06T16:07:17.000Z
tests/integration/modules/ard.py
Jaharmi/salt-osx
f6db606f04846d45935f3ed729e6243441cee360
[ "MIT" ]
13
2016-01-05T00:01:34.000Z
2022-03-18T23:44:21.000Z
tests/integration/modules/ard.py
Jaharmi/salt-osx
f6db606f04846d45935f3ed729e6243441cee360
[ "MIT" ]
19
2015-04-09T20:58:55.000Z
2020-11-04T06:39:06.000Z
# -*- coding: utf-8 -*- # Import Python libs from __future__ import absolute_import # Import Salt Testing libs from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs import integration class ArdTest(integration.ModuleCase): pass if __name__ == '__main__': from int...
18.45
49
0.747967
4a2359fc4a878b23f4458b2558106493d0a2250d
1,845
py
Python
.history/bar_20211223230946.py
tjxj/pdf2docx
3338a95f1a971de8caf0369fa3ce794d2d6d57cd
[ "Apache-2.0" ]
null
null
null
.history/bar_20211223230946.py
tjxj/pdf2docx
3338a95f1a971de8caf0369fa3ce794d2d6d57cd
[ "Apache-2.0" ]
null
null
null
.history/bar_20211223230946.py
tjxj/pdf2docx
3338a95f1a971de8caf0369fa3ce794d2d6d57cd
[ "Apache-2.0" ]
null
null
null
#Creating and Manipulating PDFs with pdfrw # https://www.blog.pythonlibrary.org/2018/06/06/creating-and-manipulating-pdfs-with-pdfrw/ # Extract certain types of information from a PDF # Splitting PDFs # Merging / Concatenating PDFs # Rotating pages # Creating overlays or watermarks # Scaling pages # Combining the use o...
29.758065
125
0.676965
4a235a474e94db163004d97223150de004cc5d1d
5,058
py
Python
virtual/Lib/site-packages/dash_html_components/Shadow.py
LeonZly90/LeonZly90
935a658814632beca84cab0af6c048dd762f8c56
[ "MIT" ]
2
2021-07-18T11:39:56.000Z
2021-11-06T17:13:05.000Z
venv/Lib/site-packages/dash_html_components/Shadow.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
null
null
null
venv/Lib/site-packages/dash_html_components/Shadow.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
null
null
null
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class Shadow(Component): """A Shadow component. Shadow is a wrapper for the <shadow> HTML5 element. DEPRECATED: <shadow> is included for completeness, but should be avoided as it is not supported by all ...
41.801653
586
0.708976
4a235acb68464acb56bfd1d4b928bc8f2ecbc959
3,407
py
Python
preprocessing/generate_lidar.py
fnaser/pseudo_lidar
9987331f68ff3d0f4d04ad47fc7632ae2a154674
[ "MIT" ]
null
null
null
preprocessing/generate_lidar.py
fnaser/pseudo_lidar
9987331f68ff3d0f4d04ad47fc7632ae2a154674
[ "MIT" ]
null
null
null
preprocessing/generate_lidar.py
fnaser/pseudo_lidar
9987331f68ff3d0f4d04ad47fc7632ae2a154674
[ "MIT" ]
null
null
null
import argparse import os import numpy as np import scipy.misc as ssc import open3d import kitti_util def project_disp_to_points(calib, disp, max_high): disp[disp < 0] = 0 baseline = 0.54 mask = disp > 0 depth = calib.f_u * baseline / (disp + 1. - mask) rows, cols = depth.shape c, r = np.mes...
36.244681
112
0.605225
4a235b46857e869e7787ee5f69e628270f936d68
267
py
Python
tests/dummy.py
paolostivanin/exam
27dc53a703349ec09433a6b989d6fc32ad523c0b
[ "MIT" ]
46
2015-01-31T10:27:51.000Z
2020-11-28T19:04:11.000Z
tests/dummy.py
paolostivanin/exam
27dc53a703349ec09433a6b989d6fc32ad523c0b
[ "MIT" ]
7
2015-02-16T17:14:20.000Z
2022-01-05T04:21:27.000Z
tests/dummy.py
paolostivanin/exam
27dc53a703349ec09433a6b989d6fc32ad523c0b
[ "MIT" ]
10
2015-02-08T22:47:58.000Z
2020-10-12T09:51:19.000Z
#: Module purely exists to test patching things. thing = True it = lambda: False def get_thing(): global thing return thing def get_it(): global it return it def get_prop(): return ThingClass.prop class ThingClass(object): prop = True
12.136364
48
0.670412
4a235b95562229ac11ec8da94aee3392df5193b0
6,007
py
Python
test/functional/zmq_test.py
zzbolt/zzboltcoin
99bf8ef246e4e96ade612a4ad270bf2554082314
[ "MIT" ]
null
null
null
test/functional/zmq_test.py
zzbolt/zzboltcoin
99bf8ef246e4e96ade612a4ad270bf2554082314
[ "MIT" ]
null
null
null
test/functional/zmq_test.py
zzbolt/zzboltcoin
99bf8ef246e4e96ade612a4ad270bf2554082314
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the ZMQ API.""" import configparser import os import struct from test_framework.test_framework im...
39.006494
123
0.611287
4a235cf1280c7f706ef866a37d435aa931518196
1,944
py
Python
2/q2_svm_python/svmlin.py
danikhani/ML-I_WS2020
e96555f3993b48511249d1677b39ae4e589e7bdb
[ "MIT" ]
null
null
null
2/q2_svm_python/svmlin.py
danikhani/ML-I_WS2020
e96555f3993b48511249d1677b39ae4e589e7bdb
[ "MIT" ]
null
null
null
2/q2_svm_python/svmlin.py
danikhani/ML-I_WS2020
e96555f3993b48511249d1677b39ae4e589e7bdb
[ "MIT" ]
null
null
null
import numpy as np # might need to add path to mingw-w64/bin for cvxopt to work #import os #os.environ["PATH"] += os.pathsep + ... from cvxopt import matrix as cvxopt_matrix from cvxopt import solvers as cvxopt_solvers def svmlin(X, t, C): # Linear SVM Classifier # # INPUT: # X : the dataset ...
29.454545
75
0.552469
4a235d6a6e6193c8d43c3904845a874971e757d7
1,539
py
Python
flappy_app/alex.py
Alexelofu/sqlite
3cf9b212d06607256790a8b6983dc8cf6d79bcef
[ "MIT" ]
null
null
null
flappy_app/alex.py
Alexelofu/sqlite
3cf9b212d06607256790a8b6983dc8cf6d79bcef
[ "MIT" ]
null
null
null
flappy_app/alex.py
Alexelofu/sqlite
3cf9b212d06607256790a8b6983dc8cf6d79bcef
[ "MIT" ]
null
null
null
import pandas as pd from flask import Flask app = Flask(__name__) @app.route("/head", methods = ['POST', 'GET']) def head(): df = pd.read_csv('http://s3.amazonaws.com/assets.datacamp.com/course/Kaggle/train.csv') return df.head().to_html() @app.route("/tail", methods = ['POST', 'GET']) def tail(): ...
33.456522
101
0.621183
4a2363116ac806f3279573bb86f6399200073731
5,949
py
Python
pytorch_helper_bot/examples/imagenette/main.py
imazerty/imet-collection-2019
d89cd7a5cea44f3bcbf13e07edb9d2fe4a7b0141
[ "Apache-2.0" ]
6
2019-07-02T07:53:32.000Z
2019-08-08T01:13:26.000Z
pytorch_helper_bot/examples/imagenette/main.py
imazerty/imet-collection-2019
d89cd7a5cea44f3bcbf13e07edb9d2fe4a7b0141
[ "Apache-2.0" ]
2
2019-07-21T07:30:05.000Z
2019-11-20T09:15:30.000Z
pytorch_helper_bot/examples/imagenette/main.py
imazerty/imet-collection-2019
d89cd7a5cea44f3bcbf13e07edb9d2fe4a7b0141
[ "Apache-2.0" ]
2
2019-08-08T01:13:29.000Z
2019-11-19T18:08:17.000Z
import argparse import json from pathlib import Path from dataclasses import dataclass import pandas as pd import torch from torch import nn, cuda from torch.utils.data import DataLoader from torch.optim.lr_scheduler import CosineAnnealingLR from helperbot import ( BaseBot, WeightDecayOptimizerWrapper, TriangularL...
31.643617
113
0.634729
4a2363c81f53de066f94b84111fd031f453101ac
89
py
Python
src/PyANN/__init__.py
matt-plank/Py-ANN
34f87312821fb710c4bcbba316074af541d37d9a
[ "MIT" ]
null
null
null
src/PyANN/__init__.py
matt-plank/Py-ANN
34f87312821fb710c4bcbba316074af541d37d9a
[ "MIT" ]
null
null
null
src/PyANN/__init__.py
matt-plank/Py-ANN
34f87312821fb710c4bcbba316074af541d37d9a
[ "MIT" ]
null
null
null
from .utils import * from .functions import * from .layers import * from .model import *
17.8
24
0.730337
4a2365706a965c7444edf637400ee365c15bf302
394
py
Python
src/sales/migrations/0007_rename_seller_product_archive_id_saleproduct_seller_product_archive.py
evis-market/web-interface-backend
f8930ff1c009ad18e522ab29680b4bcd50a6020e
[ "MIT" ]
2
2021-08-30T22:58:32.000Z
2021-12-12T10:47:52.000Z
src/sales/migrations/0007_rename_seller_product_archive_id_saleproduct_seller_product_archive.py
evis-market/web-interface-backend
f8930ff1c009ad18e522ab29680b4bcd50a6020e
[ "MIT" ]
null
null
null
src/sales/migrations/0007_rename_seller_product_archive_id_saleproduct_seller_product_archive.py
evis-market/web-interface-backend
f8930ff1c009ad18e522ab29680b4bcd50a6020e
[ "MIT" ]
1
2021-08-22T19:12:44.000Z
2021-08-22T19:12:44.000Z
# Generated by Django 3.2.7 on 2021-10-22 18:35 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('sales', '0006_saleproduct'), ] operations = [ migrations.RenameField( model_name='saleproduct', old_name='seller_product_arc...
20.736842
49
0.616751
4a23659ebb9f9542bd2236f8619059c860df9542
11,657
py
Python
test/decorators.py
daka1510/qiskit-ibm-provider
74fdae4457e6f15ba445a8742a25ac7a714ea51b
[ "Apache-2.0" ]
null
null
null
test/decorators.py
daka1510/qiskit-ibm-provider
74fdae4457e6f15ba445a8742a25ac7a714ea51b
[ "Apache-2.0" ]
null
null
null
test/decorators.py
daka1510/qiskit-ibm-provider
74fdae4457e6f15ba445a8742a25ac7a714ea51b
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
33.401146
95
0.640474
4a2366212abce17d549575f3be126873e77c2a4c
10,255
py
Python
log/classification/pointnet_cls_Real_10_norm_z/train_dense_classification.py
congw112358/RAL2022_Code
5e275cb8b389be745fee1285f58732456146f7af
[ "MIT" ]
null
null
null
log/classification/pointnet_cls_Real_10_norm_z/train_dense_classification.py
congw112358/RAL2022_Code
5e275cb8b389be745fee1285f58732456146f7af
[ "MIT" ]
null
null
null
log/classification/pointnet_cls_Real_10_norm_z/train_dense_classification.py
congw112358/RAL2022_Code
5e275cb8b389be745fee1285f58732456146f7af
[ "MIT" ]
null
null
null
""" Author: Benny Date: Nov 2019 """ import os import sys import torch import numpy as np import datetime import logging import provider import importlib import shutil import argparse from pathlib import Path from tqdm import tqdm from data_utils.OFFDataLoader import * # from path import Path # from data_utils.Model...
38.698113
138
0.648854
4a2366a9b3e13d0701c57377f7083c158540644e
10,577
py
Python
lifxlan/tilechain.py
spacelama/lifxlan
3db9afc1a89b60fc659969f2fa8485caf65b53b5
[ "MIT" ]
2
2017-02-22T14:42:56.000Z
2018-11-25T19:33:13.000Z
lifxlan/tilechain.py
spacelama/lifxlan
3db9afc1a89b60fc659969f2fa8485caf65b53b5
[ "MIT" ]
5
2018-06-02T05:54:52.000Z
2021-02-10T21:14:34.000Z
lifxlan/tilechain.py
spacelama/lifxlan
3db9afc1a89b60fc659969f2fa8485caf65b53b5
[ "MIT" ]
1
2019-10-30T04:56:54.000Z
2019-10-30T04:56:54.000Z
import os from .errors import WorkflowException, InvalidParameterException from .light import Light from .msgtypes import GetTileState64, StateTileState64, SetTileState64, GetDeviceChain, StateDeviceChain, SetUserPosition from threading import Thread class TileChain(Light): def __init__(self, mac_addr, ip_addr, s...
44.25523
232
0.606316
4a23680470163089ed7d1aad975a657f7c5715bf
982
py
Python
faceweb/faceapp/migrations/0009_auto_20200523_0646.py
Dheeraj2407/Face-web
e73696e0ff12fc19a8d88ccaf2a830db4fcbb102
[ "MIT" ]
null
null
null
faceweb/faceapp/migrations/0009_auto_20200523_0646.py
Dheeraj2407/Face-web
e73696e0ff12fc19a8d88ccaf2a830db4fcbb102
[ "MIT" ]
null
null
null
faceweb/faceapp/migrations/0009_auto_20200523_0646.py
Dheeraj2407/Face-web
e73696e0ff12fc19a8d88ccaf2a830db4fcbb102
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2020-05-23 06:46 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('faceapp', '0008_auto_20200522_0825'), ] operations = [ migrations.CreateModel( name='Subject', ...
30.6875
114
0.596741
4a236887b94e4f916a97466ce9370e4e7030b5af
1,289
py
Python
arcsde/forms.py
powderflask/django-arcsde
f7ee70e8a5cf14aeda6af137fa7ab301634fbb85
[ "MIT" ]
null
null
null
arcsde/forms.py
powderflask/django-arcsde
f7ee70e8a5cf14aeda6af137fa7ab301634fbb85
[ "MIT" ]
null
null
null
arcsde/forms.py
powderflask/django-arcsde
f7ee70e8a5cf14aeda6af137fa7ab301634fbb85
[ "MIT" ]
null
null
null
from django import forms ##################################################################### # Base form class used to share common functionality for SDE report forms. # This class is ABSTRACT -- must be sub-classed to be of use! ##################################################################### class Abstrac...
42.966667
109
0.592708
4a2368ea43e898904e7cad11db402c095231fd20
2,542
py
Python
Projects/YTdownloader/main.py
Abbhiishek/Python
3ad5310ca29469f353f9afa99531f01273eec6bd
[ "MIT" ]
1
2022-02-04T07:04:34.000Z
2022-02-04T07:04:34.000Z
Projects/YTdownloader/main.py
Abbhiishek/Python
3ad5310ca29469f353f9afa99531f01273eec6bd
[ "MIT" ]
12
2022-02-13T12:10:32.000Z
2022-02-17T09:36:49.000Z
Projects/YTdownloader/main.py
Abbhiishek/Python
3ad5310ca29469f353f9afa99531f01273eec6bd
[ "MIT" ]
null
null
null
# libraraies import pytube import sys class YouTubeDownloder: def __init__(self): self.url = str(input("Enter the url of video : ")) self.youtube = pytube.YouTube( self.url, on_progress_callback=YouTubeDownloder.onProgress ) self.showTitle() def showTitle(self): ...
27.934066
121
0.5476
4a236948bc6d0086f9be493ef2213c7a54c83aae
13,841
py
Python
windows_lnk_file.py
Vector35/kaitai
71fd8c31289aaeba12f48ae394631f9a56cfe056
[ "MIT" ]
20
2019-09-28T01:44:58.000Z
2022-03-09T08:35:56.000Z
windows_lnk_file.py
Vector35/kaitai
71fd8c31289aaeba12f48ae394631f9a56cfe056
[ "MIT" ]
4
2020-12-23T01:51:26.000Z
2021-12-15T14:41:50.000Z
windows_lnk_file.py
Vector35/kaitai
71fd8c31289aaeba12f48ae394631f9a56cfe056
[ "MIT" ]
4
2020-02-20T18:47:27.000Z
2021-06-17T01:24:09.000Z
# This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild from pkg_resources import parse_version from . import kaitaistruct from .kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO from enum import Enum if parse_version(kaitaistruct.__version__) < parse_version('0.9'): ...
43.11838
183
0.60328
4a236a9365c81d4df17e6ded30959695d65cb8ff
994
py
Python
self-learning/based/ifoperator.py
vladspirin/python-learning
6b005fb28f96c0d610348a0b5f8830f94c53075f
[ "Unlicense" ]
1
2018-10-23T14:50:43.000Z
2018-10-23T14:50:43.000Z
self-learning/based/ifoperator.py
vladspirin/python-learning
6b005fb28f96c0d610348a0b5f8830f94c53075f
[ "Unlicense" ]
null
null
null
self-learning/based/ifoperator.py
vladspirin/python-learning
6b005fb28f96c0d610348a0b5f8830f94c53075f
[ "Unlicense" ]
null
null
null
# True # False # x = 0 # if x: # print('Переменная x вернула истину') # else: # print('Переменная x вернула ложь') # if 1: # print('Выражение истинно') # else: # print('Выражение ложно') # light = 'red' # if light == 'red': # print("Stop") # elif light == 'yellow': # print('Wait') # elif ligh...
16.566667
52
0.551308
4a236aaa3bbb5608fc0df6a11fe26c8c1cf12181
3,769
py
Python
chat_mysite/settings.py
xiaoqiao99/chat
ca65ed25fbc277828390b890a50ecadf4675cfb4
[ "MIT" ]
2
2019-06-21T10:30:18.000Z
2019-07-12T07:46:25.000Z
chat_mysite/settings.py
xiaoqiao99/chat
ca65ed25fbc277828390b890a50ecadf4675cfb4
[ "MIT" ]
8
2020-06-05T19:56:53.000Z
2022-03-11T23:41:44.000Z
chat_mysite/settings.py
xiaoqiao99/chat
ca65ed25fbc277828390b890a50ecadf4675cfb4
[ "MIT" ]
3
2020-03-13T03:22:40.000Z
2020-07-03T03:03:02.000Z
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.1.7. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # ...
25.295302
91
0.651897
4a236c3083672d986c35bbfd3d70550434f9b6c8
946
py
Python
uncertainty_baselines/models/movielens_test.py
athon-millane/uncertainty-baselines
aa504fc51aac6d4cac47dbd34aa672c670dfbd28
[ "Apache-2.0" ]
2
2022-02-22T10:22:46.000Z
2022-03-09T09:22:41.000Z
uncertainty_baselines/models/movielens_test.py
PGM-Lab/2022-AISTATS-diversity
63df2e5f29cdaefe49626439bbe13289f37eed36
[ "Apache-2.0" ]
null
null
null
uncertainty_baselines/models/movielens_test.py
PGM-Lab/2022-AISTATS-diversity
63df2e5f29cdaefe49626439bbe13289f37eed36
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Uncertainty Baselines Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
29.5625
74
0.756871
4a236dbc34dc3ea36b4c3a7ad9f690e355ace920
18,676
py
Python
xclim/indices/generic.py
ClimateImpactLab/xclim
b4877050223c58afc1089961a2a516bda26d3917
[ "Apache-2.0" ]
null
null
null
xclim/indices/generic.py
ClimateImpactLab/xclim
b4877050223c58afc1089961a2a516bda26d3917
[ "Apache-2.0" ]
1
2021-03-29T18:39:50.000Z
2021-04-05T19:16:05.000Z
xclim/indices/generic.py
ClimateImpactLab/xclim
b4877050223c58afc1089961a2a516bda26d3917
[ "Apache-2.0" ]
1
2021-03-02T20:12:28.000Z
2021-03-02T20:12:28.000Z
# -*- coding: utf-8 -*- # noqa: D205,D400 """ Generic indices submodule ========================= Helper functions for common generic actions done in the computation of indices. """ from typing import Union import numpy as np import xarray as xr from xclim.core.calendar import get_calendar from xclim.core.units impo...
28.776579
138
0.619779
4a236dd07d7f94721876a25c4653c4c28aaea8e2
14,858
py
Python
theano/sandbox/multinomial.py
janchorowski/Theano
b46e24dcf37727f688057a55c57bf939f3f05c07
[ "BSD-3-Clause" ]
1
2015-04-24T17:09:10.000Z
2015-04-24T17:09:10.000Z
theano/sandbox/multinomial.py
janchorowski/Theano
b46e24dcf37727f688057a55c57bf939f3f05c07
[ "BSD-3-Clause" ]
null
null
null
theano/sandbox/multinomial.py
janchorowski/Theano
b46e24dcf37727f688057a55c57bf939f3f05c07
[ "BSD-3-Clause" ]
null
null
null
import numpy import theano from theano import Op, Apply import theano.tensor as T from theano.gof import local_optimizer from theano.tensor import NotScalarConstantError, get_scalar_constant_value from theano.scalar import as_scalar from theano.sandbox.cuda import cuda_available, GpuOp if cuda_available: from the...
35.208531
131
0.493135
4a236ec186ca73df43b280a9a0ceef1f981fd9e5
1,503
py
Python
helloDjango/boards/models.py
GavWaite/hello-django
a51b0752e6ecadac8db72603b5b9ad557ce8d419
[ "MIT" ]
null
null
null
helloDjango/boards/models.py
GavWaite/hello-django
a51b0752e6ecadac8db72603b5b9ad557ce8d419
[ "MIT" ]
null
null
null
helloDjango/boards/models.py
GavWaite/hello-django
a51b0752e6ecadac8db72603b5b9ad557ce8d419
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User # This is where we define our data model which will be stored in the database # Note that we use the built in model for User # Also worth noting is the fields are all subclasses of django.db.models.Field # Lots of choices here class Board(models...
45.545455
149
0.757818
4a236f3cc09a6546af818cd19340862fae3ce52d
297
py
Python
django_task/api/tasks.py
juxiaona/test_dev05
7a47ff51cc4afd33353323ebe10469a1a3e40e4a
[ "Apache-2.0" ]
1
2021-07-11T09:16:24.000Z
2021-07-11T09:16:24.000Z
django_task/api/tasks.py
juxiaona/test_dev05
7a47ff51cc4afd33353323ebe10469a1a3e40e4a
[ "Apache-2.0" ]
1
2021-07-11T09:16:52.000Z
2021-07-11T09:16:52.000Z
django_task/api/tasks.py
juxiaona/test_dev05
7a47ff51cc4afd33353323ebe10469a1a3e40e4a
[ "Apache-2.0" ]
3
2021-10-17T12:23:01.000Z
2022-02-03T02:29:05.000Z
import os from time import sleep from celery import shared_task from django_task.settings import BASE_DIR TEST_FILE = os.path.join(BASE_DIR, "api", "running_tests.py") @shared_task def running(): os.system(TEST_FILE) return @shared_task def add(x, y): sleep(10) return x + y
14.85
61
0.720539
4a236f6cd4d0c1ed3cede68cd989e7791c54f6fc
668
py
Python
setup.py
jlbush23/tess_cpm
7e18a4ae5372cbeaef496a3289bdaa4405bc0503
[ "MIT" ]
6
2021-06-30T09:30:27.000Z
2022-03-24T21:26:45.000Z
setup.py
jlbush23/tess_cpm
7e18a4ae5372cbeaef496a3289bdaa4405bc0503
[ "MIT" ]
7
2019-11-07T19:42:05.000Z
2021-02-28T01:24:40.000Z
setup.py
jlbush23/tess_cpm
7e18a4ae5372cbeaef496a3289bdaa4405bc0503
[ "MIT" ]
6
2019-11-07T17:17:13.000Z
2021-02-28T00:48:30.000Z
import setuptools with open("README.md", "r") as f: readme = f.read() setuptools.setup( name="tess_cpm", version="0.0.1", author="Soichiro Hattori", author_email="soichiro.hattori@gmail.com", url="https://github.com/soichiro-hattori/tess_cpm", license="MIT", description="An implementat...
24.740741
82
0.628743
4a236f8a2fa862b812a8a32b59b18663e87a4c96
9,637
py
Python
pieces.py
ps1899/Chess-AI
c77dbece8383a297cc654c5ca23fe2817076de79
[ "Apache-2.0" ]
1
2020-08-25T13:28:37.000Z
2020-08-25T13:28:37.000Z
pieces.py
ps1899/Chess-AI
c77dbece8383a297cc654c5ca23fe2817076de79
[ "Apache-2.0" ]
null
null
null
pieces.py
ps1899/Chess-AI
c77dbece8383a297cc654c5ca23fe2817076de79
[ "Apache-2.0" ]
null
null
null
import board, ai class Piece(): WHITE = "W" BLACK = "B" def __init__(self, x, y, color, piece_type, value): self.x = x self.y = y self.color = color self.piece_type = piece_type self.value = value # Returns all diagonal moves for this piece. This should ther...
32.778912
149
0.584414
4a236fbe72bc52479b8ce71677b5a288b6f70db0
6,997
py
Python
ZenPacks/daviswr/ZoneMinder/dsplugins/Storage.py
daviswr/ZenPacks.daviswr.ZoneMinder
7baf10fd0f27b533ab8d1eb8c8b41a3680997b98
[ "MIT" ]
2
2021-04-15T09:05:33.000Z
2022-01-07T14:36:16.000Z
ZenPacks/daviswr/ZoneMinder/dsplugins/Storage.py
daviswr/ZenPacks.daviswr.ZoneMinder
7baf10fd0f27b533ab8d1eb8c8b41a3680997b98
[ "MIT" ]
5
2019-11-25T05:02:36.000Z
2021-06-30T12:53:39.000Z
ZenPacks/daviswr/ZoneMinder/dsplugins/Storage.py
daviswr/ZenPacks.daviswr.ZoneMinder
7baf10fd0f27b533ab8d1eb8c8b41a3680997b98
[ "MIT" ]
2
2020-12-22T02:50:40.000Z
2020-12-22T16:11:43.000Z
"""Monitors ZoneMinder storage volumes using the JSON API""" import logging LOG = logging.getLogger('zen.ZoneMinder') import json import re import urllib from twisted.internet.defer import inlineCallbacks, returnValue from twisted.web.client import getPage from ZenPacks.zenoss.PythonCollector.datasources.PythonData...
34.985
77
0.477919
4a236fcb3c72ef06dcf52214d0310fc83d05bdae
43,050
py
Python
Networks/EfficientNet_hl.py
XLPRUtils/XLPR_Classification
c8a3a574013858e23d4722dd03c1d9fa59a41c0e
[ "MIT" ]
2
2020-11-17T08:57:01.000Z
2021-06-30T00:42:53.000Z
Networks/EfficientNet_hl.py
XLPRUtils/XLPR_Classification
c8a3a574013858e23d4722dd03c1d9fa59a41c0e
[ "MIT" ]
null
null
null
Networks/EfficientNet_hl.py
XLPRUtils/XLPR_Classification
c8a3a574013858e23d4722dd03c1d9fa59a41c0e
[ "MIT" ]
null
null
null
"""model.py - Model and module class for EfficientNet. They are built to mirror those in the official TensorFlow implementation. """ # Author: lukemelas (github username) # Github repo: https://github.com/lukemelas/EfficientNet-PyTorch # With adjustments and added comments by workingcoder (github username). ...
43.883792
131
0.63561
4a2370b74cc24716eba8b5980899eb66c5a105c5
5,767
py
Python
cam_analysis/optimized_expression.py
cabrittin/volumetric_analysis
82004378abae963ef02858bf4711786dad76f133
[ "MIT" ]
null
null
null
cam_analysis/optimized_expression.py
cabrittin/volumetric_analysis
82004378abae963ef02858bf4711786dad76f133
[ "MIT" ]
null
null
null
cam_analysis/optimized_expression.py
cabrittin/volumetric_analysis
82004378abae963ef02858bf4711786dad76f133
[ "MIT" ]
null
null
null
""" optimized_expression.py Finds the optimal expression pattern that maximizes coverage of synaptic partners while minimizing coverage of neighbors. @author Christopher Brittin @date 2019 April 14 """ import sys sys.path.append('./volumetric_analysis') sys.path.append('.') import argparse import numpy as np from r...
28.408867
90
0.561991
4a23716cf1f8e7f927163d0e39218da95e16a82c
457
py
Python
2018/01.23/API/jya.api.py
mksweetlife/study
0786a4bd7901ac0d1aa5efdae5b755693eee5cd3
[ "MIT" ]
1
2017-10-24T08:19:15.000Z
2017-10-24T08:19:15.000Z
2018/01.23/API/jya.api.py
mksweetlife/study
0786a4bd7901ac0d1aa5efdae5b755693eee5cd3
[ "MIT" ]
31
2017-10-31T11:09:44.000Z
2018-12-04T07:47:46.000Z
2018/01.23/API/jya.api.py
mksweetlife/study
0786a4bd7901ac0d1aa5efdae5b755693eee5cd3
[ "MIT" ]
5
2017-10-26T02:13:08.000Z
2018-07-05T04:58:47.000Z
import requests def getPrice(coin): A = ['btc','bch','btg','bcd','ubtc','eth','etc','ada','qtum','xlm','neo','gas','rpx','hsr','knc','tsl','tron','omg','wtc','mco','storm','gto','pxs','chat','ink','hlc','ent','qbt','spc','put'] if coin not in A: return 'false' r = requests.get('https://api.coinnest.co.kr/api/pub/...
30.466667
192
0.588621
4a23721ac54d2501994e0a002e5f88bff6bf6521
12,746
py
Python
analysis/webservice/algorithms/doms/ResultsStorage.py
ngachung/incubator-sdap-nexus
38e768694fcc142e2d88283cb1e44e05f88da847
[ "Apache-2.0" ]
17
2017-11-16T07:36:33.000Z
2021-11-07T00:02:20.000Z
analysis/webservice/algorithms/doms/ResultsStorage.py
ngachung/incubator-sdap-nexus
38e768694fcc142e2d88283cb1e44e05f88da847
[ "Apache-2.0" ]
35
2018-01-11T00:50:20.000Z
2022-03-17T23:08:07.000Z
analysis/webservice/algorithms/doms/ResultsStorage.py
ngachung/incubator-sdap-nexus
38e768694fcc142e2d88283cb1e44e05f88da847
[ "Apache-2.0" ]
25
2017-11-16T07:36:38.000Z
2022-02-03T20:48:46.000Z
# 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 use ...
40.208202
183
0.593127
4a23724dde84b494a7c47c17dcf1d75ad57fdefe
130
py
Python
example_config.py
baofeng-dong/facilities-survey-dashboard
b5eb4a8a84299f76bfebc45fb501cfb95fd0af43
[ "MIT" ]
1
2017-04-27T09:03:57.000Z
2017-04-27T09:03:57.000Z
example_config.py
baofeng-dong/facilities-survey-dashboard
b5eb4a8a84299f76bfebc45fb501cfb95fd0af43
[ "MIT" ]
null
null
null
example_config.py
baofeng-dong/facilities-survey-dashboard
b5eb4a8a84299f76bfebc45fb501cfb95fd0af43
[ "MIT" ]
null
null
null
DB_CONFIG = "postgresql://user:password@localhost/db" ROOT_DIR = "/path/to/project" ADMIN_USER = "username" ADMIN_PW = "password"
26
53
0.746154
4a2373574a8c20f2e658dd78ede53ea3d56378cc
1,196
py
Python
eclipse-mosquitto/test/broker/07-will-no-flag.py
HenriqueBuzin/mosquitto-eclipse-mqtt
00468923fcf70eefdf2c707b6ba9bdd4f859faf2
[ "Unlicense" ]
2
2021-04-20T14:28:59.000Z
2021-05-06T07:46:53.000Z
eclipse-mosquitto/test/broker/07-will-no-flag.py
HenriqueBuzin/mosquitto-eclipse-mqtt
00468923fcf70eefdf2c707b6ba9bdd4f859faf2
[ "Unlicense" ]
null
null
null
eclipse-mosquitto/test/broker/07-will-no-flag.py
HenriqueBuzin/mosquitto-eclipse-mqtt
00468923fcf70eefdf2c707b6ba9bdd4f859faf2
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # Test whether a connection is disconnected if it sets the will flag but does # not provide a will payload. from mosq_test_helper import * def do_test(proto_ver): rc = 1 keepalive = 10 connect_packet = mosq_test.gen_connect("will-no-payload", keepalive=keepalive, will_topic="will/t...
28.47619
158
0.655518
4a23741db7c41a09c38c65c61a5e8c809d685ee1
3,723
py
Python
blog/admin.py
whitexiong/DjangoBlog
61b3f4a9ec805949d0a21487888f422f40592871
[ "MIT" ]
1
2020-07-11T16:45:13.000Z
2020-07-11T16:45:13.000Z
blog/admin.py
whitexiong/DjangoBlog
61b3f4a9ec805949d0a21487888f422f40592871
[ "MIT" ]
null
null
null
blog/admin.py
whitexiong/DjangoBlog
61b3f4a9ec805949d0a21487888f422f40592871
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Article, Category, Tag, Links, SideBar, BlogSettings from django import forms from django.contrib.auth import get_user_model from django.utils.translation import ugettext_lazy as _ from django.urls import reverse from django.utils.html im...
29.085938
78
0.677142
4a2374f8b5bb24a1179462a2ddd5bc186e771ece
696
py
Python
examples/greet0.2.py
aisola/python-cli
520b512ae3c01da2675816ad7a7b9500128b2499
[ "MIT" ]
null
null
null
examples/greet0.2.py
aisola/python-cli
520b512ae3c01da2675816ad7a7b9500128b2499
[ "MIT" ]
null
null
null
examples/greet0.2.py
aisola/python-cli
520b512ae3c01da2675816ad7a7b9500128b2499
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys sys.path.append('../') import cli # the action of the program def main(context): if context.flag("lang") == "english": print "Hello, friend!" elif context.flag("lang") == "spanish": print "Hola, amigo!" elif context.flag("lang") == "french": print "S...
26.769231
87
0.587644
4a2375fa549af2af9303b7a4de4fcd84e89cc6f0
612
py
Python
astropy/io/misc/asdf/tags/coordinates/earthlocation.py
emirkmo/astropy
d96cd45b25ae55117d1bcc9c40e83a82037fc815
[ "BSD-3-Clause" ]
1
2019-03-11T12:26:49.000Z
2019-03-11T12:26:49.000Z
astropy/io/misc/asdf/tags/coordinates/earthlocation.py
emirkmo/astropy
d96cd45b25ae55117d1bcc9c40e83a82037fc815
[ "BSD-3-Clause" ]
1
2019-10-09T18:54:27.000Z
2019-10-09T18:54:27.000Z
astropy/io/misc/asdf/tags/coordinates/earthlocation.py
emirkmo/astropy
d96cd45b25ae55117d1bcc9c40e83a82037fc815
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- from astropy.coordinates import EarthLocation from astropy.io.misc.asdf.types import AstropyType class EarthLocationType(AstropyType): name = 'coordinates/earthlocation' types = [EarthLocation] version = '1.0.0' @...
26.608696
63
0.691176
4a2376e933dd5d9afabbad743f076b3b633b20ad
20,925
py
Python
cloudify_docker/ansible.py
jrzeszutek/cloudify-docker-plugin
7c1416424ef6aad08bde7891d9eca920a34bc26a
[ "Apache-2.0" ]
null
null
null
cloudify_docker/ansible.py
jrzeszutek/cloudify-docker-plugin
7c1416424ef6aad08bde7891d9eca920a34bc26a
[ "Apache-2.0" ]
null
null
null
cloudify_docker/ansible.py
jrzeszutek/cloudify-docker-plugin
7c1416424ef6aad08bde7891d9eca920a34bc26a
[ "Apache-2.0" ]
null
null
null
######## # Copyright (c) 2014-2020 GigaSpaces Technologies 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-2.0 # # U...
45.292208
79
0.602724
4a2376ee2f6b3c88fd6d6ad488d4b15b967f74da
8,753
py
Python
NeuralStyleTransfer/main.py
ThreeSRR/Chinese-Painting-Generator
56d7cc1e0254912b0515ae2c1b9679d9b16e04dc
[ "Apache-2.0" ]
6
2021-01-06T04:27:32.000Z
2022-03-13T04:53:03.000Z
NeuralStyleTransfer/main.py
ThreeSRR/Chinese-Painting-Generator
56d7cc1e0254912b0515ae2c1b9679d9b16e04dc
[ "Apache-2.0" ]
null
null
null
NeuralStyleTransfer/main.py
ThreeSRR/Chinese-Painting-Generator
56d7cc1e0254912b0515ae2c1b9679d9b16e04dc
[ "Apache-2.0" ]
4
2021-02-26T06:51:38.000Z
2022-03-13T07:23:59.000Z
import copy import argparse import os from PIL import Image import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torchvision.transforms as transforms import torchvision.models as models from LossFunction import ContentLoss, StyleLoss plt...
34.191406
187
0.629384
4a237a1c3fcc6d9cebaa17f698552a2fcb2fbaa2
3,772
py
Python
mml2music/song.py
CuteFwan/mml2music
e9a0a7a93f2b16ab5a197d5b8364bd0ae83eac4b
[ "MIT" ]
6
2019-08-09T08:23:28.000Z
2021-12-31T20:26:44.000Z
mml2music/song.py
CuteFwan/mml2music
e9a0a7a93f2b16ab5a197d5b8364bd0ae83eac4b
[ "MIT" ]
null
null
null
mml2music/song.py
CuteFwan/mml2music
e9a0a7a93f2b16ab5a197d5b8364bd0ae83eac4b
[ "MIT" ]
1
2019-09-07T01:54:57.000Z
2019-09-07T01:54:57.000Z
from .errors import * class Note: __slots__ = ('position', 'frequency', 'length', 'volume') def __init__(self, position: float, frequency: float, length: float, volume: float): self.position = position self.frequency = frequency self.length = length self.volume = volume class ...
36.980392
88
0.586957
4a237a4010df8596fb438931b8bd24c348b7728e
1,708
py
Python
rnn_play.py
wrannaman/tensorflow-pickup-lines
484b71cb610bb581062ab02e90e30d689bc01ed6
[ "Apache-2.0" ]
15
2017-06-26T02:15:10.000Z
2020-07-30T15:26:17.000Z
rnn_play.py
wrannaman/tensorflow-pickup-lines
484b71cb610bb581062ab02e90e30d689bc01ed6
[ "Apache-2.0" ]
null
null
null
rnn_play.py
wrannaman/tensorflow-pickup-lines
484b71cb610bb581062ab02e90e30d689bc01ed6
[ "Apache-2.0" ]
2
2020-09-10T20:50:13.000Z
2021-08-04T14:54:59.000Z
import tensorflow as tf import numpy as np import my_txtutils target = open("outputs.txt", 'w') # these must match what was saved ! ALPHASIZE = my_txtutils.ALPHASIZE NLAYERS = 3 INTERNALSIZE = 512 ##################################### REPLACE THESE WITH YOUR TRAINED MODEL CHECKPOINT FILES ###########################...
35.583333
122
0.619438
4a237a854535205f287a9834509f8a17f08a657b
4,073
py
Python
mtl_rl/environment.py
snehanyk05/RL_CNN_Lateral_Control
589e98ad895cdb27c9b39fb0bee3d05d9e48c416
[ "MIT" ]
null
null
null
mtl_rl/environment.py
snehanyk05/RL_CNN_Lateral_Control
589e98ad895cdb27c9b39fb0bee3d05d9e48c416
[ "MIT" ]
null
null
null
mtl_rl/environment.py
snehanyk05/RL_CNN_Lateral_Control
589e98ad895cdb27c9b39fb0bee3d05d9e48c416
[ "MIT" ]
null
null
null
import time import sysv_ipc from utils import * class Env(object): def __init__(self, shm_sz=640*480*3+4*1+54*4, vision=False): self.shm_sz = shm_sz self.vision = vision self.first_launch = True os.system("pkill torcs") time.sleep(0.5) os.system("torcs &") ti...
33.661157
101
0.503315
4a237b36fa569f810fd20fb71b6fe2dbef85d298
401
py
Python
ITE-428/basicproject2/MyLibrary.py
richeyphu/ITE-428-LAB
c68fdddb7bbfa8b74a58a0b26bdcb4565af3b08b
[ "MIT" ]
1
2021-07-14T11:12:19.000Z
2021-07-14T11:12:19.000Z
ITE-428/basicproject2/MyLibrary.py
richeyphu/ITE-428-LAB
c68fdddb7bbfa8b74a58a0b26bdcb4565af3b08b
[ "MIT" ]
null
null
null
ITE-428/basicproject2/MyLibrary.py
richeyphu/ITE-428-LAB
c68fdddb7bbfa8b74a58a0b26bdcb4565af3b08b
[ "MIT" ]
null
null
null
# function declaration import math def line1(): print("-" * 35) def line2(ch): # line2('#') # print(ch * 35) print("{}".format(ch) * 35) def line3(ch, num): print("{}".format(ch) * num) def calBMI(w, h): bmi = w / math.pow(h, 2) return bmi def create_email(name, ...
16.04
72
0.523691
4a237bd18d3291d79be0411ca59e81f0f826fbb9
10,156
py
Python
qiskit/circuit/library/arithmetic/piecewise_linear_pauli_rotations.py
maddy-tod/qiskit-terra
f11740cf0375c725880fc5feea749fbb64011f11
[ "Apache-2.0" ]
1
2020-04-21T04:32:08.000Z
2020-04-21T04:32:08.000Z
qiskit/circuit/library/arithmetic/piecewise_linear_pauli_rotations.py
maddy-tod/qiskit-terra
f11740cf0375c725880fc5feea749fbb64011f11
[ "Apache-2.0" ]
null
null
null
qiskit/circuit/library/arithmetic/piecewise_linear_pauli_rotations.py
maddy-tod/qiskit-terra
f11740cf0375c725880fc5feea749fbb64011f11
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
36.532374
99
0.584088
4a237c9b2ca671187f36e8d23c528fe8c881207b
5,238
py
Python
cogs/currency.py
nzwl702/A-Lonely-Soul
d9ddf6173e3c8795ae7d3db6dff755db3945c894
[ "MIT" ]
null
null
null
cogs/currency.py
nzwl702/A-Lonely-Soul
d9ddf6173e3c8795ae7d3db6dff755db3945c894
[ "MIT" ]
null
null
null
cogs/currency.py
nzwl702/A-Lonely-Soul
d9ddf6173e3c8795ae7d3db6dff755db3945c894
[ "MIT" ]
null
null
null
from datetime import datetime from random import choice from random import randint import discord from discord.ext import commands from .userdata.resources.files import Files from .userdata.user import User class Currency(commands.Cog): def __init__(self, client): self.client = client def help(sel...
35.632653
110
0.538946
4a237cb2a851c50fe071b57920003df1b635378d
24,580
py
Python
nuitka/tree/TreeHelpers.py
Pihu1998/Nuitka
b84034fbc516afb1d501a9eb84a58552efa247c2
[ "Apache-2.0" ]
null
null
null
nuitka/tree/TreeHelpers.py
Pihu1998/Nuitka
b84034fbc516afb1d501a9eb84a58552efa247c2
[ "Apache-2.0" ]
1
2019-03-01T11:33:40.000Z
2019-03-01T11:33:40.000Z
nuitka/tree/TreeHelpers.py
riya-17/Nuitka
69183f6567befd62bc1d768dd070fb99475b8cb4
[ "Apache-2.0" ]
1
2019-03-26T16:56:21.000Z
2019-03-26T16:56:21.000Z
# Copyright 2019, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
32.68617
89
0.615867
4a237e2f5468e056524fc90d5d8468e8dd2044df
103
py
Python
discriminative_loss.py
ForrestPi/SegDL
56f2ff229dfa7540704d6de50292c724693aac75
[ "MIT" ]
1
2021-07-26T08:30:11.000Z
2021-07-26T08:30:11.000Z
discriminative_loss.py
ForrestPi/SegDL
56f2ff229dfa7540704d6de50292c724693aac75
[ "MIT" ]
null
null
null
discriminative_loss.py
ForrestPi/SegDL
56f2ff229dfa7540704d6de50292c724693aac75
[ "MIT" ]
1
2021-07-21T09:18:32.000Z
2021-07-21T09:18:32.000Z
#https://github.com/Wizaron/instance-segmentation-pytorch/blob/master/code/lib/losses/discriminative.py
103
103
0.84466
4a237e6ee99b26039431a0369ba42d9f7f317a55
11,106
py
Python
njunmt/tests/data_iterator.py
whr94621/NJUNMT-tf
29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118
[ "Apache-2.0" ]
111
2017-12-29T12:48:02.000Z
2022-03-15T00:47:13.000Z
njunmt/tests/data_iterator.py
whr94621/NJUNMT-tf
29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118
[ "Apache-2.0" ]
3
2018-01-27T13:54:42.000Z
2020-03-02T03:07:19.000Z
njunmt/tests/data_iterator.py
whr94621/NJUNMT-tf
29e0b0c577ea7c81acdc80e7a94a1c4dfb85c118
[ "Apache-2.0" ]
44
2017-12-29T12:49:57.000Z
2022-02-02T13:25:28.000Z
# This file is deprecated # Copyright 2017 ZhaoChengqi, zhaocq.nlp@gmail.com, Natural Language Processing Group, Nanjing University (2015-2018). # # 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 a...
32.005764
119
0.577256
4a237ffbbf3c02ec8284e38dc87c77962b0475c2
197
py
Python
Task/Introspection/Python/introspection-3.py
LaudateCorpus1/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/Introspection/Python/introspection-3.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
null
null
null
Task/Introspection/Python/introspection-3.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
def sum_of_global_int_vars(): variables = vars(__builtins__).copy() variables.update(globals()) print sum(v for v in variables.itervalues() if type(v) == int) sum_of_global_int_vars()
28.142857
66
0.720812
4a238047033e5cbf36f7fcf8fd4f8278040c6210
769
py
Python
sandbox/bad_flush.py
tacaswell/pyFAI
fd63c7d9ba35e687ef5c4ec717c01bf46564572a
[ "MIT" ]
45
2016-07-16T19:43:47.000Z
2022-03-12T16:53:47.000Z
sandbox/bad_flush.py
tacaswell/pyFAI
fd63c7d9ba35e687ef5c4ec717c01bf46564572a
[ "MIT" ]
1,125
2016-06-09T07:47:57.000Z
2022-03-31T20:34:00.000Z
sandbox/bad_flush.py
tacaswell/pyFAI
fd63c7d9ba35e687ef5c4ec717c01bf46564572a
[ "MIT" ]
52
2016-06-09T07:30:46.000Z
2022-02-14T08:25:11.000Z
#!/usr/bin/python3 import logging logger = logging.basicConfig(level=logging.INFO) import numpy, pyFAI, pyFAI.azimuthalIntegrator method = ("no", "csr", "cython") detector = pyFAI.detector_factory("Pilatus_100k") ai = pyFAI.azimuthalIntegrator.AzimuthalIntegrator(detector=detector) rm = max(detector.shape) * detector.p...
40.473684
78
0.725618
4a2380f878e4af4063121bd5e7c6f9db2ca77183
1,022
py
Python
label_studio/ml/migrations/0005_auto_20211010_1344.py
mehdibenamorr/label-studio
213252d360b028eb031ca127969fb35a897dc2b6
[ "Apache-2.0" ]
8,264
2019-06-25T23:08:05.000Z
2022-03-31T18:48:34.000Z
label_studio/ml/migrations/0005_auto_20211010_1344.py
mehdibenamorr/label-studio
213252d360b028eb031ca127969fb35a897dc2b6
[ "Apache-2.0" ]
1,446
2019-08-02T13:46:25.000Z
2022-03-31T23:09:32.000Z
label_studio/ml/migrations/0005_auto_20211010_1344.py
mehdibenamorr/label-studio
213252d360b028eb031ca127969fb35a897dc2b6
[ "Apache-2.0" ]
1,092
2019-07-02T16:36:35.000Z
2022-03-31T20:01:19.000Z
# Generated by Django 3.1.13 on 2021-10-10 13:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ml', '0004_auto_20210820_1610'), ] operations = [ migrations.AlterField( model_name='mlbackend', name='is_interacti...
35.241379
180
0.642857
4a23816fcbfdc2800f25d862feb86b49ebd3ebd8
4,233
py
Python
scipy/sparse/linalg/isolve/tests/test_lsqr.py
smola/scipy
ff8b9d9e87a585a820846d7f459d6156ba621c4d
[ "BSD-3-Clause" ]
1
2020-02-26T12:15:51.000Z
2020-02-26T12:15:51.000Z
scipy/sparse/linalg/isolve/tests/test_lsqr.py
smola/scipy
ff8b9d9e87a585a820846d7f459d6156ba621c4d
[ "BSD-3-Clause" ]
null
null
null
scipy/sparse/linalg/isolve/tests/test_lsqr.py
smola/scipy
ff8b9d9e87a585a820846d7f459d6156ba621c4d
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, print_function, absolute_import import numpy as np from numpy.testing import (assert_, assert_equal, assert_almost_equal, assert_array_almost_equal) import scipy.sparse import scipy.sparse.linalg from scipy.sparse.linalg import lsqr from time import time # ...
30.453237
80
0.575006
4a2381c05606236e1b05e5a78bf22879119a5ca5
1,161
py
Python
WEEKS/wk17/d2/more-examples/binaryToASCII.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/wk17/d2/more-examples/binaryToASCII.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/wk17/d2/more-examples/binaryToASCII.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
# Given a binary string (ASCII encoded), write a function that returns the equivalent decoded text. # Every eight bits in the binary string represents one character on the ASCII table. # Examples: # csBinaryToASCII("011011000110000101101101011000100110010001100001") -> "lambda" # 01101100 -> 108 -> "l" # 01100001 ->...
29.025
99
0.664944
4a23824ce4a8e7a6b3249833270527a275560155
403
py
Python
covid_project/covid_project/asgi.py
Valentin-Rault/Covid-project
cd895d5317dcb920724db2a94e523e1f18efc43b
[ "MIT" ]
null
null
null
covid_project/covid_project/asgi.py
Valentin-Rault/Covid-project
cd895d5317dcb920724db2a94e523e1f18efc43b
[ "MIT" ]
2
2020-11-15T14:43:53.000Z
2021-07-03T08:34:15.000Z
covid_project/covid_project/asgi.py
Valentin-Rault/Covid-project
cd895d5317dcb920724db2a94e523e1f18efc43b
[ "MIT" ]
null
null
null
""" ASGI config for covid_project project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
4a2382cc23d7efb47678a84935487c85f4641865
498
py
Python
data/scripts/templates/object/tangible/ship/components/reactor/shared_rct_seinar_enhanced_level1.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/ship/components/reactor/shared_rct_seinar_enhanced_level1.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/ship/components/reactor/shared_rct_seinar_enhanced_level1.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/ship/components/reactor/shared_rct_seinar_enhanced_level1.iff" resu...
29.294118
98
0.751004
4a2383af70b55861d4b8740249558e5d82c4735c
2,811
py
Python
lottery/branch/prune_early.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
9
2021-03-30T20:43:26.000Z
2021-12-28T06:25:17.000Z
lottery/branch/prune_early.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
null
null
null
lottery/branch/prune_early.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
2
2021-03-31T01:19:48.000Z
2021-08-02T13:41:32.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import copy import torch from lottery.branch import base import models.registry import pruning.registry from pruning.mask import Mask from pru...
37.48
109
0.668801
4a2384b7eb26dfa0cfff764f86aa6eaab170ed33
559
py
Python
Python-For-Everyone-Horstmann/Chapter11-Recursion/nose_triangle_area.py
islayy/Books-solutions
5fe05deb4e9f65875284d8af43bd383bf9ae145b
[ "MIT" ]
null
null
null
Python-For-Everyone-Horstmann/Chapter11-Recursion/nose_triangle_area.py
islayy/Books-solutions
5fe05deb4e9f65875284d8af43bd383bf9ae145b
[ "MIT" ]
null
null
null
Python-For-Everyone-Horstmann/Chapter11-Recursion/nose_triangle_area.py
islayy/Books-solutions
5fe05deb4e9f65875284d8af43bd383bf9ae145b
[ "MIT" ]
1
2021-01-30T22:19:07.000Z
2021-01-30T22:19:07.000Z
# Unit tests for triangle_area.py # IMPORTS from triangle_area import triangle_area from nose.tools import eq_ class TestTriangleArea(): def test_triangle_area_side_length_0(self): eq_(0, triangle_area(0)) def test_triangle_area_side_length_1(self): eq_(1, triangle_area(1)) def test_tr...
23.291667
54
0.726297
4a2384f61b3ba0b16c77766c44234ae764686626
1,969
py
Python
airflow/api/common/experimental/__init__.py
lukeplus/docker-airflow
dbdba3ec537913601541f99d9ed6b13dfe5f3619
[ "Apache-2.0" ]
2
2021-01-27T09:27:21.000Z
2021-05-14T05:49:23.000Z
airflow/api/common/experimental/__init__.py
lukeplus/docker-airflow
dbdba3ec537913601541f99d9ed6b13dfe5f3619
[ "Apache-2.0" ]
22
2019-12-09T23:22:07.000Z
2021-05-12T23:15:40.000Z
airflow/api/common/experimental/__init__.py
lukeplus/docker-airflow
dbdba3ec537913601541f99d9ed6b13dfe5f3619
[ "Apache-2.0" ]
5
2019-11-18T13:19:29.000Z
2020-03-25T13:20:29.000Z
# -*- coding: utf-8 -*- # # 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 #...
41.020833
86
0.722702
4a2384fe5e28d4f4ba701ee19078b04fc4cbd0f7
459
py
Python
updateAttendance.py
Shivani-781/AI-Powered-Hourly-Attendance-Capturing-System
46c6ba6ea95b71132d2fc87bfa0824fcbca379c5
[ "MIT" ]
null
null
null
updateAttendance.py
Shivani-781/AI-Powered-Hourly-Attendance-Capturing-System
46c6ba6ea95b71132d2fc87bfa0824fcbca379c5
[ "MIT" ]
null
null
null
updateAttendance.py
Shivani-781/AI-Powered-Hourly-Attendance-Capturing-System
46c6ba6ea95b71132d2fc87bfa0824fcbca379c5
[ "MIT" ]
null
null
null
import json import boto3 dynamo = boto3.resource("dynamodb") table = dynamo.Table("Attendance_Count") def lambda_handler(event, context): # TODO implement res = table.get_item(Key = {"RollNo" : event['RollNo']}) print(res['Item']['Name']) Count = res['Item']['Count'] Count= Count+1 ...
30.6
86
0.616558
4a238531d96231ab760c380ebe1f20be8314617b
2,337
py
Python
beetsplug/unimported.py
jcassette/beets
10338c2a601c28289cd30debf2537b3523d95446
[ "MIT" ]
1
2022-03-17T22:44:47.000Z
2022-03-17T22:44:47.000Z
beetsplug/unimported.py
jcassette/beets
10338c2a601c28289cd30debf2537b3523d95446
[ "MIT" ]
1
2022-03-10T00:41:36.000Z
2022-03-10T00:41:36.000Z
beetsplug/unimported.py
jcassette/beets
10338c2a601c28289cd30debf2537b3523d95446
[ "MIT" ]
1
2022-03-10T00:37:26.000Z
2022-03-10T00:37:26.000Z
# This file is part of beets. # Copyright 2019, Joris Jensen # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, mod...
33.385714
76
0.599914
4a2385856a06d2aaa4ecf3b713c1e4f9acda1265
10,281
py
Python
sirms/mols.py
MariBerry/sirms
acb27280c8612c67d59eb4a508b254c97ee0bb33
[ "BSD-3-Clause" ]
13
2015-03-27T14:33:32.000Z
2021-04-08T19:50:07.000Z
sirms/mols.py
MariBerry/sirms
acb27280c8612c67d59eb4a508b254c97ee0bb33
[ "BSD-3-Clause" ]
null
null
null
sirms/mols.py
MariBerry/sirms
acb27280c8612c67d59eb4a508b254c97ee0bb33
[ "BSD-3-Clause" ]
8
2017-10-01T22:36:45.000Z
2020-12-03T10:41:17.000Z
#------------------------------------------------------------------------------- # Name: mols # Purpose: Mol class to operate with molecules # # Author: Pavel Polishchuk # # Created: 11.01.2013 # Copyright: (c) Pavel Polishchuk 2013-2015 # Licence: BSD 3-clause #-------------------------------...
38.219331
155
0.546056
4a23862b035687aea25a21977a8bbe82ee13f664
4,345
py
Python
seal_rookery/convert_images.py
umeboshi2/seal-rookery
9115d8d8f8d9e0e383670bb6e824875645a4b7c6
[ "Unlicense" ]
null
null
null
seal_rookery/convert_images.py
umeboshi2/seal-rookery
9115d8d8f8d9e0e383670bb6e824875645a4b7c6
[ "Unlicense" ]
null
null
null
seal_rookery/convert_images.py
umeboshi2/seal-rookery
9115d8d8f8d9e0e383670bb6e824875645a4b7c6
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import argparse import hashlib import json import os import subprocess import sys from seal_rookery import seals_root, seals_data ORIG_DIR = os.path.join(seals_root, 'orig') def get_old_hash(img): """Get the old hash from seals.json""" try: old_hash = seals_data[img.split('.')[...
30.384615
81
0.565017
4a238734324b5e6799629685af33b52d30e1791b
146
py
Python
login-service/app/db/dependencies.py
javapagar/fast-api_microservice
e8d350ff6be376f8e58a7f0204bde2b74f6dcd49
[ "MIT" ]
null
null
null
login-service/app/db/dependencies.py
javapagar/fast-api_microservice
e8d350ff6be376f8e58a7f0204bde2b74f6dcd49
[ "MIT" ]
null
null
null
login-service/app/db/dependencies.py
javapagar/fast-api_microservice
e8d350ff6be376f8e58a7f0204bde2b74f6dcd49
[ "MIT" ]
null
null
null
from db.database import SessionLocal # Dependency def get_db(): db = SessionLocal() try: yield db finally: db.close()
16.222222
36
0.609589
4a23886a570384a4d6bea6cd8d18e1ef0b7eb705
66,657
py
Python
src/instructions.py
hansbonini/pynes-dev
aa5d04de0a1beb6afb93219ffc9f63e83b3907a0
[ "MIT" ]
null
null
null
src/instructions.py
hansbonini/pynes-dev
aa5d04de0a1beb6afb93219ffc9f63e83b3907a0
[ "MIT" ]
null
null
null
src/instructions.py
hansbonini/pynes-dev
aa5d04de0a1beb6afb93219ffc9f63e83b3907a0
[ "MIT" ]
null
null
null
import addrmodes # TODO: Verificar se nao existem enderecamentos maiores que 1 byte def rel_addr(value): if value & 0b10000000: value &= 0b1111111 value -= 128 return value def advancePC(cpu, size): cpu.registers['PC'] += size def setN(cpu, value): if value & (1 << 7) == 1 << 7: ...
21.578828
72
0.599052
4a2389202c06a1615287a427c942617bda88ee87
952
py
Python
venv/Lib/site-packages/nipype/algorithms/tests/test_auto_ICC.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
585
2015-01-12T16:06:47.000Z
2022-03-26T14:51:08.000Z
nipype/algorithms/tests/test_auto_ICC.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
2,329
2015-01-01T09:56:41.000Z
2022-03-30T14:24:49.000Z
nipype/algorithms/tests/test_auto_ICC.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
487
2015-01-20T01:04:52.000Z
2022-03-21T21:22:47.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..icc import ICC def test_ICC_inputs(): input_map = dict( mask=dict( extensions=None, mandatory=True, ), subjects_sessions=dict( mandatory=True, ), ) inputs = ICC.input_spec() ...
24.410256
67
0.566176
4a23895ba928c0d624894404fb5f9c2453f26517
1,117
py
Python
CTFd/plugins/ctfd_glowworm/vulns/web_pyblog/home/ctf/blog/django_blog/urls.py
Threezh1/H1ve
2688c68eaf213a4cfca4c8611588d7050e131838
[ "Apache-2.0" ]
501
2019-11-22T07:19:06.000Z
2022-03-28T07:16:40.000Z
CTFd/plugins/ctfd_glowworm/vulns/web_pyblog/home/ctf/blog/django_blog/urls.py
bei-gui/jnvc-ctf
eb7002999700da81b5f9de4a28bc40b97631ddd4
[ "Apache-2.0" ]
58
2019-12-02T13:59:15.000Z
2022-02-26T01:53:52.000Z
CTFd/plugins/ctfd_glowworm/vulns/web_pyblog/home/ctf/blog/django_blog/urls.py
bei-gui/jnvc-ctf
eb7002999700da81b5f9de4a28bc40b97631ddd4
[ "Apache-2.0" ]
128
2019-12-02T11:15:58.000Z
2022-03-27T08:25:59.000Z
"""django_blog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Clas...
38.517241
177
0.692032