hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
865c20eacde0f59217ba173b0ec9f6fd556a58c5
820
py
Python
beispielanwendungen/webkit3/main.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
5
2017-03-11T13:27:27.000Z
2022-01-09T10:52:05.000Z
beispielanwendungen/webkit3/main.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
2
2021-02-14T10:59:59.000Z
2021-10-30T21:46:32.000Z
beispielanwendungen/webkit3/main.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
1
2019-08-07T03:08:18.000Z
2019-08-07T03:08:18.000Z
#!/usr/bin/env python import os, sys, optparse from PySide import QtCore, QtGui, QtDeclarative def main(argv): parser = optparse.OptionParser() parser.add_option("-f", "--fullscreen", dest="fullscreen", help="Start application in fullscreen mode", action="store_true", default=False) (options...
31.538462
144
0.663415
86b89861517c42d2c4ecf1a7e373cb56b7a9340f
426
py
Python
python_gui_tkinter/Tkinter/TkinterCourse/23_canvas_wid_2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/Tkinter/TkinterCourse/23_canvas_wid_2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/Tkinter/TkinterCourse/23_canvas_wid_2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from tkinter import * master = Tk() w = Canvas(master, width=200, height=100) w.pack() w.create_rectangle(50, 20, 150, 80, fill="#476042") w.create_rectangle(65, 35, 135, 65, fill="yellow") w.create_line(0, 0, 50, 20, fill="#476042", width=3) w.create_line(0, 100, 50, 80, fill="#476042", width=3) w.create_line(150,2...
26.625
57
0.671362
86ce7752470e0e06efc2cf5e03d4647146152436
5,890
py
Python
src/train.py
misogil0116/Biscotti
010ef0f29fbd5d33c9870ce249f1a9824f3471c4
[ "Apache-2.0" ]
10
2018-01-11T01:15:15.000Z
2020-06-22T15:03:31.000Z
src/train.py
misogil0116/Biscotti
010ef0f29fbd5d33c9870ce249f1a9824f3471c4
[ "Apache-2.0" ]
null
null
null
src/train.py
misogil0116/Biscotti
010ef0f29fbd5d33c9870ce249f1a9824f3471c4
[ "Apache-2.0" ]
null
null
null
import argparse import os import glob import numpy as np np.random.seed(2016) from keras import backend as K from keras.callbacks import ModelCheckpoint from keras.models import Model from keras.layers import Input from keras.layers import Conv2D, MaxPooling2D, UpSampling2D # from keras.layers import merge from keras....
46.746032
112
0.671307
077a106994d647bcc715d53fefffcc3d792a8448
1,567
py
Python
opencv_tutorial/opencv_python_tutorials/Image_Processing/watersheld.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/watersheld.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/watersheld.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 4 16:26:19 2019 @author: jone """ import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('img/coin.jpg') img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) # binary 이미지로 변환(grayscale로 변환) gray = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY) ret, thresh = ...
30.134615
97
0.724952
077dbb8c502b69688603be1e576606fc0207293a
3,053
py
Python
WeChatTools/Utils/GateHelper.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatTools/Utils/GateHelper.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatTools/Utils/GateHelper.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- # python35 from Utils.GateAPI import GateIO class GateHelper(object): def __init__(self, gate_api_url): self.gateio = GateIO(gate_api_url) self.gate_token_markets = self.get_pairs() def get_return_msg(self, content): try: token_name = content.split('...
35.917647
108
0.581723
0780c3f1fbad64213efc1329421ab90b2f733d85
870
py
Python
bin/downloader.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
5
2017-04-18T20:21:06.000Z
2020-12-28T05:44:39.000Z
bin/downloader.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
35
2016-09-21T18:04:51.000Z
2020-03-11T02:39:20.000Z
bin/downloader.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
2
2018-12-17T03:16:35.000Z
2020-10-18T10:09:01.000Z
#! /usr/bin/env python # coding=UTF-8 import re import sys import urllib2 def _name_from_url(url): index = url.rfind('/') name = url[index + 1:] return name def _download(url): result = ul.urlopen(url) output = open("./"+ _name_from_url(url), "wb") while True: data = result.read(512...
20.232558
58
0.575862
ed1aa7eff51315dffa53c794559adf09be039efc
255
py
Python
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def problem3_2(collection): for item in collection: print(item) #nlis = [23,64,23,46,12,24] # list #atup = ("c","e","a","d","b") # tuple #str1 = "Rumplestilskin" #problem3_2(nlis) #print() #problem3_2(atup) #print() #problem3_2(str1)
18.214286
44
0.607843
9c5ed595bedb47293b45d416c71e2fb51beee67f
841
py
Python
tarefas-poo/lista-04/matriz_de_inteiros/view/paineis/painel_multiplica_matrizes.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-04/matriz_de_inteiros/view/paineis/painel_multiplica_matrizes.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-04/matriz_de_inteiros/view/paineis/painel_multiplica_matrizes.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# ------------------------------- # UFSC - CTC - INE - INE5663 # Exercício da Matriz de Inteiros # ------------------------------- # Classe que permite multiplicar duas matrizes. # from view.util import mostra_matriz class PainelMultiplicaMatrizes: def multiplique(self, nomeA, matrizA, nomeB, matrizB): p...
33.64
72
0.574316
1344e6e00ef4d1c05620b464473b4a06c932cb45
708
py
Python
migrations/versions/6893de0cb15b_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
migrations/versions/6893de0cb15b_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
migrations/versions/6893de0cb15b_.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
"""empty message Revision ID: 6893de0cb15b Revises: 1fb9f679defb Create Date: 2021-08-13 08:28:00.156404 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op from project import dbtypes from project.models import PublicStatus # revision identifiers, used by Alembic. revision = "6893de0cb15b" d...
19.666667
61
0.689266
13819b8f3aa40da676d6ae424f6ee4a4ec4157ec
469
py
Python
apps/models/posts.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
apps/models/posts.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
apps/models/posts.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from apps.extensions import db from datetime import datetime # id rid # 1 0 # 2 0 # 3 0 # 4 1 # 5 3 class Posts(db.Model): __tablename__ = 'posts' id = db.Column(db.Integer, primary_key=True) rid = db.Column(db.Integer, index=True, default=0) content = db.Column(db.Te...
24.684211
63
0.620469
13a5306e7506eb0d4d1ca09dafda78112544fff6
4,920
py
Python
Project1/main.py
veronikadim99/Wissenschaftliches-Rechnen
3b7c86e9488bf434f3ad1d590f5b9bb9b4cdf218
[ "Apache-2.0" ]
null
null
null
Project1/main.py
veronikadim99/Wissenschaftliches-Rechnen
3b7c86e9488bf434f3ad1d590f5b9bb9b4cdf218
[ "Apache-2.0" ]
null
null
null
Project1/main.py
veronikadim99/Wissenschaftliches-Rechnen
3b7c86e9488bf434f3ad1d590f5b9bb9b4cdf218
[ "Apache-2.0" ]
null
null
null
import numpy as np from lib import timedcall, plot_2d diag = 0 offDiag = 0 theta_rad = 0 def matrix_multiplication(a: np.ndarray, b: np.ndarray) -> np.ndarray: """ Calculate product of two matrices a * b without the use of numpy.dot and numpy.matrix Arguments: a : first matrix b : second matrix ...
25.625
120
0.617683
6a272dae50253eff05875a64a8908d2361088288
2,151
py
Python
qmk_firmware/lib/python/qmk/submodules.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/submodules.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/submodules.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
"""Functions for working with QMK's submodules. """ from milc import cli def status(): """Returns a dictionary of submodules. Each entry is a dict of the form: { 'name': 'submodule_name', 'status': None/False/True, 'githash': '<sha-1 hash for the submodule> ...
30.295775
108
0.58345
e06b4fc4cd35d5909edb1c5ec11423ac770a00e8
7,213
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/onyx_facts.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/onyx_facts.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/onyx_facts.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
29.321138
103
0.642174
1611893bfe87645959146b44a72867f68cbc9e5b
678
py
Python
src/main.py
AakashMallik/cnn-firefly
6c8ed58a035e62682263753436b124cb979ed240
[ "MIT" ]
null
null
null
src/main.py
AakashMallik/cnn-firefly
6c8ed58a035e62682263753436b124cb979ed240
[ "MIT" ]
7
2020-11-27T12:24:31.000Z
2020-11-29T09:41:09.000Z
src/main.py
AakashMallik/cnn-firefly
6c8ed58a035e62682263753436b124cb979ed240
[ "MIT" ]
null
null
null
from .utils.constant import PipelineType from .utils.config_parser import ConfigParser from .utils.seed import seed_all from .utils.device import get_device from .loops.train import TrainingLoop class Pipeline: @classmethod def train(cls, config, device=None): seed_all(config.seed) loop_instan...
29.478261
65
0.696165
161af0a471a6ea3829cf64ba10ef3f2ff2a756de
6,608
py
Python
src/onegov/wtfs/security.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/security.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/security.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import sedate from datetime import datetime, timedelta from onegov.core.security import Public from onegov.user import User from onegov.user import UserCollection from onegov.wtfs import WtfsApp from onegov.wtfs.collections import ScanJobCollection from onegov.wtfs.models import DailyList from onegov.wtfs.models impor...
32.234146
79
0.671913
914de02b46fce9cccc9c1a47e537c46fa07e474c
28,355
py
Python
util/cpt_upgrader.py
lokamdheeraj/gemV
f4e615c45e86c3c3db5b5fc9fe3066598e0ad54e
[ "BSD-3-Clause" ]
null
null
null
util/cpt_upgrader.py
lokamdheeraj/gemV
f4e615c45e86c3c3db5b5fc9fe3066598e0ad54e
[ "BSD-3-Clause" ]
null
null
null
util/cpt_upgrader.py
lokamdheeraj/gemV
f4e615c45e86c3c3db5b5fc9fe3066598e0ad54e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012-2013 ARM Limited # All rights reserved # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implement...
41.273654
92
0.587692
e68b5791767261fb5b3f00b37a11ce9b66996c91
7,177
py
Python
Image-Cropper/cropper.py
saikatdgp2001/Hacktoberfest-Projects
e7f542c222d2d00f8c5072f6a72d8aa7ceb52c69
[ "MIT" ]
17
2021-09-24T07:06:09.000Z
2021-11-14T15:56:26.000Z
Image-Cropper/cropper.py
saikatdgp2001/Hacktoberfest-Projects
e7f542c222d2d00f8c5072f6a72d8aa7ceb52c69
[ "MIT" ]
111
2021-09-23T18:03:04.000Z
2021-11-15T00:04:29.000Z
Image-Cropper/cropper.py
saikatdgp2001/Hacktoberfest-Projects
e7f542c222d2d00f8c5072f6a72d8aa7ceb52c69
[ "MIT" ]
59
2021-09-23T17:58:48.000Z
2021-11-01T05:29:56.000Z
import cv2 from tkinter import ttk, Tk, RIDGE, Canvas, filedialog from PIL import Image, ImageTk class FrontEnd: def __init__(self, master): self.master = master style = ttk.Style() style.configure('My.TFrame', background='#7FFFD4') self.frame_header = ttk.Frame(self.master, style...
31.897778
90
0.550091
fc061b3f0063d843af07ad3ab85041b405093d04
1,570
py
Python
packages/watchmen-model/src/watchmen_model/admin/topic.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/admin/topic.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/admin/topic.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from enum import Enum from typing import Dict, List, Optional, Union from pydantic import BaseModel from watchmen_model.common import DataSourceId, OptimisticLock, TenantBasedTuple, TopicId from watchmen_utilities import ArrayHelper from .factor import Factor class TopicKind(str, Enum): SYSTEM = 'system', BUSINES...
24.53125
106
0.741401
fc42ed30861ca5f1ea9cbcb4a669384941f38431
3,160
py
Python
___Python/Marco/PythonProj/p04_oop/m01_kennenlernen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Marco/PythonProj/p04_oop/m01_kennenlernen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Marco/PythonProj/p04_oop/m01_kennenlernen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
from datetime import date from p01.m_01 import teilnehmer class Teilnehmer(object): # Konstruktormethode def __init__ (self, vorname, ort, geburtsdatum, sprachen): self.vorname = vorname self.ort = ort self.geburtsdatum = geburtsdatum self.sprachen = sprachen ...
34.347826
142
0.691139
fc586bf416d8fb4c910c678384568e6ba080879f
142
py
Python
hello/test_py.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
hello/test_py.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
hello/test_py.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- def test_isdigit(): assert True == "1234".isdigit() assert False == "1234a".isdigit()
17.75
37
0.591549
5d855dfe091540734484045e704f60bb1b6f3c0c
445
py
Python
pyventskalender/tag09_loesung.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag09_loesung.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag09_loesung.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
from typing import List, Union def wie_viele_messungen_von(name: str, dateiname: str) -> int: vorkommnisse = 0 with open(dateiname, "r") as datei: for zeile in datei: if name in zeile: vorkommnisse += 1 return vorkommnisse def durchschnitt(zahlen: List[Union[int, floa...
24.722222
62
0.617978
53c2cae45030a8ccd7efb055ca050129f3fd0704
49,250
py
Python
Packs/AWS-NetworkFirewall/Integrations/AWS-NetworkFirewall/AWS-NetworkFirewall.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/AWS-NetworkFirewall/Integrations/AWS-NetworkFirewall/AWS-NetworkFirewall.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/AWS-NetworkFirewall/Integrations/AWS-NetworkFirewall/AWS-NetworkFirewall.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * # flake8: noqa import boto3 import json import datetime # type: ignore from botocore.config import Config from botocore.parsers import ResponseParserError import urllib3.util # Disable insecure warnings urllib3.disab...
43.0131
150
0.675533
ab417e99ac3b4708d56052c09f11249c634e37c2
3,390
py
Python
Utils/py/ActionSelection/compare_decision_schemes_random.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/ActionSelection/compare_decision_schemes_random.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/ActionSelection/compare_decision_schemes_random.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import os import pickle from random import randint from tools import field_info as field from state import State from tools import action as a import numpy as np from naoth import math2d as m2d import play_striker as striker import multiprocessing as mp """ For a certain amount of random positions on the field the ...
28.487395
116
0.669617
91c933e018808c1b2f830eeddf2086a623ed79ab
198
py
Python
leetcode/070-Climbing-Stairs/ClimbingStairs_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/070-Climbing-Stairs/ClimbingStairs_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/070-Climbing-Stairs/ClimbingStairs_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param {integer} n # @return {integer} def climbStairs(self, n): a = [0, 1] for i in range(n): a += [a[i] + a[i + 1]] return a[-1]
19.8
34
0.439394
5365afdd59be803e25da2c85017ebc1d36d80d11
3,282
py
Python
PyStellar/stellar/commit/service/commitservice.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
3
2021-01-24T17:07:55.000Z
2021-02-20T20:11:13.000Z
PyStellar/stellar/commit/service/commitservice.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
61
2021-01-10T12:59:01.000Z
2021-06-24T09:19:20.000Z
PyStellar/stellar/commit/service/commitservice.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
1
2021-01-14T05:23:32.000Z
2021-01-14T05:23:32.000Z
import datetime import requests from commit.dao.commit_dao import CommitDao from commit.resources.commit_sql import insert_commit from common.commonutil import timecommitcheck from psguser.service.psguser_service import PsgUserListService from stellar.settings import SLACKURL, BOTTOKEN, CHANNEL class commithistory:...
34.547368
115
0.50975
be32e06c15d8145fecab229820866c92d99c027d
765
py
Python
Python/Maths/Find_angleMBC.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Python/Maths/Find_angleMBC.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Python/Maths/Find_angleMBC.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
# https://courses.lumenlearning.com/boundless-algebra/chapter/trigonometry-and-right-triangles/ # https://www.hackerrank.com/challenges/find-angle/forum from math import sqrt, atan2, atan, degrees ab = 10 # int(input()) bc = 10 # int(input()) abc = 90 # deg a = ab b = bc c = sqrt(a**2+b**2) print(a,b,c) # right an...
23.181818
95
0.64183
22ae39142e42730ef0541b6c9487aff49b680755
58,867
py
Python
Packs/jamf/Integrations/jamfV2/jamfV2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/jamf/Integrations/jamfV2/jamfV2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/jamf/Integrations/jamfV2/jamfV2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa import requests import traceback from typing import Dict, Any from bs4 import BeautifulSoup # Disable insecure warnings requests.packages.urllib3.disable_warning...
43.062911
125
0.644215
a3ff29ff381972e857955bac99f70c5a657a69e4
234
py
Python
Python/Courses/Crash-Course-on-Python.Google/week-3-Loops/01-while-Loops.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Crash-Course-on-Python.Google/week-3-Loops/01-while-Loops.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Crash-Course-on-Python.Google/week-3-Loops/01-while-Loops.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
x = 0 while x < 5: print(f"Not there yet, x = {x}") x = x + 1 print(f"x = {x}") def attempts(n: int) -> None: x2 = 1 while x2 <= n: print("Attempt " + str(x2)) x2 += 1 print("Done") attempts(5)
13.764706
36
0.457265
78da46c1925312d60bc7e1b9195998c3fcabf31c
1,237
py
Python
pwn/worm/deploy/instance/build.py
b01lers/circle-city-ctf-2021
5d6c341f8d9647487dc69df84a4bea5e61d7ca43
[ "MIT" ]
9
2021-06-13T19:33:53.000Z
2021-10-04T13:17:26.000Z
CircleCityCon/2021/pwn/worm_2/instance/build.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-06-13T23:20:05.000Z
2021-06-13T23:20:05.000Z
CircleCityCon/2021/pwn/worm_2/instance/build.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-06-14T02:09:46.000Z
2021-06-14T02:09:46.000Z
import os import random import subprocess import shutil max_depth = int(os.environ["MAX_DEPTH"]) name = lambda i: i % 2 left_index = lambda i: 2 * i + 1 right_index = lambda i: 2 * i + 2 parent = lambda i: (i - 1) // 2 depth = lambda i: (i + 1).bit_length() def build_node(i): d = depth(i) os.chmod(".", 0o55...
22.490909
71
0.573161
603f7ee0a5a07d290e4cb362e74445e35170432a
3,740
py
Python
frappe-bench/env/lib/python2.7/site-packages/stdnum/cz/rc.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/cz/rc.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/cz/rc.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# rc.py - functions for handling Czech birth numbers # coding: utf-8 # # Copyright (C) 2012, 2013 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of ...
31.965812
75
0.679144
71e2c65933c6d416523f2dc71ac9b101e5bd76dc
10,817
py
Python
Backend/migrations/alembic/versions/305475aa6432_create_filled_hospital_timeseries_with_.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/migrations/alembic/versions/305475aa6432_create_filled_hospital_timeseries_with_.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/migrations/alembic/versions/305475aa6432_create_filled_hospital_timeseries_with_.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
"""create filled_hospital_timeseries_with_fix materialized view Revision ID: 305475aa6432 Revises: 30bea01e7bac Create Date: 2020-11-26 15:30:14.891121 """ from alembic import op # revision identifiers, used by Alembic. revision = '305475aa6432' down_revision = '30bea01e7bac' branch_labels = None depends_on = None ...
52.765854
122
0.429786
e0fa43ebf3a883b918f0891fe51b683794ce48a7
1,976
py
Python
tests/test_trampoline.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
tests/test_trampoline.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
tests/test_trampoline.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
from hypothesis import assume, given from pfun import compose, identity from pfun.hypothesis_strategies import anything, trampolines, unaries from pfun.trampoline import Done, filter_, for_each, sequence from .monad_test import MonadTest from .utils import recursion_limit class TestTrampoline(MonadTest): @given...
33.491525
76
0.647267
08fb46df59da5fe713f3de13e078391a0e57ac3f
893
py
Python
bike_lock.py
kilbyjmichael/BikeLock
ecb32ee622d2cafaa6b4cd81634541f373f6d66f
[ "MIT" ]
2
2015-09-16T18:37:41.000Z
2015-09-24T18:14:05.000Z
bike_lock.py
kilbyjmichael/BikeLock
ecb32ee622d2cafaa6b4cd81634541f373f6d66f
[ "MIT" ]
null
null
null
bike_lock.py
kilbyjmichael/BikeLock
ecb32ee622d2cafaa6b4cd81634541f373f6d66f
[ "MIT" ]
null
null
null
#!/usr/bin/python import itertools import mmap bike_lock_c1 = ['d', 'm', 'r', 'f', 'b', 'l', 'p', 'w', 's', 't'] bike_lock_c2 = ['a', 'i', 'o', 'l', 'e', 'h', 'w', 'r', 'y', 'u'] bike_lock_c3 = ['n', 's', 'k', 'o', 'a', 'l', 'e', 'r', 'm', 't'] bike_lock_c4 = ['g', 'k', 'm', 's', 't', 'e', 'p', 'y', 'l', 'd'] ...
31.892857
90
0.527436
c70512e7061e22780301979bb5a01df2ff0a0fad
5,869
py
Python
docBuilder.py
JonasFovea/PyDocToLaTeX
81f90cb82f9d7b8a8bab632a845b8ced42e3e8fa
[ "MIT" ]
null
null
null
docBuilder.py
JonasFovea/PyDocToLaTeX
81f90cb82f9d7b8a8bab632a845b8ced42e3e8fa
[ "MIT" ]
1
2020-09-23T21:03:00.000Z
2020-09-23T21:03:00.000Z
docBuilder.py
JonasFovea/PyDocToLaTeX
81f90cb82f9d7b8a8bab632a845b8ced42e3e8fa
[ "MIT" ]
null
null
null
class Doc: def __init__(self, name=""): self.name = name self.description = "" self.classes = [] self.functions = [] self.fields = [] def getName(self): return self.name def setDescription(self, desc: str): self.description = desc def getDescri...
29.345
123
0.529732
c75b221cd570c36a24c27e3f2d2f615eff33b619
3,263
py
Python
tests/test_tarifpreisblatt.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_tarifpreisblatt.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_tarifpreisblatt.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
import datetime import pytest # type:ignore[import] from bo4e.bo.tarifpreisblatt import Tarifpreisblatt, TarifpreisblattSchema from bo4e.com.tarifberechnungsparameter import Tarifberechnungsparameter from bo4e.com.tarifeinschraenkung import Tarifeinschraenkung from bo4e.enum.kundentyp import Kundentyp from bo4e.enum...
49.439394
103
0.694759
40c4abd0c2cb25c7e84f1afff0c0c625ec750e63
1,981
py
Python
Imagenes/Phoenix/LBCuda/Allpost.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/Phoenix/LBCuda/Allpost.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/Phoenix/LBCuda/Allpost.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import argparse import os import locale if __name__ == "__main__": # Argumentos de consola parser = argparse.ArgumentParser(description='Graficos de SpeedUp') parser.add_argument('-png', help='Imagen en formato png', action='store_true')...
19.421569
112
0.540131
906c6642ec460596371a7f5e4b7194090a7cbd48
620
py
Python
Algorithms/Implementation/kangaroo.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/kangaroo.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/kangaroo.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys def kangaroo(x1, v1, x2, v2): if v1 > v2: while x1 < x2: x1 += v1 x2 += v2 if x1 == x2: return 'YES' return 'NO' elif v1 < v2: while x1 > x2: x1 += v1 x2 += v2 if x...
20
53
0.408065
b484b1d9243896b8a1a4fea7b5bdacdcc4ca4c18
1,695
py
Python
Python/Programação_em_Python_Essencial/4- Estruturas de Repetição/loop_for.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Programação_em_Python_Essencial/4- Estruturas de Repetição/loop_for.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Programação_em_Python_Essencial/4- Estruturas de Repetição/loop_for.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
""" Loop for Loop -> Estrutura de repetição. For -> Uma dessas estruturas. C ou Java for(int i = 0; i < limitador; i++){ //execução do loop } Python for item in interavel: //execução do loop Utilizamos loops para iterar sobre sequências ou sobre valores iteráveis Exemplos de iteráveis: - String nome = 'Ge...
16.456311
80
0.667257
c348cb97a7cceb546726a5563c97f65964dab003
2,620
py
Python
calibrate.py
Charan-Karthikeyan/Advanced-Lane-Lines
04ea019e6875821db667805f2fd7d9008b1458a1
[ "MIT" ]
null
null
null
calibrate.py
Charan-Karthikeyan/Advanced-Lane-Lines
04ea019e6875821db667805f2fd7d9008b1458a1
[ "MIT" ]
null
null
null
calibrate.py
Charan-Karthikeyan/Advanced-Lane-Lines
04ea019e6875821db667805f2fd7d9008b1458a1
[ "MIT" ]
null
null
null
""" @file : detection.py @author : Charan Karthikeyan P V @License : MIT License @date :11/8/2020 @brief : This file calibrates the camera and gets its calibrated values. """ import numpy as np import cv2 import pickle import glob import matplotlib.pyplot as plt import matplotlib.image as mpimg import pickle %matplotli...
27.87234
110
0.685878
6f79a1d1358a8c994c26387f3b44b20096696e56
18,977
py
Python
__init__.py
drmelectronic/MIT
e28a82cd02dcc52ac233b89b43f29ede00993d11
[ "MIT" ]
null
null
null
__init__.py
drmelectronic/MIT
e28a82cd02dcc52ac233b89b43f29ede00993d11
[ "MIT" ]
null
null
null
__init__.py
drmelectronic/MIT
e28a82cd02dcc52ac233b89b43f29ede00993d11
[ "MIT" ]
null
null
null
#! /usr/bin/env python # ####! -*- coding: utf-8 -*- import gtk import os import xlwt import threading from datetime import datetime, date from serial import Serial import subprocess import time class ThreadGtk(threading.Thread): """Hilo para actualizar etiqueta""" def __init__(self, label): super(Th...
35.077634
93
0.531011
d292b2f4735aaa11fc63131c0c974a1df7eebb8e
2,799
py
Python
src/run_classifier.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/run_classifier.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/run_classifier.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import sys import numpy as np from src.classifier.classifier_training.training import train_classifier from src.classifier.classifier_evaluation.eval_on_testset import evaluate_on_test_set from src.regard_prediction.inference import predict from src.classifier.utils import get_data from src.classifier.classifier_tun...
32.172414
87
0.586281
815304b7450783c15af3cce3d2ca3e8100971271
2,126
py
Python
jumeaux/addons/res2dict/block.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/addons/res2dict/block.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/addons/res2dict/block.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
# -*- coding:utf-8 -*- import re from owlmixin import OwlMixin, TList from jumeaux.addons.res2dict import Res2DictExecutor from jumeaux.models import Res2DictAddOnPayload, DictOrList from jumeaux.logger import Logger logger: Logger = Logger(__name__) LOG_PREFIX = "[res2dict/block]" class Config(OwlMixin): for...
30.811594
95
0.623706
816273b144af8c8eb7b7eb63b59cc5d042b5060d
3,249
py
Python
test/test_npu/test_network_ops/test_hard_sigmoid_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_hard_sigmoid_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_hard_sigmoid_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
40.111111
85
0.725454
f211389e3418e23826113bb552ecd93a49679ba7
6,774
py
Python
backend/apps/checks.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
2
2020-03-28T13:56:39.000Z
2020-03-29T10:16:12.000Z
backend/apps/checks.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
76
2020-03-27T21:53:04.000Z
2020-03-30T20:27:43.000Z
backend/apps/checks.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
null
null
null
import http.client import json import logging import os from django.conf import settings from django.core.checks import Error, register from django.core.checks import Tags as DjangoTags from django.core.checks import Warning from match4healthcare.constants.enum import Environment logger = logging.getLogger(__name__)...
35.28125
112
0.543401
f21dce8c4b36e87872ececf3ade825aed103af14
2,305
py
Python
src/test/tests/databases/obj.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/obj.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/obj.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: obj.py # # Tests: Wavefront OBJ reader # - relative indexing # - groups w/ and w/o multiple inclusion via enum scalar # - groups with coloration (v...
27.117647
82
0.674187
6f7d06fe2cb527859e5a2629fa6eb5666dad89f1
2,198
py
Python
basic/caffe_inference.py
goooodday/FCFF.github.io
df91e54239a1f717ce90c4dda8329d5bc7c6c827
[ "Apache-2.0" ]
null
null
null
basic/caffe_inference.py
goooodday/FCFF.github.io
df91e54239a1f717ce90c4dda8329d5bc7c6c827
[ "Apache-2.0" ]
null
null
null
basic/caffe_inference.py
goooodday/FCFF.github.io
df91e54239a1f717ce90c4dda8329d5bc7c6c827
[ "Apache-2.0" ]
null
null
null
import numpy as np from numpy import zeros, newaxis import matplotlib.pyplot as plt import caffe import cv2 %matplotlib inline import os # set Currnet Directory os.chdir('/data1/Notebooks/1CAL_Test') print("caffe-%s, cv2-%s, %s" % (caffe.__version__, cv2.__version__, os.getcwd())) #----------------------------------...
30.957746
120
0.649682
6f803a1e40a637c4c8b5e97bdfbd3b8b94dea1ee
6,166
py
Python
InternetOfThingsCourse/main.py
migueltlapa/TheIoTLearningInitiative
98ed32ec00aa8cb20c3770cb6c03be993b693590
[ "Apache-2.0" ]
null
null
null
InternetOfThingsCourse/main.py
migueltlapa/TheIoTLearningInitiative
98ed32ec00aa8cb20c3770cb6c03be993b693590
[ "Apache-2.0" ]
null
null
null
InternetOfThingsCourse/main.py
migueltlapa/TheIoTLearningInitiative
98ed32ec00aa8cb20c3770cb6c03be993b693590
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python #Codigo ya corre bien menos Flask # Funciona Plotly, MQTT,FLASK,Weather,Dweet,Freeboard no funciona Watson import paho.mqtt.client as paho import psutil import dweepy # Freeboard import pywapi import signal import sys import time import uuid import client as mqtt import json import pyupm_grove as g...
24.862903
120
0.639961
6fb42bcb25039f0f55eeaefd9009dc029fb577ac
7,386
py
Python
ijp/roi2p.py
swharden/ROI-Analysis-Pipeline
e83d96c43fdd50cb44be365289e964576492617e
[ "MIT" ]
4
2017-06-20T19:56:22.000Z
2021-05-29T10:07:47.000Z
ijp/roi2p.py
swharden/ROI-Analysis-Pipeline
e83d96c43fdd50cb44be365289e964576492617e
[ "MIT" ]
11
2017-05-31T19:14:32.000Z
2018-09-12T23:44:11.000Z
ijp/roi2p.py
swharden/ROI-Analysis-Pipeline
e83d96c43fdd50cb44be365289e964576492617e
[ "MIT" ]
2
2017-06-20T17:14:38.000Z
2017-06-20T19:51:34.000Z
""" This modules contains logic to analyze calcium levels from ROIs created by ImageJ's Multi-Measure tool """ from typing import Tuple import matplotlib.pyplot as plt import numpy as np import pandas as pd import pathlib import datetime class ROI: def __init__(self, resultsFile: pathlib.Path, framePeriod: float...
37.30303
126
0.569456
6fbfefcd8ffb66374bc55807deebdf060439cbab
56
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/nexus/__init__.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/nexus/__init__.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/nexus/__init__.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
from nexus.go_rest_client import GlobusOnlineRestClient
28
55
0.910714
6fde0c4d3583f965ba3b7b6ad0277a021bf01ce6
792
py
Python
Misc/HiveMaker/solution_2.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Misc/HiveMaker/solution_2.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Misc/HiveMaker/solution_2.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
def HiveMaker(sticks): hives, stickU = 0, 0 # I will set # of hives and sticks used to 0 if sticks <= 5: return [0, 0, sticks] while sticks >= 4: # While the sticks are more than or equal to 4(minimum to make a hive) hives += 1 if hives == 1: sticks, stickU = sticks - 6, ...
46.588235
114
0.617424
d24bffa8b35b9b7a91cfa38a34d05fd8437c55ab
385
py
Python
PYTHON/Built_Ins/sort_data.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Built_Ins/sort_data.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Built_Ins/sort_data.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys if __name__ == "__main__": n, m = input().strip().split(' ') n, m = [int(n), int(m)] arr = [] for arr_i in range(n): arr_t = [int(arr_temp) for arr_temp in input().strip().split(' ')] arr.append(arr_t) k = int(input().strip()) for i in sorted(arr...
25.666667
73
0.54026
96b34ed2148176bdc901b56ce2169270150b0f33
5,718
py
Python
20-fs-ias-lec/groups/06-longFi/localEther/logSync/database_sync.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/06-longFi/localEther/logSync/database_sync.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/06-longFi/localEther/logSync/database_sync.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from logStore.transconn.database_connector import DatabaseConnector import cbor2 import hashlib """ Function to calculate the hash value of the meta data """ def get_hash(blob): return hashlib.sha256(blob).digest() """ The functions checks first if there exist any entries with a specific feed ID. If it is the ...
31.076087
119
0.692025
83c557df53053c2d8cc900328e7ecffd5c63900d
1,622
py
Python
Bruteforce-main/Brute.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Bruteforce-main/Brute.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Bruteforce-main/Brute.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#ricod mulu dah lah #Encypt BY MR.1557 #Di Makasih 50 subscribe import marshal,zlib,base64 exec(marshal.loads(zlib.decompress(base64.b32decode("PCOHKVC5OPNUIFB5WJRSOTXCPS5U4GYKFLSSGLLAEXICIQ6KGBIAFBAHGKO7AAFIME6IU52TZOYSYR53TKDJTPHFE7YAQ3546MR7QKP5ENYPO2VFFAQ2YRTXZ667PXFTXNLR6POYGFE7OF3UVPEQUIAAT6WAHX4BVDAK6QCU4FLSCJXA...
270.333333
1,530
0.975956
7909bcb785a9dae468718714a34bf72a9f4ab3ae
92
py
Python
2015/03/quiz-ace/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/03/quiz-ace/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/03/quiz-ace/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '1mORX04vNiG06X52RdbbdBBZ9RSu4cV3ak9a0jamvjW0'
23
68
0.847826
792d1ef66d32c69f7284e7a7cd9c0687ee48c9a4
3,991
py
Python
engine/Question.py
StefanSchmelz/whoGetsTheMillion
99a42b6a2e99def4faa05787b4869387d7827f86
[ "MIT" ]
null
null
null
engine/Question.py
StefanSchmelz/whoGetsTheMillion
99a42b6a2e99def4faa05787b4869387d7827f86
[ "MIT" ]
null
null
null
engine/Question.py
StefanSchmelz/whoGetsTheMillion
99a42b6a2e99def4faa05787b4869387d7827f86
[ "MIT" ]
null
null
null
from engine.Answer import Answer """ Q "<TEXT>" T <TAG> <TAG> <TAG> ... A <CF> "<TEXT>" B <CF> "<TEXT>" C <CF> "<TEXT>" D <CF> "<TEXT>" """ class Question: def __init__(self, text="", a=Answer(), b=Answer(), c=Answer(), d=Answer(), tags=""): self.text = text self.answers =...
32.447154
89
0.464295
e3b636fa3ab70ef9eba11361e334ac7fa3804ed6
166
py
Python
Curso-Em-Video-Python/1Materias/06_Tipos_Primitivos_e_Saida_de_Dados/#06 B.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/06_Tipos_Primitivos_e_Saida_de_Dados/#06 B.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/06_Tipos_Primitivos_e_Saida_de_Dados/#06 B.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
n = input('Digite um valor: ') # n = str(input('Digite um valor: ')) #print(n) # print(type(n)) vai mostrar o tipo da variavel = int, float, bool, str print('n(is)')
27.666667
71
0.63253
49c6bbc1fb41f670a0a591cec2eeb391142c7ab5
4,059
py
Python
d_Ensemble/AdaBoost.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
1,107
2016-09-21T02:18:36.000Z
2022-03-29T02:52:12.000Z
d_Ensemble/AdaBoost.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
18
2016-12-22T10:24:47.000Z
2022-03-11T23:18:43.000Z
d_Ensemble/AdaBoost.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
776
2016-12-21T12:08:08.000Z
2022-03-21T06:12:08.000Z
import os import sys root_path = os.path.abspath("../") if root_path not in sys.path: sys.path.append(root_path) from math import log from b_NaiveBayes.Vectorized.MultinomialNB import MultinomialNB from b_NaiveBayes.Vectorized.GaussianNB import GaussianNB from c_CvDTree.Tree import * from d_Ensemble.Ra...
33.545455
104
0.571077
b73a29a7ffbec46143770c9519837503311169a1
220
py
Python
Python/Random/File-Handling/01-open-with.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Random/File-Handling/01-open-with.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Random/File-Handling/01-open-with.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
with open("text.txt", 'r') as file: # print(file.read()) # print(file.readlines()) # print(file.readline()) # print(file.readline()) # print(file.readline()) for line in file: print(line)
24.444444
35
0.572727
12a678de6d5f5af4558657121c555778ab496fbd
1,815
py
Python
rbac/providers/ldap/main.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
rbac/providers/ldap/main.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
rbac/providers/ldap/main.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
37.8125
88
0.721212
c407f3a59e56f5f32a5d50ba9821da7ed131af33
2,417
py
Python
tests/test_regionalepreisstaffel.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_regionalepreisstaffel.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_regionalepreisstaffel.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from decimal import Decimal import pytest # type:ignore[import] from bo4e.com.kriteriumwert import KriteriumWert from bo4e.com.regionalegueltigkeit import RegionaleGueltigkeit from bo4e.com.regionalepreisgarantie import RegionalePreisgarantie from bo4e.com.regionalepreisstaffel import RegionalePreisstaffel, Regional...
41.672414
113
0.682251
676b46cf41475ec292d77840a6f1202b682cf9e1
1,518
py
Python
project/i10n.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/i10n.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/i10n.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from flask import request from flask_babelex import gettext from project import app, babel @babel.localeselector def get_locale(): return request.accept_languages.best_match(app.config["LANGUAGES"]) def print_dynamic_texts(): gettext("Event_Art") gettext("Event_Book") gettext("Event_Movie") get...
28.111111
71
0.71278
678de1a9ba771299a1591f0a3ebf685ee9886d18
911
py
Python
frappe-bench/apps/erpnext/erpnext/stock/doctype/item_variant_settings/item_variant_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/stock/doctype/item_variant_settings/item_variant_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/stock/doctype/item_variant_settings/item_variant_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class ItemVariantSettings(Document): def set_default_fields(self): self.fie...
39.608696
88
0.724479
222ec66df4466e0f98151e6b91df43c01e075fdc
8,463
py
Python
20-fs-ias-lec/groups/01-dev2dev/Code/BTonly/impexp.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/01-dev2dev/Code/BTonly/impexp.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/01-dev2dev/Code/BTonly/impexp.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
#!/usr/bin/env python3 """Import/Export module This module contains the function definitions use for: - importing the peers Inventory (list of all the logs the peer has) and their Payload(all the peers logs relevant for us) as well as - exporting our own Inventory and Payload information during the excha...
27.477273
128
0.598015
18f4f5f3af77b978f5372ea71f361a26db2d4e34
14,204
py
Python
modules/utils.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
modules/utils.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
modules/utils.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
"""Contains various utility functions used by the MMM controller package Paths to all directories are stored in different functions here, in a centralized location for other modules to use. Adjusting the format of a path here should not disrupt the creation of new scans, but will likely break old scan data from being...
31.847534
109
0.693326
e15b10ba1b939a8da416f6414448491464399215
977
py
Python
Lec8.py
JSliman948/IA241
57e8441ed0a8236e08308c6ed18b7555d76fd739
[ "MIT" ]
null
null
null
Lec8.py
JSliman948/IA241
57e8441ed0a8236e08308c6ed18b7555d76fd739
[ "MIT" ]
null
null
null
Lec8.py
JSliman948/IA241
57e8441ed0a8236e08308c6ed18b7555d76fd739
[ "MIT" ]
null
null
null
""" Lecture 8: Functions """ def Morrocco(a,b=0): print(a) print(b) result = a + b return result print(Morrocco(b=1, a=2)) #I don't really know why I named my function Morrocco. It seemed more fun than my_function #Exercise 1: Calculate Absolute Values def cal_abs(a): if type(a) is str: ...
19.156863
90
0.595701
e1c29c7dc5a38c22d6766720f1dd8a87db279abc
455
py
Python
hello/test_tool.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
hello/test_tool.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
hello/test_tool.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import yaml from .tool import * def test_search_path(): yo = """ a: b: c: 焦飞 d: 太上化龙决 e: 解 """ o = yaml.load(yo) assert "e" == search_path(o, "解") assert "a.b.c" == search_path(o, "焦飞") def test_leaf_path(): yo = """ ...
13.787879
42
0.448352
a18d2a5c1339e4e6cb6c40a3598c130682c02ba9
308
py
Python
pyntcloud/filters/__init__.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
1,142
2016-10-10T08:55:30.000Z
2022-03-30T04:46:16.000Z
pyntcloud/filters/__init__.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
195
2016-10-10T08:30:37.000Z
2022-02-17T12:51:17.000Z
pyntcloud/filters/__init__.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
215
2017-02-28T00:50:29.000Z
2022-03-22T17:01:31.000Z
""" HAKUNA MATATA """ from .kdtree import ( RadiusOutlierRemovalFilter, StatisticalOutlierRemovalFilter, ) from .xyz import BoundingBoxFilter ALL_FILTERS = { # XYZ "BBOX": BoundingBoxFilter, # KDTree "ROR": RadiusOutlierRemovalFilter, "SOR": StatisticalOutlierRemovalFilter }
15.4
42
0.711039
62be0d699bda2e0295cc8e5ae76c80ce4093c277
10,056
py
Python
ReactionNBurguers.py
rsautter/NRDA
82279ae70ade4e6fe6378e4c571bb7c79395f7e1
[ "MIT" ]
null
null
null
ReactionNBurguers.py
rsautter/NRDA
82279ae70ade4e6fe6378e4c571bb7c79395f7e1
[ "MIT" ]
null
null
null
ReactionNBurguers.py
rsautter/NRDA
82279ae70ade4e6fe6378e4c571bb7c79395f7e1
[ "MIT" ]
null
null
null
import numpy as np from numpy.fft import fftn,ifftn,fftfreq import math import random import itertools import tqdm as tqdm from collections import namedtuple from scipy.signal import convolve2d import cNoise from scipy.interpolate import interp1d class ReactionNBurguers(): ''' Wrote by: Rubens Andreas Sautter (2021)...
32.649351
192
0.619829
b159ea38d0d5aa84bb3b6c102814a30b2070d8b1
3,366
py
Python
tests/test_tipc/benchmark/modules/xlnet.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
tests/test_tipc/benchmark/modules/xlnet.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
tests/test_tipc/benchmark/modules/xlnet.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
import os import sys import paddle from paddlenlp.utils.log import logger from paddlenlp.transformers.xlnet.modeling import XLNetPretrainedModel, XLNetForSequenceClassification from paddlenlp.transformers.xlnet.tokenizer import XLNetTokenizer from .model_base import BenchmarkBase sys.path.append( os.path.abspat...
36.586957
140
0.598039
6219e69a2c973c485ab85cfd2af0c4383367f24d
188
gyp
Python
app/modules/win32ipc/binding.gyp
vctt94/decrediton
9a5048111fbf21c97be3629cbeeaad02c84bebbb
[ "0BSD" ]
237
2016-11-15T20:09:52.000Z
2022-03-23T17:00:11.000Z
app/modules/win32ipc/binding.gyp
vctt94/decrediton
9a5048111fbf21c97be3629cbeeaad02c84bebbb
[ "0BSD" ]
2,328
2016-11-11T15:04:29.000Z
2022-03-26T10:35:37.000Z
app/modules/win32ipc/binding.gyp
vctt94/decrediton
9a5048111fbf21c97be3629cbeeaad02c84bebbb
[ "0BSD" ]
169
2016-11-11T10:59:20.000Z
2022-03-23T01:41:27.000Z
{ "targets": [ { "target_name": "win32ipc", "sources": [], "conditions": [ ["OS=='win'", {"sources": ["module.cc", "pipe_wrapper.cc"]}] ] } ] }
15.666667
68
0.409574
0298f88cb3c8f623ab6fdb487e6d934bfb7b89a2
197
py
Python
287-find-the-duplicate-number/287-find-the-duplicate-number.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
287-find-the-duplicate-number/287-find-the-duplicate-number.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
287-find-the-duplicate-number/287-find-the-duplicate-number.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def findDuplicate(self, nums: List[int]) -> int: prev = -1 for num in sorted(nums): if prev == num: return num prev = num
28.142857
52
0.482234
b859b7e95631390594ef27ac2b46feb1c1179ce9
1,220
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch09_search_and_sort/ex03_binary_search_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch09_search_and_sort/ex03_binary_search_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch09_search_and_sort/ex03_binary_search_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import pytest from ch09_search_and_sort.solutions.ex03_binary_search import binary_search, binary_search_iterative, binary_search_optimized @pytest.mark.parametrize("sorted_values, search_for, expected", ...
42.068966
125
0.632787
b871d09091634077236cb9529237a42f5872ec71
307
py
Python
Chapter3_ML/Chapter3_1_ML_Overview/MachineLearningRegression.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter3_ML/Chapter3_1_ML_Overview/MachineLearningRegression.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter3_ML/Chapter3_1_ML_Overview/MachineLearningRegression.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from tf_utils.dummyData import regression_data def model(x): m = 2.0 # slope b = 5.0 # intercept return m * x + b if __name__ == "__main__": x, y = regression_data() y_pred = model(x) plt.scatter(x, y) plt.plot(x, y_pred) plt.show()
14.619048
46
0.609121
0c0d4eb29020bc9e8632edf0e564775cf11c0e90
245
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/scipy/version.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/scipy/version.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/scipy/version.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
# THIS FILE IS GENERATED FROM SCIPY SETUP.PY short_version = '0.18.0' version = '0.18.0' full_version = '0.18.0.dev0+ad02ef0' git_revision = 'ad02ef083824d195f04f267b141716e0f047197f' release = False if not release: version = full_version
22.272727
57
0.755102
ac0615c90e763fd19da9a5b8b187a8e73eeaccba
4,952
py
Python
model.py
mkrum/das
76559ffa3055d718590e9c457675cdf9a885f656
[ "MIT" ]
null
null
null
model.py
mkrum/das
76559ffa3055d718590e9c457675cdf9a885f656
[ "MIT" ]
null
null
null
model.py
mkrum/das
76559ffa3055d718590e9c457675cdf9a885f656
[ "MIT" ]
null
null
null
import math import torch import torch.nn as nn from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence from torch.nn import TransformerEncoder, TransformerEncoderLayer from transformers import BertModel, BertConfig class PositionalEncoding(nn.Module): """ From the classic: https://pytorch.or...
27.977401
102
0.583603
ac7885ebbe29b1a276dc9fff7be40413d0fb33d4
600
py
Python
python/en/archive/dropbox/udacity-ds_and_algos/udacity-ds_and_algos-lesson2-python_refresher-function_and_generator-python_functions.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/udacity-ds_and_algos/udacity-ds_and_algos-lesson2-python_refresher-function_and_generator-python_functions.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/udacity-ds_and_algos/udacity-ds_and_algos-lesson2-python_refresher-function_and_generator-python_functions.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# udacity-ds_and_algos-lesson2-python_refresher-function_and_generator-python_functions.py # Python Functions def sum(a,b): return a+b def list_sort(my_list): my_list.sort() return len(my_list), my_list # Python Generators def all_even(): n=0 while True: yield n n...
18.75
91
0.633333
02243eb5acfe3b59cb8c9e128209fdc8c80191ad
687
py
Python
Licence 1/I11/TP6/ex2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I11/TP6/ex2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I11/TP6/ex2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
from random import * from math import * from pocketgl import * faces = 6 resultats = {} maximum = 0 for i in range(10000): r1 = randrange(1, faces + 1) r2 = randrange(1, faces + 1) r_max = max(r1, r2) r_min = min(r1, r2) r = str(r_min) + ":" + str(r_max) if r in resultats: resultats[r] ...
24.535714
50
0.592431
0c945484ac9cb30803425b9e3eca5da76266b353
1,426
py
Python
www.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
1
2020-03-24T04:26:34.000Z
2020-03-24T04:26:34.000Z
www.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
www.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from application import app ''' 统一拦截处理和统一错误处理 & 蓝图功能,对所有的url进行蓝图功能配置 ''' from web.interceptors.AuthInterceptor import * from web.interceptors.ApiAuthInterceptor import * from web.interceptors.ErrorInterceptor import * from web.controllers.index import route_index from web.controllers.user.User...
41.941176
60
0.8331
0cd4b7b080f903dd42742970b3a2ce9111f73947
636
py
Python
exercises/en/test_04_12_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/en/test_04_12_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/en/test_04_12_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert ( len(doc1.ents) == 2 and len(doc2.ents) == 2 and len(doc3.ents) == 2 ), "Expected all examples to have two entities" assert any( e.label_ == "PERSON" and e.text == "PewDiePie" for e in doc2.ents ), "Did you label the PERSON correctly?" assert any( e.label_...
37.411765
78
0.616352
4906d4f9bb7af530e2c7e4f7a2c6cae6ce8df466
621
py
Python
code/project/test/main.py
redxyb/Flask
4ee226501f16eb0fa5cb585dc6bf780005fa8a28
[ "MIT" ]
null
null
null
code/project/test/main.py
redxyb/Flask
4ee226501f16eb0fa5cb585dc6bf780005fa8a28
[ "MIT" ]
null
null
null
code/project/test/main.py
redxyb/Flask
4ee226501f16eb0fa5cb585dc6bf780005fa8a28
[ "MIT" ]
null
null
null
''' Author: xyb Date: 2020-08-10 09:44:39 LastEditTime: 2020-08-10 11:52:50 ''' '''启动文件''' from flask import Flask, Blueprint from user import user_bp from resource import resource_bp app = Flask(__name__, static_url_path='/xyb', static_folder='static', template_folder='templates') ...
21.413793
59
0.679549
0b3cc86f3f03a920e157b34154bbb14ae36406ef
14,194
py
Python
src/aijack/attack/membership/membership_inference.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
24
2021-11-17T02:16:47.000Z
2022-03-27T01:04:08.000Z
src/aijack/attack/membership/membership_inference.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
9
2021-12-03T06:09:27.000Z
2022-03-29T06:33:53.000Z
src/aijack/attack/membership/membership_inference.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
5
2022-01-12T09:58:04.000Z
2022-03-17T09:29:04.000Z
import numpy as np import torch import torch.nn as nn import torch.optim as optim from ...utils import NumpyDataset, try_gpu from ..base_attack import BaseAttacker class ShadowModel: """Train shadow models for membership inference reference https://arxiv.org/abs/1610.05820 Args models : torch...
34.960591
87
0.5639
33513adf4f855ae2e3cdd0c1f1657547639ffaac
7,059
py
Python
Python/TestPegaStartup.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/TestPegaStartup.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/TestPegaStartup.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
# TestPegaStartup.py # ================================================================================ # BOOST SOFTWARE LICENSE # # Copyright 2020 BitWise Laboratories Inc. # Original Author.......Jim Waschura # Contact...............info@bitwiselabs.com # # Permission is hereby granted, free of charge, to any person ...
35.472362
118
0.595127
68543a382992c110f55ccd292b6c6f7193aa3948
14,633
py
Python
Packs/jamf/Integrations/jamfV2/jamfV2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/jamf/Integrations/jamfV2/jamfV2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/jamf/Integrations/jamfV2/jamfV2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
"""Base Integration for Cortex XSOAR - Unit Tests file Pytest Unit Tests: all funcion names must start with "test_" More details: https://xsoar.pan.dev/docs/integrations/unit-testing MAKE SURE YOU REVIEW/REPLACE ALL THE COMMENTS MARKED AS "TODO" You must add at least a Unit Test function for every XSOAR command you...
36.310174
112
0.752341
68ad59c42cf82d59b955104a93522e28fea99f9b
7,805
py
Python
03 Python/Smart Home Dashboard/loesung/widgets/graph.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Smart Home Dashboard/loesung/widgets/graph.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Smart Home Dashboard/loesung/widgets/graph.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
1
2020-10-10T20:24:05.000Z
2020-10-10T20:24:05.000Z
import math, pygame from pygame.locals import * from .widget import Widget class GraphSeries: """ Hilfsobjekt für die GraphWidget-Klasse. Dem Konstruktor von GraphWidget muss eine Liste mit GraphSeries-Objekten, von denen jedes für eine im Schaubild darzustellende Datenreihe steht, übergeben werden. ...
34.082969
96
0.561307
043080d8db4631cf8862ed0e01a3e4c207cd7f69
3,503
py
Python
packages/watchmen-rest-doll/src/watchmen_rest_doll/gui/favorite_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/gui/favorite_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/gui/favorite_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from logging import getLogger from typing import Optional from fastapi import APIRouter, Depends from watchmen_auth import PrincipalService from watchmen_meta.common import ask_meta_storage from watchmen_meta.gui import FavoriteService from watchmen_model.admin import UserRole from watchmen_model.common import Tenant...
34.683168
113
0.813017
f0f881317f5119774c9e3faef21716008e39c8e9
4,318
py
Python
Packs/CyberArkIdentity/Integrations/CyberArkIdentityEventCollector/CyberArkIdentityEventCollector_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
Packs/CyberArkIdentity/Integrations/CyberArkIdentityEventCollector/CyberArkIdentityEventCollector_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
40
2022-03-03T07:34:00.000Z
2022-03-31T07:38:35.000Z
Packs/CyberArkIdentity/Integrations/CyberArkIdentityEventCollector/CyberArkIdentityEventCollector_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
import json import io import requests_mock import demistomock as demisto URL = 'https://example.my.idaptive.app/' DEMISTO_PARAMS = { 'url': URL, 'credentials': { 'identifier': 'admin@example.com.11', 'password': '123456', }, 'from': '3 days', 'app_id': 'test_app', 'limit': 100,...
36.285714
93
0.686197
501adaaa4bdc3f6dab8008bc6498ca78fa1cf553
2,191
py
Python
leetcode/add_two_numbers.py
ekselan/abw_cc
54ca8986c6e5d28398299d615a987dfd8e39a9c0
[ "MIT" ]
null
null
null
leetcode/add_two_numbers.py
ekselan/abw_cc
54ca8986c6e5d28398299d615a987dfd8e39a9c0
[ "MIT" ]
null
null
null
leetcode/add_two_numbers.py
ekselan/abw_cc
54ca8986c6e5d28398299d615a987dfd8e39a9c0
[ "MIT" ]
null
null
null
# Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode: # Plan is to traverse each LL and extract node vals into array # Can then s...
28.828947
72
0.470561
aca21085cc1f74f173f58e0aed4995eb33f7a5ea
1,794
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_1/repost_stock_for_deleted_bins_for_merging_items.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v7_1/repost_stock_for_deleted_bins_for_merging_items.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_1/repost_stock_for_deleted_bins_for_merging_items.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import frappe from erpnext.stock.stock_balance import repost_stock def execute(): frappe.reload_doc('manufacturing', 'doctype', 'work_order_item') frappe.reload_doc('manufacturing', 'doctype', 'work_order') modified_items = frappe.db.sql_list(""" select name from `tabItem...
39.866667
101
0.746377
acd4e5f77641c5edb52a986e8102b287a2ec14b9
1,661
py
Python
Arrays and Strings/MinimumPlatforms.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Arrays and Strings/MinimumPlatforms.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Arrays and Strings/MinimumPlatforms.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
1
2020-02-12T16:57:46.000Z
2020-02-12T16:57:46.000Z
""" Minimum Platforms https://practice.geeksforgeeks.org/problems/minimum-platforms/0/?ref=self """ def minimum_platform(arrival_time, departure_time, size): """ Given arrival and departure times of all trains that reach a railway station, find the minimum number of platforms required for the railway ...
25.953125
80
0.593016
acfb0ced42062f6104d93523835ff0b0890d48fc
1,537
py
Python
python/oneflow/support/func_inspect_util.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/support/func_inspect_util.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/support/func_inspect_util.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
30.74
84
0.685751
c5b523e06cd29d5ba35e42e82cfc9889a59f68d2
7,571
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/build/checkAuthors.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/build/checkAuthors.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/build/checkAuthors.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2011-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
37.112745
98
0.539163
c5ced18102dabe9940a7f19a9af0df088eb5f58f
92
py
Python
2015/05/streamgraph/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/05/streamgraph/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/05/streamgraph/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '19w2QNiwko8O3VNwhKz1WQbrJ32BmqOiMA3DQ1NBfO54'
23
68
0.847826
8b26449e39c57f236c14c09bbd33cf75e29b2e3f
438
py
Python
Theories/Algorithms/Recursion2/Permutations/permutations.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Theories/Algorithms/Recursion2/Permutations/permutations.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Theories/Algorithms/Recursion2/Permutations/permutations.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import List def permute(nums: List[int]) -> List[List[int]]: res = [] def helper(nums: List[int], per_list: List[int] = []): if not nums: res.append(per_list) return for idx in range(len(nums)): # per_list.append(nums[idx]) helper(n...
23.052632
71
0.522831
8cd00196f212d8daaa833d8456c244246c442a0f
16,724
py
Python
docs/generate_docs.py
androuino/deeplearning4j
1b6eb4ebf9540c58b34a8c95ad0667930f91a787
[ "Apache-2.0" ]
1
2019-08-13T07:46:55.000Z
2019-08-13T07:46:55.000Z
docs/generate_docs.py
levphon/deeplearning4j
1b6eb4ebf9540c58b34a8c95ad0667930f91a787
[ "Apache-2.0" ]
null
null
null
docs/generate_docs.py
levphon/deeplearning4j
1b6eb4ebf9540c58b34a8c95ad0667930f91a787
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ################################################################################ # Copyright (c) 2015-2018 Skymind, Inc. # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at # https://www.apache.org/license...
43.895013
214
0.602906
50d67289a35ead8ea56880c79a6b36fd97d3b814
295
py
Python
python/gdal_cookbook/cookbook_geometry/create_line_string.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/gdal_cookbook/cookbook_geometry/create_line_string.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/gdal_cookbook/cookbook_geometry/create_line_string.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from osgeo import ogr line = ogr.Geometry(ogr.wkbLineString) line.AddPoint(1116651.439379124, 637392.6969887456) line.AddPoint(1188804.0108498496, 652655.7409537067) line.AddPoint(1226730.3625203592, 634155.0816022386) line.AddPoint(1281307.30760719, 636467.6640211721) print(line.ExportToWkt())
42.142857
52
0.833898
e87bba0a23fad43ad949d61410b80952b9e88790
3,317
py
Python
tools/scripts/javalabSpritesheetGenerators/generatesheets.py
code-dot-org/code-dot-org
3fd13c77f37823f3f71ae2675e6e4e1fd77905d1
[ "Apache-2.0" ]
772
2015-01-01T14:52:37.000Z
2022-03-29T17:07:10.000Z
tools/scripts/javalabSpritesheetGenerators/generatesheets.py
SNOmad1/code-dot-org
3fd13c77f37823f3f71ae2675e6e4e1fd77905d1
[ "Apache-2.0" ]
13,529
2015-01-05T19:59:18.000Z
2022-03-31T23:07:43.000Z
tools/scripts/javalabSpritesheetGenerators/generatesheets.py
SNOmad1/code-dot-org
3fd13c77f37823f3f71ae2675e6e4e1fd77905d1
[ "Apache-2.0" ]
494
2015-01-09T00:32:46.000Z
2022-03-29T17:12:02.000Z
import csv import json from PIL import Image import requests import os, math, time spritedata = {} # These are the different sheets that will be generated (buildings.png, vehicles.png, etc.) sheetdata = {'buildings': [], 'vehicles': [], 'wall': [], 'other': [], 'sidewalk': []} # Open a csv reader for the csv spri...
40.950617
105
0.629484
fa53443aee244ee7872ab7af0367b946848426d0
1,414
py
Python
Licence 1/I23/TP 3/tp_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I23/TP 3/tp_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I23/TP 3/tp_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
from time import time """ QUESTION 1 """ def factorielle(n): f = 1 for i in range(1, n + 1): f *= i return f """ QUESTION 2 """ def TrianglePascal(n): c = [] for x in range(n): c += [[1] * (x + 1)] for x in range(2, n): for y in range(1, x): c[x][y] = c[x - 1][y - ...
16.635294
51
0.442716
d735ac0df137df5b830fd69f6568e95fc189d242
16,848
py
Python
user_sync/app.py
sabanawaf/user-sync.py
51a7f9165d1740120b172edf507f1b3b3d5e57f8
[ "MIT" ]
null
null
null
user_sync/app.py
sabanawaf/user-sync.py
51a7f9165d1740120b172edf507f1b3b3d5e57f8
[ "MIT" ]
null
null
null
user_sync/app.py
sabanawaf/user-sync.py
51a7f9165d1740120b172edf507f1b3b3d5e57f8
[ "MIT" ]
null
null
null
# Copyright (c) 2016-2017 Adobe Inc. All rights reserved. # # 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, modif...
49.407625
120
0.645596
d75202a8c5f71b83070536427bcf8bddb81d7079
706
py
Python
theblog/migrations/0006_post_likes_alter_post_category.py
clowdcap/ablog
1a31c8ec83777c35ff3fde5da8e5e89181bd5d34
[ "MIT" ]
null
null
null
theblog/migrations/0006_post_likes_alter_post_category.py
clowdcap/ablog
1a31c8ec83777c35ff3fde5da8e5e89181bd5d34
[ "MIT" ]
null
null
null
theblog/migrations/0006_post_likes_alter_post_category.py
clowdcap/ablog
1a31c8ec83777c35ff3fde5da8e5e89181bd5d34
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2022-01-05 12:33 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('theblog', '0005_alter_post_category'), ] operation...
27.153846
97
0.633144
d78a600df30d4f8e8464a2c404860d7b7a9f360c
291
py
Python
Calculation/pump_01.py
Tocha4/-Displacement--Chromatography
0baf4f9e2d23b39f610217b048d799c6403a259e
[ "MIT" ]
2
2020-11-25T07:53:48.000Z
2021-09-19T14:19:51.000Z
Calculation/pump_01.py
Tocha4/-Displacement--Chromatography
0baf4f9e2d23b39f610217b048d799c6403a259e
[ "MIT" ]
null
null
null
Calculation/pump_01.py
Tocha4/-Displacement--Chromatography
0baf4f9e2d23b39f610217b048d799c6403a259e
[ "MIT" ]
null
null
null
class Pump(object): ''' volume_flow_min: velocity of the volume ml/min volume_flow_sec: velocity of the volume ml/sec ''' def __init__(self, volume_flow_min): self.volume_flow_min = volume_flow_min self.volume_flow_sec = self.volume_flow_min/60
26.454545
54
0.676976