blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
aff580e8c7c8980cd657b948443ad1de8d8f550a
6be945b1bde639061c7ef54559aa75c4eecc175b
/pydenv/__init__.py
ab0a9bbc9685803cc4b46ac0bba791202e36875a
[ "MIT" ]
permissive
felipe-almeida-costa-leite/pydenv
a1ec485e494d87338acbca18e69f1dad0e16134f
c2562a194a07c56e412f3e0023cffb39e05870d4
refs/heads/main
2023-07-04T09:12:39.462821
2021-08-14T21:32:52
2021-08-14T21:32:52
395,814,524
0
0
null
null
null
null
ISO-8859-1
Python
false
false
291
py
__init__.py
# !/usr/bin/python3 # encoding: ISO-8859-1 """ Módulo criado para realizar o processo de criação de ambiente de desenvolvimento.""" import sys def run_pydenv(): from pydenv.pydenv import run as PydenvRun try: PydenvRun() except KeyboardInterrupt: sys.exit(1)
00566f82330e7a789df55070b4ffcc021a427f67
5dc9a2cbdf7645eecbb3c63f701fd41564d868d3
/hellopink/Sessions/4.functions/ex4_5.py
0fdbdf23d0dff43d7487cffcfe86097db69c08f0
[]
no_license
gaonita/my_little_project
56d145c966a57a71d456f0657efb24768f989599
490d7d58a8a8e7480a4a0760775396f15c8663ce
refs/heads/master
2021-01-02T22:52:14.538226
2017-12-11T15:00:53
2017-12-11T15:00:53
99,407,542
3
0
null
null
null
null
UTF-8
Python
false
false
273
py
ex4_5.py
def range_function(i): if i in range(0,11): print (i, "is in range 0-10") elif i in range(10,21): print(i,"is in range 11-20") else: print (i,"is in range 21 to infinite") return print() my_range = range_function(30) print(my_range)
52c650822503a77cf90ad2211d8fc8bc72319b7d
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_97/1823.py
1578be96c49410bced56d30c27599ad5188b9f17
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
736
py
1823.py
#!/usr/bin/python # -*- coding: latin-1 -*- from math import floor inp = open('C.in') out = open('C.out','w') cases = int(inp.readline()) for case in xrange(cases): done = [] line = inp.readline() numbers = line.split(' ') possibilities = 0 if len(numbers[0]) == 0: out.write("Case #"+str(case+1)+": 0") else:...
cb111a997e54ec3cb048ef39da8e1c3b9a455021
b2c896ca9f2acb81115708ce6cf8d01396e71a18
/capybara/node/actions.py
5096695c74c8ac0ac38fdda0c100baecedbb55e8
[ "MIT" ]
permissive
elliterate/capybara.py
b846f3cb1a712a120361849b378d437775c2c6db
eafd9ac50d02e8b57ef90d767493c8fa2be0739a
refs/heads/master
2023-08-16T13:56:51.506840
2022-01-16T18:04:22
2022-01-16T18:04:22
64,620,050
63
22
MIT
2022-01-16T18:04:23
2016-07-31T23:02:18
Python
UTF-8
Python
false
false
9,949
py
actions.py
import os.path import capybara from capybara.exceptions import ElementNotFound, FileNotFound from capybara.queries.base_query import BaseQuery class ActionsMixin(object): """ If the driver is capable of executing JavaScript, actions will wait for a set amount of time and continuously retry finding the el...
00f9826c79f949913d77ece487e7eb45b55346e1
6db461ac87ac490ae20d6e260ee353534f207ea9
/project/users/migrations/0003_customuser_populate_uuid.py
388e5a401512e7173740e0ea2c6c54244824a721
[ "MIT" ]
permissive
780Farva/django_guardian_playground
b0ee7a48d8aa48ab67dba12f0d042f3dad7ac907
923086cdb9712d634da3f75b6f8e52505d4acc73
refs/heads/master
2022-06-07T07:04:24.978419
2019-11-10T07:26:00
2019-11-10T07:26:00
219,561,901
0
0
MIT
2022-04-22T22:44:24
2019-11-04T17:49:14
Python
UTF-8
Python
false
false
536
py
0003_customuser_populate_uuid.py
import uuid from django.db import migrations def gen_uuid(apps, schema_editor): CustomUser = apps.get_model("users", "CustomUser") for row in CustomUser.objects.all(): row.uuid = uuid.uuid4() row.save(update_fields=["uuid"]) class Migration(migrations.Migration): dependencies = [("user...
311717dc36a2ba7f418c18c22f0a3c966a79083d
eda8b801aab469113be4053a7d492dde0da63373
/metadata-ingestion/src/datahub/ingestion/source/dbt.py
1cd7b881d49c1fd246ea5e82ae984ff522938d71
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause", "MIT" ]
permissive
zuizeze/datahub
630c00934e7b76eeb3a08feda7a112dd745ee18b
63a37450103eff3e94d798c36bab6e47fbca47dc
refs/heads/master
2022-09-06T19:53:02.219574
2022-08-13T00:35:53
2022-08-13T00:35:53
242,064,645
0
0
Apache-2.0
2020-02-21T05:49:26
2020-02-21T05:49:25
null
UTF-8
Python
false
false
84,200
py
dbt.py
import json import logging import re from dataclasses import dataclass, field from datetime import datetime from enum import Enum from typing import ( Any, Callable, Dict, Iterable, List, Optional, Tuple, Type, Union, cast, ) from urllib.parse import urlparse import dateutil.par...
7e176d34da4114723f4dc8fbf1c991e21f0769d5
f2cce7c1f957cb98901dc46499d4b71f0d015065
/main4.py
e9a5df69204963360ece15cb61d5dafe5be7c011
[]
no_license
ttyhtg/HttpxTest
3613d4bd499235dc69583f69fe7d7991ea38b898
fb947a5352a1fb801d0df223d1b535e3ada455e3
refs/heads/master
2023-05-02T07:24:59.113005
2021-05-17T17:19:45
2021-05-17T17:19:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
256
py
main4.py
import httpx headers = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36' } response = httpx.get('https://httpbin.org/get', headers=headers) print(response.text)
faee129ce1c0214dfd6ce025bd5fae8b61127d4b
26678461fe2225d355a04ac326feb3eb078b811f
/reserveTime/restaurant/admin.py
6f3130e3726ef34367f5e267a6171931d1e15970
[]
no_license
saraaxmedova98/ReserveTime
db7af2bd4e873527db0894834ba010214723d07e
fc25cd6faf88f677cc7a25d4d472ec61c9a3ab9c
refs/heads/master
2022-12-18T06:01:26.648213
2020-09-07T14:24:07
2020-09-07T14:24:07
293,547,676
0
0
null
null
null
null
UTF-8
Python
false
false
1,964
py
admin.py
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from account.models import * from restaurant.models import * from django.contrib.auth import get_user_model User = get_user_model() @admin.register(Company) class CompanyAdmin(admin.ModelAdmin): list_display = ('id'...
da756be92f5f92b0bae8dd9a17d1e0ac40421d28
1e667ec5b0d89d60121be57b648e01f8b849b360
/song_id.py
a0ec5d781282e2d9ec44cf55d7807939a133fdf3
[]
no_license
gavin199006/wangyisongnew
720fc657a6403cb811c123338ca2de1d376df1f8
330233899c08f70216c57a3a2f27cbd3da3aa154
refs/heads/master
2020-04-13T23:10:16.345514
2019-01-02T01:42:53
2019-01-02T01:42:53
163,499,100
0
0
null
null
null
null
UTF-8
Python
false
false
8,515
py
song_id.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 18-12-28 下午6:08 # @Author : Gavin # @Site : # @File : song_id.py # @Software: PyCharm import csv import re import time import urllib import requests, os, json, base64 from bs4 import BeautifulSoup from scrapy.selector import Selector from binascii impo...
e12bc86bf043f0cf1f8e0bc4c7c46fa3801ba243
ffd23e7d86c26627cd237a443cceb8f42cf6051f
/1-10/Pg_3 (Rupees into Paise).py
aae898547bb34a33c36fbdae80ce1295cd692fc6
[]
no_license
Some-Earth-2514/Class-11
4467720e8c225dbc7ead85fed1ef65c4d9ef8029
dacfe4dfa07f9e68c19cccde463f311a11f6e123
refs/heads/main
2023-03-24T22:19:57.073502
2021-03-24T09:42:31
2021-03-24T09:42:31
351,009,255
0
0
null
2021-03-24T09:28:28
2021-03-24T08:53:11
Python
UTF-8
Python
false
false
174
py
Pg_3 (Rupees into Paise).py
# WAP to convert rupees into paise rupees = float(input("Enter the price of item in rupees ")) paise = (rupees * 100) print("The price of the item in paise is = ",paise)
778338f8fc40c88862137e285e09c034433fa757
4fb5003df76ead5e6a3d81efff89f5c0cebf1144
/resume/migrations/0004_skill_workdetails.py
27e130baf3c602d6cc7ca857698f5e393de32a23
[]
no_license
pongloongyeat/resume-builder
fe508d7d2bff7307dddba881f7b56634cbccb907
0c7e1c462865b46698a3014f0696ff0b1c41c16e
refs/heads/main
2023-02-05T18:07:15.647977
2020-12-24T15:14:50
2020-12-24T15:14:50
322,107,187
0
0
null
null
null
null
UTF-8
Python
false
false
1,775
py
0004_skill_workdetails.py
# Generated by Django 3.1.4 on 2020-12-23 13:30 from django.db import migrations, models import django.db.models.deletion import month.models class Migration(migrations.Migration): dependencies = [ ('resume', '0003_auto_20201221_0507'), ] operations = [ migrations.CreateModel( ...
0a23ad5b7a0cb2b1566367a184b357063499922e
18fb84a07ec088df12f66f8b93ce679052a4a80e
/fbapp/models.py
4e9b3848090acbbc137796a08ea0e505b41fdb0f
[]
no_license
Jeremynadal33/API-test
e6a2e7ac1ee6150f3aa9a7753efc3b7cf1f680cd
72ca88015e319a7e76ee1fc7eefaacbca9cd1bd1
refs/heads/master
2023-02-18T21:41:24.642153
2021-01-19T16:54:58
2021-01-19T16:54:58
331,068,723
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
models.py
from flask_sqlalchemy import SQLAlchemy import logging as lg from .views import app import enum # Create database connection object db = SQLAlchemy(app) #lg.warning('Loading classifier !') class Content(db.Model): id = db.Column(db.Integer, primary_key=True) tags = db.Column(db.String(200),nullable=False) ...
475ba67a59275e306e0f609ba6c11276267452ef
3e5ad9393f160b5bbefda1fbab923b978d5d125d
/Gearbox/yggdrasil.gear.2/mindmap.py
c22ee804fd914f991ab4d6d8b00d80ed28b59c1e
[]
no_license
bhdz/py.strategicon
e64f99d536b3d74b228453afb1a99157543aaf04
2dbe6e38fb49db3a2611d6d81b24cd97cd4762a8
refs/heads/master
2016-08-11T21:14:08.821930
2015-06-16T13:38:27
2015-06-16T13:38:27
36,954,739
0
0
null
null
null
null
UTF-8
Python
false
false
1,002
py
mindmap.py
#!/usr/bin/env python class N(dict): def __init__(self, *args, **keys): self.value = None @property def value(self): return self._value @value.setter def value(self, val): del self._value self._value = val @property def name(self): return s...
4112184875f92b7c1fad19cc5043037839fa331b
f9737e34ce57909c0c5d34755cdc319c487b0b02
/shop_v4/reviews/urls.py
663204f9ee54407a90fd50ca26f0dd2269cf06c5
[]
no_license
sibastr/Databases-Course-Project-master
354512b8bcf15d7a9b9524cd55bb89e8056cc558
b2ce6471585c10ffff70ed9c524c508afd95614e
refs/heads/main
2023-04-14T21:16:56.946934
2021-04-15T11:10:22
2021-04-15T11:10:22
335,676,690
1
0
null
null
null
null
UTF-8
Python
false
false
419
py
urls.py
from django.urls import path from .views import ReviewCreateView, ReviewUpdateView, ReviewDeleteView urlpatterns = [ path('product/<int:pk>/rev-create/', ReviewCreateView.as_view(), name='review-create'), path('product/<int:prod>/<int:pk>/rev-update/', ReviewUpdateView.as_view(), name='review-update'), pa...
9cca058c3cfc99a2b055f16dd9fc26685396d4a8
8ff6375f87cb660e9eb5752952da64319f18e113
/tcproxy.py
463f7701473bf4affc39d32ea6975b279437a2b2
[]
no_license
georgeleelz/py_practice
3dc26a50f07b7da5f12055797ac483a576a6f52c
65519a534ae210b41988abdd0564b13f60a8dfb0
refs/heads/master
2020-06-12T06:05:46.765578
2019-06-28T06:28:06
2019-06-28T06:28:06
194,216,009
1
0
null
null
null
null
UTF-8
Python
false
false
86
py
tcproxy.py
# -*- coding: utf-8 -*- """ Created on Fri Jun 28 14:01:02 2019 @author: george """
0dea283799cca3ec1885aeaa1d8a949a4947be25
1cbdfbe352d65a7b55d8f3120c7f18cb87229845
/tests/category_map_test.py
2fd12f3e172a05d52e5e298944e8103fde48d311
[]
no_license
randallporter/finalProject
8a3b83705791446c20533fde292266c0822c66e3
fafedcfd1207c2456b8296487f25360308afaf07
refs/heads/master
2021-01-10T05:38:58.407903
2015-06-06T02:54:03
2015-06-06T02:54:04
36,701,464
0
0
null
null
null
null
UTF-8
Python
false
false
10,466
py
category_map_test.py
from unittest import TestCase import source.map_categories from source.Transaction import Transaction from source.Profile import Profile from io import BytesIO from mock import patch import difflib import os class TestMatching(TestCase): def test_get_highest_match_per_category(self): fake_transaction = ...
00b6f0d710198b8bf7d886f87edf005eba7feaba
bca44c32b850c297d45136c54b93882a144e87d3
/pyteal/compiler/constants.py
415b7d19ead17bb758404c63ac138aa154f0a975
[ "MIT" ]
permissive
algorand/pyteal
b7f541ee6484f6bac94bc528ffa429196d8cd79a
670e637644630534883b4c2e6837ab34c56546b6
refs/heads/master
2023-06-11T04:37:33.645398
2023-06-06T20:18:01
2023-06-06T20:18:01
212,449,337
282
134
MIT
2023-06-06T18:15:23
2019-10-02T22:00:39
Python
UTF-8
Python
false
false
9,039
py
constants.py
import base64 from typing import Union, List, Dict, cast from collections import OrderedDict from algosdk import encoding from pyteal.ir import ( Op, TealOp, TealComponent, ) from pyteal.util import unescapeStr, correctBase32Padding from pyteal.errors import TealInternalError intEnumValues = { # OnCo...
40706d8677ad2394e7a0f579c32d656e5ed56787
62068b9e3085c3722e306d009e706867652a59cb
/ToontownPlanet/toontown/safezone/FFTreasurePlannerAI.py
15ad88ae4266bbc7c6eda40d2078cf6c0f82d071
[]
no_license
MoonmanGod/ToontownPlanet
df210426154168bc397bbeee194655a0b2591891
a26d74d0fd497e0c719bc74e3f5d42cfb312079c
refs/heads/master
2016-08-07T01:23:17.370978
2015-07-11T19:56:23
2015-07-11T19:56:23
38,937,370
1
3
null
null
null
null
UTF-8
Python
false
false
1,017
py
FFTreasurePlannerAI.py
from toontown.toonbase.ToontownGlobals import * import RegenTreasurePlannerAI import DistributedFFTreasureAI class FFTreasurePlannerAI(RegenTreasurePlannerAI.RegenTreasurePlannerAI): def __init__(self, zoneId): self.healAmount = 8 RegenTreasurePlannerAI.RegenTreasurePlannerAI.__init__(self, zoneId,...
7f8a73d221b2eb602910c99a716d6d9e1bc3fb49
6469ddc4f050a38237f3ccd62f9099900a711d73
/Configrations/migrations/0009_post_show_thumbnail.py
a7bbcfae56340d2ed4affe4fabe1642f74fb454b
[ "MIT" ]
permissive
FarhanSyedain/miniblog
74348fa1d0a0aa6c853bc01f7a358c4bd23f33a3
8e2ca3a8bd538bfe09b6bdaddfb3cd71d995380b
refs/heads/master
2022-12-04T13:18:16.256978
2020-08-28T14:01:45
2020-08-28T14:01:45
288,962,519
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
0009_post_show_thumbnail.py
# Generated by Django 3.0.6 on 2020-08-21 08:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Configrations', '0008_auto_20200820_0104'), ] operations = [ migrations.AddField( model_name='post', name='show_thum...
98abd468928efefe44c0af181fea37daeaab9517
15987e3d7450127fc9e1c691f006d04b87df35cc
/createTextFiles.py
934f7162cf624c286f3bd0303fcd9bc9ad2d5e41
[]
no_license
allenshi820/LPrecoginition
cb222119831340a6a2b90bf7a9130c55fd9f0ba1
c3b77684c3ad9243828749a26e77632c9985f36f
refs/heads/master
2021-07-18T13:29:33.286809
2017-10-24T23:55:48
2017-10-24T23:55:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,423
py
createTextFiles.py
import pandas as pd import os.path df = pd.read_csv('test_set.txt',sep='\n',names=['filename','bbox']) df2 = pd.read_csv('training_set.txt',sep='\n',names=['filename','bbox']) test_df = pd.DataFrame({'filename':df['filename'].iloc[::2].values, 'bbox':df['filename'].iloc[1::2].values}) training_df = pd.DataFrame({'fil...
aac16b2ea0a2bb5901a65064eaf657b862e31b5a
00f75308faceff8800c285b45ac9c2e2a4aeb3ee
/Credit_card_churn/Customers/migrations/0006_auto_20210304_0526.py
8989302e6f2dbe1652fbacb36c670d422cbadde0
[]
no_license
poojajps13/Credit_Card_Churn
a5a5e0ec150cefe6e610b17e6701c6c90363f680
02b7ff9d0082cf8b24bd1b4b60982805032765dd
refs/heads/main
2023-03-14T10:53:46.859612
2021-03-04T05:38:51
2021-03-04T05:38:51
344,177,519
0
0
null
null
null
null
UTF-8
Python
false
false
3,496
py
0006_auto_20210304_0526.py
# Generated by Django 3.1.7 on 2021-03-04 05:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Customers', '0005_auto_20210303_1137'), ] operations = [ migrations.AlterField( model_name='customer', name='age', ...
6e0cd009169f5d7138669ff46c8a9de62447ebf6
786a89a4bd31e0a5953094c7880021cc98f78f98
/train/TR/Ahukasa.py
e208524f02c5714abd72061e400a5173a10da960
[]
no_license
enjoy82/atcodersyozin
c12eb9cc04e61cedcdc13643b84e8c87c13ff4b1
c8a73577d1d75db2d5c22eab028f942f75f2fba7
refs/heads/master
2022-10-04T04:47:16.835712
2022-09-30T07:15:47
2022-09-30T07:15:47
243,669,940
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
Ahukasa.py
import sys H, W = map(int, input().split()) a = [[str(c) for c in l.strip()] for l in sys.stdin] ans = "No" def check(x, y): if(x<0 or x >= H or y<0 or y>=W): return else: search(x, y) def search(x,y): if(a[x][y] == "#" or a[x][y] == "1"): return elif(a[x][y] == "g"): global ans ans = "Yes" a[x][y] = "1...
891f5aa44a94fd7a8ab9a23f435c51502f470f82
65f913a1d3855fe3a63cd78d5e562e95dda8287b
/List_array.py
d2989023233eed7aebd1a766088dc379955a0dcc
[]
no_license
Lucio-Pham/Python-exercises-from-basic
6056d16afc5667dc7c65132fcde0e2371566104f
bd29eaaf316adc8243ca3769caef1f51cac49255
refs/heads/main
2023-03-26T18:23:43.825637
2021-03-19T11:52:09
2021-03-19T11:52:09
345,918,868
0
0
null
null
null
null
UTF-8
Python
false
false
5,113
py
List_array.py
#tao ban sao cho list my_list = [1,2,4,'anh', '9'] my_duplicate_list = [item for item in my_list] print ("original list", my_list) print ("The first way to create duplicate list", my_duplicate_list) #cach thu 2 my_duplicate_list_2= list(my_list) print ("Second way to create duplicate list", my_duplicate_l...
871bcabf3ce17bd221608caf88404c182308a1ed
223d9f5dad62cdfb49e7e0f720e6cd083e5b2030
/code/models/__init__.py
300dffb44cc2687fa8976861a50c4e6a20bac47f
[]
no_license
dreamgonfly/ToMuchInfo
b9091cd81acdfcb5296a3f152b8d51c8c0483f48
ac6eac1c4c597ae2ef8f36e8eefee2315333426f
refs/heads/master
2021-04-18T22:38:11.597465
2018-05-08T11:57:18
2018-05-08T11:57:18
126,811,061
4
1
null
null
null
null
UTF-8
Python
false
false
758
py
__init__.py
from .WordCNN import WordCNN from .WordCNN_word import WordCNN_word from .VDCNN import VDCNN from .VDCNN_29 import VDCNN_29 from .VDCNN_feat import VDCNN_feat from .VDCNN_feat_dropout import VDCNN_feat as VDCNN_feat_dropout from .LSTMText import LSTMText from .LSTM_Attention import LSTM_Attention from .FastText import ...
a51e0393782921b5ba39237a30d1c5aa64cf3658
87c4620026a2fa5649f90ee447fc1e6cb4ab4633
/thermos/config.py
7696b881b784ffc0fb228c1fe5ca612ca0eb8a51
[]
no_license
tswann/thermos
4abd516954e2c0ee11100b1963076a7726fa569b
12cf6fa3be7139a7ed15c909960fd2266b557b98
refs/heads/master
2021-01-22T06:40:18.582889
2015-03-05T10:16:04
2015-03-05T10:16:04
31,319,283
0
0
null
null
null
null
UTF-8
Python
false
false
753
py
config.py
__author__ = 'thomassw' import os basedir = os.path.abspath(os.path.dirname(__name__)) class Config: SECRET_KEY = '\xaa\x1d\xa8\xe5\xe5\xac!m\x1b\xf30P\x03Z\x8d.\x94\xa7P\x07\xc8G\x152' DEBUG = False class DevelopmentConfig(Config): DEBUG = True SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.joi...
c0fc566fa1af0e4498d7764ab1b25d93fa7cac84
93a1f079de781b40233f27cccb6130cc48dd3136
/learn/test_scipy.py
de919e5f2014e4711bf8ddfe096d2dd25d70020f
[]
no_license
wsgan001/quant
5cef5f2a8a4290d75714acbb7384fe7585adc7c9
ec51b920f2c50085888a83827bd87750b208965a
refs/heads/master
2021-05-30T18:26:57.869230
2016-01-31T10:35:46
2016-01-31T10:35:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,672
py
test_scipy.py
# coding=utf-8 # 一,SciPy概述 # SciPy基于NumPy提供了更为丰富和高级的功能扩展,在统计、优化、插值、 # 数值积分、时频转换等方面提供了大量的可用函数,基本覆盖了基础科学计算相关的问题。 # 在量化分析中,运用最广泛的是统计和优化的相关技术,本篇重点介绍SciPy中的统计和优化模块,其他模块在 # 随后系列文章中用到时再做详述。 import numpy as np import scipy.stats as stats import scipy.optimize as opt # 二,统计部分 # 2.1 生成随机数 # 我们从生成随机数开始,这样方便后面的介绍。生成n个随机数可用rv_con...
4040cb5ca3a6dd908e66937415083852e5952672
33110fa5ad8c47e31401769086a985eea1a991c7
/mmsegmentation/tools/convert_datasets/random_split.py
e97ea52a47b2d0274cf797c5209caff7617375d8
[ "Apache-2.0" ]
permissive
UESTC-Liuxin/SKMT
32bc2781063de1da2a778659e6501762531b15a8
377bbe3e5d2777d6c3ccaae7a6c364bd9c85d651
refs/heads/master
2023-01-12T19:28:49.340298
2020-11-16T03:35:09
2020-11-16T03:35:09
283,365,017
1
0
null
null
null
null
UTF-8
Python
false
false
4,111
py
random_split.py
# -*- coding: utf-8 -*- """ @description:modified from RanTran.py by cly. @author: LiuXin @contact: xinliu1996@163.com @Created on: 2020/8/13 上午9:35 """ import os import numpy as np class SplitImageSets(object): """ description: """ def __init__(self,default_split_ratio=0.8,joint_key='Shoulder',data_r...
f5cd38980891fd81a770fcdc7b94ae99521591e8
b27140a79e2f8200ef7acbf79b39139db1a794c6
/predict_student_admissions.py
40378a13197984a856fe17bd920bda046bd79416
[]
no_license
astonish1123/deep_learning
7ae8c20e4749602954b57146d3f159dabc8c3efa
9bd9f83f6cfb260dec8a0b259b03b7576ca3959b
refs/heads/master
2021-01-06T17:41:22.117804
2020-03-03T16:38:40
2020-03-03T16:38:40
241,421,756
0
0
null
null
null
null
UTF-8
Python
false
false
3,414
py
predict_student_admissions.py
import numpy as np import pandas as pd import matplotlib.pyplot as plt def plot_points(data): X = np.array(data[["gre", "gpa"]]) y = np.array(data['admit']) admitted = X[np.argwhere(y==1)] rejected = X[np.argwhere(y==0)] plt.scatter([s[0][0] for s in rejected], [s[0][1] for s in rejected], s=25, co...
44bfe594aa60eabc244ff7ae3d68780cd27545a4
224fcb8ee650185c919935d8d7f9b155dedfedc1
/Power of given num.py
ab5a826bd8c04c2b92838f166c786cd78fec645f
[]
no_license
yasosurya33/yaso
7c659c940d6bd0c8f4b14e1eee9cded76620d20b
ec2ae361253badf1657b8619a05f0d085c1bb78d
refs/heads/master
2020-05-28T09:23:09.239440
2019-08-17T08:21:23
2019-08-17T08:21:23
188,954,576
0
1
null
null
null
null
UTF-8
Python
false
false
134
py
Power of given num.py
a,b=map(int,input().split()) lab=0 for i in range(a): if b**i==a: lab=1 if lab==1: print("yes") else: print("no")
aad8a7020b6dac6c6061a3c6a177e68489da917d
639b8dee007e50e64f1cbb94c2f06f114c7824c8
/tests/wikipedia_service_test.py
a79d849affb2597b291693a5d441af4388330f40
[]
no_license
mskoko/Voice-assistant
42f40b457f06a16e26b408e5a2368b0b69360634
d46f2cc13115c6e8261d8ce8c0534fb62692621f
refs/heads/master
2022-12-03T10:17:55.459744
2020-08-15T13:17:50
2020-08-15T13:17:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
wikipedia_service_test.py
import sys sys.path.append("..") from services.webapi.wikipedia_service import WikipediaService ws = WikipediaService() #exception case #print(ws.brief_search("fsfsfsfs").get_result()) print(ws.brief_search("Mihajlo Pupin").get_result()) ws.set_language("sr") print(ws.brief_search("Новак Ђоковић").get_result()) #ass...
31a462a18b8132e1ec63e373cc24e1e8368522d6
ced0efb0666b5817b9656cd533cf6f5db0085fe8
/cc/4.py
de9df47c837d05d530752d6c0644c7da62e80c1d
[]
no_license
adithyaphilip/learning
11fb6997ab3d613a358502dfff0ae9b91cd5ee27
64ecd3bc622077c7256df91cdf4dfbc8adf23068
refs/heads/master
2021-06-01T18:04:46.733092
2016-09-22T18:22:46
2016-09-22T18:22:46
68,949,350
0
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
4.py
p,q = map(int, input().split()) pl = [1 for _ in range(p)] queries = [list(map(int, input().split())) for _ in range(q)] nl = [] for i in queries: nl.append({"s":i[0], "n":i[2]}) nl.append({"e":i[1], "n":i[2]}) nl = sorted(nl, key = lambda x: x["e"] if "e" in x else (x["s"] - 0.1)) #print(nl) ps = None pe = ...
b74e198874de2ada15d16063fc7a1f58a4319d7b
69e06a1855b93835220ebe77b14526eb00c98c3f
/Q2/SVM.py
9e62bf4cb82299dd7bfcfb8e794a09f73c106197
[]
no_license
wxhxbt/Pycharm
a44e8b9224ecb624b9a09f599d479b50c5ad2480
d8df2b8619f2e37b695227449791c906f941d8b2
refs/heads/master
2021-12-30T10:13:25.944619
2021-12-13T05:33:53
2021-12-13T05:33:53
243,687,082
0
0
null
null
null
null
UTF-8
Python
false
false
2,670
py
SVM.py
from scipy.optimize import minimize import numpy as np class SVM: def __init__(self, train, h): self.h = h self.train = train self.dim = len(train[0][0]) self.size = len(train) self.para = None def loss(self, x): """ The loss function with L2 regulariz...
c1e212645f3d8b6fbb4b8860bc99cb79f3d86f32
0134994567f865d4a76613a42fcaee868d2b71d8
/asteroid.py
0875fe8ad34c8294c033f86c6baaff62f247397a
[]
no_license
Gabriel-bits/Jogo-teste
fee46c3bd8d7972f63683f303cafe2ad64f9fca6
c8f438b184209fdebc46f32e9fd4460c0b154d7e
refs/heads/master
2022-12-10T20:49:00.654970
2020-09-14T17:50:32
2020-09-14T17:50:32
293,588,211
0
0
null
2020-09-14T19:34:40
2020-09-07T17:15:18
Python
UTF-8
Python
false
false
638
py
asteroid.py
import pygame import random # Asteroid_and_material class Asteroid(pygame.sprite.Sprite): def __init__(self, *groups): super().__init__(*groups) self.image = pygame.image.load("data/personagens/asteroid.png") self.image = pygame.transform.scale(self.image, [110, 70]) se...
5238a769446cd648d177da50977ca909e46d2f62
9be544b7bc1b7ec500a65bf062568a17d38c459d
/services/dokter.py
dd208e315d41da5a6433ed9536d11631e294a0f9
[]
no_license
noudadrichem/parkinson-rest-dashboard
57cbfb90ca3efa25fc56e5d20086c5a10a362cfa
6e873304d722c34ef4cc2d154393e3dd27f0d831
refs/heads/master
2020-04-10T23:10:36.877347
2019-01-31T13:39:15
2019-01-31T13:39:15
161,344,224
0
0
null
null
null
null
UTF-8
Python
false
false
872
py
dokter.py
from flask import Blueprint, jsonify, request, Response import psycopg2.extras import sys from db import connection from actions import fetchFromDatabse sys.path.append("..") dokter = Blueprint('dokter', __name__) cur = connection.cursor(cursor_factory=psycopg2.extras.RealDictCursor) @dokter.route('/dokter') def ind...
6968921262cddf683be630ee29a07ee41157e233
4577d8169613b1620d70e3c2f50b6f36e6c46993
/students/1762439/homework04/program03.py
0c033c8d7b6b937a7be8184920fe1e4103e2ac6f
[]
no_license
Fondamenti18/fondamenti-di-programmazione
cbaf31810a17b5bd2afaa430c4bf85d05b597bf0
031ec9761acb1a425fcc4a18b07884b45154516b
refs/heads/master
2020-03-24T03:25:58.222060
2018-08-01T17:52:06
2018-08-01T17:52:06
142,419,241
0
0
null
null
null
null
UTF-8
Python
false
false
6,416
py
program03.py
''' Un documento HTML puo' essere rappresentato sotto forma di albero, come visto a lezione, che si chiama DOM (Document Object Model). Un qualsiasi nodo di questo albero puo' essere individuato sulla base delle proprie caratteristiche: - tag un tag del tipo indicato - .classe ...
5c838af198b8f86098e589306eae0e7e608c5d7b
856920f42a2e4982977ec01a613385fe9be19184
/less_1.1.py
b46c0ab08009d72e765eea4ae997e3f2a84582bb
[]
no_license
vnakonechnuy/stepic-AQA-course
f01252764b9f764925fe16ce56d202d57af7d6f2
904a7ddcba66e9480c40ebf31c451a20136a6279
refs/heads/main
2023-08-27T14:34:35.303034
2021-10-28T16:13:03
2021-10-28T16:13:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
875
py
less_1.1.py
from selenium import webdriver import time import math def calc(x): return str(math.log(abs(12*math.sin(int(x))))) try: browser = webdriver.Chrome() browser.get('http://SunInJuly.github.io/execute_script.html') #Считываем х, подставляем в функцию calc x = browser.find_element_by_id('input_value')....
42a87a56b96013ec0ddb3f3e4a4b38b475de95c2
8220f8ac668035e5433be158f62d2272e50b616e
/dev_codes/airavata_client.py
19caa7cb215f76451ac4af7c9fb7fe56208bd9df
[]
no_license
webgisdeveloper/airavata_jupyter_demo
cca5030ecd0714214f2e40f4a5b6da7d04731f22
ed354f5945ce9b7a8e5df80c76c455172904a138
refs/heads/master
2023-04-08T04:31:04.927520
2023-03-30T14:21:32
2023-03-30T14:21:32
94,564,784
0
0
null
null
null
null
UTF-8
Python
false
false
14,297
py
airavata_client.py
""" airavata_client.py --- API helper for Airavata Python Client reference: Apache Airavata API: http://airavata.readthedocs.io/en/latest/AiravataApi/ """ from apache.airavata.api import Airavata from apache.airavata.api.ttypes import * from apache.airavata.model.experiment.ttypes import * fro...
4ec5e9ca2f741480b34a842a408150d651d9a58e
c00bc79452b98a4a9350532c19fa10953a190212
/tg_bot/modules/edit_or_send_message.py
0fe7f497d132e430a3f93ecde1a7f2fca825bc11
[]
no_license
pip-install-HSE/DestreamBot
0f5fc973b12363756bec505034ad5f24480810f9
677dbc522f7573020d7632f3dcca38319e8bcbb1
refs/heads/master
2023-04-15T10:08:19.871430
2021-04-21T23:39:48
2021-04-21T23:39:48
311,572,769
0
0
null
2020-12-09T16:48:40
2020-11-10T06:58:30
Python
UTF-8
Python
false
false
2,886
py
edit_or_send_message.py
from aiogram import types from aiogram.utils.exceptions import MessageNotModified, TelegramAPIError async def delete_message_with_protect(bot, chat_id, msg_id): try: await bot.delete_message(chat_id, msg_id) return True except TelegramAPIError as e: return False async def edit_or_sen...
1367e1fb3ec9a2b2639862ab0ce9e4262c0c2045
14fa450022ca25e67c06254544697c4a0124249f
/app.py
78e3c2e2b74eef4ac77a0e67bab008a2d8fc90e8
[]
no_license
al3rcio/bitsemchamas
6c69a91be609311118bbc8cff520cc8ea128f391
e55a57e875761d4eb29fc1f17db3f501bf28c2cc
refs/heads/master
2023-09-04T11:18:31.856512
2021-10-24T17:15:21
2021-10-24T17:15:21
376,106,609
0
0
null
null
null
null
UTF-8
Python
false
false
1,112
py
app.py
# linha pra criar o servidor # export FLASK_APP=app.py # para atualizar site: git push heroku master from flask import Flask, redirect, render_template, request # Configure application app = Flask(__name__) # Ensure templates are auto-reloaded app.config["TEMPLATES_AUTO_RELOAD"] = True @app.route("/") def index(): ...
e00c32955c89bf278a9797636e3e668a098b3846
30e35285bb0f7358558e34d37f5ddc7479c4c47c
/python/try.py
99a222840478ca60ad66b3ea764732915afd2ba8
[]
no_license
katiet4/AllPython
680e3e8ed5da0e08cd50ec61828359551dbc1356
ea37d2b5fd102895109f42bfcc7d089375554f6d
refs/heads/master
2021-06-30T22:32:17.313998
2020-11-26T19:47:22
2020-11-26T19:47:22
195,293,862
0
0
null
null
null
null
UTF-8
Python
false
false
16,267
py
try.py
#from PIL import Image, ImageTk, ImageDraw #img = Image.open("в6.png") #pilImage = img.resize((28,28), Image.ANTIALIAS) #pilImage.save("hello.png") from math import e from random import randint, random from PIL import Image, ImageDraw from os import listdir # произведение матриц(возвращает произведение матриц) def matm...
4f84e6caf8ad611086c599c6752b2f22d2f9bc87
ff3d3d3ddcc4f7ea6b276a1e2a3d2994453b72cb
/dropbox/authentication.py
b90197cb0290e1f74daf67f4de0408faf46e1365
[ "MIT" ]
permissive
vizydrop/DEPRICATED-apps
f4465ad78173d455ae8fc348117921f67978c6ea
45d9148079a101f4929b9c612698a04617470b42
refs/heads/master
2021-09-26T15:09:48.000664
2018-10-31T06:44:16
2018-10-31T06:44:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,268
py
authentication.py
import json from tornado import gen import os from oauthlib.oauth2.rfc6749.clients.base import AUTH_HEADER from tornado.httpclient import HTTPRequest, HTTPError, AsyncHTTPClient from vizydrop.sdk.account import AppOAuthv2Account class DropboxOAuth(AppOAuthv2Account): class Meta: identifier = 'oauth2' ...
d60624d391e09075f1661f78309aa7ad3fcbc146
98c0beab1fd87fb4f0f826f18c4907c335aaf0e2
/tests/benchmark_graph_gen.py
50a565b6fa8c0e7361a54c7c90ec853cfcd29c1d
[ "MIT" ]
permissive
Nic30/libEveryPacketClassifier
462a6c062f0347ee913351ebd236c6d2c829862a
668fd308c09a5c921d93d523870a2e7a42c06d90
refs/heads/master
2023-09-02T19:56:41.776071
2021-10-22T09:21:53
2021-10-22T09:21:53
310,047,017
0
0
null
null
null
null
UTF-8
Python
false
false
13,694
py
benchmark_graph_gen.py
import json from os import listdir import os from typing import List, Tuple import matplotlib.pyplot as plt from tests.constants import RULESET_ROOT # @lru_cache(maxsize=512) def get_real_rule_cnt(ruleset:str, rule_cnt:str): with open(os.path.join(RULESET_ROOT, f'{ruleset:s}_{rule_cnt:s}')) as f: return ...
2bbc1d484ea703abd8d080efa1d7ecd7ef6b3d96
cb518a4099c110cbed1ec64925b50f1a9d6d4c4f
/geoloqi/tests.py
814e7b388899b8200498e68ba8647ff8906027cd
[ "BSD-2-Clause" ]
permissive
geoloqi/geoloqi-python
f9728901f33b0a475567290d93efa645e242f01d
d0166372e5b06128fabe46479cbc4ebbcf7ad5a4
refs/heads/master
2020-05-05T01:36:31.109876
2012-10-11T00:53:13
2012-10-11T00:53:13
3,709,935
0
0
null
2015-06-29T00:13:48
2012-03-13T18:43:28
Python
UTF-8
Python
false
false
8,041
py
tests.py
""" Tests for the geoloqi module. """ import json import unittest import urllib2 from mock import Mock, patch from unittest import TestCase from urllib2 import HTTPError, URLError from geoloqi import Geoloqi, Session from version import __version__ class GeoloqiTest(TestCase): @patch.object(Session, 'post') ...
5634c794d4e343cd086560caacbe2dc6c7a2694f
0d8aa219cf984c70ca4876593b1489576b78e716
/parametersharingmadrl/play_independent_multiwalker.py
afe81edc7710d97a2246d41cf834804369e2b905
[]
no_license
Seven-deng/macrpo
845d9e8cfbeecddb6f93f129d5671d4fd1d3726e
09ac6ee466c393eea6eec17f9a193f67c48c681a
refs/heads/main
2023-06-01T22:43:20.771252
2021-06-14T09:05:07
2021-06-14T09:05:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,399
py
play_independent_multiwalker.py
from sisl_games.multiwalker import multiwalker import ray from ray.tune.registry import register_trainable, register_env import ray.rllib.agents.dqn as dqn # DQNTrainer import ray.rllib.agents.ppo as ppo # PPOTrainer import ray.rllib.agents.a3c.a2c as a2c # A2CTrainer import ray.rllib.agents.sac as sac # SACTrainer...
499972c0f18ad696eb68ddf2defce532d8932434
bdba52c756cc09f192b720ea318510c265665dcd
/swagger_client/models/get_characters_character_id_bookmarks_200_ok.py
29746dd1d851eced7f81eec8c1c7e9400aaa5fbc
[ "MIT" ]
permissive
rseichter/bootini-star
6b38195890f383615cc2b422c365ac28c5b87292
a80258f01a05e4df38748b8cb47dfadabd42c20d
refs/heads/master
2020-03-14T03:17:11.385048
2018-06-28T17:23:23
2018-06-28T17:23:23
131,416,504
0
0
MIT
2018-05-01T14:26:04
2018-04-28T14:28:46
Python
UTF-8
Python
false
false
10,792
py
get_characters_character_id_bookmarks_200_ok.py
# coding: utf-8 """ EVE Swagger Interface An OpenAPI for EVE Online # noqa: E501 OpenAPI spec version: 0.8.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from swagger_client.models.get_characters_character_id_bookmarks...
9d0b4203c431700e512dbbc7e70bdc6d6e43933f
553659ffe521b03c7b7b47cb0034b836ec694513
/seaice/shapefiles/cli/sii_shp.py
2dac23130b5b64aef0e940239ab5137e3ae890fc
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
andypbarrett/nsidc-seaice
c8df58841f8217d6bd754333331644bca1c3f033
167a16309f7eaadd5c613b54a7df26eb1f48c2f3
refs/heads/master
2022-10-16T09:05:08.010754
2020-06-16T21:18:48
2020-06-16T21:18:48
272,765,857
2
0
null
null
null
null
UTF-8
Python
false
false
20,893
py
sii_shp.py
from itertools import product from multiprocessing import Pool from calendar import monthrange import copy import datetime as dt import pprint import traceback import click import pandas as pd import seaice.nasateam as nt import seaice.logging as seaicelogging from seaice.data import SeaIceDataNoData from seaice impo...
ee028ce504e946fe831110433af21c84949e9a2b
09cb54f251ef27ade60fd7319f6d32bac7393f4e
/Python-Kiran/python-tutorials/ML-Spyder/01-LinearRegression/01-LinearRegression.py
a00cec3432f43e4ab97dff2c078adbbd4d3c691f
[]
no_license
akiran1234/pythondsoft
c801b07017d391cd0fc1f552c3587d1976920393
467ddf6d5784e6ee633e2d70bf630342c3a46976
refs/heads/master
2020-12-28T07:53:43.752590
2020-02-04T16:07:57
2020-02-04T16:07:57
238,235,566
0
0
null
null
null
null
UTF-8
Python
false
false
1,850
py
01-LinearRegression.py
import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns data=pd.read_csv("https://raw.githubusercontent.com/akiran1234/superds-datasets/master/Salary_Data.csv") data.columns #sns.pairplot(data) X=data[['YearsExperience']].values # df.values will give 2x2 array, this will avoid t...
adcb48547e66d6bbbedeb2952850e670f33ccea5
4e4294af8a0787c6e2c885b46f713b8b3049f734
/scripts/test_spread.py
0d64712fa33d7435401305bf67e88036dd29613b
[]
no_license
Hiroki-kt/robot-audition-system
e473dd14191cace959dea3ad2d4497fd381cf5a7
344c38eb1fd89f6ee24410a3954b014a933bc5cb
refs/heads/master
2022-04-07T08:46:19.409409
2020-03-13T09:28:32
2020-03-13T09:28:32
214,156,388
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
test_spread.py
import gspread from oauth2client.service_account import ServiceAccountCredentials scope = ['https://spreadsheets.google.com/feeds', 'https://www.googleapis.com/auth/drive'] credentials = ServiceAccountCredentials.from_json_keyfile_name('./get-text-from-google-home-5fab0d67bbdb.json', scope) gc = gspread.authorize(cre...
20c4c389a99b8b5e5bc4acdb19fd97650ed21911
824a1e876485f5729bff93cddf21400c1b1d1cf4
/installation_tests/roles/unzip.py
598d2ea32f4d75b259298def402d88758d463dbc
[]
no_license
louzar/QA-NeverwinterDP
e54a234d627f2c73ec475046a1214aa447a92760
b65ca41c94dd33447091bab2f74cc32edceebd58
refs/heads/master
2021-01-18T06:50:41.661901
2014-08-25T12:18:37
2014-08-25T12:18:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
69
py
unzip.py
config = { "name":"unzip", "binary":"unzip", }
de3bb028d6d8acbd8710357898a16d1cd5e951d2
7cd6a7bc72f0026056a7238c0feea081bfff13a7
/bioprocs/scripts/tsv/pTsvColFilter.py
3cf445961c7fbec62141706a180b03f1a5a6c68c
[ "MIT" ]
permissive
shijianasdf/biopipen
8d963ccca38e2a9d7a46582a5eec45c38924655c
d53b78aa192fd56a5da457463b099b2aa833b284
refs/heads/master
2023-08-18T18:28:03.306877
2019-12-31T16:17:35
2019-12-31T16:17:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,671
py
pTsvColFilter.py
from os import path from collections import OrderedDict from diot import Diot from pyppl.utils import alwaysList from bioprocs.utils.tsvio2 import TsvReader, TsvWriter infile = {{i.infile | quote}} colfile = {{i.colfile | quote}} outfile = {{o.outfile | quote}} inopts = {{args.inopts | repr}} cols = {{args.cols |...
1dba1253cfd9ac19478cbdc5c1cb8c0a7caddb1b
5ac8c2649859496a4db8e84725450e6b36c9ab33
/FunApp/views.py
5bffdac60a866dbc3b5ca4421db08d8fe1252efc
[]
no_license
QianqianShan/Django_Full_Stack_Web_Development
b28562d8370475cca9aecd0ac0e138ca39a237e6
e2c4862b5414b927643aa855ce652fcab7735ae6
refs/heads/master
2022-04-30T22:49:49.344385
2019-07-26T02:19:12
2019-07-26T02:19:12
196,920,794
0
0
null
2022-04-22T22:04:26
2019-07-15T03:57:04
CSS
UTF-8
Python
false
false
4,808
py
views.py
from annoying.decorators import ajax_request from django.shortcuts import render # import templateview from django.views.generic import TemplateView, ListView, DetailView from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.urls import reverse_lazy from django.contrib.auth.forms import...
7a2cefff221231a411e133e9c9702376f3cc4127
1bc2a635a93b5bc84606edf9ac2226851cac9e6d
/rolling/game/base.py
c121bfd6cdcee35cbb1f5eb07018df956dfb9d13
[ "MIT" ]
permissive
coolkat64/rolling
819149cbb1e11a455b93a030477f9da91e2f93e4
4c3ee2401128e993a52ac9b52cdbd32e17728129
refs/heads/master
2022-11-29T00:35:14.058665
2020-07-31T20:37:15
2020-07-31T20:37:15
285,312,272
0
0
MIT
2020-08-05T14:25:48
2020-08-05T14:25:47
null
UTF-8
Python
false
false
20,700
py
base.py
# coding: utf-8 from os import path import typing import toml from rolling.action.base import ActionDescriptionModel from rolling.game.stuff import StuffManager from rolling.game.world import WorldManager from rolling.map.type.world import WorldMapTileType from rolling.map.type.zone import ZoneMapTileType from rollin...
8f4fc24234bd0e0d5dc9c2cc8ce8dc269fcd55ff
bf37cec61274fbd011c0fb0f8d1b325b9abf8933
/meta_social/apps/community/urls.py
908c2fff1c07b9febd1e6f678d86f90624924862
[]
no_license
freng35/social_network
447fb4119990876ea7ddb75943a2777402a565e3
bd09175509f6d184862fc7695b99cf6c676d9c14
refs/heads/main
2023-06-15T07:47:07.808120
2021-07-08T23:00:21
2021-07-08T23:00:21
384,266,093
0
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
urls.py
""" Meta social community urls """ from django.contrib.auth.decorators import login_required from django.urls import path from .views import Communities urlpatterns = [ path('community/<str:community_url>/', login_required(Communities.CommunityView.as_view())), path('community/user/list/', login_required(Com...
03ad19b1d4a0f528c6fb61c0a035a789b94831ee
d3a5d82457f4f701dbffd219d87791f27330e014
/offlineTracking.py
74ce74570f12fc2cff4dd4d8456106cd96f04a6c
[]
no_license
fabrizio-palumbo/OffLineTracking
7d9e84de43e34ebb2c233b4196982e49298998a4
cf1b189ebd9211333d787ab4f60e5811468fce49
refs/heads/main
2023-05-04T20:41:01.883748
2021-05-20T15:13:43
2021-05-20T15:13:43
339,726,455
0
2
null
2021-05-20T15:13:35
2021-02-17T13:05:39
Python
UTF-8
Python
false
false
4,780
py
offlineTracking.py
# -*- coding: utf-8 -*- """ Created on Tue Mar 23 11:31:46 2021 @author: fabrizp """ import cv2 as cv import h5py as h5 import numpy as np import os as os from os import listdir from os.path import isfile, join from numpy import swapaxes #from SavePositionFiles import *' #open(cv.version) #cv.__ver...
45507980aaec75b02759a89e327b7409e47c7cc8
a2c71fdc3dc1bfec5b0fb4573c4b0e6758181c13
/DateTimeTest.py
67da01b2812751dd38cbe4967ea488b1a93ca0af
[]
no_license
JA-EMIN/Python_Basic
3290678c4bb8f9df769cb4a4cd43685781a9db90
fe561b88e1bb6d14d85911e4a6e3d9a13b2438ed
refs/heads/master
2020-09-07T09:04:55.609188
2019-12-04T14:18:18
2019-12-04T14:18:18
220,731,914
0
0
null
null
null
null
UTF-8
Python
false
false
945
py
DateTimeTest.py
import datetime import threading # dt = datetime.date(1999,11,10) # # print(dt) # # print(dt.year, dt.month, dt.day, sep=',') # # # # tm = datetime.time(11,10,15) # # print(tm) # # print(tm.hour, tm.minute, tm.second, sep=',') # # # # dttm = datetime.datetime.now() # # print(dttm) # # # # dttm = datetime.datetime(1998...
b64bd9e7b34ca8960fc237e974fb9c567b59de1f
897b45e7707372f0539846b235c93a74f53bfedf
/comparision.py
6c80170af4fdcdee4cad5826c3344c61f4e27b51
[]
no_license
bjtugb/bjtupsu
ab55ff61c9e028becfdab1d6dca5a28e647f633e
c6c0ee0827b6a6bc3470f6fed5f065486088660d
refs/heads/master
2020-11-24T16:09:58.573321
2020-01-19T02:50:10
2020-01-19T02:50:10
228,235,427
0
0
null
null
null
null
UTF-8
Python
false
false
1,082
py
comparision.py
temperature = 30 if temperature > 30: print("It's a hot day") else: print("It's not a hot day") temperature = 35 if temperature > 30: print("It's a hot day") else: print("It's not a hot day") temperature = 35 if temperature >= 30: print("It's a hot day") else: print("It's not a hot day") t...
ef6dcf8a5e116c1bea6ff2fa8a6a53d4af3af4fd
366bb12eca8253caf1d74d88f45c8cf836a8d004
/tools/analyzer.py
bde4a02de9445a38cef2f3fe4aa73f6ecfece9e0
[]
no_license
oncecoo/Correction_OBB
367e72975dcf713892405ac9862463e8fbe85b26
e4a6654af0e35cc9d7593fd8c7ea066583f1beb3
refs/heads/main
2023-04-03T20:22:44.272777
2021-04-22T09:39:46
2021-04-22T09:39:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,449
py
analyzer.py
import torch import pickle import argparse from tqdm import tqdm from stats_utils import * parser = argparse.ArgumentParser(description="arg parser") parser.add_argument( "--result_file", type=str, default='data/result_lyft_bus_20.pkl', help="specify the pkl file for view", ) args = parser.parse_args(...
0e3edaa64235c79ee155bb2f3c88093a1efec2d5
948a629271f892c2e412da655473309dcd547344
/japanizer.py
7c719bd3f8f17aa7ee7f3039eb743a5923327144
[]
no_license
mszydlowski91/sublime-japanese-encoder
9d83ca0e9ccaf440ef28dfc02edad6718f4ff097
9586dc13201378cb96502d21301800afa502c76a
refs/heads/master
2021-09-23T22:26:30.531657
2018-09-28T13:30:43
2018-09-28T13:30:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,419
py
japanizer.py
import sublime, sublime_plugin, sys import re import urllib.request import json from .romkan import * baseUrl = "https://jisho.org/api/v1/search/words?keyword="; sampleKanjiDict = { 'kan': [{ 'value': '漢', 'meaning': 'chinese'}, {'value': '韓', 'meaning': 'morning, Korea'}], 'ji': [{'value': '字', 'meaning': 'c...
e3be5202648167128dc1ff4fce297cfa231d2270
c88cf2423a43531358eb5cb8a5d9390bb1767214
/tasks/fast/labyrinth/labyrinth.py
53c13e526f2cd4c2342fde84f0b6e0d8bd8f51df
[ "Apache-2.0" ]
permissive
Fanatique1337/training-projects
ec42a5bb4fdc126a7aa71a672ca25967b5b95ad0
4227c23f8db9794bbb4aabec44eca4cdf5425ed2
refs/heads/master
2020-03-16T15:31:42.655336
2019-01-09T23:18:01
2019-01-09T23:18:01
132,747,321
1
0
null
2018-05-09T11:32:51
2018-05-09T11:32:51
null
UTF-8
Python
false
false
1,551
py
labyrinth.py
#!/usr/bin/env python3 matrix = [ [' ', ' ', ' ', '*', ' ', ' ', ' '], ['*', '*', ' ', '*', ' ', '*', ' '], [' ', ' ', ' ', ' ', ' ', ' ', ' '], [' ', '*', '*', '*', '*', '*', ' '], [' ', ' ', ' ', ' ', '*', ' ', 'e'] ] rows = len(matrix) cols = len(matrix[0]) for y in range(cols): for x in range(rows): if matrix...
db0f47436b09023a413cd873fa24fbdd8e39e772
a83b1c5d395d1851f3db123b0a06cbe23a5ebb72
/4_scoreonline.py
94335d8bad951ed8f590323ae2e05d2c1b367491
[]
no_license
mikeharding/cdsw-workshop-exercise-3
2de31537562182f44efa56e4982f98756c383ab0
8302005e1e05480e92ab92fd464c453b3e5ccae0
refs/heads/master
2021-04-30T06:50:45.122167
2018-08-20T15:28:29
2018-08-20T15:28:29
121,456,409
0
0
null
null
null
null
UTF-8
Python
false
false
646
py
4_scoreonline.py
from pyspark.sql import SparkSession from pyspark.sql import SQLContext # Boilerplate Spark stuff: spark = SparkSession\ .builder\ .appName("diabetes_patient_readmission_onlinescore")\ .getOrCreate() sc = spark.sparkContext #Load up patient discharge file, use the trained model and predict readmissions ...
9ecf87b5d62281bcd2906aa9ba4dce215c41020d
2f63917663fafff6192bc5dbb07d3d6739495504
/docker_sdk_api/api/port_scanner.py
d15176997d88a52e8e64a87c27380269cb4972f4
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
2web/BMW-TensorFlow-Training-GUI
b0c92bda13aaa4cf7e918a15620151de8050b564
8a121b26715cd611f4622515eeb7ea33984dff53
refs/heads/master
2021-07-12T00:56:54.197260
2021-03-07T18:16:54
2021-03-07T18:16:54
231,880,391
1
0
Apache-2.0
2020-01-05T07:00:34
2020-01-05T07:00:33
null
UTF-8
Python
false
false
421
py
port_scanner.py
import socket """ Scans the system for used ports Returns ------- list of str used ports """ def used_ports(): used_ports = [] for port in range(1,65535): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) result = sock.connect_ex((socket._LOCALHOST, port)) if result ...
b94d7e992a3b6760a612f7a22c797a5cf838fa1c
f8ffa8ff257266df3de9d20d95b291e393f88434
/Python - advanced/zajecia14/funk/reduce02.py
6630efaa90060048bffbe4b27d0ad8b4d412d575
[]
no_license
janiszewskibartlomiej/Python_Code_Me_Gda
c0583c068ef08b6130398ddf93c3a3d1a843b487
7568de2a9acf80bab1429bb55bafd89daad9b729
refs/heads/master
2020-03-30T05:06:26.757033
2020-03-02T08:53:28
2020-03-02T08:53:28
150,781,356
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
reduce02.py
from functools import reduce liczby = [-3, 4, 3, -1, 2] # wynik = reduce(lambda x, y: max(x, y), liczby) # bez sensu komplikacja :) wynik = reduce(max, liczby) print('Największa liczba to:', wynik)
ba09c8d8a6251c24d0e27a4b6923ef17af7799ad
4cfc34de203f4618ecde564a67a692a03b3cc806
/openuser/forms.py
685607515e63d0372bc073e72a3555f8c35622b1
[ "WTFPL" ]
permissive
gil-x/oc-projet-11
717f22f857d37baf43ce099675bef62fb10b061e
0cf14e6a0dbed1aac5faa2a4af810c94ebaf08c8
refs/heads/master
2022-12-13T13:01:20.292538
2018-12-07T21:52:25
2018-12-07T21:52:25
157,724,150
0
0
null
2021-06-10T21:01:33
2018-11-15T14:27:20
Python
UTF-8
Python
false
false
1,655
py
forms.py
from django import forms from .models import Profile from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User class LoginForm(forms.Form): username = forms.CharField(label="Nom d'utilisateur ", max_length=30) password = forms.CharField(label="Mot de passe ", widget=for...
e39a398a53adffe2e1a08d3fd266cca5ea4bfb76
319f2de9cdd6025b5dd33f6c4b014445edf47543
/chapter6/dary_heap.py
ec058ded9ad2f0bdd757ca91da60d69c0a2a8360
[]
no_license
xdc0/clrs_algorithms
43a24296b7505ef7fc75a8c7b4e729e0b1dd0c3f
859590aac0b845db2e857e4a1ee95d96bcb6f7c5
refs/heads/master
2021-06-01T05:56:07.113287
2016-04-19T05:58:42
2016-04-19T05:58:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
897
py
dary_heap.py
class Heap(object): def __init__(self, elements, **kwargs): self.arity = 2 if 'arity' in kwargs: self.arity = kwargs['arity'] self.elements = list(elements) self.heap_size = len(elements) self.length = len(elements) def elements_length(self): return...
13ee6d3ac96dac77942bb8c06b1a7f99f1076867
a833703467a947be7b2fb909342b6cc5cc478d61
/code/shared/analysis/compute_basic_measurements.py
769b1b070d5714693418a3c49c39555c177b5d4c
[ "MIT" ]
permissive
amarallab/waldo
dd5284f5ca6900cb9b85fa3142e77011330eb7e4
e38d23d9474a0bcb7a94e685545edb0115b12af4
refs/heads/master
2020-05-21T18:09:17.422279
2017-01-11T20:14:21
2017-01-11T20:14:21
63,634,817
1
0
null
null
null
null
UTF-8
Python
false
false
8,169
py
compute_basic_measurements.py
''' Date: Description: ''' __author__ = 'peterwinter + Andrea L.' from six.moves import zip # standard imports import os import sys import math from itertools import combinations import numpy as np # Path definitions HERE = os.path.dirname(os.path.realpath(__file__)) SHARED_DIR = os.path.abspath(HERE + '/../shared/...
8db869f24bcb2c50ef7e5ec77824a1a238bc0dc7
c7fa2e3fee49b33d87656d9e5fa09a32154b92a7
/src/time/time.py
df70552ecb625bb44036d4457c786e381f98a38c
[]
no_license
ahalbert/distOS-lab1
f8e23041413ccdc228a2cd084e36b2969ce51941
4db08a5ee7381e2303e6bbfcdc4ca92bdf3d6fd1
refs/heads/master
2021-01-22T03:08:49.508262
2014-03-29T15:39:09
2014-03-29T15:39:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,434
py
time.py
import time_config as tcf import sys import os from SimpleXMLRPCServer import SimpleXMLRPCServer,SimpleXMLRPCRequestHandlerimport import threading import xmlrpclib import time import subprocess import socket import timeit #whoever has the lowest port number for is the leader. class TimeServer(threading.Thread): o...
7646181292618fcacfca277ac9161a21f3470f0c
96240152a4e4441a397dfbcd30c9421ae00ecfc6
/scripts/calibration.py
ce8449eaf5b74705fdaf1113486c985cb11866e0
[]
no_license
npiasco/number_recognition
b812ad8893fc556c1dc526b2a1c5332ab62a5db2
b4617f7a3c367523cd9584534b2dce676a841dda
refs/heads/master
2021-01-23T10:00:43.204832
2014-09-05T10:26:42
2014-09-05T10:26:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,545
py
calibration.py
#!/usr/bin/env python from number_recognition.srv import * import rospy import cv2 import numpy as np from treatment_error import TreatmentError from sensor_msgs.msg import Image from recognizeNumber import recognizeNumber from cv_bridge import CvBridge, CvBridgeError from openCV_treatment import toBinary def nothing(...
2fd25032af58e55e0051cdb96b38d6dac4dcee45
961aa16fdf30f94846a0ccd006bd2198545b5110
/learn_notes/niuke_exercise/learn_uuid.py
d71ee110faf19bc93071949e6c464813c84906b7
[]
no_license
goushan33/PycharmProjects
2bcbff8233ba6ccedc601c34f473b5371ccef39f
edf1bec6dcc566601152a90ecec150328add1304
refs/heads/master
2021-06-06T00:54:22.958519
2021-05-31T14:24:41
2021-05-31T14:24:41
171,823,819
0
0
null
null
null
null
UTF-8
Python
false
false
586
py
learn_uuid.py
#-*- coding: utf-8 -*- import uuid name = "test_name" namespace_1 =uuid.uuid1()#这个namespace 可以是任意 uuid 字符串,你可以选择 uuid1 或者 uuid4 或者自己随便编造一个合法数据使用。这儿选取了python官方给的一个 namespace_2=uuid.NAMESPACE_DNS print(uuid.uuid1())# 生成基于计算机主机ID和当前时间的UUID print(uuid.uuid3(namespace_1, name))#基于命名空间和一个字符的MD5加密的UUID print(uuid.uuid4())#随...
935d89be71e2159b5aa603d3d46d9da4d01d29e7
8c4c34e08a11b437f76a11161b63fa2fe5be1d14
/myproject/auth/admin.py
c5a7ca87fa3900b1a497cbcd08fc73b59953a027
[ "MIT" ]
permissive
alexdlaird/django-bootstrap-authentication-template-project
99b006e0a0973696dc7fe128b945292d5c455717
d03b56f5b1878dc981d866e108dbb05deb120266
refs/heads/main
2023-04-30T15:46:07.980842
2023-04-12T14:06:06
2023-04-12T14:06:06
23,318,928
3
2
MIT
2023-09-13T12:18:32
2014-08-25T15:38:35
Python
UTF-8
Python
false
false
1,722
py
admin.py
from django import forms from django.contrib.auth import admin from django.contrib.auth import get_user_model from django.contrib.auth import password_validation from django.contrib.auth.forms import UserChangeForm, UserCreationForm from django.core import exceptions from myproject.common.admin import BaseModelAdmin, ...
3799e6a5601920144ada0771013dce7b04934231
f0cb78352d7d2a2e2da057745f5552aa35cc7135
/setup.py
5bbf87d2ee583f40ca14864821937af0c5878e8b
[ "BSD-3-Clause" ]
permissive
riga/plotlib
fc5ac4ba34ad75f496d70fc9efe860c5126746a9
853c4dfeb1b276dd1a975141e56c35969833ab3d
refs/heads/master
2021-08-03T08:12:38.968882
2021-07-21T18:42:52
2021-07-21T18:42:52
187,010,072
3
0
null
null
null
null
UTF-8
Python
false
false
1,434
py
setup.py
# coding: utf-8 import os from setuptools import setup, find_packages import plotlib as pl this_dir = os.path.dirname(os.path.abspath(__file__)) keywords = [ "physics", "analysis", "plotting", "root", "matplotlib", ] classifiers = [ "Programming Language :: Python", "Programming Language :: Python ...
e8c1af19b574cbae6558315c03eff025bcbce86a
fd345e3a7103c76e0b6b7e7bed7817a257ac9377
/config/python_scripts/button.py
11f003e090280a94e78b7bc0e83921355d080c15
[]
no_license
deskoh/HomeAssistantConfig
238c61512d37b5631f8a770df84e3a916d6f3f1d
afe54c82f5b0f838acec94846b6ce511c7fe51cb
refs/heads/master
2021-06-09T21:40:57.588724
2021-04-24T06:05:50
2021-04-24T06:05:50
163,654,573
0
0
null
null
null
null
UTF-8
Python
false
false
2,798
py
button.py
############################################################################### # Single: Toggle light ############################################################################### # Script Parameters button = data.get('button', '') click = data.get('click', '') def toggle_entity(hass, entity, entity_id): servi...
2471f7c03bf434f0a59bf99ff6a0c7409fdd162f
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/5/usersdata/109/1696/submittedfiles/atm.py
a79ee632e271b897edcfd7594b21124ee482004f
[]
no_license
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
UTF-8
Python
false
false
372
py
atm.py
# -*- coding: utf-8 -*- from __future__ import division import math #COMECE SEU CODIGO AQUI #Entrada c = input('Digite o valor que você quer sacar:') #Processamento a20 = c//20 a10 = (c-(a20*20))//10 a5 = (c-((a20*20)+(a10*10)))//5 a2 = (c-((a20*20)+(a10*10)+(a5*5)))//2 a1 = c-((a20*20)+(a10*10)+(a5*5)+(a2*2)) #Saíd...
cf5af4c9090d7c4e39b77ac7584af54f6110bbd4
24cb3a4054761e6af2518842eedadbc1eabb5c23
/feature_extraction/eeg_extractor.py
f37e6ca4629313db80d64f49aeced396d148ad34
[]
no_license
DS3Lab/eego
a8d2676d2e1905a6e9262d16feae6df1462e2fb0
16b4ee0b152e5a9ac498fbc2d7a36d400c120680
refs/heads/master
2023-05-03T23:54:37.936080
2021-05-21T14:37:08
2021-05-21T14:37:08
229,083,587
1
0
null
null
null
null
UTF-8
Python
false
false
11,448
py
eeg_extractor.py
from . import data_loading_helpers as dh import config import numpy as np def extract_word_raw_eeg(sentence_data, eeg_dict): """extract word-level raw EEG data of all sentences. word-level EEG data = mean activity over all fixations of a word""" for tup in sentence_data: # read Matlab v7.3 struc...
b6b9dba9c40d7c1b3b92c57c385eb5f5c0c70832
fb549db0e9f6861e4c11eed2dc6b957910cf4389
/view.py
2baf379e19370ceeb9f0106f0c39cd9029ce01e3
[]
no_license
Bazik29/DataAnalyzer
10a234b9b4d690362ad0b6f80b2a903867e64a61
8f30d6dbce8b729484f40889d10531bd1be6b59b
refs/heads/master
2022-01-06T04:15:38.443154
2019-04-30T13:21:09
2019-04-30T13:21:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,681
py
view.py
from PyQt5.QtQml import QQmlApplicationEngine from PyQt5.QtCore import QObject, QUrl, pyqtSignal import os class View(QQmlApplicationEngine): def __init__(self): super().__init__() self.load(QUrl('qml/main.qml')) self._root = self.rootObjects()[0] # Страницы self.pageLoadF...
262a43cd8e910907af036e7c22265e0d133f84f0
fcb43b706119df362e8a1e12b2a1580a8655d3f2
/daily_scrap.py
204672c04807246eedf8c098c9c4f00885f88e46
[]
no_license
hsharma83/steel-scripts
494ae7ffa4c017ffc1d8575ae2e613a0d7be751a
c1796a0e9c2d5d82adfa8dd2bb95b53d76195aff
refs/heads/master
2020-03-26T18:30:21.766569
2018-08-24T05:04:06
2018-08-24T05:04:06
145,216,448
0
0
null
null
null
null
UTF-8
Python
false
false
2,408
py
daily_scrap.py
import feedparser import csv from datetime import date,datetime import pandas as pd """This get daily feed of articles regarding each keyword url based and saves it to dataframe n csv file datewise""" url_metaljunction = 'https://www.metaljunction.com/news/newslist/' url_steelmint = 'https://www.steelmint.com/ajax_ca...
0d9959d19a20a9367a9a40a3458a153403eb2c9a
185077e8ffd393432b110fb1c4fd92aafec95f8b
/HW5 Panoramic Image/hw5func.py
f563910b39e7244ea4365a733bc6be58a10e1bc9
[]
no_license
zOOGal/Computer-Vision
c555b97ec1e9b9e9608c8ea757533a48e0fa6f38
203ae5749bb046db58077714070bc83ccdf46205
refs/heads/main
2023-03-19T12:39:37.870866
2021-03-09T19:53:17
2021-03-09T19:53:17
301,550,985
0
0
null
null
null
null
UTF-8
Python
false
false
13,540
py
hw5func.py
import numpy as np import cv2 import scipy.optimize import math import random def sift_features(img): ''' :param img: original colored picture :return: colored picture with interest points & keypoint & des ''' sift = cv2.SIFT_create(nfeatures=5000, nOctaveLayers=4, contrastThreshol...
7d346ddffc9d1b75b186e66172fb31dd4d90ee7d
723f32029189bbde4c995b593c01ac48a0906ce0
/14_SortingP/23.py
ab0ff8b0cffbb20b3e8da5639e5b8a8e2bbe4bd6
[]
no_license
elice-python-coding/Minji
61ac28b85281f90b140bc9bbbaa160ef3042bf53
ff2360c1271bf58d35080db86ed4d4f6472ad1e4
refs/heads/main
2023-07-05T02:46:59.114622
2021-08-02T14:16:21
2021-08-02T14:16:21
384,076,691
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
23.py
import sys input = sys.stdin.readline N = int(input()) student = [] for i in range(N): data = input().strip().split() student.append((data[0], int(data[1]), int(data[2]), int(data[3]))) #student = [list(input().strip().split(" ")) for _ in range(N)] student = sorted(student, key=lambda x: (-x[1], x[2], -x[3]...
0f3d099ff871aa1313c9592ad0cc2b8efe11ecc9
fb006584fd88b7d1b542320b930d1249e4214daf
/app/tables/equipe4/documento/documento_modelo.py
8f1b627bb644f0a9237038a824608d557172395c
[]
no_license
jucimarjr/zelda
51d3b84f17ea7538412edf6429334049ca9de9d6
2a854c73742262e244b603ef1cc3f41ae4d4ec67
refs/heads/master
2021-01-20T12:16:51.316714
2017-12-12T18:18:57
2017-12-12T18:18:57
101,705,786
4
9
null
null
null
null
UTF-8
Python
false
false
1,296
py
documento_modelo.py
class Documento: lista_tipos = [ "Identidade", "Requerimento", "Declaração"] def __init__(self, documento_id = None, processo_id = None): self.__id = None self.tipo = None self.descricao = None self.link = None self.__processo_id = None if documento_id is not No...
b45706ea4d64ae342b79a40bfb31964a108f439d
ba953a0fab61bdff3eb22c09da4f3f5efe6c87e4
/xdart/modules/ewald/sphere.py
756040be471bab9e7f57d3c98eba113a1087dd99
[]
no_license
rwalroth/xdart
4d4c5a14aa89bcffb6819c7415a6f366f2ace8ca
f145e757d092d85b5a21dc4c36d99f82d55f7037
refs/heads/master
2022-12-25T20:53:56.677813
2021-11-17T08:14:19
2021-11-17T08:14:19
212,882,218
2
1
null
2021-11-17T08:17:34
2019-10-04T18:48:49
Jupyter Notebook
UTF-8
Python
false
false
23,361
py
sphere.py
from threading import Condition, _PyRLock import os import pandas as pd import numpy as np from pyFAI.multi_geometry import MultiGeometry from .arch import EwaldArch from .arch_series import ArchSeries from xdart.utils.containers import int_1d_data, int_2d_data from xdart.utils.containers import int_1d_data_static, in...
24e4eacb1a02d51cbf66ab4a104a548ad2c0c623
419e095e38b0c9cf9591d0333a89de1781bf8edf
/CodeUp/1main.py
ef7c0984749f6aa825f172b86f2bb443382bedb6
[]
no_license
mjxong/CodingTest
bc6b7f9e48b9ccb9ae16b6f12d611a805e978b28
5fc9e5f1dec6214a16658f0ff69d2d6b807dc489
refs/heads/master
2023-03-28T23:16:29.270628
2021-04-04T11:20:50
2021-04-04T11:20:50
352,362,494
1
0
null
null
null
null
UTF-8
Python
false
false
50
py
1main.py
h, w = map(int, input().split()) n = int(input())
e06f9050e109fa4d1a2a3b212ea31fa3f4ec61d7
c06157aacc5bb1b0f93f7541be8523d8c8cc9dd8
/intrprt/cifar.py
af0e47baace6b03c14b45905bcdeff6a69e258fe
[]
no_license
AliD101v/ml-course-project-f19
361a5227e1b6fab7f8ede83f5d6bfdfac94b04bf
1b3bfa57c8a0c0eb9121ef29c5cb13fbf0697402
refs/heads/master
2020-08-21T08:05:35.420629
2019-12-07T06:17:13
2019-12-07T06:17:13
216,116,059
0
0
null
null
null
null
UTF-8
Python
false
false
1,023
py
cifar.py
import numpy as np import sklearn from sklearn.tree import DecisionTreeClassifier from data.CIFAR10 import * from sklearn import metrics import matplotlib import matplotlib.pyplot as plt from sklearn import multiclass train, test = load_CIFAR10() n = 5 print(f'First {n} records in...') X = train[0][b'data'] y = train[...
0d64896d41a4b64779c5d4d2a56148636f96d36c
e2c000b1f3312298396c5e5f4c8e8211fb2bd3a7
/events.py
694a0d6d229abaa99be96e2bbe0d662739791a6e
[]
no_license
Hook25/ProgettoSPE
f23d7a99739c9d2d5dfcbf692b743e9d1c464551
c2c593cce143a557a8825af3d3d59ea81ebba3ef
refs/heads/master
2022-11-20T07:15:08.728031
2020-07-14T09:10:45
2020-07-14T09:10:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,936
py
events.py
import numpy as np class Event: _kind = "Event" def __init__(self, id, ts, master): self.id = id self.ts = ts self.master = master def __str__(self): return "[%s] %s" % (self.ts, self._kind) def run(self): raise ValueError("Not implemented") def same_kind(self, other): return other an...
33e34629d93a1027a2dae724399971697c64f34f
b2b122e05cf2686d1d82c89463a4b1581312d864
/python/code_challenges/queue_with_stacks/queue_with_stacks.py
3f02533f31e78756a4847864b0640a98be4c6a65
[]
no_license
masonaviles/data-structures-and-algorithms
059a1a5421a952af23a81f28ad5618a7e2797e26
e8b51f7d2baa9db0700eeb1f0ac9ca5b4749a47e
refs/heads/main
2023-06-18T11:55:31.777248
2021-07-19T08:37:49
2021-07-19T08:37:49
346,912,730
1
0
null
2021-07-19T01:53:31
2021-03-12T02:43:23
JavaScript
UTF-8
Python
false
false
760
py
queue_with_stacks.py
class Queue: def __init__(self): self.stack1 = [] self.stack2 = [] def enqueue(self, value): # while stack1 isn't empty while self.stack1: # push everything to stack2 self.stack2.append(self.stack1[-1]) self.stack1.pop() # push value...
a81a6311495893a23ac67610e513dbfabe068c4a
d43110e9ea1e315794a68cf07a70a7dbe563e2fb
/rule_based.py
2d2a848b7cca11d26c4805cbadeb02aa05c29375
[]
no_license
henryyang42/IRIE_Project2
efc695c7a210844ba3cf1f6386b915a65f98f584
3decd15c18ff6168e9b730009205221a3487d284
refs/heads/master
2021-01-12T04:02:21.860661
2017-01-03T06:15:55
2017-01-03T06:15:55
77,480,431
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
rule_based.py
from utils import * TT = 0 FF = 0 for p in properties: T = 0 F = 0 for sel in train_data[['Entity_1', 'Entity_2']][train_data.Property==p].values: if predict_property(sel) == p: T += 1 else: F += 1 print ('%s, T=%d, F=%d, acc=%f' % (p, T, F, 1.0*T/(T+F))) TT...
936c932d0d139cd58ecc4a498892ec7a40a7cd84
3cd539800887ed2982285b58ed0d5a27754014e2
/hello.py
6508f0b0a5c270836b9d044d6305f395e9d832a4
[]
no_license
CharanAbburi12/cse512
7effac5b5628cf39345e54a5dfa7f6fb42eb814d
6d5e9f62abb6f2af1ade31ad5182bede3cdc556c
refs/heads/master
2023-03-03T20:22:45.097684
2021-02-16T04:40:41
2021-02-16T04:40:41
339,024,351
0
0
null
2021-02-16T04:40:41
2021-02-15T09:23:40
C
UTF-8
Python
false
false
30
py
hello.py
print("welcome to the world")
de2794eff14f59f965921c92d9de8f5899adb6e8
f06ddca5258290a1e7448a18e1d24a9d20226fbd
/pytext/models/seq_models/utils.py
7f9a923115ddb11c1ba6e9870a9004c53d553a9d
[ "BSD-3-Clause" ]
permissive
mruberry/pytext
6d64bc37429e3dd5581e5b3b6bf60bd216b6f445
3bba58a048c87d7c93a41830fa7853896c4b3e66
refs/heads/master
2022-07-16T07:41:47.781126
2020-05-14T04:52:35
2020-05-14T04:54:33
263,892,770
2
0
NOASSERTION
2020-05-14T11:11:33
2020-05-14T11:11:32
null
UTF-8
Python
false
false
355
py
utils.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from typing import Optional def prepare_full_key(instance_id: str, key: str, secondary_key: Optional[str] = None): if secondary_key is not None: return instance_id + "." + key + "." + secondary_key else: ...
a4d2b2105ca6a1cb5e45852aca7ad00f1d59b8e5
136692b227474908ddb15825d456ef554af42471
/tests/unit-tests/test_rst_footnotes.py
90b9be0376bda238c41829e6eb19e8065f66b34c
[ "BSD-2-Clause" ]
permissive
tsvi/confluencebuilder
ae3383e18529ca027119daa04e8834f8e7bd8c89
8a7577d5ca3afa095276dbe1e6f35821beae3f23
refs/heads/master
2023-03-17T15:03:23.882654
2021-03-08T15:06:27
2021-03-08T15:09:26
345,694,315
0
0
NOASSERTION
2021-03-08T15:04:25
2021-03-08T15:02:28
null
UTF-8
Python
false
false
7,046
py
test_rst_footnotes.py
# -*- coding: utf-8 -*- """ :copyright: Copyright 2020 Sphinx Confluence Builder Contributors (AUTHORS) :license: BSD-2-Clause (LICENSE) """ from tests.lib import build_sphinx from tests.lib import parse from tests.lib import prepare_conf import os import unittest class TestConfluenceRstFootnotes(unittest.TestCase): ...
54e902a9f4e938bbc99303cf3d67f3ae141cc606
dc0d03a84c583982654da62870cfbeeb0de2f3b0
/manabi/apps/flashcards/admin.py
2528da5ed635cc5e032aa41643f46b0ce608f15b
[ "MIT" ]
permissive
bibby/manabi
d64eac5b8dcd01e996cbd7f20063ef9c8576188f
bdce2e3cf2df6b5e189ab7123833579bd7f87dd4
refs/heads/master
2021-01-11T16:24:09.662863
2017-01-24T04:41:02
2017-01-24T04:41:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,249
py
admin.py
from django.contrib import admin from manabi.apps.books.models import Textbook from manabi.apps.flashcards.models import ( Card, CardHistory, Deck, Fact, ) class CardAdmin(admin.ModelAdmin): raw_id_fields = ('fact',) list_display = ('__unicode__', 'last_due_at', 'due_at', 'last_reviewed_at',)...
c79c63943b1594e78dce27d2c589f00ac40b9295
b2821e2655a789ad32951c158cfee8cc4e629a32
/users_api/apps.py
d6b35f7c1ad2933fde7bec5818ed299b2f519983
[]
no_license
jimilpatel0298/UrbanClap
5873395699401c1e8b8d30121dc834e4182f9704
2e40b8fc2a807c09984f8cea6d16897872b3f87e
refs/heads/master
2022-12-04T04:43:30.694014
2020-02-18T14:04:16
2020-02-18T14:04:16
239,701,509
0
1
null
2022-11-22T05:18:22
2020-02-11T07:25:35
Python
UTF-8
Python
false
false
152
py
apps.py
"""apps file for users_api module""" from django.apps import AppConfig class UsersapiConfig(AppConfig): """Config class""" name = 'users_api'
67b0456487eda5072fa73e59a62f23bfaac300ba
16819ae2cf74b1715e1f7077038fdd0d7b77dada
/BirdGAN.py
f81d9f7662589a63b55455d0494d90175e93ff9e
[]
no_license
NataliaSkorokhod/bird-dcgan
6366590d4af4c1954c612b3b6b98d63a65bd2f76
0e0b98c292cee5b63a57b10ca8fd50bdd63b3cac
refs/heads/main
2023-02-13T02:53:11.876195
2021-01-11T18:46:10
2021-01-11T18:46:10
315,086,071
0
1
null
null
null
null
UTF-8
Python
false
false
14,419
py
BirdGAN.py
import os import glob import tensorflow as tf from matplotlib import pyplot import numpy as np from numpy.random import randn, randint, normal import time from keras.optimizers import Adam from keras.models import Sequential from keras.layers import Dense, Conv2D, Flatten, Dropout, LeakyReLU, ZeroPadding2D, Ba...
f0f070f459b7b20b7db856c5940b276ad9e53369
ad27d49e08c9c3aa779eb703a04968f2c123b67f
/level/levelgaming/models.py
82d8e5d1ab36bbe313a394abf7b98fff33d4b97a
[]
no_license
shyamsn97/LevelGaming
1cd5446be1a282769dfef0f2aa208ff850d7e862
9ed9761a91b48ca83fa506f4e6f927a03683d702
refs/heads/master
2021-03-27T12:33:13.362478
2017-12-27T10:40:58
2017-12-27T10:40:58
112,697,084
0
0
null
null
null
null
UTF-8
Python
false
false
1,578
py
models.py
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import BaseUserManager from django.core.exceptions import ValidationError import datetime, ...
744438b9194840d83d98e07f34a83ddf1d29dd28
8aba6ddc613d0bb1618f0335cc260d666c1ddfd1
/products/urls.py
18bd28d1eb5a28f824ed50a895f347b3268c0451
[]
no_license
sarahloh/django-ecommerce
799c02d6d588812c8178077b0f0c862924e49717
ea3c17cfd2d2e786fa49bd7c13de872cd5bdfbff
refs/heads/master
2020-03-31T06:06:33.507901
2018-10-08T19:56:10
2018-10-08T19:56:10
151,968,533
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
urls.py
from django.urls import path from .views import all_products, add_to_cart urlpatterns = [ path('', all_products, name='products'), path('add_to_cart/<id>', add_to_cart, name='add_to_cart'), ]
488c1538f3c747fd36ae3598e9d643a0ccc10733
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_116/749.py
1c2161a440abeac17a9e9dc8844949237b8f965d
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,361
py
749.py
#!/usr/bin/env python3 import sys def analyse_board(board): dot_count = 0 # Try horizontals for i in range(4): dot_count = dot_count + board[i].count('.') for player in ['X', 'O']: cnt = board[i].count(player) + board[i].count('T') #print('Line', i, 'for player', player, ':', cnt) if cnt == 4: ret...
ca5515b0b6322ec381329a52182d8a135ea05504
5fe72bb13baf3649058ebe11aa86ad4fc56c69ed
/hard-gists/6581415/snippet.py
e37e824db6a55b5de39d4b97b7f5327d0f8b7287
[ "Apache-2.0" ]
permissive
dockerizeme/dockerizeme
8825fed45ff0ce8fb1dbe34959237e8048900a29
408f3fa3d36542d8fc1236ba1cac804de6f14b0c
refs/heads/master
2022-12-10T09:30:51.029846
2020-09-02T13:34:49
2020-09-02T13:34:49
144,501,661
24
20
Apache-2.0
2022-11-21T12:34:29
2018-08-12T21:21:04
Python
UTF-8
Python
false
false
10,659
py
snippet.py
#!/usr/bin/env python import datetime import json import gtk import gobject # TODO: fix gi.repository.WebKit to have a working webview.get_dom_document import webkit # This is a module providing direct python bindings into JavaScriptCore. # http://packages.linuxdeepin.com/deepin/pool/main/p/python-javascriptcore/pyt...
416f52c48701e435352803eb7e32fbabe70a2643
47484b1456ce3de93ef4113fbe1eb51861bfd388
/src/day5.py
95965ffcea55f6897e13c24d6602d4c17f6e1612
[ "MIT" ]
permissive
johan-eriksson/advent-of-code-2019
04fb2b8e6fe02fbf78cdc62069cbdd45777407f6
e17255a4291ec94c80ff6cec8418624ef4cc6240
refs/heads/master
2022-04-05T02:30:50.582773
2020-02-21T01:08:02
2020-02-21T01:08:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,435
py
day5.py
class Computer(): def __init__(self, elf_input): self.OPCODES = { 1: self.ADD, 2: self.MUL, 3: self.WRITE, 4: self.READ, 5: self.JNZ, 6: self.JEZ, 7: self.LT, 8: self.EQ, 99: self.EXIT } self.input = elf_input self.reset() def reset(self): self.PC = 0 self.running = False def...
36a7f79c469d83824cfac01fbd3156ddb7a15a95
12897db998865537c8c85baecb054dc4c4244460
/scripts/metric_finder.py
d630f23eb65eb669f5f17a81fb1da43464cfadd2
[]
no_license
dimagi/metrics_analysis
12715ea2b93853f7c5c74558c51377426e0de963
8441bd0003dc2c88040a643d022856e2c3f05f38
refs/heads/master
2023-03-31T02:57:43.061977
2021-03-30T14:55:06
2021-03-30T14:55:06
109,704,457
0
0
null
2020-01-14T08:42:05
2017-11-06T14:17:24
Python
UTF-8
Python
false
false
3,640
py
metric_finder.py
import argparse import csv import os import re import sys from datadog import api from utils import get_config, init_datadog def _get_args(): parser = argparse.ArgumentParser(description='Location all usages of metric') parser.add_argument('metrics', nargs='+', help='Metric to search for, can supply multipl...
28ca4bccef0ee6f8b0204514d81de5516cbbdcdb
7676284237d958837583eef09ffcdaf009a42ada
/61_chapter_4.py
21056ee753d044e24b9f87d488bfcdee46b38672
[]
no_license
raja21068/Machine-Learning-Toturials
e8739a03db49abb9be563ab1fab0819513a173d2
66d45000f256b7e4c3dbdece4515878165e9ed76
refs/heads/master
2021-09-13T02:31:42.195435
2018-04-24T02:35:06
2018-04-24T02:35:06
108,795,161
1
1
null
null
null
null
UTF-8
Python
false
false
638
py
61_chapter_4.py
#we’ll mostly be using a dataset from the UCI repository, #“Pima Indian diabetes,” which has 768 records, 8 attributes, 2 classes, 268 (34.9%) positive #results for diabetes test, and 500 (65.1%) negative results. All patients were females at least #21 years old of Pima Indian heritage. #Attributes of dataset: #1. N...
7b1561023a7f7e2cfd1e8b3004a88694ec1f2ae8
d40801478d7e7388f74c38df7856f02e1ef4c753
/examples/cvae_dbscan/taskmanagers/md.py
1c4dae456e1bca48de8c91575385b4f004cd53e6
[ "MIT" ]
permissive
braceal/DeepDriveMD
3d303659ef48df087ae7d4358d9734acc7dc9ff2
5d8ae5016a6bb172fa0188a78b8d2b14ebb754fd
refs/heads/master
2021-07-07T00:14:24.866709
2020-12-31T01:00:49
2020-12-31T01:00:49
219,101,014
6
1
MIT
2020-04-22T19:56:01
2019-11-02T04:01:35
Python
UTF-8
Python
false
false
2,668
py
md.py
import os import glob import time from radical.entk import Task from deepdrive import TaskManager class MDTaskManager(TaskManager): def __init__(self, num_sims, sim_len, initial_sim_len, cpu_reqs={}, gpu_reqs={}, prefix=os.getcwd()): """ Parameters ---------- num_s...
d40a6f5a5c67d9d59b16629d6df4df010bae3532
51dc707b087d51b7d232ae4cf650942df1310178
/football/migrations/0004_auto_20211026_1106.py
b7f2df807d0285fc92aef189de77200db0d21489
[]
no_license
peerapong17/Django-DB-Relationship
3670a1ff131b6b4fd46d94584ea0d02d861650d5
29059f0ad3baa0c10e7a13c3c5d1c9adfd323613
refs/heads/main
2023-09-03T04:36:51.585149
2021-11-17T05:09:22
2021-11-17T05:09:22
408,672,787
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
0004_auto_20211026_1106.py
# Generated by Django 3.2.5 on 2021-10-26 04:06 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('football', '0003_auto_20211022_1744'), ] operations = [ migrations.AlterModelOptions( name='position', options={'ordering': ...
1853e960d154a3366fa55bae0bbc332548a6395c
cb05d0018dee14f9219dab6d2742a21832a53471
/split.py
a7042f52881d95c8b7dced09d11136cbc6b7bf59
[]
no_license
Sindhu983/file
35ae5328426c761290d4f3b6cf0e0123c58f8ef9
002ef18892da17825daf59f34da7278e9b763f5a
refs/heads/main
2023-06-09T20:09:26.205692
2021-06-24T09:15:35
2021-06-24T09:15:35
379,868,009
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
split.py
with open("split.txt","r") as file: data=file.readlines() for line in data: word=line.split() print(word)