repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MLDSAI/VisionTracing | 15,685,220,607,461 | 2fb72052cd79c3f464b29859604ad643f9a18d6d | e03ec5eb75fed31ad4fe543241ed4f626119fe4f | /vision.py | df995f87212e137ce7a342a86f0356f95bea31b6 | [] | no_license | https://github.com/MLDSAI/VisionTracing | c437f3117a6ddde0db98c739ba259be9d4da8577 | f852b92863b66f03c471e3cdac81479c0c5aea74 | refs/heads/master | 2022-12-16T17:51:51.688631 | 2020-08-25T19:58:24 | 2020-08-25T19:58:24 | 289,623,723 | 0 | 0 | null | false | 2020-09-11T17:27:17 | 2020-08-23T05:40:00 | 2020-08-26T18:39:56 | 2020-09-11T17:21:10 | 2,416 | 0 | 0 | 1 | Python | false | false | import os
import cv2
import numpy as np
import torch
from detectron2 import model_zoo
from detectron2.engine import DefaultPredictor
from detectron2.config import get_cfg
from loguru import logger
from tqdm import tqdm
from PIL import Image
import tracking
def get_tracking_video(fpath_video):
logger.info(f'get_t... | UTF-8 | Python | false | false | 4,021 | py | 16 | vision.py | 8 | 0.626461 | 0.615519 | 0 | 131 | 29.694656 | 106 |
msr2009/SCRIPTS | 8,246,337,221,398 | cb55a4d53f7991ff1fb4aa337f0bec20f696046e | 19dab019a902783233e4b3115aecbc015a5aa73e | /count_barcodes.py | b9427355d12e8c2ef503aedfdd3740f186f32f3a | [] | no_license | https://github.com/msr2009/SCRIPTS | 1a0308737c71108eb4051a1d88c3c449e64fccee | 42025ac67abe48a298858590ed29df033c8cd93f | refs/heads/master | 2021-01-18T21:30:08.567836 | 2017-08-15T20:44:42 | 2017-08-15T20:44:42 | 16,288,634 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
comments
Matt Rich, DATE
"""
def main(f_in):
barcodes = {}
for read in read_fastq(f_in):
if read[1] in barcodes:
barcodes[read[1]] += 1
else:
barcodes[read[1]] = 1
for b in barcodes:
print "\t".join([b, str(barcodes[b])])
if __name__ == "__main__":
from optparse import OptionParser
from ... | UTF-8 | Python | false | false | 531 | py | 179 | count_barcodes.py | 169 | 0.615819 | 0.606403 | 0 | 30 | 16.633333 | 92 |
andreykirov84/Programming_Fundamentals_with_Python | 17,308,718,242,165 | cd5cbcbe8c17b71b9cfb14b396e5b4de504e9622 | 8610b613f7a5b5fb4b9acd07693b11fef2885c52 | /Python_Fundamentals/Programming Fundamentals Mid Exams/03_Programming_Fundamentals_Mid_Exam_Retake/02_solution.py | 3e42a5d0fc3ca077ffa6cee41a52dfef7aec97d4 | [] | no_license | https://github.com/andreykirov84/Programming_Fundamentals_with_Python | 3f7dd2a4e4d90c154596e7e42df0a0a335968f43 | 5f178d16401b900af9704564e614a3343a18dbe2 | refs/heads/master | 2023-08-29T17:10:18.384225 | 2021-10-27T10:12:41 | 2021-10-27T10:12:41 | 361,666,875 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | ll = input().split(' ')
ll = [int(x) for x in ll]
target = 0
command = input()
while command != 'End':
command = int(command)
if command < len(ll) and ll[command] != -1:
target_value = ll[command]
for i in range(len(ll)):
if ll[i] != -1:
old_value = ll[i]
... | UTF-8 | Python | false | false | 698 | py | 330 | 02_solution.py | 326 | 0.448424 | 0.441261 | 0 | 24 | 26.666667 | 52 |
mesoylu/swe573 | 12,455,405,210,108 | 574912f2c391b5f84b45189add03ee3bcec016a5 | 512dd1bf29d237d28bc3a5d06f3abf30c9bcd563 | /backend/community/migrations/0041_community_is_archived.py | 05a90d952c93ae5acf23427200bb72617528d59d | [] | no_license | https://github.com/mesoylu/swe573 | 4e058c6e31e7ca67cf47d053ef32fd1d1b8ec51f | 3d4a30bc59ce9a5f2930582d8cf05735813f12e9 | refs/heads/master | 2022-05-08T08:20:48.974719 | 2019-12-24T14:14:20 | 2019-12-24T14:14:20 | 210,375,635 | 0 | 0 | null | false | 2022-04-22T22:58:49 | 2019-09-23T14:25:40 | 2019-12-24T14:14:22 | 2022-04-22T22:58:48 | 2,995 | 0 | 0 | 13 | CSS | false | false | # Generated by Django 2.2.6 on 2019-11-23 18:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('community', '0040_datatype_date_created'),
]
operations = [
migrations.AddField(
model_name='community',
name='is_ar... | UTF-8 | Python | false | false | 400 | py | 84 | 0041_community_is_archived.py | 44 | 0.6 | 0.5525 | 0 | 18 | 21.222222 | 53 |
Edi31/django-livesettings3 | 9,509,057,611,133 | 7d78c6e0a7deab393401d399d0540bd59022c78e | d58b4d5a4ea4385c50d1b33301e1099ffe9dfb2b | /test-project/test_project/urls.py | 653df3aace3d728f2f9e7384fed289006f49ebf7 | [
"BSD-2-Clause"
] | permissive | https://github.com/Edi31/django-livesettings3 | 5dfabf5962f057f6703357c22c260b78c3f09e51 | 4f621d2183e090c8d2afc36f1fc71b513ad2cf78 | refs/heads/master | 2021-04-11T10:04:16.072582 | 2020-03-21T16:07:00 | 2020-03-21T16:07:00 | 249,009,936 | 0 | 0 | NOASSERTION | true | 2020-03-21T15:57:38 | 2020-03-21T15:57:38 | 2020-02-03T20:50:14 | 2020-01-18T21:56:20 | 697 | 0 | 0 | 0 | null | false | false | from localsite import views
from django.contrib.auth import views as auth_views
from django.conf.urls import url, include
from django.conf import settings
from django.contrib import admin
from django.views import static
admin.autodiscover()
urlpatterns = [
url(r'^settings/', include('livesettings.urls')),
ur... | UTF-8 | Python | false | false | 589 | py | 3 | urls.py | 3 | 0.713073 | 0.713073 | 0 | 17 | 33.647059 | 112 |
vlmarcelo/Sistema_Ugel | 712,964,610,694 | d58ce8f0091d18ec895372f5cb6746c912afe8a0 | 60b85430f588f60899228dd0d179d44c0d9c96e8 | /entidades/forms.py | 18637dcc35292054280efd1b983c3ccc15b1bb46 | [] | no_license | https://github.com/vlmarcelo/Sistema_Ugel | c69afa5d333fd528fa8e8635e801d9427ecd9851 | e69e5678a18114e4a8972a5f05c1d1b4f187d282 | refs/heads/master | 2020-04-19T04:36:57.224195 | 2016-08-23T05:32:15 | 2016-08-23T05:32:15 | 66,334,215 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- encoding: utf-8 -*-
from django import forms
from .models import Entidad
from django.forms.formsets import formset_factory
class EntidadModelForm(forms.ModelForm):
class Meta:
model = Entidad
fields = [
'clase_entidad', 'tipo_entidad', 'nombre','siglas', 'documento_identificacion',
'numero_... | UTF-8 | Python | false | false | 1,504 | py | 130 | forms.py | 97 | 0.615027 | 0.614362 | 0 | 33 | 44.484848 | 89 |
Inxious/Rarm | 9,758,165,718,461 | b7c3d1418e252796d7badd08145ea93463731885 | 7eb68b2690dab960935f86f15c43cef570f0ddb3 | /frame/SetupProcess_Page.py | 8b2d9a72e4158e4bbc7918650d86417f6448fa8e | [] | no_license | https://github.com/Inxious/Rarm | 2c550e67bc45dfb7065de312ba48beead9d8a23b | 7787566df5ac6bde50c53b91ec4f8a1729b38af5 | refs/heads/master | 2020-03-24T16:05:15.122559 | 2018-07-30T02:07:33 | 2018-07-30T02:07:33 | 142,812,310 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # create a background image on a wxPython panel
# and show a button on top of the image
import wx
import os
import wx.dataview
from copy import deepcopy
from numpy import mean,array
import copy
class Setup_Process(wx.Frame):
"""class Panel1 creates a panel with an image on it, inherits wx.Panel"""
... | UTF-8 | Python | false | false | 77,103 | py | 22 | SetupProcess_Page.py | 19 | 0.57667 | 0.544635 | 0 | 1,637 | 45.078192 | 146 |
huangleiCCIE/Pythoncentos | 15,968,688,450,393 | a05f018cbeee752caa4949889c1ca5baa67de9b3 | 01e3274c6f5af89fb9b6d935079990445db725ed | /Python_Practice/basic knowledge.py | 538939cbec1cfe38b1fcad2f1fb12a8eb4ced58b | [] | no_license | https://github.com/huangleiCCIE/Pythoncentos | 9955ed1e87ed60f5f6c0fc301a30efb337a3f3cc | 8ec5403ad3c791b97bfc18c90a4fd0ed9635c8b2 | refs/heads/master | 2020-09-27T21:28:02.161222 | 2019-12-09T08:44:46 | 2019-12-09T08:44:46 | 211,068,532 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # name='huang lei'
# print(name.title()) #title()只是将首字母大写
# name='Huang Lei'
# print(name.upper()) #upper()将字符串所有字符大写
# print(name.lower()) #lower()将字符出所有字符小写
# first_name='huang'
# last_name='lovelace'
# full_name=first_name+' '+last_name
# message='Hello,'+full_name.title()
# print(message)
# print('\thuang... | UTF-8 | Python | false | false | 954 | py | 55 | basic knowledge.py | 55 | 0.666197 | 0.66338 | 0 | 24 | 28.625 | 85 |
LegeSto/Practice | 2,181,843,391,065 | bd6e34b1243c65259161f853f5649d5e168d2cdc | 80579a1511d3e9fd2eec0e5cc9d868449a0a712f | /this.py | 3aca2013c9e0a77f4fcb4990f8442baf066ca14d | [] | no_license | https://github.com/LegeSto/Practice | cd9a54c89448dcd60585c816578bc7f69c19b414 | 010c7b97ff7620c93733bd838f1209d18788c1ae | refs/heads/master | 2020-08-02T13:12:17.202662 | 2019-09-27T16:59:33 | 2019-09-27T16:59:33 | 211,364,154 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #first
import cv2
import numpy as np
def get_thresh(image):
hls = cv2.cvtColor(img, cv2.COLOR_BGR2HLS)
cv2.imshow("help1", img)
cv2.waitKey(0)
(h1, l1, s1) = (0, 163, 0)
(h2, l2, s2) = (255, 255, 255)
h_min = np.array((h1, l1, s1), np.uint8)
h_max = np.array((h2, l2, s2), np.... | UTF-8 | Python | false | false | 3,753 | py | 1 | this.py | 1 | 0.593125 | 0.523848 | 0 | 120 | 29.291667 | 84 |
7ws/django-emailer | 12,309,376,300,649 | f2b673ea4353bf18200146a4f593d3051b78a10c | 68ab4d4f210d5e24875178948c495bf1e1a16f20 | /emailer/tests.py | 5d90e5803836bcf4150e027cb65442f14af1b5d6 | [
"MIT"
] | permissive | https://github.com/7ws/django-emailer | 755f1124c03f3554b2659042966a897dc33aa101 | babf900f618a04fecbcb8caa5cadc638a1339178 | refs/heads/master | 2020-05-18T03:39:55.100218 | 2014-09-24T21:47:17 | 2014-09-24T21:47:17 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.core import mail
from django.core.exceptions import ValidationError
from django.test import TestCase
from emailer.models import ConnectionProfile, EmailTemplate
class EmailTransportTestCase(TestCase):
fixtures = ['email_templates']
def test_connection(self):
# wrong everything
co... | UTF-8 | Python | false | false | 1,636 | py | 7 | tests.py | 4 | 0.634474 | 0.627139 | 0 | 46 | 34.565217 | 74 |
darioAnongba/TCP-Labs | 10,024,453,707,128 | d292dbeb547158262da5038bf80cbdf29c4a254c | 8ef916380e97076c07720058c524260ca3af23ae | /Lab3_226371_229049/Part6_226371_229049 | d8e7977fa4b0832d94619fc5b866d52722db0013 | [] | no_license | https://github.com/darioAnongba/TCP-Labs | ead86c50f0d0da75feb15610bffedb5fbfa52f32 | 88e9d067dabbce79964f00703832ed26bf88255c | refs/heads/master | 2021-01-12T10:05:35.245801 | 2016-12-13T12:52:59 | 2016-12-13T12:52:59 | 76,358,427 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
import re
import math
import socket
import ssl
import sys
HOST_PORT = ('localhost', 5003)
CERT = '229049_cert.pem'
KEY = '229049_key.pem'
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
context.load_cert_chain(CERT, keyfile=KEY)
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server ... | UTF-8 | Python | false | false | 686 | 15 | Part6_226371_229049 | 13 | 0.651603 | 0.61516 | 0 | 38 | 17.052632 | 58 | |
microsoft/ContextualSP | 9,251,359,590,914 | 69838dcc85a9408281d34ef795ed85b0e8f281d0 | 5f1881006aaf4f3c2515f375ad29c15fd6612de2 | /poset_decoding/traversal_path_prediction/MatchZoo-py/tests/data_pack/test_datapack.py | 123445cee0efd76a53db1ec19968d8980bcdf8b2 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | https://github.com/microsoft/ContextualSP | 4edb598d40f683f9a1143b92a9d24e1066d51ec4 | 4198ebce942f4afe7ddca6a96ab6f4464ade4518 | refs/heads/master | 2023-08-02T22:08:40.503853 | 2023-07-14T07:22:50 | 2023-07-14T07:22:50 | 255,534,819 | 332 | 70 | MIT | false | 2023-07-25T19:23:48 | 2020-04-14T07:01:54 | 2023-07-24T09:57:19 | 2023-07-25T19:23:47 | 74,442 | 316 | 60 | 15 | Python | false | false | import shutil
import pandas as pd
import pytest
from matchzoo import DataPack, load_data_pack
@pytest.fixture
def data_pack():
relation = [['qid0', 'did0', 1], ['qid1', 'did1', 0]]
left = [['qid0', [1, 2]], ['qid1', [2, 3]]]
right = [['did0', [2, 3, 4]], ['did1', [3, 4, 5]]]
relation = pd.DataFrame(... | UTF-8 | Python | false | false | 1,301 | py | 680 | test_datapack.py | 474 | 0.601845 | 0.572636 | 0 | 42 | 29.97619 | 79 |
DanilZittser/cv2_shape_predictor | 17,746,804,873,088 | 31289083bb54750b54f92db7c2c22ef1bc853568 | 21ca8e93ccd947356670a6bcaf27a3afe7a3271a | /src/tests.py | 53d2f43c21448334a7cf7e5566f18c8f09cf70cc | [] | no_license | https://github.com/DanilZittser/cv2_shape_predictor | b9abe86678af46944d5e224a022bb2618a87bf73 | 8cf728d353eece43588b5d357575dee43287092b | refs/heads/main | 2023-05-04T11:48:10.111228 | 2021-05-26T10:37:50 | 2021-05-26T10:37:50 | 370,994,330 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import cv2
import numpy as np
import pytest
from fastapi.testclient import TestClient
from nptyping import NDArray
from main import app
from models import NPIMAGE_ERRORS
from predictor import shape_predictor
IMAGE_H = 500
IMAGE_W = 500
client = TestClient(app)
@pytest.fixture(scope='function')
def rectangle() -> ... | UTF-8 | Python | false | false | 2,187 | py | 11 | tests.py | 5 | 0.641975 | 0.599909 | 0 | 76 | 27.776316 | 94 |
bonheurgirl/python.code | 15,728,170,268,570 | 5a7cc3a47111ed50675b9bd128f7fb2a7d0becdd | e1764d4dab4b6f2b79d7dbe22936a74ce85c4da5 | /Chapter9_Dictionaries.py | 5230f06b6638064b5d1f692288c461fe19425590 | [] | no_license | https://github.com/bonheurgirl/python.code | a3a74c891ae4042e0cfe301870767fcd2c828473 | 434b79a0a588d60c88f2d616829d3e9a4153aba8 | refs/heads/master | 2022-06-21T14:46:09.815884 | 2022-05-21T09:33:37 | 2022-05-21T09:33:37 | 51,653,260 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #Chapter 9 Dictionaries
"""
A collection is nice because we can put more than one value in them and
carry them all around in 1 convenient package.
We have a bunch of values in a single 'variable'
We do this by having more than one place 'in' the variable.
We have ways of finding the different places in th... | UTF-8 | Python | false | false | 6,798 | py | 28 | Chapter9_Dictionaries.py | 23 | 0.64975 | 0.628714 | 0 | 286 | 21.748252 | 87 |
gaoyunqing/MetReg | 13,915,694,080,434 | 3973bfa78e911ed2ff1ba36565a727496dfd306d | 79ee4a702b541ad4238983d3311f6919f6067e93 | /tests/test_models_ml.py | 0d0e0e67996fd68b7e655be81732f9d0518a63da | [
"MIT"
] | permissive | https://github.com/gaoyunqing/MetReg | edf428bdda1c1cc0666abec7f0fb39a2bb410995 | 5bcfd68e30477f36736e040e1cdcd26086d325c1 | refs/heads/master | 2023-03-11T18:14:08.615750 | 2021-02-26T06:22:31 | 2021-02-26T06:22:31 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import sys
sys.path.append('../')
import numpy as np
from MetReg.models.ml.elm import ExtremeLearningRegressor
from MetReg.models.ml.gp import GaussianProcessRegressor
from MetReg.models.ml.knn import KNNRegressor
from MetReg.models.ml.linear import (BaseLinearRegressor, ElasticRegressor,
... | UTF-8 | Python | false | false | 3,077 | py | 62 | test_models_ml.py | 55 | 0.605785 | 0.58986 | 0 | 131 | 22.480916 | 75 |
thebadaruddinshaikh/CodeChef | 16,166,256,927,016 | 5099ab52696a6938dd0e057f1a6cc50c4f1ead55 | 88139396afc49e7b187f6936e0a9818aeb2286e0 | /BEGNumberMirrior.py | 90e60094f9f7c121bffc6fb5ba49e121a2c2f33a | [] | no_license | https://github.com/thebadaruddinshaikh/CodeChef | b0289bcaea83a245a1a149f18b1faecfc6c41848 | 069db34e564d3ae208a9df5eed820202b10d27bd | refs/heads/master | 2020-04-12T22:20:26.764006 | 2019-07-07T11:04:01 | 2019-07-07T11:04:01 | 162,787,615 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | while True:
x = int(input())
print(x)
| UTF-8 | Python | false | false | 45 | py | 12 | BEGNumberMirrior.py | 12 | 0.533333 | 0.533333 | 0 | 3 | 12.333333 | 17 |
shafferpr/flask_practice | 14,671,608,283,623 | d888f333a666992bf464b122913ed19d23f17610 | 935bcab71ba763f438a33d803ab028263f3ffc35 | /bokehplot.py | 6b0567d9e9d5b35fb9ba171944131417389f5b0a | [] | no_license | https://github.com/shafferpr/flask_practice | 384a86b514e77469682157591fbc5695344e2f22 | 956f9fe37813949bd0ed86d43b68f9b3ff58d17f | refs/heads/master | 2021-01-20T15:26:27.709968 | 2017-05-09T16:30:19 | 2017-05-09T16:30:19 | 90,767,860 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask,render_template,request,redirect
import requests
from bokeh.plotting import figure
from bokeh.embed import components
stock = 'aapl'
api_url = 'https://www.quandl.com/api/v1/datasets/WIKI/%s.json' % stock
session = requests.Session()
session.mount('http://', requests.adapters.HTTPAdapter(max_re... | UTF-8 | Python | false | false | 600 | py | 2 | bokehplot.py | 2 | 0.703333 | 0.7 | 0 | 19 | 30.578947 | 71 |
satnet-project/server | 8,469,675,536,112 | b2c247ab343232f0f095a3b4fbf5cfe3964d59fc | 400d234a475c7e6c61ef87b8cfda2c34cb363ae1 | /services/configuration/models/segments.py | 2badf48d231560d450c5799e7d44d2d9458cc6d6 | [
"Apache-2.0"
] | permissive | https://github.com/satnet-project/server | 94a374f916b42a4dd57618eb092ee65c271777a8 | 3bb15f4d4dcd543d6f95d1fda2cb737de0bb9a9b | refs/heads/master | 2022-07-20T11:42:52.821489 | 2017-12-10T15:41:22 | 2017-12-10T15:41:22 | 13,973,082 | 4 | 2 | Apache-2.0 | false | 2022-07-06T19:51:26 | 2013-10-30T00:44:48 | 2017-12-12T11:41:54 | 2022-07-06T19:51:26 | 71,603 | 2 | 0 | 16 | Python | false | false |
from django.core import validators
from django.db import models
from django_countries import fields
import logging
from services.accounts import models as account_models
from services.common import gis
from services.configuration.models import tle as tle_models
"""
Copyright 2013, 2014 Ricardo Tubio-Pardavila
... | UTF-8 | Python | false | false | 10,333 | py | 247 | segments.py | 189 | 0.621988 | 0.618988 | 0 | 312 | 32.115385 | 79 |
disssid/Python-Test | 17,875,653,907,729 | 33f1782d6affcc3821a643fcc917d683c8afdeb2 | 4bb6cd9413abbcf7a79e62ca000e1382a7ad1c16 | /ipc-test/src/process3.py | e69ef59aa2d38cb8ee9263fa64aa4145536d325a | [] | no_license | https://github.com/disssid/Python-Test | 99161b496a88a2a26fb01111b9cb8ec0969b43cf | 19eb5b211c589145cbc8eaa361408e57ecc587da | refs/heads/master | 2021-01-11T14:58:55.612653 | 2017-07-07T18:09:58 | 2017-07-07T18:09:58 | 80,270,229 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
Created on Jan 27, 2017
@author: sid
'''
from time import sleep
class process2:
name =""
def __init__(self,name):
name = self.name
def process2(self,q):
for i in xrange(1,10):
q.put(i)
sleep(2) | UTF-8 | Python | false | false | 273 | py | 5 | process3.py | 4 | 0.483516 | 0.43956 | 0 | 17 | 15.117647 | 34 |
physicsistic/pythonbee | 8,375,186,252,465 | db6de927b08ef94346479d5128c4b069e2d5e1cd | 9d623cbed88230a110be05a15e1b6b054ab0440b | /testing/solutions/team30/6/code.py | 93e871d8658a2981770a896b5fed871966d37a17 | [] | no_license | https://github.com/physicsistic/pythonbee | 37c81523a6080a74d3ff72883b84afe492fea466 | fefd0f5b612762fb50c90b6c8ff82628c186a7b0 | refs/heads/master | 2021-01-18T04:26:18.833067 | 2013-02-05T05:54:53 | 2013-02-05T05:54:53 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def fun(l):
m=[]
for i in l:
m.prepend(i)
return m
| UTF-8 | Python | false | false | 56 | py | 161 | code.py | 146 | 0.553571 | 0.553571 | 0 | 5 | 10.2 | 14 |
jhb/noscenda.cachefix | 12,678,743,482,271 | 7d634413a1558301f6d81a7bbf696a723309c720 | 3a56ca64089ce32d76272c7c629b69e24a2788a1 | /noscenda/cachefix/browser.py | d06e682d3a9a7f2e58f4c5c6453f4d6e00a1fbd8 | [] | no_license | https://github.com/jhb/noscenda.cachefix | f7f4fe162b0edd746716cd2cd9739b4bfde5bafa | 25d84289bb9784209ddee9c3ee4852c3376b8ab2 | refs/heads/master | 2020-05-26T00:33:54.246250 | 2013-10-24T15:06:40 | 2013-10-24T15:06:40 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from zope.publisher.browser import BrowserView
from Products.CMFCore.utils import getToolByName
from zope.annotation.interfaces import IAnnotations
class CacheFix(BrowserView):
def publishTraverse(self,request,name):
#import ipdb; ipdb.set_trace()
if not hasattr(self,'subpath'):
self.s... | UTF-8 | Python | false | false | 906 | py | 4 | browser.py | 2 | 0.628035 | 0.626932 | 0 | 28 | 31.142857 | 60 |
Mohit977/Crime-Analysis | 2,637,109,925,204 | 50514d3f85a436b399de4eade12ee04375bbb30e | c453f85f63051c49659e55522679a5f35c4718d0 | /Abbi_Mohit_Capstone_Project.py | 7587ee4e63c8d5c5422c02e34ba46df4bc028b1b | [] | no_license | https://github.com/Mohit977/Crime-Analysis | dbb4dd4cac3d17dc9b274133e18e3b63fb15ace5 | e1e2c7b3197470ca28e15ed8a867362ed8291a87 | refs/heads/master | 2020-06-18T23:55:16.503882 | 2019-07-12T02:50:47 | 2019-07-12T02:50:47 | 196,497,366 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[1]:
def data_type(df):
sol1=df.dtypes
return sol1
def data_info_shape(df):
sol2=df.info()
sol3=df.shape
return sol2, sol3
def null_values(df):
null1 = df.isna().sum()
return null1
def data_desc(df):
sol3=df.describe(include='all')
r... | UTF-8 | Python | false | false | 736 | py | 2 | Abbi_Mohit_Capstone_Project.py | 1 | 0.657609 | 0.63587 | 0 | 35 | 19.885714 | 231 |
lidongze6/leetcode- | 12,773,232,786,235 | 8201c062f25a7d413695a43fe90339e0212fdf70 | 372185cd159c37d436a2f2518d47b641c5ea6fa4 | /35. 搜索插入位置.py | 54d67def2224188cadba65b1a8d7e1fd11dfa4f8 | [] | no_license | https://github.com/lidongze6/leetcode- | 12022d1a5ecdb669d57274f1db152882f3053839 | 6135067193dbafc89e46c8588702d367489733bf | refs/heads/master | 2021-07-16T09:07:14.256430 | 2021-04-09T11:54:52 | 2021-04-09T11:54:52 | 245,404,304 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def searchInsert(nums, target):
l, r = 0, len(nums)-1
while l + 1 < r:
mid = l + (r - l) // 2
if nums[mid] == target:
return mid
elif nums[mid] > target:
r = mid
elif nums[mid] < target:
l = mid + 1
if nums[l] == target: return l
if num... | UTF-8 | Python | false | false | 523 | py | 546 | 35. 搜索插入位置.py | 545 | 0.470363 | 0.449331 | 0 | 20 | 24.95 | 34 |
imsrv01/programs | 3,487,513,467,712 | ac5282d86ca2c584c218fd78435462c132a96ce2 | 495553222d2f203b389a8ff4301a9cc95a43c209 | /yield_example.py | 269b118bdc97d5872b013121c50b1f63668b45a0 | [] | no_license | https://github.com/imsrv01/programs | 77be9e4e1be046105f4a6b4f177c436a1cb0ac32 | c9137c0bddd996d6ecaca538f4847aac1ecba14e | refs/heads/master | 2021-06-26T07:56:33.668190 | 2021-01-09T20:40:08 | 2021-01-09T20:40:08 | 191,448,069 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
def first_tennumbers():
i = 0
while i < 10:
i += 1
yield i # execution of the function is halted here, next run of the function, yield results will be remembered and used in calculation..
g = first_tennumbers() # returns a generator object
print(g)
print(next(g)) # first run of the function
pr... | UTF-8 | Python | false | false | 562 | py | 50 | yield_example.py | 50 | 0.699288 | 0.688612 | 0 | 14 | 39.142857 | 156 |
languitar/mdls | 13,640,816,152,033 | e59858419952a5cbb55e03bbe481082faddbb755 | 95fd0832975ce3c66df28fc49c8f1c989ac10c41 | /src/mdls/server.py | a8e3accdb7e63bbcd8a9ba6fa3a45a7dab2a73c4 | [] | no_license | https://github.com/languitar/mdls | 0bb35edf9367f92b733ca3c2806e7f2668e8269c | ec0e9e3d326746707e8aae2846cf6777bbc8a4e6 | refs/heads/master | 2020-03-29T09:52:05.147996 | 2018-09-21T14:51:49 | 2018-09-21T14:51:49 | 149,777,706 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from pathlib import Path
from jsonrpc.dispatchers import MethodDispatcher
from jsonrpc.endpoint import Endpoint
from jsonrpc.streams import JsonRpcStreamReader, JsonRpcStreamWriter
from loggerbyclass import get_logger_by_class
from .completion import HeadingLinkProvider, FootnoteLinkProvider
from .workspace import D... | UTF-8 | Python | false | false | 4,047 | py | 7 | server.py | 5 | 0.591302 | 0.590808 | 0 | 111 | 35.459459 | 78 |
harshitag456/Web_DScrap | 11,536,282,172,211 | 06efce47898944735375dbdd3a0f9e780550f5a5 | 67490cade8dd05d72e36119defdf5ad09e6a56cb | /news.py | 951d9e9bcf8f6103e9bbc5add692f91ef9310649 | [] | no_license | https://github.com/harshitag456/Web_DScrap | 9983320dfcf84eac507798309c28461a67f31c14 | b5297379cfa89dc392b595a3d5432224c89974f8 | refs/heads/master | 2021-05-09T04:10:19.025774 | 2018-01-28T14:24:24 | 2018-01-28T14:24:24 | 119,265,032 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import urllib2
from bs4 import BeautifulSoup
print("Enter the date(DD/MM/YY) to view headlines:")
date = raw_input()
date = date.replace("/","");
url = 'http://www.rediff.com/issues/' + date + 'hl.html'
page = urllib2.urlopen(url);
html = BeautifulSoup(page,"lxml")
count=0
for i in html.find_all('div',attrs={'id'... | UTF-8 | Python | false | false | 497 | py | 2 | news.py | 1 | 0.603622 | 0.589537 | 0 | 21 | 22.619048 | 56 |
Robotislove/Open-World-Semantic-Segmentation | 9,620,726,756,470 | 86245dc429ad592b36bdc6e614535c4b9887e402 | 16839d341a6a3b2caf8e6aaacfa1e1c0c439215f | /anomaly/create_dataset.py | 54b065578ab83f377f06e52cbaded42d53cbc6a5 | [
"MIT"
] | permissive | https://github.com/Robotislove/Open-World-Semantic-Segmentation | 71460af369401791b7d4ed01689347ce47685810 | a95bac374e573055c23220e299789f34292988bc | refs/heads/main | 2023-07-03T02:14:40.569144 | 2021-08-09T15:48:53 | 2021-08-09T15:48:53 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import scipy
import scipy.io as sio
import scipy.misc
from scipy.misc import imread, imsave
import matplotlib
import matplotlib.pyplot as plt
import json
import os
import os.path
from tqdm import tqdm
import re
# Replace the colors with our colors
# This is only used for visualization... | UTF-8 | Python | false | false | 9,569 | py | 18 | create_dataset.py | 14 | 0.506636 | 0.47006 | 0 | 279 | 32.304659 | 125 |
guilhermegreco/asg-automation | 17,841,294,147,928 | 24e6d4e05eb47f02d865509bdb0c537964ac6207 | 4edf4d6927d65341d3487230404d5cf38669630b | /src/attach-eni.py | a9dc3595f9a3e5ea734dca32ed9780e58491b7ee | [] | no_license | https://github.com/guilhermegreco/asg-automation | e71f8c009792e6b6ae9acf5a6258334cc92e11d8 | d04f62527ad7d093dbd05f9880009dc50f467d95 | refs/heads/master | 2023-03-11T05:28:46.495295 | 2021-02-25T17:24:59 | 2021-02-25T17:24:59 | 342,323,408 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import json,logging,os,boto3, string
from botocore.exceptions import ClientError
client_auto_scaling = boto3.client('autoscaling')
client_ec2 = boto3.client('ec2')
logging.basicConfig(format='%(asctime)s [%(levelname)+8s]%(module)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
logger = logging.getLogger(__name__)
logger.... | UTF-8 | Python | false | false | 4,213 | py | 7 | attach-eni.py | 2 | 0.594351 | 0.588417 | 0 | 107 | 38.373832 | 134 |
SterlingYM/PIPS | 2,456,721,310,902 | 707634a74fb22a59075c7c70b45d7fc0f7e3c574 | 02ef3ffb2c0a710f753b593547bbc3ac0bb758dc | /PIPS/periodogram/linalg/linalg.py | 069d6258bbde558b772b3ff53192e362e1ee3737 | [
"MIT"
] | permissive | https://github.com/SterlingYM/PIPS | ba375fee1db977849e09cbb406c1de609a64fabd | b9173d00e1f4c98f689bd8c5ee7d583849bcab47 | refs/heads/master | 2023-03-20T14:41:22.526501 | 2023-03-04T02:49:55 | 2023-03-04T02:49:55 | 272,082,348 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
from scipy.optimize import curve_fit
from multiprocessing import Pool
def periodogram_fast(p_min,p_max,N,x,y,yerr,Nterms=1,multiprocessing=True,custom_periods=None,model='Fourier',repr_mode='chisq',normalize=True,**kwargs):
''' Generates the periodogram based on linear algebra method.
A... | UTF-8 | Python | false | false | 4,480 | py | 59 | linalg.py | 22 | 0.58683 | 0.576339 | 0 | 118 | 36.974576 | 153 |
janetmugogo/SendIT-api | 5,497,558,174,657 | 5b10340f74a8c80d41ec1692962b080408bab891 | ff316a642c9ecfaf5b7586d5f4d0c5e2b79d84cd | /app/tests/test_parcels.py | 4893361227074ba84884bbabfde920a4022591dd | [] | no_license | https://github.com/janetmugogo/SendIT-api | 7dadfe10b2a434390ac191df359e3d0afd5dd7b7 | 7c252d22e0284dd6cef0df0f356f844d6da45cdb | refs/heads/develop | 2020-04-05T00:36:55.044630 | 2018-11-23T07:19:01 | 2018-11-23T07:19:01 | 156,403,895 | 0 | 1 | null | false | 2018-11-23T07:19:02 | 2018-11-06T15:22:26 | 2018-11-20T20:39:06 | 2018-11-23T07:19:01 | 10,329 | 0 | 0 | 0 | Python | false | null | import unittest
import sys
import os
import json
from app.tests.base_test import BaseTest
import pdb
class TestParcel(BaseTest):
def test_create_invalid_order(self):
resp = self.client.post('/api/v2/auth/signup', json=self.register_user)
resp = self.client.post('/api/v2/auth/login', json=self.l... | UTF-8 | Python | false | false | 1,087 | py | 26 | test_parcels.py | 22 | 0.660534 | 0.646734 | 0 | 32 | 32.96875 | 141 |
Iuty/iutylib | 14,388,140,445,363 | 303fc997be99fc7a106371e8b4e09558c11e3ff1 | 6dca81c7387ec92144dd1908855589e1c92c4057 | /IutyLib/encription/encription.py | a3cf72546c3a5c1a727cb5fb98df800dc306b907 | [
"MIT"
] | permissive | https://github.com/Iuty/iutylib | bf2010712e3c9d31f00b3ed1bd0d16ec9c5f6350 | 763972642c536aeec352001e649a884784d19a40 | refs/heads/master | 2023-01-23T13:51:01.365025 | 2020-11-19T06:43:43 | 2020-11-19T06:43:43 | 218,896,116 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from pyDes import des, CBC, PAD_PKCS5
import hashlib
import os
import binascii
import time
# 秘钥
def des_encrypt(s,secret_key):
"""
DES 加密
:param s: 原始字符串
:return: 加密后字符串,16进制
"""
iv = secret_key
k = des(secret_key, CBC, iv, pad=None, padmode=PAD_PKCS5)
en = k.encrypt(s, padmode=PAD_PKC... | UTF-8 | Python | false | false | 1,122 | py | 50 | encription.py | 48 | 0.593511 | 0.571565 | 0 | 49 | 20.408163 | 61 |
kavalle/valecito-hair | 9,938,554,330,583 | a29686c4e0f67e2330ef9f445f45e5d2cbf83156 | befcc14dedfe0c6fca8113461ce6ad14ca0d75a9 | /main/tests.py | 3ebcbbad4258ed492fe6509fec0c1ec9f9d71ced | [] | no_license | https://github.com/kavalle/valecito-hair | fc746428c249af4d62d80f1f904cdf84d587a01a | 4c8744b6fa670c0b87eb89a3a34f692126c5bd4b | refs/heads/master | 2023-01-21T09:33:19.831002 | 2020-11-28T19:23:23 | 2020-11-28T19:23:23 | 310,471,552 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.test import TestCase
from .models import Reserva
class BasicTest(TestCase):
def test_fields(self):
nueva_reserva = Reserva(
nombre_completo = 'Sady Bachmann',
correo = 'sa.bachmann@alumnos.duoc.cl',
telefono = '981648865',
servicio = 'Corte de pelo',
hora = '... | UTF-8 | Python | false | false | 777 | py | 22 | tests.py | 12 | 0.593308 | 0.566281 | 0 | 27 | 27.814815 | 47 |
apuneet/KG-REP | 5,738,076,347,771 | 6a53b531a3c80aea25cc933f88654c4a472368fa | 7ef59f014401a7bfe88d395074fa74323b6a83ed | /KG-REP/kgrep/model_stqa.py | d76a168e4d549e05c54eaf65b1e1f880533ea8a9 | [] | no_license | https://github.com/apuneet/KG-REP | 2f8865e4e1f4a6eca0d35900efc2fd9a69358773 | 13a83fc3617ae0a4127d3dde1bd5aaf2a3b76a31 | refs/heads/master | 2020-03-31T19:58:48.362653 | 2019-01-13T11:44:49 | 2019-01-13T11:44:49 | 152,519,853 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from keras import callbacks
from keras.utils import plot_model
import load_prepare_data
import run_model_eval
from keras import backend as ke
import os
import sys
import utils.basics as bas_utils
import mods.bidi_lstm_s2s as bidi_s2s
from shutil import copyfile
lfn = None
cos_sim, tf_sess, a, b = None, None, None, N... | UTF-8 | Python | false | false | 8,089 | py | 44 | model_stqa.py | 40 | 0.582025 | 0.574607 | 0 | 188 | 42.026596 | 129 |
SapnaDeshmuk/if_else_python | 2,869,038,196,781 | e9899056addc76a373ae717736b8131440628e02 | 7e6a5986e3492f88d229eef6727f49ad7af4ea04 | /ksis5.py | c32777507b69d998d893e75ec23a01cbbb4c33bb | [] | no_license | https://github.com/SapnaDeshmuk/if_else_python | 39cf8edcf1be32bc35a3130a63f1ee6157a74390 | 5b697b09ab73a8f6d04be12ed6f810d5636d5c46 | refs/heads/master | 2020-06-12T21:17:30.403248 | 2019-06-29T16:45:52 | 2019-06-29T16:45:52 | 194,427,876 | 0 | 2 | null | false | 2019-10-08T17:45:50 | 2019-06-29T16:44:26 | 2019-06-29T16:46:57 | 2019-06-29T16:46:56 | 2 | 0 | 1 | 1 | Python | false | false | a=int(raw_input("enter value"))
b=int(raw_input("enter value"))
c=int(raw_input("enter value"))
if a<b and a<c:
print a
elif b<a and b<c:
print b
else:
print c | UTF-8 | Python | false | false | 162 | py | 17 | ksis5.py | 17 | 0.666667 | 0.666667 | 0 | 9 | 17.111111 | 31 |
xW3CTORx/Kalkulacka-s-GUI | 4,166,118,286,100 | 5f4e3832df76365535be92d9e89527ebefb92fa6 | b2661865f82b6a72c70d1845720fcdf14ace5b1c | /kalkulacka s gui 2.py | bee00828c218b7dc259b6371bf6ebfabfcb63c05 | [] | no_license | https://github.com/xW3CTORx/Kalkulacka-s-GUI | 7a933073572413b27f7fd628764714eb6516b6e0 | a8a9818c38638d768aecbce4fbe27bc1a0ed276d | refs/heads/main | 2023-05-02T12:45:37.657045 | 2021-05-22T17:33:39 | 2021-05-22T17:33:39 | 369,869,134 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import tkinter
cn = tkinter.Canvas()
cn.pack()
cn.config(height= 265, width= 225, bg = 'gray')
cnt = cn.create_text
cnr = cn.create_rectangle
cislo1 = 0
cislo2 = 0
znamienko = 0
vysledok = 0
cnr(15, 35, 220, 70, outline = 'gray35', fill = 'white', width = 2, tags= 'okno')
cnt(115, 53, text= cislo1, fon... | UTF-8 | Python | false | false | 6,866 | py | 1 | kalkulacka s gui 2.py | 1 | 0.552724 | 0.472619 | 0 | 227 | 28.246696 | 100 |
anawas/starfield | 17,901,423,718,891 | 87abbdae1a5887753cd7da8aa53792bad396e979 | 038a4beff22ffddbf8474f6e9c2b85751c65e0f6 | /app.py | 784535bf2a9a76badb9fda74ee5505fe49156269 | [
"MIT"
] | permissive | https://github.com/anawas/starfield | db85cf440ec60db16a7e5ee63713938a0b545317 | 770e326bd3c130da59d3278b3fd7c0721e2ff597 | refs/heads/main | 2023-01-18T22:24:15.139952 | 2020-11-29T20:38:27 | 2020-11-29T20:38:27 | 316,454,782 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pygame
import numpy as np
import random
from game_objects import HorizontalStar
WIDTH = 800
HEIGHT = 800
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
MAX_STARS = 800
starfield = []
def event_handler(event_queue):
for event in event_queue:
if event.type == pygame.QUIT:
return False
... | UTF-8 | Python | false | false | 1,258 | py | 3 | app.py | 2 | 0.596184 | 0.576312 | 0 | 57 | 21.087719 | 73 |
EDataScriptware/SES | 13,365,938,266,543 | 6906a7d89d8ad925d3044800106a92b335f76242 | dca6b359d0a3f5aec9badd4c06e1647399fd3ba6 | /setup.py | c0797a025c4d0143e4e2229e5c8e07c27d259087 | [] | no_license | https://github.com/EDataScriptware/SES | 9318c2391237226407c9bcf0d0ec4207de152635 | 42525613986ff162002c2d106a8ed6016a98707e | refs/heads/main | 2023-07-02T04:19:23.989161 | 2021-08-11T17:50:26 | 2021-08-11T17:50:26 | 389,039,707 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from distutils.core import setup
import py2exe
Mydata_files = [
('util', ['util/profile.json']),
('util', ['util/game_commands.json'])
]
setup(
options = {'py2exe': {'bundle_files': 1, 'compressed': False}},
console=['GUI.py'],
data_files = Mydata_files,
)
| UTF-8 | Python | false | false | 292 | py | 12 | setup.py | 7 | 0.585616 | 0.575342 | 0 | 14 | 19.857143 | 71 |
Rus-Picasso/gb-python | 11,072,425,707,216 | afeaf1341d94113c1924701ccf0540cdaef03f1f | 054dc339b3d3b391d693be0e8ee473ac5040d52a | /H1[1].py | c9db278fc277d81f3b84202e3a1fb7f5e6864e96 | [] | no_license | https://github.com/Rus-Picasso/gb-python | ff2aa065854c63736653835dfa1fd0a58af39d72 | 7d2cc176636653f82e15d9b8d20a59efc293a3a6 | refs/heads/master | 2022-12-16T03:12:52.431221 | 2020-09-21T12:04:51 | 2020-09-21T12:04:51 | 291,006,163 | 0 | 0 | null | false | 2020-08-28T10:46:10 | 2020-08-28T09:27:17 | 2020-08-28T10:31:03 | 2020-08-28T10:31:00 | 5 | 0 | 0 | 1 | Python | false | false | # Поработайте с переменными, создайте несколько, выведите на экран, запросите у пользователя несколько чисел и строк и сохраните в переменные, выведите на экран.
a = 1
b = 2
c = 3
d = a + (b * c)
print(a, b, c, d)
name = input('Введите Ваше имя: ')
name = 'Привет ' + name + '! Меня зовут Альберт!'
print(name)
case =... | UTF-8 | Python | false | false | 576 | py | 10 | H1[1].py | 10 | 0.676166 | 0.668394 | 0 | 15 | 24.8 | 161 |
freQuensy23-coder/spyTeleBot | 5,944,234,767,867 | ba0be5a4764048a3a509f5e04078e5b04ae35fc4 | 9495161565a80c5ae21e6c99822ac03325305257 | /Exceptions.py | f03454c877e041cff6b8af52cd69fcecb52dd302 | [] | no_license | https://github.com/freQuensy23-coder/spyTeleBot | e17b54c0287e1d6aa25a48a8ba00e92418253a87 | 52d587376be510ca8c39efdb311346fa24c253e1 | refs/heads/main | 2023-06-07T19:56:40.484735 | 2021-06-24T20:09:12 | 2021-06-24T20:09:12 | 364,803,932 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
class NoSuchRoomError(Exception):
pass # TODO Add logging to all Exceptions
# TODO Add exceptions to Exceptions file
class NotEnoughPlayersError(Exception):
pass
class GameAlreadyStartedError(Exception):
pass
class CanNotEnterRoomError(Exception):
pass
| UTF-8 | Python | false | false | 281 | py | 4 | Exceptions.py | 3 | 0.758007 | 0.758007 | 0 | 15 | 17.666667 | 46 |
ExoBen/university-project | 16,406,775,073,621 | 8cc8c96520379d7054e7e33b16073b04d4f5cd68 | 0c24b49089017a0f6c9fce2c95f8ca57cf1da71e | /dev/webtulip/tulip_wrapper/tlp_json_converter.py | 6cc8a1b5eeb569909ff10ec018189ccfd1da9da4 | [] | no_license | https://github.com/ExoBen/university-project | 5aff2470e378b646833a419f8bcc294233713c7e | 9e252d5c395d7d6d3a2b1d8cc231462a11ab5efd | refs/heads/master | 2021-03-19T16:45:21.784945 | 2018-10-18T21:33:35 | 2018-10-18T21:33:35 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
class TlpJsonConverter:
def tlp_to_json(name, network, nodesBeenPruned, numDeletedClique, numDeletedEdge):
jsonNetwork = {"nodes": [], "edges": [], "nodesBeenPruned": [], "numDeletedClique": [], "numDeletedEdge": []}
for node in network.getNodes():
jsonNetwork["nodes"].append({"id": node.id})
for edge in ... | UTF-8 | Python | false | false | 1,421 | py | 44 | tlp_json_converter.py | 18 | 0.706545 | 0.706545 | 0 | 30 | 46.333333 | 116 |
ahunter787/grzzmorgian_project | 6,777,458,439,218 | 6aab644c8e5563c62fc970c02531be508b41d8f6 | ff6996d4852e868d3fbfc2ac508e51b4c04b8f12 | /test.py | 81ee289232e14db83127eb011539c6dac68a6859 | [] | no_license | https://github.com/ahunter787/grzzmorgian_project | 42a4bfa1084c15ae39a72815c9929cce87c859ca | cf227939a515bde9d8125867611e668b9cec8b1e | refs/heads/master | 2021-01-22T04:49:02.737425 | 2014-03-14T02:42:43 | 2014-03-14T02:42:43 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from dinnerTable import *
from itertools import *
from collections import defaultdict
#indv = Individual(gender, sash, emblem, flower, drink)
# Our first working case - hand calculated
# quick = Individual("q", "black", "planet", "rose", "water")
# male = Individual("m", "blue", "spaceship", "lily", "herbal tea")
# r... | UTF-8 | Python | false | false | 3,243 | py | 5 | test.py | 4 | 0.636139 | 0.627197 | 0 | 84 | 37.547619 | 127 |
HPortuga/T1IA2019 | 3,246,995,316,078 | d1604654cdc89dd6b69ca0409282cbdd7377f5d9 | 67ca386d52ad4cac48cc5ab5c983b3940c841fb6 | /RestaUm/heuristica.py | 672c1f61c5c07960ff61bb405bc863605ef303ab | [] | no_license | https://github.com/HPortuga/T1IA2019 | cdda6d4bc620ee6160c272f1c0f95986cd95e2f9 | f1d53bcab2e63e9bfa39d3de9be307e33632d623 | refs/heads/master | 2020-05-04T23:35:58.752484 | 2019-05-12T00:52:46 | 2019-05-12T00:52:46 | 179,548,947 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Matheus Soares / 2016.1904.030-1
# Victor Ezequiel / 2016.1904.047-6
# Gabriel Menezes / 2016.1906.005-1
def calcularHeuristica(node):
numPecas, coordenadasDasPecas = contarPecas(node.estado)
unsPresosNosCantos = contarUnsPresos(node.estado)
distanciaMediaManhattan = calcularDistanciaManhattan(node.estado, ... | UTF-8 | Python | false | false | 2,225 | py | 6 | heuristica.py | 6 | 0.618427 | 0.557303 | 0 | 80 | 26.8125 | 100 |
tuankhai3112/tuankhai | 16,277,926,089,441 | 2bc108e421fa575a76784247222a8fafa67645a9 | ddac50d0c868e88f79603aff954991c93aec87bc | /tim gtri tronglist random.py | 58a4a8e1d871ef1684678e05101d1909061547c6 | [] | no_license | https://github.com/tuankhai3112/tuankhai | ce0751d140c78b2c8f78bae24b6feae1c97afd9c | 160d718bc35f5c0a25f615fc858de996eb1447d3 | refs/heads/master | 2022-11-07T01:00:38.834925 | 2020-06-20T16:47:37 | 2020-06-20T16:47:37 | 256,784,684 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from random import sample, randint
A=sample(range(100), 100)
a=randint(0,100)
A.sort()
if a in A:
print(a,' có trong mảng\nVị trí của ',a,'là: ',A.index(a))
| UTF-8 | Python | false | false | 176 | py | 3 | tim gtri tronglist random.py | 3 | 0.634731 | 0.57485 | 0 | 6 | 25.833333 | 62 |
sidbhadur2/ProjectX | 2,035,814,505,207 | 2724cc9d91d89f3f4193cfaaca478f876fd207aa | 64078cc241f096c2b284b77f142cf12271a4b166 | /tests/artist.py | 201b08ca2505cbdc06cee27213fb760ecd3b7baa | [] | no_license | https://github.com/sidbhadur2/ProjectX | 64f84354533fdaa988d5d35e30e09fc56df32ba3 | 1860446de2cebabaeba2bf21ea134d123fe2cce5 | refs/heads/master | 2020-12-11T07:26:57.043841 | 2015-11-28T09:29:04 | 2015-11-28T09:29:04 | 44,497,532 | 0 | 0 | null | true | 2015-10-18T21:34:51 | 2015-10-18T21:34:51 | 2015-10-13T02:51:16 | 2015-10-14T17:46:25 | 111 | 0 | 0 | 0 | null | null | null | from musixmatch import *
from tests import base
class TestArtist(base.TestItem):
Class = artist.Artist
item = {
"artist_id": "292",
"artist_mbid": "292",
}
item_str = "{ 'artist_id': '292',\n 'artist_mbid': '292'}"
item_repr = "Artist({'artist_mbid': '292', 'artist_id': '292'})... | UTF-8 | Python | false | false | 1,330 | py | 222 | artist.py | 30 | 0.398496 | 0.350376 | 0 | 47 | 27.276596 | 68 |
jbpark/alza-stock | 19,602,230,739,784 | c8ab6f02fbac03b84ffb9e64787b384abd00e628 | 34f817cf5f12469c6daa7a326359e128084bdc98 | /sample/python/back_test/back_test_backtrader.py | 5b8a71df5955868cdced6ea8a9a884776ae141fd | [] | no_license | https://github.com/jbpark/alza-stock | cfb55a3e24ba9eb4e19ea9f15fc028a5b56184bd | b107a660d03332ddcb46e610ab0ac9ae8e7cbd81 | refs/heads/master | 2020-07-30T07:30:51.576528 | 2019-10-29T06:40:58 | 2019-10-29T06:40:58 | 210,135,766 | 2 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # pip install backtesting
# pip install pip install -U finance-datareader
from backtesting import Backtest, Strategy
from backtesting.lib import crossover
from backtesting.test import SMA
import FinanceDataReader as fdr
fdr.__version__
class SmaCross(Strategy):
def init(self):
Close = self.data.Close
... | UTF-8 | Python | false | false | 874 | py | 48 | back_test_backtrader.py | 12 | 0.661098 | 0.591885 | 0 | 33 | 24.424242 | 54 |
lucaseliascrocha/PFC | 3,092,376,466,924 | 155264daee6bbeeffc7d2461a85028bb10b19b07 | 4cde0062c038804b4e41f29bb4305d2b248841c8 | /Topicos_Infomap/doc_classifier.py | c7d3b278af1cb284cccb1e37579e964f62f70ccb | [] | no_license | https://github.com/lucaseliascrocha/PFC | 1903b1161a5865eb5d4f1f2d92033a7c953ac255 | b953e1c21faedbc9dec4587b13d100fdc76f54a1 | refs/heads/master | 2021-10-25T14:47:48.129530 | 2019-04-04T19:08:16 | 2019-04-04T19:08:16 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
output_folder = '../Classificação dos Documentos/'
doc_folder = '../Documentos Finais/'
for doc in os.listdir():
if doc.split('.')[1] != 'ftree':
continue
print('--> ' + doc)
#--------- Carregando Topicos/Clusters ----------#
f = open(doc, 'r')
lines = f.readlines()
f.close(... | UTF-8 | Python | false | false | 2,362 | py | 90 | doc_classifier.py | 11 | 0.501278 | 0.485094 | 0 | 74 | 30.743243 | 105 |
blengerich/ArXiv-Scraper | 11,416,023,086,864 | 5b72aa3075438629ab790aa769399ea90c21d419 | 2c055175cb4cbcde00503585fba0e1c319ff59f8 | /users_manager.py | 61a7a42746ae2e74f4971a0dea2cb881450ee3ad | [] | no_license | https://github.com/blengerich/ArXiv-Scraper | a9ff85bdab12291c0679311a690140e8c19c7c1d | d5799eb9d4c11a21c4ebe2d812909795f07d186d | refs/heads/master | 2015-08-19T19:20:45.851894 | 2015-03-05T02:51:29 | 2015-03-05T02:51:29 | 29,698,628 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | users_singleton = None
users_file = "users.txt"
"""
Returns/Instantiates the singleton of users
Will be a list
"""
def users():
if users_singleton is not None:
return users_singleton
else:
load_users_from_file(users_file)
return users_singleton
"""
Reads and loads a text file of users with their interest vec... | UTF-8 | Python | false | false | 499 | py | 11 | users_manager.py | 8 | 0.747495 | 0.747495 | 0 | 23 | 20.73913 | 64 |
StefanFrederiksen/DeepLearning-Project12 | 4,818,953,351,668 | e5d7009a6dc086d8ab941ec882ca088a0f466674 | 1a3d31a8423ca8185ac55130ce8788cac062ced3 | /Code/spec_generator.py | d6a1b6878a6ec532aad2e6c59827fc233a8d1b47 | [] | no_license | https://github.com/StefanFrederiksen/DeepLearning-Project12 | f41906f4bb33a0a0a357d2dbb511e18aa4c17416 | 7461a3fdd2807d5e67bd540eba50bb8ea8f7a013 | refs/heads/master | 2023-01-10T00:28:18.727721 | 2017-12-04T13:22:32 | 2017-12-04T13:22:32 | 107,981,837 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 23 13:43:34 2017
@author: jacob
"""
import numpy as np
import scipy.signal
import os
import utils
import librosa
from sklearn.preprocessing import normalize
import random
path_to_8k = '/media/jacob/Files/UrbanSound8K'
save_path = path_to_8k+'/sp... | UTF-8 | Python | false | false | 4,564 | py | 22,680 | spec_generator.py | 3 | 0.538124 | 0.512927 | 0 | 102 | 43.754902 | 165 |
takutico/notes | 8,048,768,731,943 | 5628661da8c45fbd0ee2a371d16503f52570ab16 | 0471b91ca8d5e65919db9ea371ca3fd0c0dc157f | /numbers_from_list.py | 2826e5b0113a83b86a970acd92a68f2b404195da | [] | no_license | https://github.com/takutico/notes | 70e37784d5caef46e75890a09e15440355c6d4d7 | c2c262ce4f9b6ba48cb19d93edc0a7573a64b926 | refs/heads/master | 2021-01-17T18:04:59.808050 | 2017-09-13T04:16:35 | 2017-09-13T04:16:35 | 62,384,936 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | L = ['asfd', '1', '44','g', '4 5', '7k', '563']
# tl =[]
# for i in l:
# if i.isdigit():
# tl.append(i)
<<<<<<< HEAD
# print([i for i in l if i.isdigit()])
print([ i for i in l if str(i).isdigit()])
=======
# using for loop
print('Using loop')
print([i for i in L if i.isdigit()])
import re
print('Using regular ... | UTF-8 | Python | false | false | 479 | py | 44 | numbers_from_list.py | 26 | 0.580376 | 0.492693 | 0 | 24 | 18.958333 | 48 |
yuqingwang15/pythonproblempractices | 1,331,439,873,098 | a710473fac485045ca7aef38f591254eadbc25be | 3d9d231ad18742f6a478660bbc692ed58af18994 | /spider/spider.py | 12cd0ea0592ffd0db70b7788a0fec3d1b54bac50 | [] | no_license | https://github.com/yuqingwang15/pythonproblempractices | 9ba91e2eb88757a49842feeb5aae0004d4391e54 | 4e54855597021500b05bf8baaeb79a4ff002def3 | refs/heads/master | 2021-01-20T18:09:50.618739 | 2017-12-12T16:25:37 | 2017-12-12T16:25:37 | 65,372,669 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from urllib import urlopen
from link_finder import LinkFinder
from genneral import *
import scrapy
class Spider:
project_name = ''
base_rul = ''
domain_name = ''
queue_file = ''
crawled_file = ''
queue = set()
crawled = set()
def _init_(self,params):
#super()._init_()
Spider.project_name =params.get... | UTF-8 | Python | false | false | 1,915 | py | 45 | spider.py | 40 | 0.691384 | 0.690862 | 0 | 73 | 25 | 58 |
EBoespflug/arp-poisoning-scapy | 1,125,281,471,933 | ee166548039e9e3a68ecf11251f4d6135638b63f | ab67368b5082ef1adf2b9b5e2483a3314da9c00d | /UI/host_widgets.py | 3295b1d9672e8cbce1f97ba9a27b255585ca2421 | [] | no_license | https://github.com/EBoespflug/arp-poisoning-scapy | 5fc4eaec785971c9007c8688e1ca4f9331fecee0 | 2de6fbae6427c70c20041d49f3050af1fe1ab4d8 | refs/heads/master | 2021-01-19T07:57:59.140637 | 2018-08-09T18:39:20 | 2018-08-09T18:39:20 | 87,587,507 | 1 | 0 | null | false | 2018-08-09T18:39:21 | 2017-04-07T21:15:26 | 2018-08-09T18:33:30 | 2018-08-09T18:39:21 | 153 | 1 | 0 | 0 | null | false | null | from PyQt5.QtWidgets import *
from PyQt5.QtGui import (QIcon)
from PyQt5.QtCore import (QSize, pyqtSignal)
import sys
sys.path.append('../core/')
sys.path.append('../')
from Host import *
from arp import send_arp
import time, threading
import resources
def PARPThread(target, router, stopEvent):
while(not stopEve... | UTF-8 | Python | false | false | 6,193 | py | 6 | host_widgets.py | 5 | 0.613919 | 0.609398 | 0 | 171 | 35.216374 | 189 |
odairlemos/Python | 3,719,441,722,553 | 939af8cfa4e5ffe436780d2986492e132501d42e | 0ba2fc433a87904b955f3bd81c51dd57f773d0ed | /exercicio_30.py | b87f718008ff22a5558cac57e66baefaccb62067 | [] | no_license | https://github.com/odairlemos/Python | 78c5cf033c0933f412345c77da9d6e3bf548519d | 14bbb198e2a7b37cc702496930438710b183fd30 | refs/heads/master | 2022-12-19T21:28:19.554765 | 2020-09-22T23:07:19 | 2020-09-22T23:07:19 | 297,793,933 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import copy
#Variables
nome_idade = {'Eduardo': 29, 'Murilo': 27, 'Alessandra': 30, 'Carlos': 17, 'Ana': 14}
duplicando = {}
#Main Code
duplicando = copy.deepcopy(nome_idade)
print(duplicando)
| UTF-8 | Python | false | false | 197 | py | 17 | exercicio_30.py | 17 | 0.680203 | 0.629442 | 0 | 10 | 18.6 | 85 |
yhaddad/KaggleDojo | 9,689,446,250,067 | eca530cc08553bf552c74d1b94fe5ecfb4a04bdc | 094c9e35b3c8b85dc3a7fefbb560329e3e6c2d4e | /test_binner.py | fd5c0963d1853b041bf7003267ee804090783717 | [] | no_license | https://github.com/yhaddad/KaggleDojo | ab3bfea989f509a11f53b9b85406efcc364ebf81 | 053232ada0b3c6b2f5590027bf99cc88d8016b61 | refs/heads/master | 2021-01-10T23:15:28.031091 | 2017-04-19T11:44:20 | 2017-04-19T11:44:20 | 70,625,986 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import pandas as pd
np.set_printoptions(precision=4)
import matplotlib.pyplot as plt
from matplotlib import animation, rc
from IPython.display import HTML
from tools import kde
s_raw = np.random.beta(8,3, 8000)
b_raw = np.random.beta(3,3, 8000)
weight =np.concatenate((np.random.binomial(10,0.5, 8... | UTF-8 | Python | false | false | 2,134 | py | 15 | test_binner.py | 3 | 0.651359 | 0.601687 | 0 | 68 | 30.382353 | 110 |
li19960612/Human-Centric-Super-Resolution | 3,839,700,788,699 | 752627adc9e0576a24881265444e7a712803e282 | 62b540631de25db2b2646e4189388b458f58896a | /preprocessing.py | 357c949876c5635edda84fe570b07eca98e6ffa2 | [] | no_license | https://github.com/li19960612/Human-Centric-Super-Resolution | bd26f74dcfaa8324892a8c10a70f882bda2de8f5 | b18ef7c331b692beda0f41326efa3c28179454a6 | refs/heads/master | 2023-02-21T21:48:39.314085 | 2021-01-28T14:48:26 | 2021-01-28T14:48:26 | 236,694,946 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import cfg
def openpose_processing(base_path):
'''
base_path: the image is in base_path/optimization_data
result is saved in base_path/optimization_data/COCO or /MPI
'''
openpose_path = cfg.openpose_path
os.system('cd ' + cfg.openpose_path + ' && ./build/examples/openpose/ope... | UTF-8 | Python | false | false | 1,498 | py | 10 | preprocessing.py | 7 | 0.636849 | 0.636849 | 0 | 19 | 76.421053 | 383 |
elpidabantra/Software-Development-Insights | 10,737,418,252,973 | abf9db146c79d2df4ff4be0856f4f178d422fee4 | eb62e19762f6274449bdb189d096d57ee1057365 | /counting_the_commits_by_author.py | 92e549357750693915a2b750573e75172be14c18 | [] | no_license | https://github.com/elpidabantra/Software-Development-Insights | 49db787d6e8e5da8ccdbf12ad90eb275edcee43d | 1992371f533a323f93cccb49ca617e5e368f37db | refs/heads/master | 2021-01-18T20:54:49.777784 | 2020-07-25T09:54:28 | 2020-07-25T09:54:28 | 86,999,400 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
import pygit2
import re
import string
import subprocess
import os
commits_by_author = {}
with open('noa.txt') as f1:
for author in f1:
commits_by_author[author] = 0;
f1.close()
print(commits_by_author)
with open('commit_by_author.txt') as f2:
for author in f2:
commits_by_author[author] = commit... | UTF-8 | Python | false | false | 463 | py | 25 | counting_the_commits_by_author.py | 11 | 0.688985 | 0.669546 | 0 | 33 | 13 | 61 |
jose-correia/surf-ai-chatbot | 16,492,674,455,120 | a13d92c2372555aedf7cf199713f21c45953413e | 6d03f52546bcc28baa7ec6ac93c603d24842fbc1 | /app/handlers/intent_forecast_middleware.py | 4c4ad4f2577745e52cec7116bed78adcec1867e1 | [] | no_license | https://github.com/jose-correia/surf-ai-chatbot | 15353e9496de8778956342a1591e823748fdbf14 | 9b10aab193ea009e03144b9053de202b8a7c6372 | refs/heads/master | 2023-07-12T11:42:45.739967 | 2021-08-25T00:08:31 | 2021-08-25T00:08:31 | 201,694,578 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # SERVICES
from app.services.get_local_coord_service import GetLocalCoordService
from app.handlers.intent_handler import IntentHandler
from app.handlers.weather_forecast_handler import WeatherForecastHandler
from flask import current_app
class IntentForecastMiddleware(object):
@classmethod
def get_forecast_b... | UTF-8 | Python | false | false | 1,041 | py | 21 | intent_forecast_middleware.py | 18 | 0.689721 | 0.689721 | 0 | 32 | 31.53125 | 81 |
Zilby/Stuy-Stuff | 14,860,586,894,905 | c721295ade8294c56ae8c56b57851adb63ac59e3 | 2b25aae9266437b657e748f3d6fea4db9e9d7f15 | /graphics/transformations/4/ivy_wong/matrix.py | 0136b6951f3366cf33c05554bced02b27efee725 | [] | no_license | https://github.com/Zilby/Stuy-Stuff | b1c3bc23abf40092a8a7a80e406e7c412bd22ae0 | 5c5e375304952f62667d3b34b36f0056c1a8e753 | refs/heads/master | 2020-05-18T03:03:48.210196 | 2018-11-15T04:50:03 | 2018-11-15T04:50:03 | 24,191,397 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import math
def make_translate( x, y, z ):
trans = []
trans.append([1,0,0,0])
trans.append([0,1,0,0])
trans.append([0,0,1,0])
trans.append([x,y,z,1])
return trans
def make_scale( x, y, z ):
scale = []
scale.append([x,0,0,0])
scale.append([0,y,0,0])
scale.append([0,0,z,0])
... | UTF-8 | Python | false | false | 2,775 | py | 742 | matrix.py | 601 | 0.532252 | 0.485766 | 0 | 106 | 25.179245 | 68 |
borjaf696/mtDNAProject | 670,014,921,998 | 245582de89cf2224a558bdf0ed1947521f06ec56 | 774f4ca62e48da3af8c1b1f240c8592cb65d63d2 | /utils/__init__.py | 2cc418f3aaace4cd017e49a61b00a47ff89b4977 | [] | no_license | https://github.com/borjaf696/mtDNAProject | d467a2db1e88c728754ef033fffa0fcabfcb7c34 | 2d2823489c2f7bf4c23bce8c62fa276dc55b432c | refs/heads/master | 2023-03-31T19:29:12.113211 | 2021-04-06T07:58:47 | 2021-04-06T07:58:47 | 302,108,666 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Borja :) | UTF-8 | Python | false | false | 10 | py | 133 | __init__.py | 3 | 0.5 | 0.5 | 0 | 1 | 10 | 10 |
dkapitan/pandas-gbq | 14,508,399,540,561 | 9777ebd81c08390d7ef28d39ac97f0029dba7022 | f7e78356e278b753b10c5ce66ad38cec78e9daac | /pandas_gbq/schema.py | f44a8b11290a3290d654118a66151cd25d278b48 | [
"BSD-3-Clause"
] | permissive | https://github.com/dkapitan/pandas-gbq | 161c645228c39c030c4e4968b542c718ef849e62 | 79c592969f2fded075014e0c6aea023cad2a0118 | refs/heads/master | 2020-05-23T22:10:18.578521 | 2019-05-17T23:24:58 | 2019-05-17T23:24:58 | 186,968,316 | 0 | 0 | null | true | 2019-05-16T06:47:18 | 2019-05-16T06:47:18 | 2019-05-12T13:04:42 | 2019-05-10T17:15:40 | 640 | 0 | 0 | 0 | null | false | false | """Helper methods for BigQuery schemas"""
from numpy import uint8, int8, uint16, int16, uint32, int32
# https://www.numpy.org/devdocs/user/basics.types.html
NUMPY_INT_RANGE = {
"int8": (-128, 127),
"int16": (-32768, 32767),
"int32": (-2147483648, 2147483647),
"int64": (-9223372036854775808, 9223372036... | UTF-8 | Python | false | false | 5,014 | py | 1 | schema.py | 1 | 0.549462 | 0.511767 | 0 | 175 | 27.651429 | 80 |
rafaelperazzo/programacao-web | 13,821,204,769,084 | ad8065a580fa653cdcffe84fc568df176ee9f178 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/10/usersdata/2/8029/submittedfiles/testes.py | 2c1d80672892972a37095bb995d4c49d43b4bd99 | [] | no_license | https://github.com/rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
#COMECE AQUI ABAIXO
n = input('Digite o valor de n:')
maior = 1
cont = 1
numero = input('Digite um numero: ')
for i in range(1,n,1):
proximo = input('Digite um numero: ')
if proximo>numero:
cont = cont + 1
else:
cont... | UTF-8 | Python | false | false | 399 | py | 17,467 | testes.py | 16,712 | 0.596491 | 0.578947 | 0 | 19 | 19.947368 | 41 |
asa-kaya/thesis_stuff | 6,725,918,814,008 | 0c2def283adcdfc0e0c1e9612b3906ad892ec92d | c38c238147afbf72e67bd9d6c3a8959b247dd81d | /extract_features.py | 623f63d8e4d1f1d4e3188b641329db7f73f7235a | [] | no_license | https://github.com/asa-kaya/thesis_stuff | 4e83f8797ce3e51fc0af9b750825d43c5198ff06 | 4c95a5c1805d77e26357696af82020d1afc26583 | refs/heads/master | 2023-08-18T13:55:42.827969 | 2021-10-25T12:28:18 | 2021-10-25T12:28:18 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pandas as pd
import numpy as np
from skimage.io import imread
from matplotlib import pyplot as plt
from skimage import img_as_ubyte
from skimage.measure import regionprops
from skimage.feature import greycomatrix, greycoprops
from skimage.measure import shannon_entropy
from scipy.stats import skew
root_dir = '... | UTF-8 | Python | false | false | 2,673 | py | 22 | extract_features.py | 3 | 0.640479 | 0.634493 | 0 | 96 | 26.84375 | 90 |
ShuKate/my-sandbox | 10,831,907,571,918 | 8f5cb41c0225eba52365849cff5dab5c3766bcf2 | 62ff44e09d1a5f83b3363921855fba8cad82e451 | /part2/task15.py | edaf1d9f6c3ca4234df31a591168de293e4b8f92 | [] | no_license | https://github.com/ShuKate/my-sandbox | 48e4e925c2993dff2ac4df1a4dff45349ce7e32c | c368ab7eed820a14842bc9d77c71ad831f42acf1 | refs/heads/master | 2021-03-23T09:34:54.583455 | 2020-05-13T17:51:41 | 2020-05-13T17:51:41 | 247,443,085 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #гуглила
#Напишите программу, которая считывает с консоли числа (по одному в строке) до тех пор, пока сумма введённых чисел не будет
#равна 0 и сразу после этого выводит сумму квадратов всех считанных чисел.
#Гарантируется, что в какой-то момент сумма введённых чисел окажется равной 0, после этого считывание продолжать... | UTF-8 | Python | false | false | 1,114 | py | 18 | task15.py | 17 | 0.69814 | 0.676681 | 0 | 16 | 42.6875 | 127 |
leeyongda/work | 13,005,160,986,111 | b29d97b936984e64b7f3816a6c6f2ecde2fa14a8 | fd6295e78a0a92445b07a27027afc9476f9e3d94 | /yphcn/test.py | f0ca61c4bc867fef535f94e2bae47e987e5bdfee | [] | no_license | https://github.com/leeyongda/work | a80bb1af8fdad40fdc059b8696597c86c42d94e6 | 7a29d8f8a60cbb9736bbbe09204df1907806795a | refs/heads/master | 2021-01-13T14:05:22.717912 | 2018-03-01T03:10:04 | 2018-03-01T03:10:04 | 76,212,381 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #coding:utf8
import requests
import re
url = 'http://www.yph.cn/shop/index.php?act=search&op=index&cate_id=1065'
res = requests.get(url).text
next_href = re.findall(ur'.*</li><li><a class="demo" href="(.*?)"><span>末页</span>',res)
print next_href[0] | UTF-8 | Python | false | false | 261 | py | 54 | test.py | 31 | 0.661479 | 0.638132 | 0 | 16 | 15.125 | 87 |
RosaPetit/Python-II | 3,573,412,825,019 | 6fde11fd0eb486bff83d3e55165a9d25f0f2c971 | 3b813f47cca26bab99f8a3f4bd56dc55ef88e3fd | /Exercise 02.py | d8f3900753fa2d86e9fde262bb0ba0c5de5ebbbc | [] | no_license | https://github.com/RosaPetit/Python-II | 479b78ef749f89510a7b793a4fad616f88d8d2df | f14f37ebc74ab41933452951421ee1faff01900c | refs/heads/main | 2023-07-04T02:21:50.023503 | 2021-07-31T00:24:25 | 2021-07-31T00:24:25 | 384,208,615 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
Este es un comentario general que se utiliza
para programas y funciones
'''
'''Programa 1'''
#Esto es un comentario
#variable1= input() #La variable input es para interaccion del usuario
#variable2= input()
#print(variable1+variable2)
'''Programa 2 '''
# si queremos trabajar con numeros tenemos que deci... | UTF-8 | Python | false | false | 784 | py | 12 | Exercise 02.py | 11 | 0.674745 | 0.632653 | 0 | 41 | 18.04878 | 92 |
sreekar-raparthi/binary-classififer | 16,647,293,272,714 | adeaa0834ac76b3cceb4cbaa1eab90f9e9f03c82 | 08fb7f6523be06e96b9dc94c6dcbd1adec85ba40 | /model.py | 9d97b0d4b7a470f02b4c6fb26bdc0bab2390d5a1 | [] | no_license | https://github.com/sreekar-raparthi/binary-classififer | cab25098640cc840632ca93df2734f45aa442cc9 | 7ee09ad225ce7f6320187b46ac5697cdc826fc75 | refs/heads/main | 2023-08-11T18:07:38.528306 | 2021-10-02T08:15:06 | 2021-10-02T08:15:06 | 412,721,955 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import keras
from keras.models import Sequential
from keras.layers import Conv2D, MaxPooling2D, Flatten, Dense, Dropout, Activation
class Model():
def __init__(self, height=None, width=None):
self.height = height
self.width = width
def build_model(self):
img_rows, img_cols ... | UTF-8 | Python | false | false | 1,469 | py | 5 | model.py | 4 | 0.581348 | 0.554118 | 0 | 37 | 37.648649 | 96 |
opensciencegrid/topology | 15,504,831,986,075 | cf75f4d8d2b9eed06e4011538e69dedfdac556c6 | 4a909f0677a97b94273d5ee551078074b121d8f9 | /bin/osg-downtimes | 467ea3b83e3200889475cb43ddb435b6c55c2577 | [
"Apache-2.0"
] | permissive | https://github.com/opensciencegrid/topology | 6e85b53bdca7e10c7dcab0793c580fa48b861617 | ccbf100a255ec7d4229b023e80d3405fb0f35b1d | refs/heads/master | 2023-08-30T23:13:00.837660 | 2023-08-30T21:15:53 | 2023-08-30T21:15:53 | 128,412,714 | 17 | 259 | Apache-2.0 | false | 2023-09-14T17:36:34 | 2018-04-06T15:28:22 | 2023-06-28T01:14:21 | 2023-09-14T16:56:16 | 15,025 | 15 | 207 | 27 | Python | false | false | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
A script to print out information about OSG downtimes
"""
import os, sys
_topdir = os.path.abspath(os.path.dirname(__file__) + "/..")
if __name__ == "__main__" and __package__ is None:
sys.path.append(_topdir + "/src")
from webapp.models import GlobalData
glob... | UTF-8 | Python | false | false | 467 | 1,973 | osg-downtimes | 74 | 0.655246 | 0.648822 | 0 | 18 | 24.888889 | 91 | |
TheAlgorithms/Python | 5,901,285,113,876 | 064cd9cdd3d89f91f34911f53f1263bc55c9974b | 9ed4d46aedd4d4acadb48d610e940594b5b7b3fd | /other/least_recently_used.py | cb692bb1b1c04835e53b5ce818156e6f0eb81b5a | [
"MIT"
] | permissive | https://github.com/TheAlgorithms/Python | 7596a0e236ed12a61f9db19a7ea68309779cc85b | 421ace81edb0d9af3a173f4ca7e66cc900078c1d | refs/heads/master | 2023-09-01T17:32:20.190949 | 2023-08-29T13:18:10 | 2023-08-29T13:18:10 | 63,476,337 | 184,217 | 48,615 | MIT | false | 2023-09-14T02:05:29 | 2016-07-16T09:44:01 | 2023-09-14T01:45:58 | 2023-09-14T02:05:25 | 13,850 | 168,531 | 41,865 | 109 | Python | false | false | from __future__ import annotations
import sys
from collections import deque
from typing import Generic, TypeVar
T = TypeVar("T")
class LRUCache(Generic[T]):
"""
Page Replacement Algorithm, Least Recently Used (LRU) Caching.
>>> lru_cache: LRUCache[str | int] = LRUCache(4)
>>> lru_cache.refer("A")
... | UTF-8 | Python | false | false | 2,417 | py | 1,041 | least_recently_used.py | 970 | 0.55813 | 0.546545 | 0 | 92 | 25.271739 | 74 |
av8ramit/caprende | 17,712,445,149,075 | 6d9f813ffea0a09264a9a0f3dbdbd8163d868103 | 5abe2d8bac6e0cbfbaab25024f99fce48bbecd92 | /src/comments/tests.py | dbf56568794c51429959008416469733530ead81 | [] | no_license | https://github.com/av8ramit/caprende | 086cad46d59ff54cacdc7eee2ec084c1528b8947 | cd4ff5222e437fca055dce4790c8c349699d3f5f | refs/heads/master | 2021-03-27T12:30:25.338673 | 2017-02-21T04:34:31 | 2017-02-21T04:34:31 | 58,184,420 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''Tests page for the comments Caprende module.'''
from django.test import TestCase
from course.models import Course, CourseSection
from categories.models import Category, SubCategory
from questions.models import Question
from users.models import MyUser
from .models import Comment
# Create your tests here.
class C... | UTF-8 | Python | false | false | 3,557 | py | 101 | tests.py | 77 | 0.579702 | 0.577172 | 0 | 124 | 27.685484 | 68 |
MaxWellPlanktos/Audio-Stream-Bot | 4,526,895,542,346 | 4194f7d54a63df308850dd0ef79274a928d7588b | 8df7b832dc21c398041d781ceacc9fc315cd5724 | /discord-audio-source-code/gui.py | 7f37af4c24eecff3a621b11234620e7dfb46f6b0 | [
"MIT"
] | permissive | https://github.com/MaxWellPlanktos/Audio-Stream-Bot | b0b9df30f5db38e8d642055f253ce95441cb05c7 | 2ad1eccb058e96f7003815c61c5b52d17eb0279a | refs/heads/main | 2023-06-19T20:08:27.608995 | 2021-07-15T09:14:03 | 2021-07-15T09:14:03 | 383,408,951 | 1 | 2 | MIT | false | 2021-07-15T09:14:04 | 2021-07-06T09:13:16 | 2021-07-09T13:37:37 | 2021-07-15T09:14:03 | 238 | 1 | 2 | 0 | Python | false | false | import os
import sys
import platform
if platform.system() == 'Linux':
import pulsectl
else:
import sound
import asyncio
import logging
import discord
from PyQt5.QtSvg import QSvgWidget
from PyQt5.QtGui import QFontDatabase, QFontMetrics, QIcon
from PyQt5.QtCore import Qt, QCoreApplication, QEventLoop, QDir, pyq... | UTF-8 | Python | false | false | 12,442 | py | 10 | gui.py | 3 | 0.585397 | 0.581779 | 0 | 409 | 29.405868 | 118 |
MrizalMuhaimin/Search-Engine-Vector-Space-Model | 5,772,436,062,991 | 347b62fe346cf6c0692357bb75541d3b3eaba028 | 24bf326133e1c0fc81b4b73b9997b085b1e0f925 | /src/app/saveDatatoSql.py | 600efcd489b5267d9bd0bdc40f31460d7ac2572d | [] | no_license | https://github.com/MrizalMuhaimin/Search-Engine-Vector-Space-Model | 1f12dd4e8a2e58b8e5c545146896d5cd6ad10c79 | 78f9cda0f64a7d41b41101f09d9d23a824e5df80 | refs/heads/main | 2023-01-28T07:38:54.014961 | 2020-12-05T02:09:57 | 2020-12-05T02:09:57 | 318,195,009 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
import bs4
import sqlite3
import re
from Sastrawi.Stemmer.StemmerFactory import StemmerFactory
def urltoSQL(List):
conn = sqlite3.connect('app/data_sql/fileBaseGoogle.sqlite')
cur = conn.cursor()
# Do some setup
cur.executescript('''
DROP TABLE IF EXISTS UrlData;
CREATE TABLE UrlData (
id... | UTF-8 | Python | false | false | 2,842 | py | 17 | saveDatatoSql.py | 8 | 0.592189 | 0.588318 | 0 | 132 | 20.515152 | 101 |
eggman19/tantrumrepo | 11,003,706,230,058 | 7ccb0259c6359e5c3f4d30a4041e768c67d3e827 | 838971156f241090ee965d2ff4b0a933889b9d28 | /plugin.program.tantrumtv/resources/libs/notify.py | bb388ea2f3b938a9dc69dffa4c6bfcca8f0488b5 | [
"Beerware"
] | permissive | https://github.com/eggman19/tantrumrepo | 2e147a02b082dbc2976fe81046d9b61a34bfe3ed | 1451c481254d3fedec9f430139d18db7312a9b1a | refs/heads/master | 2020-03-27T16:42:01.189127 | 2018-08-06T15:47:46 | 2018-08-06T15:47:46 | 146,800,742 | 2 | 0 | null | true | 2018-08-30T20:04:34 | 2018-08-30T20:04:33 | 2018-08-17T18:16:32 | 2018-08-06T15:47:55 | 692,089 | 0 | 0 | 0 | null | false | null | #######################################################################
#Import Modules Section
import xbmc, xbmcaddon, xbmcgui, xbmcplugin, xbmcvfs
import os
import sys
import glob
import shutil
import urllib2,urllib
import re
import glo_var
import base_info
import time
from datetime import date, datetime, timedelta
... | UTF-8 | Python | false | false | 10,537 | py | 163 | notify.py | 39 | 0.678087 | 0.649616 | 0 | 201 | 51.427861 | 208 |
Biksbois/BiksCause | 1,735,166,800,887 | dd58e58954717f362fe7b1f4161c14ba47644bbb | f482fa4419f1b1bb31a884c5c79cdfe8df927b8e | /BiksPrepare/unit_tests/test_duration.py | 718b36171d97caf1ad8ad5e42655dfda6b6dad82 | [] | no_license | https://github.com/Biksbois/BiksCause | 8db99064d541b4d851698c73cedbfed1502eeeb2 | aedddebaa6b6a461e1a314919fc3c3c08c48c360 | refs/heads/main | 2023-05-06T10:02:41.505661 | 2021-05-27T07:19:26 | 2021-05-27T07:19:26 | 355,140,282 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys, os, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
import unittest
import datetime
from duration_method import *
def init_data():
colum = 'sky is clear'
csv_path = 'BiksPrepare/uni... | UTF-8 | Python | false | false | 3,711 | py | 24,522 | test_duration.py | 44 | 0.590407 | 0.578281 | 0 | 102 | 35.392157 | 117 |
niuyb/zhxg_support | 13,795,434,997,829 | 882dc4b9d7e2eb2bafa98b3456a7728ca023b61c | a2dc02ee7b2395ea2f4ea0d1359f262dd977087b | /secretary/utils.py | e9c44d129325a12f85c39cdff2166b5a3efab889 | [] | no_license | https://github.com/niuyb/zhxg_support | 4745a2141d5cf343b834f53e24abf85b177c426b | 8a8ec3e3bb609e8e428bba4d00ee45629c2bd405 | refs/heads/master | 2023-04-06T13:37:13.165744 | 2021-04-26T03:00:12 | 2021-04-26T03:00:12 | 361,599,382 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import json
from django.conf import settings
from secretary.models import WkTDinggroup, Salercansee, DingGroupMemberMap, SalercanseeNew
"""通过部门ID获取下级部门的部门ID和部门名称[{"did": xxx, "name": "yyy"}, ...]"""
def get_ding_groups(dpid):
ding_groups = WkTDinggroup.objects.filter(dpid=dpid).values("did", "name")
return di... | UTF-8 | Python | false | false | 2,893 | py | 356 | utils.py | 275 | 0.654491 | 0.654119 | 0 | 88 | 29.488636 | 90 |
rhythmjain/MUSI6202-DSP | 19,310,172,977,571 | 530caf908830f8407486e9d33490662d1730f67f | 9544c9cb9d0abfd9236c8aa05e2cf05c653868e8 | /assignment02/dsp_q1_q2.py | 58b92bef6437db3b31fca31c63ceda3b069bf424 | [] | no_license | https://github.com/rhythmjain/MUSI6202-DSP | 0b6d4f2bf39b419c070a57b117a8276487e92d9f | cc25b2363237c8543434c2009307f02e0ef51182 | refs/heads/main | 2023-03-07T15:18:57.628199 | 2021-02-19T19:37:06 | 2021-02-19T19:37:06 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import scipy
from scipy import *
from matplotlib import pyplot as plt
import time
from scipy.io.wavfile import read
import numpy as np
path1 = "piano.wav"
path2 = "impulse-response.wav"
q1_image = 'results/y_time.png'
q2_file_path = "results/res.txt"
def loadSoundFile(path):
s, data = sci... | UTF-8 | Python | false | false | 2,233 | py | 6 | dsp_q1_q2.py | 3 | 0.639946 | 0.59785 | 0 | 101 | 21.108911 | 121 |
mulinnuha/grit | 16,853,451,713,293 | c0db3562cb2a0c4fabc1ec741d869e70a46f2c9b | 32aa62643481d0c962d8da4d923ef7f16db44bb4 | /grit/delta/edge.py | d80d7f9c707ab07ba430137526599ed15d5054ed | [] | no_license | https://github.com/mulinnuha/grit | 7fbfb2ea897b041765656484da83fff95c2132ad | 521a0f4c6afcf6f248286fe65fd0c23d728f427f | refs/heads/master | 2018-12-10T21:19:24.460512 | 2018-09-19T11:56:02 | 2018-09-19T11:56:02 | 146,632,622 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import json
from grit.delta.entity import GritEntity
class GritEdge(GritEntity):
def __init__(self, grit_id, internal_id=None, edge_type=None,
start_node_grit_id=None, start_node_internal_id=None, start_node_label=None,
end_node_grit_id=None, end_node_internal_id=None, end_node_l... | UTF-8 | Python | false | false | 11,849 | py | 50 | edge.py | 47 | 0.46966 | 0.462655 | 0 | 229 | 50.742358 | 123 |
eldosatalov/taskqueue | 7,481,833,070,880 | 2785763ae697fdc2717f992b50d9d1bdf7613b0c | 0d5802008142ef64a9049646f3d813a590cd9931 | /task/tests.py | ac11852e50c6084c62cd24a13c1bd442cb81edb1 | [] | no_license | https://github.com/eldosatalov/taskqueue | 26a08639aefa179bc67cd35b087b34b848c3baf2 | 64e6f9d6d3761b66a60a6b91b8cb058ada729726 | refs/heads/master | 2023-02-08T03:37:31.135627 | 2021-01-04T03:47:38 | 2021-01-04T03:47:38 | 326,562,350 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from rest_framework import status
from rest_framework.reverse import reverse
from rest_framework.test import APITestCase
from task.models import Task
class TaskTests(APITestCase):
def setUp(self):
Task.objects.create(name="hello")
def test_create_task(self):
data = {'name': 'test task'}
... | UTF-8 | Python | false | false | 1,331 | py | 9 | tests.py | 6 | 0.656649 | 0.649136 | 0 | 33 | 39.333333 | 82 |
Seventeen17/graph-learn | 11,450,382,842,296 | 866fe932c6b02cf34598a69ef28c3d28bb0c6985 | 220d1bf931234507bf50fa12a54ad9e95e31982b | /graphlearn/examples/tf/ego_sage/train_unsupervised.py | b073cc294b58d47536e4c48f98a9b97a2f29e013 | [
"Apache-2.0"
] | permissive | https://github.com/Seventeen17/graph-learn | b380c2368dd72ed590993cc992ab203d6e279000 | cd3f6e9de557042598851b14b01ca03e18bd9288 | refs/heads/master | 2022-10-27T12:07:04.014248 | 2022-09-29T07:06:00 | 2022-09-29T07:06:00 | 253,716,063 | 5 | 0 | Apache-2.0 | true | 2022-04-27T09:55:16 | 2020-04-07T07:15:08 | 2022-04-27T09:41:23 | 2022-04-27T09:55:13 | 32,786 | 1 | 0 | 0 | C++ | false | false | # Copyright 2021 Alibaba Group Holding Limited. 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 ... | UTF-8 | Python | false | false | 4,601 | py | 19 | train_unsupervised.py | 16 | 0.627038 | 0.617474 | 0 | 121 | 37.033058 | 115 |
dabrze/CheckMyBlob | 13,657,996,026,429 | d6758316f406c2603a1cbff294c66ae391a60b9c | ade10888359c4f25ab9695da190a8aa84b18675b | /GatherData/ignored_res.py | ee82dea4c358d44338ac9ee3bd64f7345d39399b | [
"MIT"
] | permissive | https://github.com/dabrze/CheckMyBlob | 59bbe3ed225ef2e9b8129c16f13330c1c46b441d | 237587c503a2b0636a397d530b822672e0d10267 | refs/heads/master | 2021-01-23T16:13:22.417796 | 2018-06-14T20:51:47 | 2018-06-14T20:51:47 | 102,726,502 | 12 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
ELEMENTS_ELECTRONS = {
"H":1, "HE":2, "LI":3, "BE":4, "B":5, "C":6, "N":7, "O":8, "F":9, "NE":10, "NA":11, "MG":12,
"AL":13, "SI":14, "P":15, "S":16, "CL":17, "AR":18, "K":19, "CA":20, "SC":21, "TI":22, "V":23, "CR":24,
"MN":25, "FE":26, "CO":27, "NI":28, "CU":29, "ZN":30, "GA":31, "GE":32, "AS":33, "SE":3... | UTF-8 | Python | false | false | 4,949 | py | 370 | ignored_res.py | 36 | 0.322489 | 0.272984 | 0 | 187 | 25.459893 | 107 |
hadronproject/hadron64 | 1,090,921,702,601 | 80f7d274d2fb2cd4b473acf694172570b9c240ce | efbf54a7778aabb8d5b4f494517fb8871b6a5820 | /sys-apps/tcp-wrappers/tcp-wrappers-7.6-r1.py | f6dcce4a17e28d9843ed1e91bde35e32cc6efbd4 | [] | no_license | https://github.com/hadronproject/hadron64 | f2d667ef7b4eab884de31af76e12f3ab03af742d | 491652287d2fb743a2d0f65304b409b70add6e83 | refs/heads/master | 2021-01-18T11:30:37.063105 | 2013-07-14T04:00:23 | 2013-07-14T04:00:23 | 8,419,387 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | metadata = """
summary @ Monitors and Controls incoming TCP connections
homepage @ ftp://ftp.porcupine.org/pub/security/index.html
license @ tcp_wrappers_license
src_url @ ftp://ftp.porcupine.org/pub/security/tcp_wrappers_$version.tar.gz
arch @ ~x86_64
"""
depends = """
runtime @ sys-libs/glibc app-shells/bash
"""
sr... | UTF-8 | Python | false | false | 1,285 | py | 659 | tcp-wrappers-7.6-r1.py | 597 | 0.65214 | 0.61323 | 0 | 42 | 29.595238 | 75 |
areebahmed04/fontbakery | 19,533,511,280,182 | df43bc623321e772f8988baff127d76e5df22a6d | 333c85a75d814fcd9a16b89c8f28a3693c08f7c9 | /Lib/fontbakery/profiles/dsig.py | 69266439d109c7c876b760fb56500a1c9885b572 | [
"Apache-2.0"
] | permissive | https://github.com/areebahmed04/fontbakery | 3aa0daaaf484373b9d701a7fe24f25ef03ea49e7 | 79290dd942d5571a04639bb097fc6450a5836d4c | refs/heads/master | 2020-09-23T16:43:55.401461 | 2019-11-21T14:44:06 | 2019-11-21T20:51:17 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from fontbakery.callable import check
from fontbakery.checkrunner import FAIL, PASS
from fontbakery.message import Message
# used to inform get_module_profile whether and how to create a profile
from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import
@check(
id = 'com.google.fonts/c... | UTF-8 | Python | false | false | 1,309 | py | 2 | dsig.py | 2 | 0.693659 | 0.693659 | 0 | 28 | 45.75 | 226 |
kooose38/Tasks-by-bert | 3,161,095,943,714 | 3a9687f96d10e3fc3372df72fcde4d5aba0fd025 | d9113f396c4c833b06303c3571683982052ca110 | /classification/code/model2.py | 910a25cbee2e1a17d50753d9aa971493f9161ded | [] | no_license | https://github.com/kooose38/Tasks-by-bert | 991db5a60e96d8915a914aa3d42ab2bf328228cc | f214932c24b623e5bd7e910d00771ed8e479048f | refs/heads/master | 2023-06-28T04:20:26.456643 | 2021-07-30T06:48:57 | 2021-07-30T06:48:57 | 388,649,660 | 0 | 0 | null | false | 2021-07-30T06:48:57 | 2021-07-23T01:59:19 | 2021-07-30T06:09:14 | 2021-07-30T06:48:57 | 83,932 | 0 | 0 | 0 | Jupyter Notebook | false | false | from transformers import BertForSequenceClassification
import torch
from dataloader import DataLoader_
import torch.nn as nn
class BertForSequenceClassification_(nn.Module):
def __init__(self, model_name: str, num_labels: int):
"""
(文章数, 単語数, 1) 入力層
-> (文章数, 単語数, 768) BertModel
... | UTF-8 | Python | false | false | 819 | py | 42 | model2.py | 32 | 0.585657 | 0.576361 | 0 | 19 | 38.684211 | 90 |
HANDS-FREE/handsfree | 5,317,169,557,089 | 7fa9c5ef2f5ae8eb90783dbe08b951becd827bdb | 8b27a0c141eecec0aa142b1fa35c2968ed090206 | /handsfree_smach/script/laser_detection.py | 454a8f719edd28f9a0a5aca340c43839bcaf8a56 | [
"BSD-2-Clause"
] | permissive | https://github.com/HANDS-FREE/handsfree | 496b00384cd2b7bd5e2ec47305b929eccd9b8645 | c36a02eee46d68c15527f7c8ee98052a410396de | refs/heads/master | 2022-12-22T10:04:23.009146 | 2022-12-13T04:08:01 | 2022-12-13T04:08:01 | 55,843,990 | 140 | 77 | BSD-2-Clause | false | 2021-01-18T04:26:59 | 2016-04-09T12:49:24 | 2021-01-13T15:58:09 | 2021-01-18T04:26:59 | 30,653 | 120 | 82 | 1 | C++ | false | false | #!/usr/bin/env python
import tf
import math
import rospy
import std_msgs.msg as std_msgs
import sensor_msgs.msg as sensor_msgs
class ObstacleDetection(object):
def __init__(self):
self.__angle_check_min = rospy.get_param('~min_angle', -math.pi/12) # the min angle we could to detect obstacle
sel... | UTF-8 | Python | false | false | 2,484 | py | 198 | laser_detection.py | 68 | 0.544686 | 0.539452 | 0 | 56 | 43.357143 | 127 |
bscho99/Madcamp_Week3_Server | 12,137,577,591,300 | 96fdfa1198a641580bb0145d154c17c77dc38bb9 | 8eaf4013544f9e58920bfdca20d6c38739db6cf2 | /restfulapi/serializers.py | f2d8dea203c51f12281c117fe46f6cc7a5bce13b | [] | no_license | https://github.com/bscho99/Madcamp_Week3_Server | af9e0ef20424dfe24c29b2c863a6170f6af14340 | 6607c321cd6a6f7f6ce09a6fe31d51fbbf03f0e0 | refs/heads/master | 2023-02-24T05:02:35.909538 | 2021-01-19T19:39:07 | 2021-01-19T19:39:07 | 331,088,981 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from rest_framework import serializers
from .models import User, Playlist
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ['userid', 'password']
class PlaylistSerializer(serializers.ModelSerializer):
class Meta:
model = Playlist
fields = [... | UTF-8 | Python | false | false | 373 | py | 7 | serializers.py | 6 | 0.683646 | 0.683646 | 0 | 14 | 25.642857 | 70 |
Ivan252512/resiliencia | 17,403,207,519,925 | 56a9ccd68b42311eea4ddabc0eb908d8dd3603ad | 35e4efcbb9163101c72ebe02585e8ec7c39c104a | /apps/reflexion/ref_ladera/apps.py | 9a32a020a593166ceb80efa2cfc1c1926312bb2a | [] | no_license | https://github.com/Ivan252512/resiliencia | ff89a30844812fd3916a1d8c31b734745540b9af | e5f9f9cc76f222438476b6c21022fea1d49f41c3 | refs/heads/master | 2020-04-27T15:12:12.266210 | 2019-04-03T08:56:12 | 2019-04-03T08:56:12 | 174,436,765 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.apps import AppConfig
class RefLaderaConfig(AppConfig):
name = 'ref_ladera'
| UTF-8 | Python | false | false | 94 | py | 83 | apps.py | 74 | 0.755319 | 0.755319 | 0 | 5 | 17.8 | 33 |
tymscar/Advent-Of-Code | 14,319,420,974,973 | f091296563259636138aa76da3b1874bcd95dcef | fc9390a7b3edee292e920624706b0e9e04c38603 | /2019/Python/day14/part1.py | 345c8055c4f0cb0fa484ae1fd5743a7b2b39938e | [
"MIT"
] | permissive | https://github.com/tymscar/Advent-Of-Code | ae19c1fa3e89c245e788ff5252758190799d1eb3 | f8bae1531dc93a97b59752605a38079254611eb3 | refs/heads/master | 2023-01-14T09:44:40.825262 | 2022-12-25T15:23:27 | 2022-12-25T15:23:27 | 159,945,813 | 9 | 10 | null | null | null | null | null | null | null | null | null | null | null | null | null | from collections import defaultdict
from math import ceil
file = open('input.txt', 'r')
makingUpOf = defaultdict(list)
minimumOf = defaultdict(int)
currentlyHave = defaultdict(int)
oreUsed = 0
for line in file:
result = line.split("=>")[1].rstrip().lstrip()
goingIn = []
for elem in line.split("=>")[0].sp... | UTF-8 | Python | false | false | 1,140 | py | 232 | part1.py | 230 | 0.588596 | 0.580702 | 0 | 39 | 28.230769 | 87 |
jourdy345/2016spring | 18,391,049,985,926 | 42ca2602c583dfb5fd463e06832e79cf71f888b5 | fa80eeb89943cd0bfac60d90e656d6ae31d1d23c | /mathForSocialScience/midterm_report/RJpi.py | fa7c352c268d362c81b15dd1e671efb2521486ec | [] | no_license | https://github.com/jourdy345/2016spring | 843b5e37c8ef34b51e7de7773e0603be347c0317 | bc61a8558fc727fbe2e73db80a3e9e36819a56ee | refs/heads/master | 2021-01-21T04:47:14.937340 | 2016-06-09T15:56:51 | 2016-06-09T15:56:51 | 53,733,514 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import math
from __future__ import division
def RJpi(tau):
n = 0.0
k1 = 26390.0
k2 = 1103.0
k3 = 396.0
eps = tau + 1.0
rjpi = 0
epsList = []
while(eps > tau):
eps = math.factorial(4.0*n)/((math.factorial(n))**4.0) * (k1 * n + k2)/(k3**(4.0*n))
epsList.append(eps)
rjpi += eps
n += 1
rjpi = 9801.0/(math.... | UTF-8 | Python | false | false | 359 | py | 59 | RJpi.py | 10 | 0.579387 | 0.470752 | 0 | 17 | 19.941176 | 86 |
mianmuri1991/validar-RUC-Ecuador | 9,079,560,870,033 | b753e0ac7c508e154d5332beff67ce69c432d9d6 | 9f4dcc8249d2c88f61351a1cf5930ebf7f9919b6 | /Python/validar_ruc_persona_juridica.py | 233eabdce4f5b97b09c34d3a88b9b4a624bf93c3 | [] | no_license | https://github.com/mianmuri1991/validar-RUC-Ecuador | 3780aa9aef969645e200779ed8dd994e1fe0e809 | 4ff559b0fc5ba4fbe77aa363fc862771f38b623f | refs/heads/main | 2021-07-09T06:14:45.311884 | 2020-12-09T13:13:21 | 2020-12-09T13:13:21 | 208,522,049 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #Validar el RUC de una persona juridica en Ecuador
#Si es persona juridica privada o extranjero no residente (sin cedula) se tiene el caso 1
#Si es persona juridica publica se tiene el caso 2
#Si es persona natural se tiene el caso 3
def validar(numero):
#Valida dimension
if(len(numero)!=13):
return 0
... | UTF-8 | Python | false | false | 3,336 | py | 4 | validar_ruc_persona_juridica.py | 2 | 0.502698 | 0.465528 | 0 | 88 | 36.897727 | 100 |
brianhu0716/LeetCode-Solution | 12,395,275,636,979 | 41d23489bef3e7af0e8183c857715c8cc04e7420 | b96f1bad8a74d31d8ff79bc955813bfcd17d7b26 | /413. Arithmetic Slices.py | a954f6f0bad31cafbed00bdbde4a235b802d134d | [] | no_license | https://github.com/brianhu0716/LeetCode-Solution | e7177af15e84e833ce8ab05027683ed4ac489643 | 158a4359c90b723545b22c4898047274cc1b80a6 | refs/heads/main | 2023-07-11T05:29:56.783795 | 2021-08-28T12:53:14 | 2021-08-28T12:53:14 | 374,991,658 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 9 23:04:50 2021
@author: Brian
"""
'''
Arithmetic的定義為:數列中至少有三個數字,數字以及數字之間的差固定,本題要求計算最多有多少個Arithmetic 子數列
'''
class Solution:
def numberOfArithmeticSlices(self, nums) -> int:
def findend(start,l,nums,ref):
for i in range(start,l - 1):
... | UTF-8 | Python | false | false | 1,170 | py | 403 | 413. Arithmetic Slices.py | 403 | 0.469501 | 0.419593 | 0 | 37 | 28.27027 | 91 |
eliyahudev/social_network | 8,177,617,749,367 | d6776586fb9b9980d62863234d2efecdd18b1c75 | 56545a99bf67e0993e292eb88d3eb50d372c9839 | /srt_to_exel.py | 41d83975b45d989fdc5f907e3fd9f8a93984590c | [] | no_license | https://github.com/eliyahudev/social_network | ffab5ca74626c9b2bd7dfb9e726207340f8a3d73 | 07c2f3ea65c0e55a62d18b61b09825d843686462 | refs/heads/master | 2022-12-09T16:25:00.967488 | 2020-09-08T18:38:17 | 2020-09-08T18:38:17 | 285,676,372 | 0 | 0 | null | false | 2020-08-13T06:56:24 | 2020-08-06T21:38:42 | 2020-08-11T12:58:00 | 2020-08-13T06:56:23 | 2,427 | 0 | 0 | 0 | Python | false | false | import pandas as pd
import re
# & functions & #
def getTextBlock(srt_file):
""" make an array from srt file
# input: srt file
# return: list of strings"""
f = open(srt_file, 'r')
x = f.read().split('\n\n')
f.close()
return x
def srt_to_df(srt_file):
"""" make lists for the columns of... | UTF-8 | Python | false | false | 2,367 | py | 13 | srt_to_exel.py | 8 | 0.538657 | 0.52049 | 0 | 73 | 31.424658 | 105 |
cardinalX/First_project | 10,531,259,811,584 | 0a1da1d1b75d0307cde8518b4bd79b531a1ffa76 | 56c6957436d4d7e53067f3d7dcc14800cc54f1e1 | /client.py | 3b423203eabace3270375194185e81d77ddd2fdd | [] | no_license | https://github.com/cardinalX/First_project | cfcd1e08a62874a10d13ffb6fcea1d0fcc78c952 | bcee2241fdef73882806bba86fcdd42b210f8f54 | refs/heads/master | 2021-09-07T21:28:13.615171 | 2018-03-01T10:44:19 | 2018-03-01T10:44:19 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import socket
from struct import *
sock = socket.socket()
sock.connect(('127.0.0.1', 9090))
sock.send(bytes('hello world!', encoding='utf-8'))
data = sock.recv(1024)
sock.close()
print(data) | UTF-8 | Python | false | false | 193 | py | 3 | client.py | 3 | 0.694301 | 0.61658 | 0 | 11 | 16.636364 | 50 |
TnSoCob/test1 | 14,328,010,926,737 | 0b5b8375baa6bfd02b40d8fa03f6f99dd0b2c46c | 8009a56ce769e0f9a08cd8a17629699c268ef29a | /test1.py | aea9e76ed28b81ade9e0e8a0635bf28c51afb21a | [
"MIT"
] | permissive | https://github.com/TnSoCob/test1 | ba710e1384b9bd4cbc8ecbeaf11fb5c2d41e26c2 | 226eb6ea84f98fd8c9b5605cc969dce97384d8a4 | refs/heads/master | 2020-04-27T07:51:01.289302 | 2019-03-06T14:02:47 | 2019-03-06T14:02:47 | 174,149,641 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | num1 = 1
num2 = 2
num3 = 3
num4 = 4
| UTF-8 | Python | false | false | 39 | py | 1 | test1.py | 1 | 0.512821 | 0.307692 | 0 | 7 | 4.571429 | 8 |
rongfengliang/rediSQL | 11,811,160,097,826 | 1cf288b84a6834dca5400326bb9408076f91b663 | 12b1efd56355aa773a98e8be58d4c9b5e3747f17 | /test/correctness/test.py | 8c0299e93c16529c4d6480d7a13772c875493f61 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | https://github.com/rongfengliang/rediSQL | 17c531fa716c30d2e9557870062993d04df683eb | 3d44ce63a44789eab77abb63fd490a4b5e08e290 | refs/heads/master | 2020-06-27T12:31:17.942331 | 2019-08-01T11:44:26 | 2019-08-01T11:44:26 | 199,955,231 | 1 | 1 | NOASSERTION | true | 2019-08-01T01:39:15 | 2019-08-01T01:39:15 | 2019-07-31T23:12:20 | 2019-07-31T22:35:13 | 16,506 | 0 | 0 | 0 | null | false | false | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
import unittest
import os
import tempfile
import shutil
import time
import redis
from rmtest import ModuleTestCase
if "REDIS_MODULE_PATH" not in os.environ:
os.environ["REDIS_MODULE_PATH"] = "../../target/release/libredis_sql.so"
os.environ["RUST_BACKTRACE"] = "full... | UTF-8 | Python | false | false | 40,498 | py | 54 | test.py | 20 | 0.580862 | 0.556958 | 0.000025 | 936 | 42.262821 | 150 |
finben/djattendance | 9,526,237,483,787 | af1bef0ed8c49e234c8f596696fc9bbd14bd0c19 | 56b50181fc9b23afd78013c1e7a32be319ad634b | /ap/ap/views.py | 3f1ceb3e0d93f17ce4289c925ca755790ed30927 | [] | no_license | https://github.com/finben/djattendance | c5a7d768251dac60634cf39888683a83a074a2e3 | 0758da4a5e93115a369f7a9f34ea0a0f1a95f9ac | refs/heads/dev | 2021-05-20T09:12:19.147808 | 2019-11-15T19:52:15 | 2019-11-15T19:52:15 | 94,934,059 | 0 | 0 | null | true | 2017-06-20T20:52:39 | 2017-06-20T20:52:38 | 2017-03-25T16:37:18 | 2017-06-18T02:39:35 | 162,896 | 0 | 0 | 0 | null | null | null | import json
from datetime import date
from announcements.notifications import get_announcements, get_popups
from aputils.trainee_utils import is_TA, is_trainee, trainee_from_user
from aputils.utils import WEEKDAY_CODES
from bible_tracker.models import (EMPTY_WEEKLY_STATUS, UNFINALIZED_STR,
... | UTF-8 | Python | false | false | 6,087 | py | 697 | views.py | 393 | 0.704616 | 0.698702 | 0 | 170 | 34.805882 | 179 |
Amenable-C/Python_practice | 11,982,958,776,729 | 70a91b7c4da4c25b9c0877b56d6585020d9d6e68 | 2bf7e12a5694070938adbba3feb2db6e39443bd5 | /baseballGame.py | 37419ccc5f76dfdce8e4f275e4837513b550e28f | [] | no_license | https://github.com/Amenable-C/Python_practice | 1e8c97e69ce7cbbe0b787340bf5be29894a94e14 | c95ea4f1213b0a678324cc0466701348fb12c54c | refs/heads/master | 2023-06-01T22:47:40.169598 | 2021-06-15T14:33:27 | 2021-06-15T14:33:27 | 369,830,841 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Baseball game
import random
fix = []
n = 0
while n < 3:
fix.append(random.randint(0,9))
n = n + 1
#print(fix)
trial = 0
while True:
trial = trial + 1
guess = input("Guess three numbers: ")
guessS = guess.split(" ")
#print(guessS)
s = 0
b = 0
for i in range(0, 3):
if fix[i] == int(guessS[i]):
... | UTF-8 | Python | false | false | 568 | py | 43 | baseballGame.py | 43 | 0.535211 | 0.503521 | 0 | 34 | 15.735294 | 46 |
takumiw/AtCoder | 6,846,177,905,449 | f1c3d9aaef09af83bc13e244a464f00acfa5b6d0 | 1885e952aa4a89f8b417b4c2e70b91bf1df887ff | /ABC166/D.py | 16b66cf763e4626445d51b46b7039501778fc81d | [] | no_license | https://github.com/takumiw/AtCoder | 01ed45b4d537a42e1120b1769fe4eff86a8e4406 | 23b9c89f07db8dd5b5345d7b40a4bae6762b2119 | refs/heads/master | 2021-07-10T12:01:32.401438 | 2020-06-27T14:07:17 | 2020-06-27T14:07:17 | 158,206,535 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
readline = sys.stdin.readline
def main():
X = int(readline())
for a in range(-118, 120):
for b in range(-118, 120):
if a ** 5 - b ** 5 == X:
print(a, b)
return
if __name__ == '__main__':
main() | UTF-8 | Python | false | false | 270 | py | 488 | D.py | 486 | 0.444444 | 0.392593 | 0 | 13 | 19.846154 | 36 |
ForeignTrade/ForeignTrade | 6,451,040,909,637 | 60a7e9b444506858c74b4c230985b50c51c14552 | 1d3f2097ea88327c63ed9df6670c6ca8e4f1aa5c | /ForeignTrade/headquarters/finance/adminx.py | 11b57d8d48ede8c24425948525bf463fbf6063fb | [] | no_license | https://github.com/ForeignTrade/ForeignTrade | d2c957a8a953f0933b80c3123cf257d43244d734 | 02f33356c73dd71cdd881e17d8423edf9faf342e | refs/heads/master | 2020-04-16T01:23:02.731106 | 2019-08-07T08:37:24 | 2019-08-07T08:37:24 | 165,171,126 | 3 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import xadmin
from finance.models import ExchangeRate
from sales.models import CollectionPlan
class ExchangeRateAdmin(object):
model_icon = 'fa fa-dollar'
list_display = ['currency','type','date','exchange_rate']
search_fields = ['currency','type']
list_filter = ['currency','type','date']
relfiel... | UTF-8 | Python | false | false | 401 | py | 159 | adminx.py | 134 | 0.708229 | 0.708229 | 0 | 18 | 21.111111 | 61 |
CarlaSobico/EjerciciosLabo | 15,650,860,827,836 | 78c3055eeeab6a34cbe9114f8646552162b7d4d7 | 11a1bc5971d77c16f5690835c1e3bae74a105df0 | /main2.py | 373e065b504374fd1f412078a3bfc54b7d0cf65e | [] | no_license | https://github.com/CarlaSobico/EjerciciosLabo | 48f28d959133786afd66b2c33601c717d01a39fd | fe593fe18db55f56e2d1f73e4453f38fe0c8e3e6 | refs/heads/master | 2020-05-03T00:06:03.176859 | 2019-06-07T17:47:05 | 2019-06-07T17:47:05 | 178,300,344 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import math as m
import scipy as sci
from scipy import signal
import matplotlib.pyplot as plt
from scipy.fftpack import fft
from scipy.fftpack import ifft
from scipy.fftpack import fftshift
import pylab as pl
k1 = 0.19 * 10e12
k2 = -1.9 * 10e6
fi0 = 0
fs = 50e6
#x=np.arange(N) / fl... | UTF-8 | Python | false | false | 2,185 | py | 4 | main2.py | 4 | 0.588558 | 0.507551 | 0 | 113 | 17.353982 | 75 |
rafavillalta/lispy | 4,655,744,578,651 | 8334f1e7333f492bc9d84773474be7b10a8a8d27 | b30113c34d1b220d4debe33de23a2912c9ef6796 | /mylis/mylis_2/meta_test.py | 3c884d896ae9ac384fc356f2b49a6f4b1fb399cf | [
"MIT"
] | permissive | https://github.com/rafavillalta/lispy | e6d9625250010979e5bdfc2e61c920742a9dd3fc | 7c2d3625eba07dafb6edc130ac0cb63cffc18591 | refs/heads/main | 2023-08-14T21:58:35.048308 | 2021-10-08T14:25:20 | 2021-10-08T14:25:20 | 414,785,757 | 0 | 0 | MIT | true | 2021-10-07T23:27:52 | 2021-10-07T23:27:52 | 2021-10-07T18:28:53 | 2021-10-07T18:43:32 | 851 | 0 | 0 | 0 | null | false | false | import operator as op
import mylis
env_scm = """
(define standard-env (list
(list (quote not) not)
(list (quote eq?) eq?)
))
standard-env
"""
def test_env_build():
got = mylis.run(env_scm)
assert got == [['not', op.not_], ['eq?', op.is_]]
scan_scm = """
(define l (quote (a b c)))
(define (scan what ... | UTF-8 | Python | false | false | 1,216 | py | 41 | meta_test.py | 12 | 0.561678 | 0.561678 | 0 | 57 | 20.333333 | 67 |
MystMaster/discord-bot | 13,460,427,526,566 | c5decfc985e5ef5b40ae84703d89018f2f27b8c3 | 20812be80eaea48867641cdead44402a581482f7 | /tarakania_rpg/db/postgres.py | 072516f8fb11b6dcb6b925de547017e334121815 | [
"MIT"
] | permissive | https://github.com/MystMaster/discord-bot | 4b956e5f94e6a0c86afed8cf3220c215388fc2bd | 801d7004589800c6013f32a3289f4b8277b289b2 | refs/heads/master | 2023-05-10T18:17:23.265788 | 2021-03-26T07:34:03 | 2021-03-26T07:34:03 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from typing import Dict
import asyncpg
async def create_pg_connection(pg_config: Dict[str, str]) -> asyncpg.Connection:
return await asyncpg.create_pool(**pg_config)
| UTF-8 | Python | false | false | 173 | py | 73 | postgres.py | 46 | 0.751445 | 0.751445 | 0 | 7 | 23.714286 | 80 |
ValeriyaShastun/test_demoqa | 15,187,004,409,032 | 9a6c837e56b2f45453d0fb34a4fe7403259ba2ec | 3a3f0249d599cacf2f9c6451ea2ed738cfac19ed | /demo_qa/main.py | 0e8cf835ee0a1ec6c2119b751d8430c998bf2f1d | [] | no_license | https://github.com/ValeriyaShastun/test_demoqa | 1c50bd04522434470c1f0ca5ad853bb3b6a1e9b5 | 9ecdf2aeb3397df8bcf1619f5988bba973cf76ff | refs/heads/main | 2023-06-19T04:29:12.885903 | 2021-07-12T14:38:55 | 2021-07-12T14:38:55 | 385,276,858 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from selenium.webdriver.common.by import By
import demo_qa.parameters as par
import demo_qa.utils as util
class HomePage():
def __init__(self, url=par.url, driver=par.driver):
'''Getting Home page
:param url: url of home page
:param driver: chromedriver call'''
driver.get(url)
... | UTF-8 | Python | false | false | 1,146 | py | 5 | main.py | 5 | 0.625654 | 0.623909 | 0 | 30 | 37.2 | 90 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.