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
8adc8fb397241dffb0373fae58d9a91a0eedc2f5
3,829
py
Python
extractTool/extractTool/getShapefileInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
null
null
null
extractTool/extractTool/getShapefileInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
47
2018-11-13T13:55:01.000Z
2019-09-16T13:38:11.000Z
extractTool/extractTool/getShapefileInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
4
2018-11-27T12:36:51.000Z
2020-10-14T18:07:04.000Z
import click import shapefile import extractTool from scipy.spatial import ConvexHull def getShapefilebbx(filepath, detail, folder, time): """Extracts metadata from shapefiles. :param filepath: Path to the file :param detail: bbox, convexHull or time :param folder: whole or single :return: selecte...
39.071429
119
0.50666
c123cc215ee36957490bcbd2bc7cbe6a52a6333b
4,734
py
Python
MAIN/STM32F405_C/NORMAL/history/V20/display.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V20/display.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V20/display.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
from pyb import UART import utime import register DB = "" class LCDCommand: class Page: Buffer = str() Backup = str() Repeat = False Headline = "P." Entry = "1" #IMG_0 Main = "2" #IMG_1 Bye = "3" #IMG_20 def ClearBuffer(self): ...
30.941176
110
0.579637
e7454c80d88d0139bb85514c2a948c4a9b44babc
23,369
py
Python
tests/onegov/election_day/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import os.path import re import tarfile from collections import OrderedDict from io import BytesIO import pytest import textwrap import transaction from onegov.ballot import Election, Vote, ProporzElection, ComplexVote from datetime import date from onegov.core.crypto import hash_password from onegov.election_day imp...
31.794558
79
0.564894
820a8343a683552ffde5091f7cedd7ab5e703efa
230
py
Python
experiment/_init_path.py
liushrui/dsb
eacbe770acf32023029eb89dcc7829af89b09132
[ "MIT" ]
null
null
null
experiment/_init_path.py
liushrui/dsb
eacbe770acf32023029eb89dcc7829af89b09132
[ "MIT" ]
null
null
null
experiment/_init_path.py
liushrui/dsb
eacbe770acf32023029eb89dcc7829af89b09132
[ "MIT" ]
null
null
null
""" setup python path """ import os.path as osp import sys def add_path(path): if path not in sys.path: sys.path.insert(0, path) lib_path = osp.join(osp.dirname(__file__), '../','lib') add_path(lib_path)
19.166667
56
0.626087
994ae3afdc65038a03c548009cda8b4f879995b1
740
py
Python
python/en/_packages/nltk/test_custom_sentence_tokenizer.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_packages/nltk/test_custom_sentence_tokenizer.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_packages/nltk/test_custom_sentence_tokenizer.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# test_custom_sentence_tokenizer.py import nltk from nltk.corpus import state_union from nltk.tokenize import PunktSentenceTokenizer training_text = state_union.raw("2005-GWBush.txt") test_text = state_union.raw("2006-GWBush.txt") #print(training_text) #print(test_text) custom_sentence_tokenizer = PunktSe...
28.461538
77
0.760811
41f72698946c59b3ddc09d41213cbd925c87e3ea
4,034
py
Python
py/jpy/src/test/python/imp/import_ex1.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
210
2015-03-19T14:07:16.000Z
2022-03-31T19:28:13.000Z
py/jpy/src/test/python/imp/import_ex1.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
943
2021-05-10T14:00:02.000Z
2022-03-31T21:28:15.000Z
py/jpy/src/test/python/imp/import_ex1.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
40
2015-10-17T13:53:41.000Z
2021-07-18T20:09:11.000Z
""" Testing Python import machinery with the goal to let users import Java class like this: from jpy.java.io import File or from jpy import java.io.File as File """ __author__ = 'Norman' import sys import importlib.abc class JavaClass: def __init__(self, fullname): self.fullname = fullname ...
24.748466
88
0.590729
51089eb52e85807ddacbc0365f80c7cdf776ec4b
17,343
py
Python
tools/drupal/python/drupal-sync/push.py
bl4ckic3/format-corpus
97a8bf726d56106f3d7e5c8c481e26da7f5cc86e
[ "Apache-2.0" ]
1
2020-11-26T22:43:22.000Z
2020-11-26T22:43:22.000Z
tools/drupal/python/drupal-sync/push.py
bl4ckic3/format-corpus
97a8bf726d56106f3d7e5c8c481e26da7f5cc86e
[ "Apache-2.0" ]
null
null
null
tools/drupal/python/drupal-sync/push.py
bl4ckic3/format-corpus
97a8bf726d56106f3d7e5c8c481e26da7f5cc86e
[ "Apache-2.0" ]
null
null
null
''' Created on 27 Nov 2010 When against D7 and attempting to add to empty taxonomies, got an odd error: http://drupal.org/node/1028230 But now, even when taxonomy insert is fine, referencing from nodes is not stored. @author: anj ''' import hmac import os, os.path, fnmatch, sys, time, mimetypes, xmlrpclib, pprint, b...
45.400524
149
0.515828
5a9874b43eeafe8239318cc4518053e3e9317c61
1,949
py
Python
Utils/comment_on_pr.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Utils/comment_on_pr.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Utils/comment_on_pr.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
#!/usr/bin/env python3 import argparse import os import sys import requests from demisto_sdk.commands.common.tools import print_success, print_error def main(): parser = argparse.ArgumentParser(description='Add a comment to a pull request in the repo.') parser.add_argument('-p', '--pr_number', help='Pull re...
29.089552
108
0.662391
5adf4d3ab0498b11c3dcd177633ac07555094c98
4,794
py
Python
T1/09_mesh_subdivision/mysubdivision.py
tetov/MAS-1920
e5cfe4afbc7c0e80c6adfd139624d028c0ca4bfb
[ "MIT" ]
3
2019-09-15T17:40:35.000Z
2020-11-07T01:47:29.000Z
T1/09_mesh_subdivision/mysubdivision.py
tetov/MAS-1920
e5cfe4afbc7c0e80c6adfd139624d028c0ca4bfb
[ "MIT" ]
1
2019-09-17T22:59:19.000Z
2019-09-17T22:59:19.000Z
T1/09_mesh_subdivision/mysubdivision.py
MAS-dfab/MAS-1920
93abb09b072b9a061496bc8a30bdce481a8735c5
[ "MIT" ]
8
2019-09-16T18:47:20.000Z
2019-10-15T17:08:08.000Z
from compas.geometry import Vector def mesh_subdivide_pyramid(mesh, k=1, height=1.0): """ Subdivide a mesh using insertion of a vertex at centroid + height * face normal. Parameters ---------- mesh : Mesh The mesh object that will be subdivided. k : int Optional. The number of ...
33.291667
115
0.623071
51827c6ef39195da0d6af1b48fe6e84bfb4dcf19
2,045
py
Python
scripts/test_compile.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
scripts/test_compile.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
scripts/test_compile.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import os import sys import amalgamation import pickle import subprocess # where to cache which files have already been compiled cache_file = 'amalgamation.cache' ignored_files = ['utf8proc_data.cpp'] RESUME_AUTO = 0 RESUME_ALWAYS = 1 RESUME_NEVER = 2 # resume behavior # by default, we resume if the previous test_co...
26.217949
176
0.71198
cf963ba362b6072d7a8252ab60cf4f98163ec77b
77
py
Python
Modulos/__init__.py
Jonatan966/SODA
046d8c1e7b9bac3a555526c9fe2f365c2b338aca
[ "MIT" ]
null
null
null
Modulos/__init__.py
Jonatan966/SODA
046d8c1e7b9bac3a555526c9fe2f365c2b338aca
[ "MIT" ]
null
null
null
Modulos/__init__.py
Jonatan966/SODA
046d8c1e7b9bac3a555526c9fe2f365c2b338aca
[ "MIT" ]
null
null
null
from .Matematica import * from .Criptografia import * from .Quimica import *
19.25
27
0.766234
cfd278c8d195b2e8e8449bf6861555a697f06cb3
35
py
Python
data_tests/no_pythran_.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
data_tests/no_pythran_.py
fluiddyn/fluidpythran
e34e9886680e6b8e365d24a77fcb66b67e554043
[ "CECILL-B" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
data_tests/no_pythran_.py
fluiddyn/fluidpythran
e34e9886680e6b8e365d24a77fcb66b67e554043
[ "CECILL-B" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
a = 2 def myfunc(): print(a)
5.833333
13
0.485714
cffb3f9b69437fc666a8c65e1fe3d500d62959fd
18,597
py
Python
models/TrainerAE.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
models/TrainerAE.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
models/TrainerAE.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
__author__ = "Khalid M. Kahloot" __copyright__ = "Copyright 2019, Only for professionals" """ ------------------------------------------------------------------------------ TrainerAE.py autoencoder Model's training and testing ----------------------------------------------------------------------------...
47.930412
148
0.543206
7a44f556677969e1dacdfc2b4041d95bf812eb4c
664
py
Python
frappe-bench/apps/erpnext/erpnext/config/maintenance.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/config/maintenance.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/config/maintenance.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
from frappe import _ def get_data(): return [ { "label": _("Maintenance"), "icon": "fa fa-star", "items": [ { "type": "doctype", "name": "Maintenance Schedule", "description": _("Plan for maintenance visits."), }, { "type": "doctype", "name": "Maintenance Visit", "...
20.75
60
0.537651
8532f64ec03f83e65af1b10a40e4266e0ee5f665
4,964
py
Python
bawwab/filesystem.py
leibniz-psychology/bawwab
2e7129bf59b33c0ee22a960e7b2835888068fd1a
[ "MIT" ]
2
2021-07-06T06:00:22.000Z
2022-01-15T09:29:44.000Z
bawwab/filesystem.py
leibniz-psychology/bawwab
2e7129bf59b33c0ee22a960e7b2835888068fd1a
[ "MIT" ]
11
2020-11-26T10:53:44.000Z
2022-03-31T09:42:51.000Z
bawwab/filesystem.py
leibniz-psychology/bawwab
2e7129bf59b33c0ee22a960e7b2835888068fd1a
[ "MIT" ]
1
2022-01-15T09:30:46.000Z
2022-01-15T09:30:46.000Z
# Copyright 2019–2020 Leibniz Institute for Psychology # # 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, ...
33.540541
122
0.707695
f132a96ac66f44fbb468053203e3db7c745c9d79
18,753
py
Python
src/simulacija_crva.py
burw0r/ProjektR
8457029a67dc52596689848c9c2f1021d9918bfb
[ "MIT" ]
null
null
null
src/simulacija_crva.py
burw0r/ProjektR
8457029a67dc52596689848c9c2f1021d9918bfb
[ "MIT" ]
null
null
null
src/simulacija_crva.py
burw0r/ProjektR
8457029a67dc52596689848c9c2f1021d9918bfb
[ "MIT" ]
null
null
null
#!/bin/python3 import json import ipaddress import time import datetime import sys import collections import statistics import signal import platform import subprocess import os #--------------------------------------------------------------------------- landscape = json.load(open('network_landscape.json',"r")) firewa...
31.784746
188
0.574041
24bd110e9218a7bae2e454b737b3c636ec08d6f2
22
py
Python
library/core/__init__.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
1
2017-08-09T23:15:15.000Z
2017-08-09T23:15:15.000Z
library/core/__init__.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
null
null
null
library/core/__init__.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'Joseph'
11
21
0.727273
24e2208e76b07f6fe1430bf3fee784ae5f4c01ac
3,115
py
Python
drei_gewinnt.py
MarieEngel/drei_gewinnt
032f77472b58b97c74d452123314f8d7c423c17b
[ "MIT" ]
null
null
null
drei_gewinnt.py
MarieEngel/drei_gewinnt
032f77472b58b97c74d452123314f8d7c423c17b
[ "MIT" ]
null
null
null
drei_gewinnt.py
MarieEngel/drei_gewinnt
032f77472b58b97c74d452123314f8d7c423c17b
[ "MIT" ]
null
null
null
# the game board contains 9 fields - arranged 3 x 3 - at the beginning of the game # each field contains a number from 1-9, the players can select # a field by their number values = [1, 2, 3, 4, 5, 6, 7, 8, 9] # players can select fields & put their sign (x or o) depending # which fields are still available (haven't...
32.113402
167
0.521669
70891ca588cc29efa83825529ae8c69be7e4ed6d
554
py
Python
pages/get_airquality_desc.py
socialdistancingdashboard/frontend
aa102c20af09f18aea601573940e1fb8b94041a3
[ "Apache-2.0" ]
4
2020-03-31T09:05:26.000Z
2020-10-08T10:39:53.000Z
pages/get_airquality_desc.py
socialdistancingdashboard/frontend
aa102c20af09f18aea601573940e1fb8b94041a3
[ "Apache-2.0" ]
null
null
null
pages/get_airquality_desc.py
socialdistancingdashboard/frontend
aa102c20af09f18aea601573940e1fb8b94041a3
[ "Apache-2.0" ]
null
null
null
def get_airquality_desc(score): ''' Convert Air Quality Index (AQI) into descriptive text in German see https://aqicn.org/scale/de/ ''' import numpy as np if score == None or np.isnan(score): s = "Keine Daten" elif score < 51: s = "Gut" elif score < 101: s = "Mäßi...
26.380952
67
0.570397
8e7ee39fa78926ba42ff6a2f4438214084ce3dde
1,915
py
Python
datastories_semeval2017_task4/utilities_nn/generic.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
1
2020-06-04T13:20:45.000Z
2020-06-04T13:20:45.000Z
datastories_semeval2017_task4/utilities_nn/generic.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
6
2020-06-03T18:45:11.000Z
2022-02-10T01:51:03.000Z
datastories_semeval2017_task4/utilities_nn/generic.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
null
null
null
import html import itertools import numpy from collections import Counter from functools import reduce from kutilities.helpers.data_preparation import get_labels_to_categories_map from sklearn.metrics import mean_absolute_error flatten = lambda lst: reduce( lambda l, i: l + flatten(i) if isinstance(i, (list, tuple...
30.396825
78
0.609399
d90cbe6c05456ff00b97a6e9b8286436256333b2
6,245
py
Python
src/universal_build/helpers/openapi_utils.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
17
2020-11-20T15:58:02.000Z
2022-02-06T19:18:20.000Z
src/universal_build/helpers/openapi_utils.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
3
2021-02-17T13:47:44.000Z
2021-10-14T13:53:15.000Z
src/universal_build/helpers/openapi_utils.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
6
2020-11-23T09:51:26.000Z
2022-02-11T13:46:57.000Z
"""OpenAPI utilities.""" import pathlib from enum import Enum from typing import Union import urllib3 from universal_build import build_utils DEFAULT_TEMP_DIR = "./temp" class OpenApiGenerator(Enum): """Enum of generators that can generate clients based on OpenAPI specifications.""" OPENAPI_CODEGEN = ( ...
39.03125
294
0.70008
d94d537240631262e4c938e6d6445f914242343e
231
py
Python
torch/distributed/_sharded_tensor/ops/__init__.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
1
2022-01-20T03:49:23.000Z
2022-01-20T03:49:23.000Z
torch/distributed/_sharded_tensor/ops/__init__.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
14
2021-10-14T06:58:50.000Z
2021-12-17T11:51:07.000Z
torch/distributed/_sharded_tensor/ops/__init__.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
null
null
null
from .init import kaiming_uniform_, normal_, uniform_ from .linear import sharded_linear from .embedding import sharded_embedding from .embedding_bag import sharded_embedding_bag from .binary_cmp import ( equal, allclose )
25.666667
53
0.813853
8dc9a3562d8d63b09de3317eb227470fedfc7974
3,314
py
Python
image_segmentation/train2.py
gitskim/DnntalPrivate
20f84782e9ab20c68b43f32efb16cd22262b8ceb
[ "MIT" ]
null
null
null
image_segmentation/train2.py
gitskim/DnntalPrivate
20f84782e9ab20c68b43f32efb16cd22262b8ceb
[ "MIT" ]
null
null
null
image_segmentation/train2.py
gitskim/DnntalPrivate
20f84782e9ab20c68b43f32efb16cd22262b8ceb
[ "MIT" ]
2
2019-05-16T05:48:26.000Z
2021-01-27T01:26:22.000Z
import os import numpy as np import zipfile import subprocess import glob import cv2 from tqdm import tqdm import sys # For building the model_2 import tensorflow as tf import keras as keras from tensorflow.python.keras.models import Model, load_model from tensorflow.python.keras import backend as K from sklearn.model_...
34.520833
112
0.772179
d6a4cb488a749fa95d709926089435bb0790e34b
752
py
Python
hello/hello_gevent.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
hello/hello_gevent.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
hello/hello_gevent.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 -*- from gevent import monkey monkey.patch_all() import urllib.request, urllib.error, urllib.parse from gevent.pool import Pool def download(url): """ 查看url对应内容 :param url: http url :return: response doc """ return urllib.request.urlopen(url).read(...
17.904762
49
0.609043
d6e390413aa1d1d92e1bf51e964331d195b1ca89
2,748
py
Python
src/server/db/Mapper.py
ralfstefanbender/Studifix2
281c0a89ce56796437fe054068058c0f01a7df02
[ "RSA-MD" ]
null
null
null
src/server/db/Mapper.py
ralfstefanbender/Studifix2
281c0a89ce56796437fe054068058c0f01a7df02
[ "RSA-MD" ]
null
null
null
src/server/db/Mapper.py
ralfstefanbender/Studifix2
281c0a89ce56796437fe054068058c0f01a7df02
[ "RSA-MD" ]
null
null
null
import mysql.connector as connector import os from contextlib import AbstractContextManager from abc import ABC, abstractmethod class Mapper (AbstractContextManager, ABC): """Abstrakte Basisklasse aller Mapper-Klassen""" def __init__(self): self._cnx = None def __enter__(self): """Was so...
40.411765
120
0.644469
d6ec5470684ba84e345106e6a6f3dd0735c7def7
1,503
py
Python
app/tests/test_blog_client.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
73
2018-12-14T18:12:33.000Z
2022-02-23T21:39:59.000Z
app/tests/test_blog_client.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
4
2019-11-23T18:08:18.000Z
2021-08-23T09:00:15.000Z
app/tests/test_blog_client.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
33
2019-06-03T00:30:57.000Z
2022-03-10T23:54:43.000Z
""" AUTOR: Juanjo FECHA DE CREACIÓN: 15/01/2020 """ import unittest from app.auth.models import User from app.models import Post from . import BaseTestClass class BlogClientTestCase(BaseTestClass): def test_index_with_no_posts(self): res = self.client.get('/') self.assertEqual(200, res.statu...
28.358491
88
0.647372
ba5f9ba9b976af1ed01f041293122035c0ec1e5e
5,359
py
Python
AutosClasificados/core/views.py
joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU
2997359150236a7d897a3f9201f8e9404f3d7f02
[ "MIT" ]
null
null
null
AutosClasificados/core/views.py
joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU
2997359150236a7d897a3f9201f8e9404f3d7f02
[ "MIT" ]
null
null
null
AutosClasificados/core/views.py
joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU
2997359150236a7d897a3f9201f8e9404f3d7f02
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from .models import Articulo from .forms import FormularioArticulo import json from watson_developer_cloud import VisualRecognitionV3, NaturalLanguageUnderstandingV1 import watson_developer_cloud.natural_language_understanding.features.v1 as Features def home(request): ...
44.658333
135
0.582945
ba799a00c2ebb3187306a55b4b5aa39c96c71a40
278
py
Python
src/python/py-accepted/467A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
2
2019-09-07T17:00:26.000Z
2020-08-05T02:08:35.000Z
src/python/py-accepted/467A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
src/python/py-accepted/467A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
#! python # Problem # : 467A # Created on : 2019-01-15 20:33:19 def Main(): n, cnt = int(input()), 0 for i in range(n): x, y = map(int, input().split(" ")) if y - x > 1: cnt += 1 print(cnt) if __name__ == '__main__': Main()
15.444444
43
0.464029
baf8f10c492d36edf68e2cc1f1411a960e304e33
43
py
Python
stanford1/py/rand_selection.py
zaqwes8811/cs-courses
aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2
[ "Apache-2.0" ]
null
null
null
stanford1/py/rand_selection.py
zaqwes8811/cs-courses
aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2
[ "Apache-2.0" ]
null
null
null
stanford1/py/rand_selection.py
zaqwes8811/cs-courses
aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 __author__ = 'zaqwes_user'
14.333333
26
0.72093
79ff9c3e67186a267d6a1061e11e1ffe7607be66
1,445
py
Python
python/advanced_sw/IP_COLLECTOR/test2_ip.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/advanced_sw/IP_COLLECTOR/test2_ip.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/advanced_sw/IP_COLLECTOR/test2_ip.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
#!/usr/bin/env python import sys import urllib.request import json def get_info(adress): print("************************************************") api = "http://freegeoip.net/json/" + adress try: result = urllib.request.urlopen(api).read() result = str(result) result = result[2:le...
33.604651
128
0.571626
032d3803eb99f2c0f4dfbe251243182ba9895f26
1,443
py
Python
research/nlp/gpt2/src/utils/rouge_score.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/gpt2/src/utils/rouge_score.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/gpt2/src/utils/rouge_score.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
"""Calculate ROUGE score.""" # Copyright 2020 Huawei Technologies Co., Ltd # # 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 b...
36.075
78
0.638254
033503a351fe1991a8a2658ab1056c1f16068eef
1,143
py
Python
Python/Exercícios_Python/040_alistamento_militar.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/040_alistamento_militar.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/040_alistamento_militar.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """040 - Alistamento Militar Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1xSIQzO96CRSdNwBi630_A-lB-4xuZppE """ from datetime import date from time import sleep atual = date.today().year nasc = int(input('Ano de nascimento: ...
32.657143
84
0.63867
0644a0bc1d5a441ff23c45d97a3cc8682d3b98c8
1,645
py
Python
biowardrobe_airflow_advanced/operators/heatmap_jobdispatcher.py
Barski-lab/biowardrobe-airflow-advanced
e43aa268fd05635e8356788b8e814279b698263f
[ "Apache-2.0" ]
null
null
null
biowardrobe_airflow_advanced/operators/heatmap_jobdispatcher.py
Barski-lab/biowardrobe-airflow-advanced
e43aa268fd05635e8356788b8e814279b698263f
[ "Apache-2.0" ]
1
2018-09-30T16:57:06.000Z
2018-09-30T16:57:06.000Z
biowardrobe_airflow_advanced/operators/heatmap_jobdispatcher.py
Barski-lab/biowardrobe-airflow-advanced
e43aa268fd05635e8356788b8e814279b698263f
[ "Apache-2.0" ]
null
null
null
from cwl_airflow import CWLJobDispatcher from biowardrobe_airflow_advanced.utils.analyze import get_heatmap_job class HeatmapJobDispatcher(CWLJobDispatcher): def __init__(self, *args, **kwargs): super(HeatmapJobDispatcher, self).__init__(task_id=self.__class__.__name__, *args, **kwargs) def execute(...
39.166667
136
0.542249
d1efd3e8486078468ae6c2594f93642c8a752a71
10,221
py
Python
src/game.py
austinweis/mp-tetris
b8d0f8ca907414c93962facd79c1e19fdf214394
[ "MIT" ]
1
2022-02-23T18:19:13.000Z
2022-02-23T18:19:13.000Z
src/game.py
austinweis/mp-tetris
b8d0f8ca907414c93962facd79c1e19fdf214394
[ "MIT" ]
null
null
null
src/game.py
austinweis/mp-tetris
b8d0f8ca907414c93962facd79c1e19fdf214394
[ "MIT" ]
null
null
null
import sys WINDOW_WIDTH, WINDOW_HEIGHT = 1280, 720 GAME_WIDTH, GAME_HEIGHT = 10, 20 BACKGROUND_COLOR = (20, 20, 20) CELL_SIZE = 30 def main(host, port): import pygame, random, copy, threading, time from src import gui, networking, blocks import launcher pygame.init() pygame.font.in...
47.539535
205
0.542804
d1f77cbdddf5debaca98909b007b55d2bf3f0e07
1,473
py
Python
scripts/ue01_turtlesim_richtung_zum_ziel/ue01_dir_to_goal_mit_fkt_klasse.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
scripts/ue01_turtlesim_richtung_zum_ziel/ue01_dir_to_goal_mit_fkt_klasse.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
scripts/ue01_turtlesim_richtung_zum_ziel/ue01_dir_to_goal_mit_fkt_klasse.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python # --- ue01_dir_to_goal.py ------ # Version vom 11.10.2021 by OJ # Weg zum Ziel in der TurtleSim berechnen # --------------------------------------- # Import math Library wegen atan2() import math class clPose: def EingabePose(self): # --- Eingabe Pose ------ eingabe = input(...
26.303571
56
0.582485
ae9a6ced39ec8066dec4956ba15b09454813c2c9
107
py
Python
oldp/apps/backend/processing/__init__.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/backend/processing/__init__.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/backend/processing/__init__.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
class ProcessingError(ValueError): pass class AmbiguousReferenceError(ProcessingError): pass
9.727273
47
0.757009
4e4548893096e01ca3f63bbf60fe522006eba6b1
673
py
Python
leetcode/016-3Sum-Closest/ThrSumClose_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/016-3Sum-Closest/ThrSumClose_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/016-3Sum-Closest/ThrSumClose_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# @author: cchen # It will be updated later class Solution: # @return an integer def threeSumClosest(self, num, target): num.sort() mindiff = 100000 res = 0 for i in range(len(num)): left = i + 1; right = len(num) - 1 while left < right: ...
28.041667
60
0.427935
14f2b8c4df9af6a82eb1c6729e45734fbcacc84a
690
py
Python
server/api/src/blueprints/files/api.py
gustavodsf/rdx_hack
3b504bf8181495fdd1c3a06f963970469f6655f1
[ "MIT" ]
null
null
null
server/api/src/blueprints/files/api.py
gustavodsf/rdx_hack
3b504bf8181495fdd1c3a06f963970469f6655f1
[ "MIT" ]
null
null
null
server/api/src/blueprints/files/api.py
gustavodsf/rdx_hack
3b504bf8181495fdd1c3a06f963970469f6655f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json import os import random from os import listdir from os.path import isfile, join from flasgger.utils import swag_from from flask import (Blueprint, Flask, Response, flash, jsonify, redirect, request, send_file, url_for) from werkzeug.utils import secure_filename f...
32.857143
87
0.702899
eeb297df12c3497e3b5e572fb6d70871b9b64e6d
3,425
py
Python
AutoPOD.py
hatjs880328s/AutoPOD
2bd720f5059f740677f162c8c4d7afbf840b1f61
[ "MIT" ]
null
null
null
AutoPOD.py
hatjs880328s/AutoPOD
2bd720f5059f740677f162c8c4d7afbf840b1f61
[ "MIT" ]
null
null
null
AutoPOD.py
hatjs880328s/AutoPOD
2bd720f5059f740677f162c8c4d7afbf840b1f61
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding:utf-8 # """ # @File : AutoPOP.py # @Time : 2019/8/10 0010 20:52 # @Author : Noah_shan # @Email : 451145552@qq.com # @Software: PyCharm # """ # """ # TODO: # 0.使用之前,需要将需要升级的pod库代码更新到目标服务器 # 1.根据配置文件提示出来需要升级的POD库 # a.添加一个yaml文件,用来处理配置信息:库名称、路径、pod trunk push rule # 2.用户选择配置库后...
32.619048
105
0.628321
6dd99dba9cf68038f73628e990bc7ed2e14a2d9f
624
py
Python
musterloesungen/6.1/vorkommnisse.py
giu/appe6-uzh-hs2018
204dea36be1e53594124b606cdfa044368e54726
[ "MIT" ]
null
null
null
musterloesungen/6.1/vorkommnisse.py
giu/appe6-uzh-hs2018
204dea36be1e53594124b606cdfa044368e54726
[ "MIT" ]
null
null
null
musterloesungen/6.1/vorkommnisse.py
giu/appe6-uzh-hs2018
204dea36be1e53594124b606cdfa044368e54726
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Kurs: Python: Grundlagen der Programmierung für Nicht-Informatiker # Semester: Herbstsemester 2018 # Homepage: http://accaputo.ch/kurs/python-uzh-hs-2018/ # Author: Giuseppe Accaputo # Aufgabe: 6.1 def anz_vorkommnisse(zeichen, wort): # Diese Variable verwenden...
32.842105
76
0.673077
e945e96fc540476708e3e2eed5c45c7f28aabc67
560
py
Python
Problems/Dynamic Programming/Easy/CountingBit/test_count_bit.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Dynamic Programming/Easy/CountingBit/test_count_bit.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Dynamic Programming/Easy/CountingBit/test_count_bit.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from unittest import TestCase from count_bit import countBits class Test(TestCase): def test_count_bits(self): self.assertTrue(countBits(0) == [0]) self.assertTrue(countBits(1) == [0, 1]) self.assertTrue(countBits(2) == [0, 1, 1]) self.assertTrue(countBits(3) == [0, 1, 1, 2]) ...
40
65
0.573214
2811f1c4e923f0adb963569813a96050fe9eae97
12,620
py
Python
verto/tests/RelativeLinkTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/tests/RelativeLinkTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/tests/RelativeLinkTest.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
import markdown import re from unittest.mock import Mock from verto.processors.RelativeLinkPattern import RelativeLinkPattern from verto.tests.ProcessorTest import ProcessorTest class RelativeLinkTest(ProcessorTest): '''Tests to check the 'relative-link' pattern works as intended. This class is unique to othe...
49.296875
129
0.729952
2842a9c000e03557eebd6fe599fd01880ca6ee08
8,174
py
Python
demos/Multiscale/amm_mechanism/model/parts/action_list.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
demos/Multiscale/amm_mechanism/model/parts/action_list.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
demos/Multiscale/amm_mechanism/model/parts/action_list.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
# Behaviors def actionDecoder(params, step, history, prev_state): ''' In this simplified model of Uniswap, we have not modeled user behavior. Instead, we map events to actions. Depending on the input system parameters 'params' a given action sequence is induced. ''' action = { 'q_sold': 0,...
40.87
196
0.488745
2554ceb395c73ca0972f72b9712ca22d4feba495
1,874
py
Python
src/standard_module/future_module.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/standard_module/future_module.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/standard_module/future_module.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ --------------------------------------------------------------------------------------------- # 在旧版本中使用新版本的特性,可以使用__future__模块,对于兼容性的考虑 --------------------------------------------------------------------------------------------- # 从2.7到3.x就有一些不兼容的改动,比如 2.x的字符串用'xxx...
28.830769
159
0.427962
c2d55b8bf050c3be4dbcca013075e24126b7d1e0
6,278
py
Python
src/main/python/floatingpoints/floating_points_fixed_controller.py
dlangheiter-tgm/sew4-floating-points-dlangheiter-tgm
00dd2951fb83dc2d288415572f753b427bee52ed
[ "MIT" ]
null
null
null
src/main/python/floatingpoints/floating_points_fixed_controller.py
dlangheiter-tgm/sew4-floating-points-dlangheiter-tgm
00dd2951fb83dc2d288415572f753b427bee52ed
[ "MIT" ]
null
null
null
src/main/python/floatingpoints/floating_points_fixed_controller.py
dlangheiter-tgm/sew4-floating-points-dlangheiter-tgm
00dd2951fb83dc2d288415572f753b427bee52ed
[ "MIT" ]
null
null
null
import sys, multiprocessing, random, time from PyQt5.Qt import * from PyQt5.QtWidgets import * from floatingpoints import floating_points_fixed_view class FloatingPointController(QWidget): """ MVC pattern: Creates a controller according to the mvc pattern. :ivar safe_close: Safe closing of initiated poi...
33.752688
110
0.597483
66936501a41f0571aeef8cbf1e3867f9df6c0b02
283
py
Python
expenses_tracker/expenses_tracker/web/templatetags/profiles.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
expenses_tracker/expenses_tracker/web/templatetags/profiles.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
expenses_tracker/expenses_tracker/web/templatetags/profiles.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from django import template from expenses_tracker.web.models import Profile, Expense register = template.Library() @register.simple_tag() def has_profile(): return Profile.objects.count() > 0 @register.simple_tag() def has_expenses(): return Expense.objects.count() > 0
18.866667
56
0.75265
669c63ac95f15e7e9eee9d4b6fcc3c5c1c651082
2,755
py
Python
src/lecture3_new/ROC_plot/roc_plot.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
1
2020-08-17T07:09:09.000Z
2020-08-17T07:09:09.000Z
src/lecture3_new/ROC_plot/roc_plot.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
null
null
null
src/lecture3_new/ROC_plot/roc_plot.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
2
2020-07-26T07:27:57.000Z
2020-08-17T07:09:15.000Z
from libsvm.python.svmutil import * ''' reference: # Precomputed kernel data (-t 4) # Dense data y, x = [1,0,1], [[1, 2, -2], [2, -2, 2],[3,3,3]] # Sparse data #y, x = [1,-1], [{0:1, 1:2, 2:-2}, {0:2, 1:-2, 2:2}] # isKernel=True must be set for precomputed kernel param = '-t 0 -c 4 -b 1' m = svm_train(y,x,param) # For...
34.873418
113
0.666062
66acc68b89b49b6cfada458008132daee66f779f
331
py
Python
plugin/framework_mult/__init__.py
pysprings/beginner-talk-abc
225c5c4872bc150370f784f6f2e374663a2f85e8
[ "Unlicense" ]
null
null
null
plugin/framework_mult/__init__.py
pysprings/beginner-talk-abc
225c5c4872bc150370f784f6f2e374663a2f85e8
[ "Unlicense" ]
null
null
null
plugin/framework_mult/__init__.py
pysprings/beginner-talk-abc
225c5c4872bc150370f784f6f2e374663a2f85e8
[ "Unlicense" ]
null
null
null
# This plugin adds 2 values from framework.plugin_base import PluginBase class MultiplyPlugin(object): def match(self, operation): return operation == 'multiply' def operate(self, value1, value2): return value1 * value2 # This is executed on import! PluginBase.register(Multip...
20.6875
45
0.688822
dd0149d2f32dbfa6d57b93df09fe5223cd7d2a3a
1,382
py
Python
src/visuanalytics/tests/analytics/transform/types/test_transform_check_key.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_check_key.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_check_key.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
import unittest from visuanalytics.tests.analytics.transform.transform_test_helper import prepare_test class TestTransformCheckKey(unittest.TestCase): def setUp(self): self.data = { "test": "test" } def test_check_key(self): values = [ { "type"...
24.678571
86
0.431259
dd45da86cf5407d63b0fc060c07c5d070442b7bf
10,209
py
Python
lego/main.py
tipptop3d/Horst-oder-Klaus
2afda1a64b5ccace74ebc7b806a5e5501c0f12bb
[ "MIT" ]
null
null
null
lego/main.py
tipptop3d/Horst-oder-Klaus
2afda1a64b5ccace74ebc7b806a5e5501c0f12bb
[ "MIT" ]
null
null
null
lego/main.py
tipptop3d/Horst-oder-Klaus
2afda1a64b5ccace74ebc7b806a5e5501c0f12bb
[ "MIT" ]
null
null
null
#!/usr/bin/env pybricks-micropython """ Main File that gets executed by the Lego Robot """ import json import math from pybricks.ev3devices import Motor from pybricks.hubs import EV3Brick from pybricks.parameters import Direction, Port from pybricks.tools import wait as wait_time import uasyncio from calculus.express...
30.026471
91
0.628857
c6b5cbd4158d38a5471c462c281ab0726ce4707d
4,399
py
Python
src/visitpy/visit_utils/tests/test_qannote_wrap.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_utils/tests/test_qannote_wrap.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/visit_utils/tests/test_qannote_wrap.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ author: Cyrus Harrison (cyrush@llnl.gov) description: Tests for qannote module. """ i...
36.057377
113
0.630371
05d3cbc18ce30234c28251a992e5ffedb0092951
934
py
Python
Metadataextraction/mastersim.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
null
null
null
Metadataextraction/mastersim.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
47
2018-11-13T13:55:01.000Z
2019-09-16T13:38:11.000Z
Metadataextraction/mastersim.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
4
2018-11-27T12:36:51.000Z
2020-10-14T18:07:04.000Z
import math # used for the computations import extractTool # used for the the transformation and prints import similar # used to calculate the similarity score import click # used to print something """ Function for calling up all important functions :param filepath1: filepath from a file :param...
34.592593
64
0.673448
af2625db6cb823aa870a62b629c3f3361642328b
8,838
py
Python
DataStructure/U13/U13_90.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
1
2019-10-29T08:21:41.000Z
2019-10-29T08:21:41.000Z
DataStructure/U13/U13_90.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
DataStructure/U13/U13_90.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- __author__ = "Qianli Wang und Nazar Sopiha" __copyright__ = "Copyright (c) 2019 qiaw99" # https://github.com/qiaw99/WS2019-20/blob/master/LICENSE import six import sys # Abstract class class HuffNode(object): def get_weight(self): raise NotImplementedError( "The Abstract ...
28.418006
109
0.561779
af29fad6c465bfb46481472e1dbbf42aa1064294
2,735
py
Python
20-fs-ias-lec/groups/07-logStore/src/tests/test_chat_connection.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/07-logStore/src/tests/test_chat_connection.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/07-logStore/src/tests/test_chat_connection.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import hashlib # Comes with python import secrets # Comes with python from nacl.signing import SigningKey from testfixtures import LogCapture import os from ..logStore.funcs.event import Content, Event, Meta from ..logStore.appconn.chat_connection import ChatFunction def test_get_chat_event(): try: with...
47.155172
106
0.599269
a52deeb66e2ebca332c40deda186616dc6915348
1,702
py
Python
Project Euler Qusetions 51 - 60/Project Euler Question 51.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
1
2020-02-11T02:03:02.000Z
2020-02-11T02:03:02.000Z
Project Euler Qusetions 51 - 60/Project Euler Question 51.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
Project Euler Qusetions 51 - 60/Project Euler Question 51.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
#Project Euler Question 51 #Prime digit replacements import math def prime_check(x): if x > 2: if x % 2 == 0: return False else: for factor in range(3, int(math.sqrt(x) + 1), 2): if (x % factor) == 0: return False else: ...
25.029412
86
0.477673
3c83a39bdaa91172bcdb4ed4fee19a2d0953483c
1,049
py
Python
lintcode/002-[DUP]-Add-Two-Numbers/Add2Nums_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
lintcode/002-[DUP]-Add-Two-Numbers/Add2Nums_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
lintcode/002-[DUP]-Add-Two-Numbers/Add2Nums_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # @param l1: the first list # @param l2: the second list # @return: the sum list of l1 and l2 def addLists(self, l1, l2): # write your code here...
28.351351
60
0.464252
a714ef1d6c3a0245b30c475373554a176296b976
2,056
py
Python
2019/quals/reversing-android/solution/constr_gen.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2019/quals/reversing-android/solution/constr_gen.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2019/quals/reversing-android/solution/constr_gen.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
# Copyright 2019 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
25.073171
307
0.61284
e63ceb901983dc2f9261f4b50a912ff5b7bc9d3d
1,707
py
Python
python/sql_alchemy/managing_relationship/many_to_one.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/sql_alchemy/managing_relationship/many_to_one.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/sql_alchemy/managing_relationship/many_to_one.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String, Text, DateTime, Float, Boolean, ForeignKey from sqlalchemy.orm import relationship from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class PlayerModel(Base): """Data model for players.""" __tablename__ = 'sqlalchemy_tutorial_play...
32.207547
90
0.623316
e6633d8a802354aaa8113fad8fe7cb66f9f071dd
1,974
py
Python
benchmarks/matbench_v0.1_rf/run.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
15
2021-11-01T09:02:19.000Z
2022-03-19T10:59:41.000Z
benchmarks/matbench_v0.1_rf/run.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
62
2021-09-20T14:09:59.000Z
2022-03-30T19:03:22.000Z
benchmarks/matbench_v0.1_rf/run.py
ardunn/matbench
7d11a2d63766339ec00e610e2255be29b81544d3
[ "MIT" ]
4
2021-03-22T10:37:42.000Z
2021-07-20T14:11:28.000Z
""" Code for training and recording the matbench_v0.1 random forest benchmark. The ML pipeline is placed within the Automatminer pipeline code infrastructure for convenience. All training and inference was done on a single 128-core HPC node. Reduce the number of jobs n_jobs for less memory usage on consumer machines...
32.9
129
0.733536
e664d0b62daa6cb9254e2e15a2e8c5b2d8296986
533
py
Python
foundation/erpnext_foundation/doctype/conference_participant/conference_participant.py
deatram/foundation
7cd3cffd3eb10611e5da62c9882462091d79e730
[ "MIT" ]
1
2018-08-21T04:55:52.000Z
2018-08-21T04:55:52.000Z
foundation/erpnext_foundation/doctype/conference_participant/conference_participant.py
deatram/foundation
7cd3cffd3eb10611e5da62c9882462091d79e730
[ "MIT" ]
5
2018-08-21T04:46:18.000Z
2018-08-28T08:58:05.000Z
foundation/erpnext_foundation/doctype/conference_participant/conference_participant.py
deatram/foundation
7cd3cffd3eb10611e5da62c9882462091d79e730
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, EOSSF and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class ConferenceParticipant(Document): def validate(self): self.conference = '2018' def validate_...
28.052632
85
0.771107
55baaefe59e17ce52ebb10c76ec347e1bf87963b
540
py
Python
nz_crawl_demo/day6/demo2.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day6/demo2.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day6/demo2.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
import pytesseract import random from PIL import Image from urllib import request import time def main(): pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe' url = "https://passport.lagou.com/vcode/create?from=register&refresh=%s" % (random.random()) while True: ...
24.545455
96
0.681481
75dfc1e5982d41d8a1e2364c1636c418249f8bfa
73
py
Python
scripts/import.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
2,706
2018-04-05T18:28:50.000Z
2022-03-29T16:56:59.000Z
scripts/import.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
242
2018-04-05T22:30:42.000Z
2022-03-19T01:55:11.000Z
scripts/import.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
464
2018-04-05T19:10:34.000Z
2022-03-28T13:33:32.000Z
#!/usr/bin/env python from retro.scripts.import_path import main main()
14.6
42
0.767123
f9b56d5fe9a36f02fddf7221784172da80300a25
3,665
py
Python
20-hs-redez-sem/groups/05-decentGames/src/Commands.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-hs-redez-sem/groups/05-decentGames/src/Commands.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-hs-redez-sem/groups/05-decentGames/src/Commands.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from AbsGame import AbsGame from abc import ABC, abstractmethod from Board import Board import State from Chess import Chess from DGABoard import DGABoard from DontGetAngry import DontGetAngry """ The Command Design Pattern was used to generate separately commands/functions for all 1v1 games (the abstract form of the...
23.954248
119
0.62101
55029cb6ec3fb0a12f7ff6d798fec84ec1c97278
812
py
Python
RESTApi/flaskapp/xmlParser.py
Peacecake/HoloMu
98b422b226c2274e6d7e96df31724b0d2abd8ebb
[ "MIT" ]
null
null
null
RESTApi/flaskapp/xmlParser.py
Peacecake/HoloMu
98b422b226c2274e6d7e96df31724b0d2abd8ebb
[ "MIT" ]
32
2018-06-19T15:27:04.000Z
2018-09-30T20:17:23.000Z
RESTApi/flaskapp/xmlParser.py
Peacecake/HoloMu
98b422b226c2274e6d7e96df31724b0d2abd8ebb
[ "MIT" ]
null
null
null
import os import xml.etree.ElementTree as ET class XMLParser: def __init__(self, xmlFilePath): self.xmlFilePath = xmlFilePath self.tree = None self.root = None def parse(self): if not os.path.exists(self.xmlFilePath): return False self.tree = ET.parse(self....
30.074074
72
0.575123
9b97aa5f8823c984261475d2b1829d5fd61a8f5a
987
py
Python
graph_all.py
GShamian/ExamInf
81f521d0b137eee0a4c7f53443303f419e7c33ef
[ "MIT" ]
2
2017-12-22T20:03:30.000Z
2017-12-24T20:55:38.000Z
graph_all.py
GShamian/ExamInf
81f521d0b137eee0a4c7f53443303f419e7c33ef
[ "MIT" ]
null
null
null
graph_all.py
GShamian/ExamInf
81f521d0b137eee0a4c7f53443303f419e7c33ef
[ "MIT" ]
null
null
null
from random import randint class King: def __init__(self, start, size): self.start = start self.size = size self.hole = (randint(0, size-1), randint(0, size-1)) def check(self, a, b): return a >= 0 and b >= 0 and a <= self.size - 1 and b <= self.size - 1 def near(self, wher...
25.973684
78
0.486322
fd0f64a329e7028407c9722f42b31259dea4aef6
2,143
py
Python
import.py
twothreenine/task-rotation
64a3a648c960df65d03587a3f7009ce4b1f7df44
[ "MIT" ]
null
null
null
import.py
twothreenine/task-rotation
64a3a648c960df65d03587a3f7009ce4b1f7df44
[ "MIT" ]
1
2022-01-09T18:35:17.000Z
2022-01-09T18:35:17.000Z
import.py
twothreenine/task-rotation
64a3a648c960df65d03587a3f7009ce4b1f7df44
[ "MIT" ]
null
null
null
import ethercalc import json import logging import pprint import os import script def main(): logging.basicConfig(level=logging.DEBUG) logging.debug("Enter Main()") local_file = False local_file_yn = input("You can either import a local socialcalc file or copy a socialcalc sheet from the web. Enter Y ...
45.595745
157
0.650957
b5be95e8eff8199da9a53c4b38c44b65e2e6805d
357
py
Python
django-rest-framework/api_example/request_data.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
django-rest-framework/api_example/request_data.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
django-rest-framework/api_example/request_data.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
import requests header = {} header['Authorization'] = 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTY3NDk1NzA2LCJqdGkiOiI1NzE0YzQ3ZWY1ZGU0MTUxYWIyYTZiN2U5ZmMwNGFhNyIsInVzZXJfaWQiOjF9.-wNWUHisd5f1Hiilm6JYzwLApqw4U9mWMciF-ycSTy8' r = requests.get('http://127.0.0.1:8000/api/parad...
44.625
240
0.857143
2f654504ebcd989d24f39f623ef4bf3dee701d37
1,322
py
Python
leetcode/149-Max-Points-on-a-Line/MaxPointsonaLine.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/149-Max-Points-on-a-Line/MaxPointsonaLine.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/149-Max-Points-on-a-Line/MaxPointsonaLine.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# Definition for a point. # class Point(object): # def __init__(self, a=0, b=0): # self.x = a # self.y = b class Solution(object): def maxPoints(self, points): """ :type points: List[Point] :rtype: int """ pts = points lines = {} mto_cnt =...
32.243902
80
0.413767
2f68d83b9bade42c7ca6690a5fe55315608bad21
368
py
Python
books/PythonAutomate/webscrap/map_it.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/webscrap/map_it.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/webscrap/map_it.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""map_it.py 인자값 또는 클립보드 값으로 검색한 구글 맵 브라우저 실행 """ import sys import webbrowser import pyperclip def main(): if len(sys.argv) > 1: address = ''.join(sys.argv[1:]) else: # Get address from clipboard address = pyperclip.paste() webbrowser.open(f"https://www.google.com/maps/place/{add...
17.52381
67
0.622283
2f6d911d4551f1408b895d7cbeb98b357580afea
4,375
py
Python
tests/blend/test_config.py
emptymalei/haferml
ba193ce1c022c89fb4e88924b7bb7a05b676929a
[ "MIT" ]
11
2021-04-17T18:51:45.000Z
2021-06-25T19:42:25.000Z
tests/blend/test_config.py
emptymalei/haferml
ba193ce1c022c89fb4e88924b7bb7a05b676929a
[ "MIT" ]
3
2021-04-29T19:24:15.000Z
2021-05-21T04:30:54.000Z
tests/blend/test_config.py
emptymalei/haferml
ba193ce1c022c89fb4e88924b7bb7a05b676929a
[ "MIT" ]
2
2021-06-10T00:55:43.000Z
2021-12-30T07:37:07.000Z
from nose import tools as _tools from haferml.blend.config import Config def test_Config_with_base_folder(): test_config = { "etl": { "raw": { "transactions": {"local": "abc", "name": "def.parquet", "remote": ""}, "model": {"local": "abc", "remote": ""}, ...
26.515152
88
0.404114
2f7b5ebd5e2afde1ae8482e6f011ba7678fe1f2b
1,354
py
Python
Packs/CommonScripts/Scripts/IsInCidrRanges/IsInCidrRanges.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/CommonScripts/Scripts/IsInCidrRanges/IsInCidrRanges.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/CommonScripts/Scripts/IsInCidrRanges/IsInCidrRanges.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import ipaddress import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def validate_cidr(cidr: str): """ Validates CIDR format. """ try: ipaddress.ip_network(cidr) except ValueError as e: demisto.debug(f'Skipping "{cidr}": {e}') return...
24.178571
111
0.605613
85e8427d8ba8df8b672ee0b8619556fedf18852f
1,932
py
Python
turngen/shift.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
turngen/shift.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
turngen/shift.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
import numpy as np # dim = 0 -> shift up/down # dim = 1 -> shift left/right def shift_old(arr, dim, amnt, fill_value=0): ret = np.empty_like(arr) if dim == 0: if amnt > 0: ret[:amnt,:] = fill_value ret[amnt:,:] = arr[:-amnt,:] elif amnt < 0: ret[amnt:,:] = fill_value ret[:amnt,:] = arr[-amnt:,:] e...
23.277108
44
0.584369
c82d63d1e2d49f022ece2711cb622d09fccca71d
1,549
py
Python
src/visitpy/visit_flow/flow/src/filters/file_ops.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_flow/flow/src/filters/file_ops.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/visit_flow/flow/src/filters/file_ops.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: file_ops.py author: Cyrus Harrison <cyrush@llnl.gov> created: 10/14/2010 description:...
26.706897
73
0.633957
23a18f4e31c177aff5c5c70ee1ac5a9bf5ef2365
2,557
py
Python
frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_settings/stock_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_settings/stock_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_settings/stock_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document from frappe.utils.html_...
41.918033
144
0.773954
f1c390facbe2a787fdf1f8474883e902d2d82d73
3,760
py
Python
src/create_data.py
VetrixTV/GigaCHAD
497f73f54f6164b797a3b46eeaaacf275aefe5e9
[ "MIT" ]
1
2022-01-12T10:43:23.000Z
2022-01-12T10:43:23.000Z
src/create_data.py
VetrixTV/GigaCHAD
497f73f54f6164b797a3b46eeaaacf275aefe5e9
[ "MIT" ]
1
2022-02-02T07:27:44.000Z
2022-02-02T07:27:44.000Z
src/create_data.py
VetrixTV/GigaCHAD
497f73f54f6164b797a3b46eeaaacf275aefe5e9
[ "MIT" ]
1
2022-01-12T10:01:53.000Z
2022-01-12T10:01:53.000Z
# Benötigte Bibliotheken importieren. import cv2, sys, numpy, os, csv, time # Dimensionen der Kamera. (width, height) = (1920, 1080) # Spezifiziert die Methode, mit der Gesichter erkannt werden. face_classificator = 'haar_cascade_frontal.xml' # Projektpfad. project_path = os.path.curdir # Ordername für ...
37.979798
118
0.630319
b53412d7ebb5d15c3c462d777a37e82c84a6ae48
1,884
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v6_4/fix_journal_entries_due_to_reconciliation.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/v6_4/fix_journal_entries_due_to_reconciliation.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_4/fix_journal_entries_due_to_reconciliation.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import print_function, unicode_literals import frappe def execute(): frappe.reload_doctype("Sales Invoice Advance") frappe.reload_doctype("Purchase Invoice Advance") j...
35.54717
100
0.730892
b5a07d4042ae92c84937b0cc8a5a1b47b56ea105
908
py
Python
pk/data/cluster/kmeans/index.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
pk/data/cluster/kmeans/index.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
pk/data/cluster/kmeans/index.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
1
2021-04-14T00:45:38.000Z
2021-04-14T00:45:38.000Z
from bottle import Bottle, run, template, static_file, SimpleTemplate, view import simplejson as json from kmeans import KMeans app = Bottle() @app.route('/static/:path#.+#', name='static') def static(path): return static_file(path, root='static') @app.route('/') @view('template') def kmeans(): filename ...
24.540541
77
0.624449
a5c056c470ba99fd2b66f56f95becd72d1c31e8f
679
py
Python
Webpage/arbeitsstunden/migrations/0008_auto_20210623_2001.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/arbeitsstunden/migrations/0008_auto_20210623_2001.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/arbeitsstunden/migrations/0008_auto_20210623_2001.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.12 on 2021-06-23 20:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('arbeitsstunden', '0007_auto_20210623_1921'), ] operations = [ migrations.AlterField( model_nam...
27.16
121
0.62592
9e136ec0cabb024ac423a9c034c95eb342b117c7
2,561
py
Python
research/cv/CascadeRCNN/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/CascadeRCNN/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/CascadeRCNN/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
44.155172
119
0.722374
27e458662e5ccef16ea7ef7b6b1e80f88382c2d6
8,502
py
Python
radiomics/analyze.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
radiomics/analyze.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
radiomics/analyze.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
import argparse import json import os from itertools import compress import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns import tools from scipy.spatial import distance from sklearn.cluster import KMeans from sklearn.decomposition import PCA from sklearn.preprocessing import La...
40.875
125
0.673018
27f4b9deffbc55c2fbeb7e0c600856ea71d6b316
202
py
Python
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/02_print_combine.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/02_print_combine.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/02_print_combine.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# Einfache Kombination von Strings durch Modifizieren der print-Funktion print('Hallo ', end='') print('World', end='\n') print('aa', 'bb', 'cc', 'dd', sep=' ') print('aa', 'bb', 'cc', 'dd', sep='-')
25.25
72
0.59901
47b22591eca4604d23ba04047f538c241b522ec5
34
py
Python
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Oplog/Tailer/__init__.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
282
2016-06-16T14:41:44.000Z
2022-03-02T03:43:02.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Oplog/Tailer/__init__.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
146
2016-06-16T08:55:45.000Z
2020-09-08T10:37:32.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Oplog/Tailer/__init__.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
94
2016-06-16T10:49:07.000Z
2022-03-28T09:14:03.000Z
from Tailer import Tailer # NOQA
17
33
0.764706
47f6fc4b027d2610bf563d6df5a962fa40ebe5c2
625
py
Python
skypilib.py
mirrorcoloured/slcypi
c47975b3523f770d12a521c82e2dfca181e3f35b
[ "MIT" ]
null
null
null
skypilib.py
mirrorcoloured/slcypi
c47975b3523f770d12a521c82e2dfca181e3f35b
[ "MIT" ]
null
null
null
skypilib.py
mirrorcoloured/slcypi
c47975b3523f770d12a521c82e2dfca181e3f35b
[ "MIT" ]
null
null
null
# Simple library for Raspberry Pi use # Sky Chrastina # Python 3.4.2 # change EVERYTHING to import slcypi.x as x # clears up possible future confusion # also add expected hardware specs to specialized functions # classes should inherit classes instead of sub-implementing them? # ultrasonic specs: # https://docs.googl...
32.894737
87
0.8064
322db6476ca826907fa7b02342649e4034562514
407
py
Python
exercises/ja/test_04_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/ja/test_04_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/ja/test_04_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert ( 'spacy.blank("ja")' in __solution__ ), "日本語のパイプラインを作成しましたか?" assert ( "DocBin(docs=docs)" in __solution__ ), "DocBin を正しく初期化していないようです。" assert "doc_bin.to_disk(" in __solution__, "`to_disk` メソッドを呼び出しましたか?" assert "train.spacy" in __solution__, "出力のファイル名を確認してく...
29.071429
73
0.651106
3237f459cfa339333a921b6486c89bc499b74e85
906
py
Python
packages/watchmen-model/test/watchmen_model_test/monitor_log.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/test/watchmen_model_test/monitor_log.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/test/watchmen_model_test/monitor_log.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import datetime from unittest import TestCase from watchmen_model.pipeline_kernel import MonitorLogStage, MonitorLogStatus, PipelineMonitorLog def now(): return datetime.now().replace(tzinfo=None) class MonitorLogTest(TestCase): # noinspection PyMethodMayBeStatic def test_serialize(self): pipeli...
25.885714
96
0.716336
3e9f6905dffe85af986e29339fbb2aa6ef6f2b46
312
py
Python
Language Proficiency/Python/Itertools/Iterables and Iterators/contains_a.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Language Proficiency/Python/Itertools/Iterables and Iterators/contains_a.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Language Proficiency/Python/Itertools/Iterables and Iterators/contains_a.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from itertools import combinations if __name__ == "__main__": N = int(input()) string = ''.join(input().split()) K = int(input()) l = list(combinations(string, K)) l_a = [e for e in l if 'a' in e] total = len(l) total_a = len(l_a) print(total_a/total)
18.352941
37
0.586538
3eae23bad16504b03fc5b32c86d99cf0710a2866
35
py
Python
RDS/circle3_central_services/token_storage/src/utility.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle3_central_services/token_storage/src/utility.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle3_central_services/token_storage/src/utility.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
# singleton storage storage = None
11.666667
19
0.771429
eb43d9269dc63e10ee0bc3dfa94cbb1a1ed131cb
447
py
Python
Coursera/Python Data Structures/Assignment-10.2.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
331
2019-10-22T09:06:28.000Z
2022-03-27T13:36:03.000Z
Coursera/Python Data Structures/Assignment-10.2.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
8
2020-04-10T07:59:06.000Z
2022-02-06T11:36:47.000Z
Coursera/Python Data Structures/Assignment-10.2.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
572
2019-07-28T23:43:35.000Z
2022-03-27T22:40:08.000Z
if __name__ == '__main__': fname = input('Enter file:') if len(fname) < 1: fname = 'mbox-short.txt' handle = open(fname) m = dict() a = dict() for line in handle: line = line.strip() if line.startswith('From ') and len(line.split()) > 2: wd = line.split(...
23.526316
62
0.472036
def636c4f9c8241a317dc243cff181d6994b427c
460
py
Python
files/views.py
m-atisa/Standard-Answer-App
28ad940925f794b1ca0cfd66f850f780aa43b4f8
[ "Apache-2.0" ]
null
null
null
files/views.py
m-atisa/Standard-Answer-App
28ad940925f794b1ca0cfd66f850f780aa43b4f8
[ "Apache-2.0" ]
null
null
null
files/views.py
m-atisa/Standard-Answer-App
28ad940925f794b1ca0cfd66f850f780aa43b4f8
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.db.models import Q from .models import ExcelDocument # Create your views here. def get_file_queryset(query=None): queryset = [] queries = query.split(" ") for q in queries: files = ExcelDocument.objects.filter( Q(title__icontains=q), ...
28.75
45
0.647826
19dd0c0be2d306b9bc98559fdd471d708ffdd8dd
5,103
py
Python
Wordpress-XMLRPC-Brute-Force-Exploit-master/wordpress-xmlrpc-brute-v2.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Wordpress-XMLRPC-Brute-Force-Exploit-master/wordpress-xmlrpc-brute-v2.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Wordpress-XMLRPC-Brute-Force-Exploit-master/wordpress-xmlrpc-brute-v2.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/python # Wordpress XML-RPC Brute Force Amplification Exploit by 1N3 # Last Updated: 20170215 # https://crowdshield.com # # ABOUT: This exploit launches a brute force amplification attack on target # Wordpress sites. Since XMLRPC allows multiple auth calls per request, # amplification is possible and standa...
45.159292
368
0.566529
df98f5fd0a71303d3975404b257fcde20b0fb8c2
47,699
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/landuse/wxgui.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/contributed/sumopy/coremodules/landuse/wxgui.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/contributed/sumopy/coremodules/landuse/wxgui.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
42.779372
165
0.582151
261089e559df0983fea9f60636636fb7079062a5
16,829
py
Python
Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/CrowdStrikeFalconX_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
null
null
null
Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/CrowdStrikeFalconX_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
60
2022-02-24T14:54:47.000Z
2022-03-31T10:38:41.000Z
Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/CrowdStrikeFalconX_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
null
null
null
from CrowdStrikeFalconX import Client,\ send_uploaded_file_to_sandbox_analysis_command, send_url_to_sandbox_analysis_command,\ get_full_report_command, get_report_summary_command, get_analysis_status_command,\ check_quota_status_command, find_sandbox_reports_command, find_submission_id_command, run_polling_...
40.454327
120
0.712579
3e0d54a208f479a9b09a133aaa79eb5939e73b09
52,018
py
Python
Packs/Respond/Integrations/RespondAnalyst/RespondAnalyst.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Respond/Integrations/RespondAnalyst/RespondAnalyst.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Respond/Integrations/RespondAnalyst/RespondAnalyst.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 import json from datetime import datetime import dateparser from typing import List, Dict from math import floor # Disable insecure warnings requests.packages.urllib3.disable_warnings() ''' CONSTANTS/GLOBALS ''' TIME_FORMAT =...
44.804479
124
0.496386
e4ff1c8e9fe31803ec7439590e575b3863cc7382
715
py
Python
source/pkgsrc/devel/py-game/patches/patch-buildconfig_config__darwin.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/py-game/patches/patch-buildconfig_config__darwin.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-game/patches/patch-buildconfig_config__darwin.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-buildconfig_config__darwin.py,v 1.1 2019/06/06 21:46:12 adam Exp $ Use correct libpng. --- buildconfig/config_darwin.py.orig 2019-04-25 06:14:17.000000000 +0000 +++ buildconfig/config_darwin.py @@ -150,7 +150,7 @@ def main(sdl2=False): DEPS.extend([ FrameworkDependency('PORTTIME', 'CoreMi...
44.6875
83
0.629371
90397c6c32b29ed9f18f7c0fa2fd5c99d4851c4b
166
py
Python
online_library/online_library/library/helpers.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
online_library/online_library/library/helpers.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
online_library/online_library/library/helpers.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from online_library.library.models import Profile def get_profile(): profile = Profile.objects.all() if profile: return profile[0] return None
16.6
49
0.692771
5fc702c6c802cd5f4c9e283890493f6c826fa7ec
509
py
Python
API/PlayingWithAPIsUsingPython/01/01.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
1
2022-02-02T21:56:08.000Z
2022-02-02T21:56:08.000Z
API/PlayingWithAPIsUsingPython/01/01.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
27
2020-06-27T23:25:59.000Z
2022-02-27T20:40:56.000Z
API/PlayingWithAPIsUsingPython/01/01.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
null
null
null
import requests try: r = requests.get("https://opentdb.com/api.php?amount=1&category=12&difficulty=easy&type=multiple") # r = requests.get("") print("The response/status code:") print(r.status_code) # Hoping for a 200 response. # The following is the response: # 200 # print(x) except NameE...
36.357143
102
0.685658
0831b029c18c9b9781fa7b1af574cfa7fc65030d
513
py
Python
python_gui_tkinter/Tkinter/TkinterCourse/15_ckbx_adv.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/Tkinter/TkinterCourse/15_ckbx_adv.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/Tkinter/TkinterCourse/15_ckbx_adv.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from tkinter import * master = Tk() def var_states(): print("Limo: %d,\n Lambo: %d" % (var1.get(), var2.get())) Label(master, text="Best car:").grid(row=0, sticky=W) var1 = IntVar() Checkbutton(master, text="Limo", variable=var1).grid(row=1, sticky=W) var2 = IntVar() Checkbutton(master, text="Lambo", variable=var2...
32.0625
78
0.688109
4b551362c29ed01c20f3113611213c34bf4152b4
2,793
py
Python
generate-json.py
lurch/Pinout2
bd3b39de2c053607b9415dd9eb0297a401ba7162
[ "CC-BY-4.0" ]
null
null
null
generate-json.py
lurch/Pinout2
bd3b39de2c053607b9415dd9eb0297a401ba7162
[ "CC-BY-4.0" ]
null
null
null
generate-json.py
lurch/Pinout2
bd3b39de2c053607b9415dd9eb0297a401ba7162
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python import json import markdown import unicodedata import re import sys import pinout import markjaml reload(sys) sys.setdefaultencoding('utf8') lang = "en" if len(sys.argv) > 1: lang = sys.argv[1] pinout.load(lang) overlays = pinout.settings['overlays'] pages = {} def cssify(value): value =...
22.893443
90
0.635159
4b85dc002b09c0836d272d27577d96652a612883
1,344
py
Python
day22/ball.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day22/ball.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day22/ball.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
from turtle import Turtle import random MOVE_DISTANCE = 20 class Ball(Turtle): def __init__(self) -> None: super().__init__() self.x_movement = 10 * random.choice([-1, 1]) self.y_movement = 10 * random.choice([-1, 1]) self.shape("circle") self.color("white") se...
24.436364
117
0.55506
4b8ce4ea3d4071d9329ae9d2f94c0262dd06010b
92
py
Python
2014/10/flood-retreat/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2014/10/flood-retreat/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2014/10/flood-retreat/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 = '1uPq-2T_kw3pca0s-RxHue1j9im5uHDf3_rMyGwJuj20'
23
68
0.826087