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
openstack/python-mistralclient
2,654,289,805,730
f4e26cdc57ed6580bfd97a21a9c13c42c640567e
c6492a0727e301a92390b74f0990ddfd8bf22e01
/mistralclient/tests/unit/v2/test_tasks.py
acb41ff2bf3f7d4995a5eb8100d45e1a020089fe
[ "Apache-2.0" ]
permissive
https://github.com/openstack/python-mistralclient
6f2b3aff80cda80533ba7e9617fdcc4cc60bfd6e
b94abb44d9d0f92a527dfa1ecf2e4d3c1be6178c
refs/heads/master
2023-09-03T22:51:50.152827
2023-01-09T19:25:50
2023-01-20T00:02:46
15,885,891
30
20
Apache-2.0
false
2021-04-23T06:05:58
2014-01-13T23:40:34
2021-04-21T05:45:21
2021-04-22T08:19:01
1,387
50
20
0
Python
false
false
# Copyright 2014 - Mirantis, Inc. # Copyright 2015 - StackStorm, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
UTF-8
Python
false
false
4,933
py
100
test_tasks.py
65
0.578553
0.566187
0
164
29.079268
78
SG0032/gestionRevenu
15,384,572,896,762
9788f603f77680f10230e9f01d39f4b3167bdbdb
35de7d4f08f03732f871169b8823010a2f75ab3e
/core/migrations/0001_initial.py
01704a43a8c223230fde5364d4f5bd17aa972b2a
[]
no_license
https://github.com/SG0032/gestionRevenu
701b812972479f87ecb86acdc77e21eadd6a9672
36b326a7a4a99da96794af915fe8af983d3b6895
refs/heads/master
2023-04-22T00:24:39.546786
2021-04-22T00:21:12
2021-04-22T00:21:12
360,344,110
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.2 on 2021-04-22 00:18 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='enfant', fields=[ ('id', models.BigAutoField(...
UTF-8
Python
false
false
2,257
py
7
0001_initial.py
6
0.558181
0.534998
0
47
46.723404
136
juforg/wntc.alfredworkflow
13,056,700,594,493
c1285dbaf13f1b3abfcbf848e312a621c905e178
c829569f18004175119bf96ccaeba1d9144055e3
/util.py
1cb0ab4a11b20d66b762b7a5727984303100a5d4
[ "Apache-2.0" ]
permissive
https://github.com/juforg/wntc.alfredworkflow
e06fa41ae40c64fac834ee226914c8047a51da30
9f1ddbd83727a9e972fd26fd63486065021a7ae2
refs/heads/master
2020-03-25T13:32:57.435392
2019-04-17T14:56:10
2019-04-17T14:56:10
143,831,496
16
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 import os import pip import imp import requests from qcloud_cos import CosConfig from qcloud_cos import CosS3Client debug = os.getenv('debug')=="true" and True or False """ oss 阿里云配置 """ AccessKeyId = os.getenv('oss.AccessKeyId') AccessKeySecret = os.getenv('oss.AccessKeySecret') bucket_name = os....
UTF-8
Python
false
false
5,973
py
5
util.py
3
0.618709
0.616397
0
209
25.904306
160
dijkstra007/manatal_challenge
17,076,790,010,332
cd2e8ec66e1a73fcfc2a910fcd9ce1019c2ca917
7e9c6f2a6e5ccb85de7383e4d171f65de36d60f8
/schools/utils.py
4c1c435afc46c0d786a866e5b3d8fe950e61ef1b
[]
no_license
https://github.com/dijkstra007/manatal_challenge
03e7360403b779793d5fc55de37902b8ac4f016e
c02519989eff59099f9caa77be7d73bf3a370a17
refs/heads/master
2022-09-21T01:14:27.848401
2020-05-31T20:07:45
2020-05-31T20:07:45
268,277,088
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .models import School def get_n_students_and_max_students(school): n_students = Student.objects.filter( school=school).count() max_students = School.objects.get( pk=school.id).max_student return n_students, max_students
UTF-8
Python
false
false
255
py
11
utils.py
8
0.690196
0.690196
0
10
24.6
44
erikwestlund/blog
6,571,300,003,060
c68170dd7b43e7b79ce807d506296ab125bedcf0
7a79f8d30f764c56f4fdaa4cc07cdd00596183df
/app/posts/views/tagged_posts.py
969256e1ca519924ed21e4bcf113a1eadd286127
[]
no_license
https://github.com/erikwestlund/blog
621deb845789365627140fd5cc9d8b94dc503684
a3880dceaa7a08dcfb629db78fc2ffe6baf01c36
refs/heads/master
2023-01-13T21:41:46.771208
2019-03-13T18:03:52
2019-03-13T18:03:52
55,434,904
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import current_app, render_template from flask import request from flask.views import MethodView from main.models.tag import Tag from sqlalchemy import desc from sqlalchemy.sql.functions import now from posts.models.post import Post from utils.models.find_or_fail import find_or_fail from utils.models.pagina...
UTF-8
Python
false
false
1,159
py
168
tagged_posts.py
84
0.66868
0.666954
0
37
30.324324
81
kush99993s/kiva-DefaultFinder
5,007,931,903,777
9da19abd9e4257d2284309153de976f4d76ec736
d6172b7ed2b0d16ae153cfa02ea73f623a6662c0
/code/data_cleaning.py
cb82e2d9af55f797f328dc7145d495d66c499983
[]
no_license
https://github.com/kush99993s/kiva-DefaultFinder
5e556d150f5db5e4d5d3bfc8b4f9e88a06dc2615
400acff350d9006ae0469ed1d69f2882018e3148
refs/heads/master
2020-05-18T18:30:01.206625
2015-08-18T20:51:10
2015-08-18T20:51:10
40,996,170
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd from data_collection import DataCollection import cPickle import os.path class Cleaning(object): def __init__(self, number_file_read=2): """ Preprocess data for EDA and model building """ data = DataCollection() dict_ = data.read_file(number_file_read) # Convert the data from a di...
UTF-8
Python
false
false
8,044
py
24
data_cleaning.py
6
0.674043
0.66907
0
260
29.938462
184
Angingun/learn_python
13,692,355,784,666
838ac43ea05942d29441f8c5bd8d7a541c4d3837
3f8c980b5a6315569f2a77d3da7540f347f127fb
/day9.1.py
ea34ff1ef08d98bccdb0456478f7873830690883
[]
no_license
https://github.com/Angingun/learn_python
930d11f6dd5a830788915301273cff3b6f00fc2f
77d4fe0a43452d2e6907799caaf92604fb680c90
refs/heads/master
2020-07-08T07:54:03.571610
2019-08-21T15:07:29
2019-08-21T15:24:45
203,609,851
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 奥特曼打小怪兽 from abc import ABCMeta, abstractclassmethod from random import randrange class Fight(object, metaclass=ABCMeta): __slots__ = ('_name', '_hp') def __init__(self, name, hp): self._name = name self._hp = hp @property def name(self): return self._name ...
UTF-8
Python
false
false
1,768
py
8
day9.1.py
7
0.476932
0.460784
0
76
21.802632
53
akariv/hasadna-data
1,537,598,304,928
bd975e172bea413834b046dc782cc65c23fa44a0
96948986fae74d4fb8339719569247ed32fb37fc
/tools/loaders/json_loader.py
6116700a868175b167d76b5afbc29c2fe52238ee
[]
no_license
https://github.com/akariv/hasadna-data
3e04edabe11c0de3a0f728a2b2fd089d223d0e1c
fa5b1182090277f0501761b558c12c4938c8bd2a
HEAD
2016-09-06T01:23:21.643153
2011-12-03T17:49:46
2011-12-03T17:49:46
1,591,832
1
5
null
null
null
null
null
null
null
null
null
null
null
null
null
from base import Loader import json @Loader.loader class JsonLoader(Loader): @classmethod def condition(cls,filename): return filename.endswith('.json') def initialize(self,input_file): self.data = json.load(input_file) def get_rows(self): return self.data
UTF-8
Python
false
false
313
py
58
json_loader.py
12
0.645367
0.645367
0
15
19.866667
41
johnpcooke94/project-scrumger-games
3,891,240,370,410
b60711affb032386a1ed5342de0057d817705862
6279825ecafd178352e41905f2d38979a363d483
/src/Sprites/riverbank.py
c5525bbd5df66841fb58e35cd5a6abd335271451
[ "MIT" ]
permissive
https://github.com/johnpcooke94/project-scrumger-games
e6fe386c0d25a515e7e96e2c885622505d61d8de
d8c6bad99ccaf10d3cca05b6fc44799e2f46ad2a
refs/heads/main
2023-04-10T23:40:39.178191
2021-04-20T00:26:46
2021-04-20T00:26:46
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame.sprite class Riverbank(pygame.sprite.Sprite): """ Pygame sprite class for riverbank sprites used for killing the player """ # Constructor should be passed an int to indicate which position the sprite should go in def __init__(self, pos): """ - :param pos: ...
UTF-8
Python
false
false
1,472
py
42
riverbank.py
23
0.558424
0.527174
0
49
29.040816
120
Brainkackwitz/discord_botv2.4
6,038,724,066,179
4c842e4cc36de1ea4349ddcd9c507b16604a7201
a7ec21d917d1e00bd7576b571a8745570172f8cd
/commands/info.py
10ade59d58f6f37101ad71b48a133d79b4418cb6
[]
no_license
https://github.com/Brainkackwitz/discord_botv2.4
65e215d41830690be500efc5f8dfa5fb05287d1b
26682e4bbf775026312e8db4a6b3190a98e8651b
refs/heads/master
2022-04-14T02:02:30.234834
2020-04-14T19:58:51
2020-04-14T19:58:51
255,712,901
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import discord import asyncio client = discord.Client() from commands import STATICS @asyncio.coroutine def ex(args, message, client, invoke): embed = discord.Embed( title=STATICS.BOTNAME, color=0xe67e22, description="version: "+STATICS.description ) embed.set_author( ...
UTF-8
Python
false
false
1,064
py
24
info.py
19
0.62688
0.574248
0
34
30.294118
139
eva-yanrong-chen/Nomadic
2,327,872,321,129
8b5a1eaf7af78ddb79eb0a3e5b8e7eab0b2a719d
3c21e9780aa5e2473b82a341f2d0b3ea841534ce
/migrations/versions/0d186a3e99aa_initial_migration.py
afebc544b8f6cdb3c9a9f8778ff1d50991d3dec1
[ "MIT" ]
permissive
https://github.com/eva-yanrong-chen/Nomadic
1dd2bffdcd47824523df7bb77bfeacab1da348a9
bc56b59b7096eb9eaa6407dd5190a8dc268059f6
refs/heads/master
2021-03-02T16:42:00.362150
2020-03-11T08:06:52
2020-03-11T08:06:52
245,884,371
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Initial Migration Revision ID: 0d186a3e99aa Revises: Create Date: 2020-03-11 01:48:46.635189 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '0d186a3e99aa' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto ...
UTF-8
Python
false
false
2,698
py
7
0d186a3e99aa_initial_migration.py
5
0.501483
0.488881
0
66
39.878788
85
omkarpat/conversational-movie-recommender
8,272,107,030,508
0fe0d6d185d973f6d953cf0c789ebf13ee1a0cae
d8b9ff20d403f2327ac892a7061fb532357cb170
/annotation_utils.py
c704feb2f3c135e668a40d56d533be7c120ab9c3
[ "MIT" ]
permissive
https://github.com/omkarpat/conversational-movie-recommender
01944e9f32b7be250b599b267015b888450353e1
3ee3b4854bbab5eb4730a18972f5cfd5350d9bf4
refs/heads/main
2023-01-19T06:39:49.257416
2020-12-07T02:06:27
2020-12-07T02:06:27
307,568,046
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import re class DBPedia(object): # These correspond to labels that have been misrecognized BLACKLIST_URIS = {"http://dbpedia.org/resource/Glossary_of_tennis_terms", "http://dbpedia.org/resource/Good_Movie", "http://dbpedia.org/resource/Sierra_Entertainment", "http://dbpedia.org/resource/Nice", ...
UTF-8
Python
false
false
2,540
py
50
annotation_utils.py
24
0.698819
0.697244
0
53
46.943396
92
pythonCore24062021/TA
335,007,456,554
b8af288dcd32093cad5a46b2a889f9740c410339
4600ab3681aa1fa9609fdc6f1a96e1d53a95cd6f
/HW/achornyi/ta_solution/ui/pages/home_page/_locators.py
15932f862cb3439e2aa75d50a8075d3d8ae3cd8f
[]
no_license
https://github.com/pythonCore24062021/TA
039ce203e6d150db84d85b6c06e480b8174af609
e22f90f43d2770e44f35e4cf4ad38af970e97ae5
refs/heads/main
2023-08-25T20:52:38.566403
2021-10-20T13:45:56
2021-10-20T13:45:56
394,335,749
0
0
null
false
2021-10-20T13:45:34
2021-08-09T15:05:43
2021-10-20T13:44:26
2021-10-20T13:45:34
21,768
0
0
2
Python
false
false
RELATIVE_PATH = "index.php?route=common/home" PAGE_TITLE = "Your Store"
UTF-8
Python
false
false
72
py
125
_locators.py
123
0.736111
0.736111
0
2
35
45
qyqx/TriAquae
9,251,359,600,467
fd0f7836b9bf36d67e1114564246f55d934fd288
707d0d155aec7cd0506cb3e07920af7b865f7349
/include/serverList.py
a5fc87c43fede44ae80e587d8e181ee46d7e0809
[]
no_license
https://github.com/qyqx/TriAquae
5d7883cdd319d0cac4c23432fcd77890a0226eb5
17c00af6f74b588ab7bbc1e638ef16b49185d2e6
refs/heads/master
2021-01-01T06:57:32.903697
2013-04-03T02:38:35
2013-04-03T02:38:35
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import os,sys,global_env DelimiterLine = '''\033[32;49;1m Powered by TriAquae ________________________________________________________________________________\033[0m''' WorkDir=global_env.WorkDir GroupDir = '%s/conf/server_list' % WorkDir GroupList = os.listdir(GroupDir) CountGroups = ...
UTF-8
Python
false
false
9,469
py
19
serverList.py
17
0.596367
0.561411
0
246
37.49187
131
lukysummer/Sentence-Segmentation-w-Seq2Seq
16,484,084,502,646
35a2ede4fcfad45f7af861978f410956c71316a7
54e388783cd07582d9da66247381513e173e1482
/Seq2Seq.py
a5168c03d633d30491045496b30705f7e70b04a9
[]
no_license
https://github.com/lukysummer/Sentence-Segmentation-w-Seq2Seq
e7980fca4aa4851f9b1b8ad9229dfa429902dc42
eedc7ced16f62e859fe7313a571c101e3cc59ce4
refs/heads/master
2020-09-10T22:36:03.360834
2019-11-15T05:52:39
2019-11-15T05:52:39
221,853,886
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch from torch import nn import torch.nn.functional as F import random from .Encoder import Encoder from .Decoder import Decoder class Seq2Seq(nn.Module): def __init__(self, n_vocab, #n_speaker, n_tags, n_embed_text, #n_embed_speaker, n_embed_tags, n_...
UTF-8
Python
false
false
2,593
py
4
Seq2Seq.py
4
0.475125
0.467027
0
66
38.212121
118
Mrhu1991/hello_code
1,872,605,745,632
92aa93b1f66f96a9dfc16a326b30a16e3408eb9c
8935ab8356174f0f64a056bc26a522ff79c14428
/python/Django/webproject/mysite/polls/admin.py
6574f3f2f3d6e3624d98ab3f854a568651a2d79b
[]
no_license
https://github.com/Mrhu1991/hello_code
124ee8a936f04b86ff75d65a9b3a872481cb6996
de371e5948b1c967f83e3e8084de026161ad9951
refs/heads/master
2016-09-09T22:43:14.369882
2015-03-30T03:38:04
2015-03-30T03:38:04
24,621,087
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python2.7 from django.contrib import admin from polls.models import Poll from polls.models import Choice class ChoiceInline(admin.StackedInline): model = Choice extra = 3 class PollAdmin(admin.ModelAdmin): # fields = ['pub_date','questions'] fieldsets = [ (None,{'fields':['questions']}), ('da...
UTF-8
Python
false
false
479
py
69
admin.py
46
0.707724
0.701461
0
17
27.176471
70
akshaypunwatkar/Caption_assisted_Image_inpainting
6,528,350,317,285
364a4922e9f3f6b4dbc8bc238a8587cc5c87b772
9ed55ad2a3c8ff14e9e6d5408ac2a1cb5fa13b59
/find_closest_captions.py
2735cf7543ac4472f03db5e550e12e186fcb104f
[ "MIT" ]
permissive
https://github.com/akshaypunwatkar/Caption_assisted_Image_inpainting
d36748178a9274b06fc4cfd3733f1b5c5d854905
a4fc4703f3727e10a4d584bf60ee90cad4014e73
refs/heads/master
2023-01-09T12:26:36.234878
2020-11-14T04:19:02
2020-11-14T04:19:02
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from glob import glob from sentence_transformers.util import pytorch_cos_sim import torch from tqdm.notebook import tqdm from PIL import Image import matplotlib.pyplot as plt import pickle import warnings warnings.simplefilter(action='ignore', category=FutureWarning) from sentence_transformers import SentenceTransform...
UTF-8
Python
false
false
1,742
py
24
find_closest_captions.py
6
0.676234
0.649254
0
65
25.815385
91
ThinkmanWang/thinkutils_plus
8,684,423,895,302
ff43badb8919dcca8bb2002f51a6823e4b5334a7
7b8fac032e4d574765aeace0792b66a689cf7896
/thinkutils_plus/datetime/datetime.py
c600eb99134aeb9cdbe1ca9f03ef5cb4596f350f
[ "MIT" ]
permissive
https://github.com/ThinkmanWang/thinkutils_plus
f94471e4854f8ed1949eac432ca5df03bcf2f617
65d56a1a0cfce22dff08a4f0baea6b4eb08a2e35
refs/heads/master
2023-08-24T16:51:12.101273
2018-07-18T09:42:12
2018-07-18T09:42:12
141,403,478
0
0
MIT
false
2023-08-14T21:44:21
2018-07-18T08:16:13
2018-07-18T09:42:29
2023-08-14T21:44:17
84
0
0
1
Python
false
false
import time from datetime import date, timedelta import datetime import calendar # logger = setup_custom_logger() def get_timestamp(): return int(time.time()) def get_current_time_str(): temp = time.localtime(time.time()) szTime = time.strftime("%Y-%m-%d %H:%M:%S", temp) return szTime ...
UTF-8
Python
false
false
2,173
py
30
datetime.py
30
0.630465
0.612517
0
67
30.462687
99
django/django
5,368,709,144,266
5f6dbe8694d56cd9199ff9cf4c19c603c550df20
069c2295076c482afadfe6351da5ae02be8e18e6
/tests/check_framework/template_test_apps/same_tags_app_2/templatetags/same_tags.py
9bec93d8e50a9d43d05b378ba8c50b2b7dd1e658
[ "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "GPL-1.0-or-later", "Python-2.0.1", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-permissive", "Python-2.0" ]
permissive
https://github.com/django/django
5eb557f57053631cd4f566f451e43197309dbeeb
c74a6fad5475495756a5bdb18b2cab2b68d429bc
refs/heads/main
2023-09-01T03:43:44.033530
2023-08-31T08:27:32
2023-08-31T08:27:32
4,164,482
73,530
38,187
BSD-3-Clause
false
2023-09-14T20:03:48
2012-04-28T02:47:18
2023-09-14T20:03:45
2023-09-14T20:03:35
240,685
73,034
29,920
145
Python
false
false
from django.template import Library register = Library()
UTF-8
Python
false
false
58
py
3,311
same_tags.py
2,012
0.793103
0.793103
0
3
18.333333
35
rodrigoctoledo/ServerFlaUNi
17,617,955,852,538
da1d5f98b800551ebc97be2bd14c990007d24cf3
ef8eb2c20305dd0da0552952eeaf80c4d19a89c7
/djangofundamentos/tw_clientes/clientes/views.py
0299dba3515d2178248090824f13366e31187be1
[]
no_license
https://github.com/rodrigoctoledo/ServerFlaUNi
cfc771c940dd94643f1b314b97c6377b7577fe96
ca3cc74f931591c2f47cc8e5888c12d692f15dd7
refs/heads/main
2023-08-05T10:33:54.585723
2021-09-07T23:55:33
2021-09-07T23:55:33
411,485,407
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from .models import Cliente from .forms import ClienteForm # Create your views here. def listar_clientes(request): clientes = Cliente.objects.all() return render(request,'clientes/lista_clientes.html',{'clientes':clientes}) def inserir_cliente(request): if request.met...
UTF-8
Python
false
false
523
py
4
views.py
2
0.694073
0.694073
0
18
28.055556
79
petrepa/OV-Mac-OS-Statusbar
214,748,413,507
c32f30134f9aa0d1090298ffde0e335ee411f7c8
ddb0175db8683dcc5d505cab498393f0d5430e14
/app.py
03bfaa0e14861b366e95a0a681f4a027f5cae078
[ "MIT" ]
permissive
https://github.com/petrepa/OV-Mac-OS-Statusbar
826bb2f332fcebeb3c11fa8c4d9e27bb79e98044
6c224a90ba677427339b89341c51b7da3a875979
refs/heads/master
2022-07-30T09:08:09.947178
2021-04-13T11:23:01
2021-04-13T11:23:01
162,328,885
10
0
MIT
false
2022-07-06T19:57:26
2018-12-18T18:17:47
2021-04-13T11:23:04
2022-07-06T19:57:23
191
4
0
3
Python
false
false
import rumps import datetime from door import door_status class OV_StatusBarApp(rumps.App): def __init__(self): super(OV_StatusBarApp, self).__init__("OV Door Status") self.icon = 'images/help-circle-outline.png' self.menu.add(rumps.MenuItem(title='Status')) self.menu.add(rumps.sepa...
UTF-8
Python
false
false
711
py
4
app.py
2
0.582278
0.576653
0
23
29.956522
63
GSS-Cogs/family-disability
5,076,651,344,492
59d6e1bc40426c3066530a7430f108f79e2a0b7c
33cc4fc2518420003047e233947071df017b28f7
/datasets/SG-homelessness-in-scotland-annual-publication/Tables.py
246ac4573677a80979408e4511c47fcaad91eea0
[]
no_license
https://github.com/GSS-Cogs/family-disability
e90b3ccf32caa6576b16a890405b8388374463cd
605a6c341ab18be016e3cf093c2b0cf466dfbe48
refs/heads/master
2021-07-13T02:52:56.129524
2020-10-22T16:14:34
2020-10-22T16:14:34
216,540,659
1
1
null
false
2019-12-04T20:15:37
2019-10-21T10:27:53
2019-12-04T18:58:42
2019-12-04T20:15:37
441
0
0
32
Python
false
false
#!/usr/bin/env python # coding: utf-8 # %% from gssutils import * from databaker.framework import * def left(s, amount): return s[:amount] def right(s, amount): return s[-amount:] def mid(s, offset, amount): return s[offset:offset+amount] scraper = Scraper('https://www2.gov.scot/Topics/Statistics/Browse...
UTF-8
Python
false
false
8,796
py
171
Tables.py
42
0.708466
0.697428
0
213
40.253521
278
nathayoung/personal
12,730,283,109,145
b08b09d712c3ea06b1a1511dcc8b95e877138a20
176bc1f8c6bf4cbf88296d06711ff25baff23de5
/School_Work/CIS_240/Exercise4_Floats/Ex4_Floats_EmployeePay.py
5056b88f9f73ff40b2a627c3f12c6af61c2f081b
[]
no_license
https://github.com/nathayoung/personal
4e29fecb2576c5916f63f2896120c9be228745bf
c1b214625bebe4960b1129a5361ef4edd0a05d7d
refs/heads/master
2023-08-09T09:55:17.807229
2023-08-08T00:16:39
2023-08-08T00:16:39
188,744,568
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Declare Variables # Get values for Variables wage = float(input("Enter the wage: $")) regularHours = float(input("Enter the regular hours: ")) overtimeHours = float(input("Enter the overtime hours: ")) # Do calculations totalPay=((wage*regularHours)+((wage*overtimeHours)*1.5)) # display results print("The total weekl...
UTF-8
Python
false
false
348
py
249
Ex4_Floats_EmployeePay.py
64
0.732759
0.727011
0
9
37.777778
58
DreamLose/python-
14,577,119,020,528
4b9bcdf11213c0610edc21dc693ab4d00ffcc53a
69958e59f7b8bb02304425fe06b2039219229ec9
/Day30From组件/FromProject/app01/forms.py
9d1a7c6274f8b836f6b7c9de0b6c4fd1158b3e9b
[ "MIT" ]
permissive
https://github.com/DreamLose/python-
467f955a773073db6c3825ef8c0819018aecc01f
865249d7dba1fb1452189bde59c378aab8c99c9b
refs/heads/main
2023-01-31T00:19:45.285440
2020-12-07T05:20:28
2020-12-07T05:20:28
309,921,294
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import forms as dforms from django.forms import fields class UserForm(dforms.Form): username = fields.CharField(max_length=32) email = fields.EmailField(max_length=32)
UTF-8
Python
false
false
188
py
200
forms.py
156
0.771277
0.75
0
6
30.5
46
yuto-moriizumi/AtCoder
13,443,247,641,480
f62dfa056d222d46c28207f485a21f0c3d79059b
039f2c747a9524daa1e45501ada5fb19bd5dd28f
/ABC136/ABC136b.py
44d5352c29f72a805b2f8577383820f41cebf75b
[ "Unlicense" ]
permissive
https://github.com/yuto-moriizumi/AtCoder
86dbb4f98fea627c68b5391bf0cc25bcce556b88
21acb489f1594bbb1cdc64fbf8421d876b5b476d
refs/heads/master
2023-03-25T08:10:31.738457
2021-03-23T08:48:01
2021-03-23T08:48:01
242,283,632
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# ABC136b import sys input = sys.stdin.readline sys.setrecursionlimit(10**6) n = int(input()) c = 0 for i in range(1, n+1): if (len(str(i)) % 2 == 1): c += 1 print(c)
UTF-8
Python
false
false
181
py
661
ABC136b.py
661
0.574586
0.508287
0
12
14.083333
30
amarotta1/FinalDise-oDeSistemas
7,748,121,027,256
1aa19981970a8157f2ea65062e95f9084be1b7da
68f0ca5ccde2c9b57881b15b3e7530c23e92ea12
/Patrones/Abstract Factory Banco/ICuenta.py
4ebca8a466fb03740feeef83a60d463424cbc18e
[]
no_license
https://github.com/amarotta1/FinalDise-oDeSistemas
2a9eee925d6a0f772df08afcf2a7b444fa1f46e8
e760b7b0d36a90be202b6878bed1475aade3047d
refs/heads/main
2023-02-02T10:57:01.758609
2020-12-16T14:56:15
2020-12-16T14:56:15
322,011,321
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from abc import ABC , abstractmethod class ICuenta(ABC): @abstractmethod def funcion(self): pass
UTF-8
Python
false
false
114
py
87
ICuenta.py
87
0.675439
0.675439
0
7
15.428571
36
messyoxd/DesignPatterns
8,881,992,369,335
9a3838343071eea1fa8e361b7172a63608530b59
f209e1238b04c1b00a199e7320de2527e00714e5
/ChainOfResponsability/ComChainOfResponsability/DataNascimentoHandler.py
00e389f4b1a53b9777aa4f58924053f1b02985c0
[]
no_license
https://github.com/messyoxd/DesignPatterns
b2e9e2b7d026cfa4a95f2dad62622f3ac3e9f41b
934a9995287599e3f610fe1674f5eee13901bd26
refs/heads/master
2020-07-06T23:40:00.121028
2019-12-11T10:05:37
2019-12-11T10:05:37
203,174,366
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from ChainOfResponsability import ChainOfResponsability class DataNascimentoHandler(ChainOfResponsability): def __init__(self, next=None): self._next = next def handle(self, dados, campo): if campo == "Data de nascimento": aux = dados data = "" for item in a...
UTF-8
Python
false
false
570
py
23
DataNascimentoHandler.py
21
0.515789
0.514035
0
19
29
55
stardust85/Office365-REST-Python-Client
4,372,276,745,760
c5c62284dbcf7e75c24beb6f44c7a29ea749b95d
2de2437bbf480f6518554bcb204106dd37262023
/office365/graph/onedrive/folder.py
eb880bf08e15c8c303d64a079950395580118878
[ "MIT" ]
permissive
https://github.com/stardust85/Office365-REST-Python-Client
386e5bba16cdee1472b7e23d405a4bf9b6f5e73a
cd369c607c7d137a000734e9c5e8f03ae3e3c603
refs/heads/master
2022-09-29T19:44:02.166438
2020-06-03T23:12:40
2020-06-03T23:12:40
269,356,313
0
0
MIT
true
2020-06-04T12:41:03
2020-06-04T12:41:02
2020-06-03T23:12:49
2020-06-04T00:18:42
6,191
0
0
0
null
false
false
from office365.runtime.client_value_object import ClientValueObject class Folder(ClientValueObject): def __init__(self): super(Folder, self).__init__()
UTF-8
Python
false
false
167
py
36
folder.py
34
0.706587
0.688623
0
7
22.857143
67
korbu/miros
6,399,501,309,293
a854a2a94f2247eececb5fd0eb14982671604fb3
c5ef3699be70031c0b736477e457d1a125809bfe
/examples/philosophers.py
87c6582d7a3e3994862977475d995fc7ca7223e9
[]
no_license
https://github.com/korbu/miros
b9f13a2d1e75e1b66b1081589046062961a40b7f
ab70722a7ec7b660e48452be80504d5390de19dd
refs/heads/master
2023-01-05T00:57:24.612699
2020-11-03T16:23:46
2020-11-03T16:23:46
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import random from miros import Event from miros import spy_on from miros import signals from functools import partial from miros import ActiveObject from miros import return_status NUMBER_OF_PHILOSOPHERS = 5 class Fork(): Free = 0 Used = 1 def right(n, num): return ((n + (num - 1))...
UTF-8
Python
false
false
4,680
py
618
philosophers.py
111
0.64594
0.642094
0
161
27.062112
96
RRuma/RestApiDjango
10,728,828,336,707
6132d270ae12e35e89cc468b7914598ebfe77124
f87fcb7a166603e4b1213e84bb6880a6592ebc0c
/category/serializers.py
08c15f3f11d83c5c2ce439b39d3989595a05c8e8
[]
no_license
https://github.com/RRuma/RestApiDjango
0a9d2469694bbdf5fc7437967f867bced119d233
4e23f56bab312c971540941e7dec7a2fb7c5397f
refs/heads/master
2020-04-23T19:33:46.987734
2019-02-24T11:12:44
2019-02-24T11:12:44
171,408,808
0
0
null
false
2019-02-24T11:12:45
2019-02-19T05:07:30
2019-02-20T05:34:18
2019-02-24T11:12:45
54
0
0
0
Python
false
null
from rest_framework import serializers from django.contrib.auth.models import User from .models import Category # title = serializers.CharField(max_length=120) # description = serializers.CharField() # body = serializers.CharField() # # # # author_id = serializers.IntegerField() # # def create(self, validated_data): ...
UTF-8
Python
false
false
703
py
21
serializers.py
20
0.71266
0.708393
0
27
25.074074
60
omoogo/practice-python
7,962,869,395,085
821d4880c6501be5d9353fec1e58206b1e94293e
8470f9a49eceea7d5ad249512fc173e2bb66851e
/exercise1.py
638119c1196f0be8db3e0157bc74c0e888bd0c63
[]
no_license
https://github.com/omoogo/practice-python
e962d1bc12dffb09b0ffc2fbb06d3a62c544d0c5
3736432ebc1fb0864ef6d8356da1c2cbdd77133f
refs/heads/master
2022-09-23T02:03:19.444927
2020-05-26T01:46:38
2020-05-26T01:46:38
255,214,607
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Title: Character Input # Create a program that asks the user to enter their name and their age. # Print out a message addressed to them that tells them the year that they will turn 100 years old. # Extras: # Add on to the previous program by asking the user for another number and # printing out that many copies ...
UTF-8
Python
false
false
931
py
10
exercise1.py
10
0.730397
0.713212
0
26
34.846154
101
emilyty/pythonProject
4,028,679,345,288
ce91ff9def978259e3a745b9066b1e3987690e5d
c3bf9049e76883f4dfd27c54db6ae5af6c0115f4
/testingJob/__init__.py
69b7720d08e7ef5714169e4af05734de51985694
[]
no_license
https://github.com/emilyty/pythonProject
f3a1795f383b11a43cdb611cb4320cabdf270959
928521451a9a77c8f353a678df63f04e8f863354
refs/heads/master
2021-04-15T04:42:05.680588
2018-06-20T09:04:22
2018-06-20T09:04:22
126,923,475
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # @Author: emily # @Date : 2018/3/2711:34 #@Contact : emilyty@163.com
UTF-8
Python
false
false
97
py
5
__init__.py
5
0.57732
0.42268
0
4
22.75
27
pyjhzwh/Efficient-Deep-Learning-for-Point-Clouds
3,212,635,546,202
bb70d7ff4bd1075de77974dbf40e51a32dfcaa04
e552903c9308f635fab01984cb2f4a852b1fa427
/launcher.py
6647bde9bdd33007c9415133a19bd8cfeffaa653
[]
no_license
https://github.com/pyjhzwh/Efficient-Deep-Learning-for-Point-Clouds
8a7e1f530597545518dce1f695ced8ec332c80a8
921383a37813b41949659e9a6c5cd68c81f5f3a1
refs/heads/master
2023-04-14T17:06:07.779719
2021-04-22T02:27:00
2021-04-22T02:27:00
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' This script is used to compile and launch different network. ''' import numpy as np import argparse import os import sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) ROOT_DIR = BASE_DIR sys.path.append(BASE_DIR) parser = argparse.ArgumentParser() parser.add_argument('--compile', type=str, default=None...
UTF-8
Python
false
false
7,062
py
48
launcher.py
25
0.637921
0.635939
0
187
36.764706
236
emlynoregan/appenginetaskutils
8,203,387,563,415
67792ec940a3d466069607be6ac26952fbe60dd6
34daf4ef4f8a07a453d7241433a3179a336aac93
/experiments/incrementaccountsnaive.py
c9f54bd8d9567e127b2ef0b330297e10bf0ff1d4
[ "Apache-2.0" ]
permissive
https://github.com/emlynoregan/appenginetaskutils
9badc311b66b60e1a1519b7a910a47878f60b04e
755cc7cbe4b9badfc1d50f8bd7ebea6e1aae50ee
refs/heads/master
2021-01-14T08:13:44.128680
2018-05-22T08:21:04
2018-05-22T08:21:04
82,026,170
12
5
Apache-2.0
false
2019-10-23T00:29:16
2017-02-15T06:05:03
2019-04-23T16:12:53
2019-10-23T00:29:15
97
11
4
1
Python
false
false
from model.account import Account from google.appengine.ext import ndb def IncrementAccountsExperimentNaive(): def Go(): def AddFreeCredit(creditamount): def ProcessOnePage(cursor): accounts, cursor, kontinue = Account.query().fetch_page( 100, start_cursor = ...
UTF-8
Python
false
false
653
py
34
incrementaccountsnaive.py
27
0.569678
0.562021
0
18
35.277778
72
Jigar710/Python_Programs
8,100,308,336,554
acc8bfb8e873a31c2060055cc176b277f3c92557
9afbb6993450d1e0c3bae68e86844bd06d4419ee
/lst_pograms/count1.py
34ae489b7256bd9b6ea791f8e7c83585c1ef8c05
[]
no_license
https://github.com/Jigar710/Python_Programs
6f331caac30878655d4cca4ad97d4214c0262088
714a6306487eb6712f32ccb51b6a2407a81873fa
refs/heads/main
2023-02-25T12:24:44.874199
2021-01-28T15:43:24
2021-01-28T15:43:24
332,869,164
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
lst = [5,1,2,3,4,5] print(lst.count(5)) print(lst.count(50))
UTF-8
Python
false
false
61
py
802
count1.py
749
0.622951
0.47541
0
4
14.5
20
KaliEtQuali/Dataset-augmentation-Python
18,545,668,825,773
4cf1a50fe6241d8b576aeece046a5a23a78739c2
09a2305a7937d29098c499905fb462c8571c888d
/src/create_correspondances_json_from_files.py
6b43933680da52d81b07afb129f23b728db1a185
[]
no_license
https://github.com/KaliEtQuali/Dataset-augmentation-Python
64d3499bd47b14466c4665f1a47982164cac26df
c51ccda02ab92e9d383f87a2f661f6f95a147a62
refs/heads/master
2020-03-27T15:42:50.671045
2018-08-31T00:41:36
2018-08-31T00:41:36
146,734,520
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import os import cv2 import json from input_dir import INPUT_DIR def create_correspondances_json_from_files(): rotations_file_dir = os.path.join(INPUT_DIR, '../output/Orientations').replace("\\","/") output_dir = os.path.join(INPUT_DIR, '../output').replace("\\","/") rotation_files = [o...
UTF-8
Python
false
false
1,997
py
185
create_correspondances_json_from_files.py
40
0.611918
0.605909
0
46
42.413043
149
dewlytg/Python-example
11,269,994,186,010
c4a96173597da95b32601e7c05cd178267267c34
085406a6754c33957ca694878db9bbe37f84b970
/ATM+购物商城程序/utils/handler.py
89923e5536e0c0530f45cebf41f15b835965cfb8
[]
no_license
https://github.com/dewlytg/Python-example
82157958da198ce42014e678dfe507c72ed67ef0
1e179e4037eccd9fefabefd252b060564a2eafce
refs/heads/master
2021-01-01T18:36:08.868861
2019-01-18T10:39:08
2019-01-18T10:39:08
98,375,528
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import json,os class ShopFileHandler(object): def __init__(self,filename): self.filename = filename self.data = json.load(open(self.filename)) def __getitem__(self, item): return self.data[item] def __setitem__(self, key, value,is_locked=False): ...
UTF-8
Python
false
false
2,492
py
232
handler.py
174
0.560582
0.557754
0
93
24.645161
81
ahpearce/langapp
12,171,937,323,486
e45d264f6c556a6ba0a98857eabbf65f7a038433
d3c3174652ee7920d3dfdd8c07d4e642930458f8
/langapp/backend/text.py
acb1b816aafc9ccc6b3135f20636ea8c689c7673
[]
no_license
https://github.com/ahpearce/langapp
668d167560593d1485d1e47aab086fc425e21902
abcf696905383f3bf98dfa7f880774d974896137
refs/heads/master
2016-05-26T17:50:50.947961
2015-06-25T22:36:20
2015-06-25T22:36:20
38,077,985
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from nltk import sent_tokenize import difflib class Text: def __init__(self, content, language): self.content = str(content) self.language = str(language) def __str__(self): print(self.content) def set_content(self, content): self.content = str(content) def get_conte...
UTF-8
Python
false
false
794
py
4
text.py
3
0.618388
0.618388
0
33
23.060606
46
MukundKulkarni/OpenCV-Projects
10,067,403,363,521
db7c3a5c4d8144b0fb253629b631e28896bf83c4
1b0e4d18203da588f1c7de9127970810fd2bd899
/Basics/image-quantization.py
33949bdb575ce48f2a640a94a6a1ba6b097c2a75
[]
no_license
https://github.com/MukundKulkarni/OpenCV-Projects
c5a97b1b52f0de7d2f6d0ce162dfd9d8cc60545a
1e0d2ed155beecc02db5688182b279472f70819f
refs/heads/master
2021-06-02T07:36:51.638114
2020-10-08T05:59:42
2020-10-08T05:59:42
147,081,724
0
1
null
false
2020-10-08T05:59:44
2018-09-02T12:09:56
2020-07-09T04:53:03
2020-10-08T05:59:43
101,211
0
1
0
Python
false
false
from sklearn.cluster import MiniBatchKMeans import argparse import cv2 import numpy as np def resize(image,y ): r = float(y)/image.shape[1] # Maintain the aspect ratio dim = (y, int(image.shape[0]*r)) resized = cv2.resize(image, dim, interpolation = cv2.INTER_AREA) return resized ap = argparse.Argu...
UTF-8
Python
false
false
1,172
py
32
image-quantization.py
30
0.68686
0.662969
0
44
25.636364
93
amolmishra23/edx-adminxblock
15,693,810,534,705
c8031333c978afa6d2e8b1de4aa66f98d993f676
f5e4d5fd7091bae4a6a1547eaefdaedae0eb8e91
/adminxblock/adminxblock.py
b0ca6084ec4606e465a3175c26cd71aeba3489d7
[]
no_license
https://github.com/amolmishra23/edx-adminxblock
48d9cd7a087271c23b8cce0b47fd1c2bb6e82607
976540075290ff0f510f409c73ffda0742d41305
refs/heads/master
2020-12-02T22:45:49.016236
2018-01-14T05:54:56
2018-01-14T05:54:56
96,178,810
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# This project is Open edX server task automator using XBlock. # The objective of the project is to create an XBlock which will perform # all the tasks which a system adminstrator frequently performs in the # lifecycle of the Open edX server. import pkg_resources from xblock.core import XBlock from xblock.fields impo...
UTF-8
Python
false
false
19,646
py
11
adminxblock.py
4
0.584903
0.578896
0
396
48.611111
179
czming/cpy5p4
17,205,639,028,494
55744240d302356f498900f02855fa05aab79e1b
652aba70f616b73595b68a6d48c7edbd47eda6cb
/q3_find_gcd.py
0c5978f0ad095fa5a7e558cd2aefa9954a7c9983
[]
no_license
https://github.com/czming/cpy5p4
7eaea266f30d1d4fc2f964efd00ea52878a75951
8a113aee8cd42e27e961efa3fd8343ad8d6ba060
refs/heads/master
2016-08-11T14:16:58.006851
2016-02-15T11:28:45
2016-02-15T11:28:45
51,683,506
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#find gcd def find_gcd(number_one, number_two): array = [number_one, number_two] array.sort() #numbers are sorted with the largest one being the first object in array if array[1] % array[0] == 0: return array[0] else: return find_gcd(array[0], array[1] % array[0])
UTF-8
Python
false
false
306
py
8
q3_find_gcd.py
8
0.614379
0.591503
0
9
32.444444
76
Aasthaengg/IBMdataset
10,505,490,011,977
8be40d934b2a1fe0a67d5f16e2ff86db4df7a526
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p00002/s985758471.py
d984421c810a532b21fbc2c2b792e273c544069b
[]
no_license
https://github.com/Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding:utf8 -*- import sys import math for s in sys.stdin: a,b = map(int, s.split(' ')) print int(math.log10(a+b)) + 1
UTF-8
Python
false
false
132
py
202,060
s985758471.py
202,055
0.583333
0.55303
0
6
21.166667
34
rossbenedict/Challenges
4,904,852,687,714
104cfa22329001ea02067e8d2ff8ed08551033f0
d5878c1f53b392b050089b1819c111432d0d6bce
/Challenges/challenge6/challenge6.py
5acfe5b19b78b10208c5cbbaaa67f1adcc98cec8
[]
no_license
https://github.com/rossbenedict/Challenges
23e31bffe3b55140fc00251b3e83566ed3b9d4bd
c156a26f98333bf4720456aa689ea0a8f9367752
refs/heads/master
2020-09-26T06:48:40.403709
2020-01-24T00:28:36
2020-01-24T00:28:36
226,193,822
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest import time from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC class Challenge2(unittest.TestCase): def setUp(self): self.driver = webdriver.C...
UTF-8
Python
false
false
2,714
py
18
challenge6.py
18
0.630066
0.62675
0
81
32.481481
133
diesseits/Pieberry2
11,218,454,616,371
dffebd3bdca6c3df1ddd477ac84af9ac99f741d7
35d49391a310d47a80fb892ca4cdeec9a9458e7b
/pieberry/pieutility/date.py
15758aa0a135945cc8a5e59003fbfde3713a28de
[]
no_license
https://github.com/diesseits/Pieberry2
4f653be45e88cd93adb4a48d6446776fcb4e107c
f2fe4bb4a0542b96db3717277f9ed8319bab8dfa
refs/heads/master
2021-01-21T13:11:09.540679
2012-10-24T22:54:09
2012-10-24T22:54:09
3,077,719
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import wx, datetime def wxdate2pydate(date): assert isinstance(date, wx.DateTime) if date.IsValid(): ymd = map(int, date.FormatISODate().split('-')) return datetime.date(*ymd) else: return None def pydate2wxdate(date): assert isinstance(date, (datetime.datetime, d...
UTF-8
Python
false
false
734
py
117
date.py
114
0.613079
0.594005
0
22
32.318182
66
darkh14/HR-Product
16,612,933,532,578
96ff8f7d52c1a5639470dedcaacb7b8bd9b1085b
2c6d4c1b021ac83686275536d6b96098ca53f6af
/http_procession.py
fe1553d7b4c859cdeb8ca6951fa6f0d92b0c5782
[]
no_license
https://github.com/darkh14/HR-Product
e003d5cea7a53ad0b6946b1bb0fc8c0028d09a12
7045f83c8126443dc840ae82b6458c120e8babf2
refs/heads/main
2023-05-07T03:42:28.548152
2021-05-22T07:49:29
2021-05-22T07:49:29
311,224,128
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import machine_learning as ml from parsing import parsing_tool import xml.etree.ElementTree as ET import json import mongo_connection import filter import data_processing class HTTPProcessor: def __init__(self, environ, start_response): self.environ = environ self.start_response = start_response ...
UTF-8
Python
false
false
8,678
py
33
http_procession.py
15
0.512906
0.5121
0
226
37.402655
120
jimgregory/raspberrypi
5,188,320,499,625
fe702508d953366e3ae4099bd9e5c63067bbaad8
13b164c58b6818cd1a918b929e627052d188220b
/scripts/input-polling.py
e6a4d8030f3673ec134d979723cd001cc3195bf1
[]
no_license
https://github.com/jimgregory/raspberrypi
85aef9dff176aa31367159daee3625be269eb446
bb8fdae7f017ba3736efea2a2b053721ebb9af7a
refs/heads/master
2021-01-10T18:49:22.355368
2015-12-01T13:31:10
2015-12-01T13:31:10
35,719,911
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! /usr/bin/python # detects a change on an input pin by polling every second # exits after 10 seconds import RPi.GPIO as GPIO from time import sleep # pin to switch is attached (be sure to include a resistor in series) pin = 21 # set which pin numbering system to use # BOARD = pin layout on board # BCM = p...
UTF-8
Python
false
false
644
py
8
input-polling.py
5
0.701863
0.690994
0
25
24.72
69
disissaikat/cfc_2020
14,568,529,102,603
5cd4c6434a7dbc098084d70839f5c2b97d6c248f
dd00da0254875c877a35a59ae372391484a9631c
/ngo_app_code/disasters.py
8863947dbbfa8383c1e389d5c13da18442d0f502
[]
no_license
https://github.com/disissaikat/cfc_2020
9da8476f0eb26946b2d5fd1e63191e44573e8ab2
8222f9d1f6a8ba66190cf0dce19f9a5f15ebe789
refs/heads/master
2022-11-21T11:37:58.781244
2020-07-30T16:05:26
2020-07-30T16:05:26
282,971,756
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests import json def get_disasters(): response = json.loads(requests.get("https://api.reliefweb.int/v1/disasters?appname=togetherly&profile=list&preset=latest&slim=1").text) disaster = [] for i in range(len(response["data"])): print(response["data"][i]["fields"]["name"]) ...
UTF-8
Python
false
false
397
py
24
disasters.py
16
0.654912
0.649874
0
11
34.272727
139
Ashwini2103/Ashwini-Portfolio
12,635,793,810,942
6428564fde74555b1a4109a22f8f0c1d8512c72c
08ad9ca76a7934205b02571b3f91eaf5255bcf8b
/Airbnb_new_user_booking.py
79db8bb2124a1fe1a4fc53d7ace3242e23afb055
[]
no_license
https://github.com/Ashwini2103/Ashwini-Portfolio
6c3bc06b440dac1bf22343e0ccf5a47df3174e50
5a8653faf94bdad125285bb3f6cba0f2076bf591
refs/heads/master
2020-04-05T20:37:12.132846
2018-11-13T15:22:59
2018-11-13T15:22:59
157,188,509
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Nov 2 09:57:14 2018 @author: Dad """ ## Airbnb New Booking Dataset ''' Prediction of new Airbnb users booking their destination country. Importing and Reading csv(.csv)files initally. ''' import pandas as pd files=['age_gender_bkts.csv','countries.csv','sessions.csv','train...
UTF-8
Python
false
false
23,829
py
3
Airbnb_new_user_booking.py
1
0.716774
0.710017
0
599
38.75793
298
pombredanne/django-oscar-cybersource
6,287,832,144,998
5e1e2c12ec8e2f912965d2b1cee65a40e692e29f
6007252aac3a9163d601e9aa986d13555f05631b
/cybersource/actions.py
2d6eeb4c86297bc8ed119736068d3030cbf57d90
[ "ISC" ]
permissive
https://github.com/pombredanne/django-oscar-cybersource
9fe9e84517068ea53f7626112d7595a45071b3da
c522088112f9437867aac779c06923ee40aa242e
refs/heads/master
2021-01-18T05:41:13.422445
2016-05-29T01:09:55
2016-05-29T01:09:55
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from datetime import datetime from . import settings, signature import random import time import re class SecureAcceptanceAction(object): access_key = settings.ACCESS currency = settings.DEFAULT_CURRENCY date_format = settings.DATE_FORMAT locale = settings.LOCALE profile_id = settings.PROFILE ...
UTF-8
Python
false
false
6,068
py
11
actions.py
10
0.59855
0.594265
0
168
35.119048
111
cacosandon/stream-interface
15,805,479,679,389
10cce81707f58e67e3ed2d03c2d661c5f631201d
19f36cd125d55b0a078124005dd61760ed90ef53
/animation.py
da18801f111f6d1f14d4d5dc8f0a565a1761182b
[]
no_license
https://github.com/cacosandon/stream-interface
094924b75268bac2f0a0be65ef89bbbcf2414019
8544d603e4be8fd02ea4244a6c87f6482c9f36d8
refs/heads/master
2022-11-24T07:24:17.792004
2020-07-11T20:45:50
2020-07-11T20:45:50
276,810,117
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from functions import superposicion from functions import velocity_SourceSink, velocity_uniformDiag, velocity_uniformX, velocity_uniformY, velocity_Vortex from functions import stream_SourceSink, stream_uniformDiag, stream_uniformX, stream_uniformY, stream_Vortex from functions import vel_inf_A, vel_inf_SS, vel_inf_V, ...
UTF-8
Python
false
false
2,877
py
7
animation.py
4
0.619296
0.611982
0
84
33.119048
123
fukmar/ds4a_team8
7,035,156,458,622
7e751536bc562ff84c9cf0bd2cc6459596e8dd54
5b99ea7e39dd4d507585e4a229c3e6712bdadce1
/Data Ingestion V2/Raw/Amplitude/get_data_amplitude.py
8f6afc411d9630b0e8fbf4c73370e85e3181cd11
[]
no_license
https://github.com/fukmar/ds4a_team8
c162b2a24cdba5e551b112e5dccf9ba8e0570c17
17fb99b61e9e857f65b326a53cfbb98622a0edc5
refs/heads/main
2023-06-23T16:45:58.050112
2021-07-22T20:21:03
2021-07-22T20:21:03
361,181,471
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import pyspark.sql.functions as func from awsglue.dynamicframe import DynamicFrame from awsglue.transforms import * from awsglue.utils import getResolvedOptions from pyspark.sql.types import * from pyspark.context import SparkContext from awsglue.context import GlueContext from pyspark.sql import SparkSess...
UTF-8
Python
false
false
9,183
py
18
get_data_amplitude.py
5
0.641339
0.628366
0
231
38.701299
177
CidadeIluminada/TCMCidadeIluminada
9,096,740,778,313
68589d573519788da5223beba0ed448a8d522e40
531cedff011ab1b2e7455e96434226a33d61b3b1
/cidadeiluminada/protocolos/__init__.py
cfa92a45ae937c6b29f8b50b0366a819487708e3
[]
no_license
https://github.com/CidadeIluminada/TCMCidadeIluminada
e2bd31be7084540be6a5f6cc95658d4123597f0a
8befe1f373608f24451352d85f2edf061baaba0d
refs/heads/master
2020-04-12T16:06:11.320492
2015-12-13T13:36:11
2015-12-13T13:36:11
30,217,823
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: UTF-8 from __future__ import absolute_import from cidadeiluminada.protocolos import models, rotas # NOQA def init_app(app): rotas.init_app(app)
UTF-8
Python
false
false
162
py
21
__init__.py
14
0.728395
0.722222
0
8
19.25
60
baobabsoluciones/corn
6,158,983,143,933
55481f5dde272c6c9417e357aaa363d36535a9d2
b78d623cd698508dc7c589af76aca38b537932a1
/cornflow-server/cornflow/cli/tools/endpoint_tools.py
d39c52dd03fc6761bdfefd86ca29e6115add3467
[ "Apache-2.0" ]
permissive
https://github.com/baobabsoluciones/corn
35ff257abedf028e2d7b94363283097d605a2bdc
f37fee176fb5c3e7276a728aa8661eedfb49fba7
refs/heads/master
2023-07-08T18:24:41.841203
2023-05-05T08:03:30
2023-05-05T08:03:30
262,996,192
3
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Endpoints SP8 = 8 * " " SP12 = 12 * " " class EndpointGenerator: def __init__(self, table_name, app_name, model_name, schemas_names): self.table_name = table_name self.app_name = app_name self.model_name = model_name self.schemas_names = schemas_names self.descriptions = ...
UTF-8
Python
false
false
12,640
py
416
endpoint_tools.py
280
0.53307
0.525079
0
288
42.888889
144
frankyrumple/smc
19,026,705,143,754
e2f3c2525f1a1f1cdffae89e1743a2fc34b89fe3
72a7fad3f95a29b38a5255559b8c7e7948e17cfc
/controllers/test.py
d4a217ab023986abde745cafb00ac09feb1b6e0a
[ "MIT" ]
permissive
https://github.com/frankyrumple/smc
ffe73f04792a338b3d2c8c8aeeabf3cf9b453491
975945ddcff754dd95f2e1a8bd4bf6e43a0f91f6
refs/heads/master
2021-01-11T03:08:05.594878
2018-02-08T07:38:57
2018-02-08T07:38:57
71,087,894
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # try something like #from ednet.ad import AD #from ednet import Util, SequentialGUID, AppSettings, W2Py, Student #from ednet import * from ednet.ad import AD from ednet.faculty import Faculty from ednet.util import Util from ednet.canvas import Canvas from pytube import YouTube import os impo...
UTF-8
Python
false
false
3,559
py
22
test.py
15
0.652149
0.62068
0
108
31.953704
297
Spittie/cavestory
10,264,971,871,767
36de240687721ee2aab64b7db7dd769853aedb24
1533aa3e2928a4a4b5c9b3ea05de75e6f86878df
/src/game.py
d2cc1ab639ba5c44ac0770b33a6efab5b296895e
[ "MIT" ]
permissive
https://github.com/Spittie/cavestory
f39c5ff10f84e9c4fd03313b43f24685ea012bec
cde0bbeace37a32cf8e41d53aeee16935bae0d55
refs/heads/master
2021-01-22T06:45:27.048921
2014-02-28T15:47:33
2014-02-28T15:47:33
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame from graphics import Graphics from sprite import Sprite class Game(object): def __init__(self, height=640, width=480, fps=60): self.height = height self.width = width self.fps = fps pygame.init() self.graphics = Graphics(self.height, self.width) self....
UTF-8
Python
false
false
1,008
py
4
game.py
3
0.53373
0.513889
0
45
21.422222
62
arnort20/ChuckNorris
6,425,271,107,338
5c8ccdfb01d973181d33f1fdf9370ac36ac62a29
75db7ba1a3019a8681a350a9b8d745341e1efd7a
/Logic_classes/contract_logic.py
cd4bf31f0f3afc3b653112c0f663b3942ee19053
[]
no_license
https://github.com/arnort20/ChuckNorris
a3211456460f184e2be8a014b3e3cab3a3296931
f5655cac9adfc96eb686bc05f830d959a71dfd40
refs/heads/main
2023-01-28T15:55:21.834478
2020-12-11T21:25:23
2020-12-11T21:25:23
317,488,637
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#from Data_classes.DataAPI import DataAPI from Data_classes.DataAPI import DataAPI as dAPI from datetime import datetime class Contract_logic: def __init__(self): self.dAPI = dAPI() now = datetime.now() self.current_date = now.strftime("%Y.%m.%d") def get_contract(self, contractID): ...
UTF-8
Python
false
false
2,230
py
33
contract_logic.py
23
0.656951
0.656951
0
55
39.563636
132
hope-seo/my-first-blog
18,605,798,340,398
985f1c663ce6c350a8188555665d4152634befae
be80c2be175aa24930d05d5ee32cc7d4c268807f
/blog/cafe.py
789c07c19d0c9516fb60f11220fc16107a78829c
[]
no_license
https://github.com/hope-seo/my-first-blog
9e64236aeda388fce0b07b121374001b18489850
698ff8f65f4d193fdbd85080502f224ab2521781
refs/heads/master
2021-01-10T10:03:28.956886
2016-02-25T01:00:02
2016-02-25T01:00:02
52,331,258
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .models import Brand from django.shortcuts import render # from .forms import PostForm def brand_list(request): items = Brand.objects.all() return render(request, 'blog/cafe_brandlist.html',{'items': items}) def menu_list(request): items = Brand.objects.all() return render(request, 'blog/cafe_me...
UTF-8
Python
false
false
350
py
3
cafe.py
2
0.717143
0.717143
0
12
28.25
71
PabloJoel/mcts
9,216,999,840,825
47956bd77d4a06bc345688beae605a2dc8c5bc7b
b7b8d077980eb8a4e91d4836fef316dcd925bc2f
/game_start.py
ae722816b9ef3c7f4f663f6a8a0fab16e295ee0b
[]
no_license
https://github.com/PabloJoel/mcts
ec605261ec26112a85cc0ef75e6b5886de68c410
4486c07399a09d22799f757f99700e4b8992c0b5
refs/heads/main
2023-08-22T17:12:31.592820
2021-10-14T15:29:29
2021-10-14T15:29:29
390,261,476
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame import sys sys.path.append("..") import games.CheckersGame as cg from visual.MainMenu import menu import visual.VisualModel as vm class Game_Start(): def __init__(self, size): self.size_screen = size def start(self): pygame.init() pygame.font.init() #Screen cr...
UTF-8
Python
false
false
1,053
py
26
game_start.py
26
0.549858
0.54321
0
44
22.954545
100
bivin1999/code
2,104,534,017,487
fef10be2c629feeb2deba4d86e8039616bff3cc3
28ca5727a642a24e840463e7cb12e47f32d22578
/code12.py
9ebae5f5b1b3e8fe0e80b92f5f1a7fd460214323
[]
no_license
https://github.com/bivin1999/code
ee54282b6615e021ccd7e4c70c8ca319f26e69b3
152118111ecc45655713587362ed34c35705bda2
refs/heads/master
2020-06-16T10:58:07.311117
2019-07-06T16:25:28
2019-07-06T16:25:28
195,547,991
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#divisible sum pairs #link : https://www.hackerrank.com/challenges/divisible-sum-pairs/problem import sys def divisibleSumPairs(n, k, ar): s=0 for i in range(n-1): a=ar[i] for x in ar[i+1:]: if (a+x)%k==0: s+=1 return s n, k = input().strip()....
UTF-8
Python
false
false
459
py
20
code12.py
20
0.533769
0.522876
0
21
19.857143
73
vinay5656/Python
2,576,980,395,449
a21e4e667f63059327a6ad1afc8e7e3175320f78
762fef5249e213f6175d8446a337081a1e9c10b4
/Guess My Number/guessnumber.py
07b0eb09cab9ec901f147ae94a672b2ee9dfcb77
[]
no_license
https://github.com/vinay5656/Python
8f4e27ebb7950f1b032cbb210506e7d1c93db527
f1f9540d80999f25eab89f4d05a8e2a5269f71ed
refs/heads/main
2023-06-29T16:18:30.041054
2021-08-04T05:58:35
2021-08-04T05:58:35
389,193,241
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from art1 import logo1 from art2 import logo2 import random print("Welcome to the Number Guess Game !") # myNumber = random.randrange(1,101) # print(myNumber) again = True areYouSuccesssed = False def campareNumber(number_1,number_2) : if number_1==number_2 : areYouSuccesssed = True re...
UTF-8
Python
false
false
1,702
py
21
guessnumber.py
20
0.648061
0.632197
0
48
33.458333
89
DilipBDabahde/PythonExample
6,296,422,087,862
dbcb19353ebdb922dadd86bd237c51e532013721
682319f56c17e949bab0d6e418838d33977dd760
/Assignment_8/Thread_List_Even_Odd_Sum.py
09dc9536a5072fcb82196e77d3eac821a7aae1ff
[]
no_license
https://github.com/DilipBDabahde/PythonExample
8eb70773a783b1f4b6cf6d7fbd2dc1302af8aa1b
669762a8d9ee81ce79416d74a4b6af1e2fb63865
refs/heads/master
2020-08-23T01:05:44.788080
2020-07-25T21:59:52
2020-07-25T21:59:52
216,511,985
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
''' 3.Design python application which creates two threads as evenlist and oddlist. Both the threads accept list of integers as parameter. Evenlist thread add all even elements from input list and display the addition. Oddlist thread add all odd elements from input list and display the addition. ''' import threading ...
UTF-8
Python
false
false
1,110
py
309
Thread_List_Even_Odd_Sum.py
308
0.673874
0.667568
0
52
20.346154
88
songcser/geopy
16,320,875,751,581
c4ff93aacd282f087ac409360aa323ddc4f98a9e
b28c1d4265668af5c5aed94da9a73fefc7b48018
/geopy/geocoders/tencent.py
0ebc1ec7b2f28cef3151b4d30594e5e016cf23eb
[ "MIT" ]
permissive
https://github.com/songcser/geopy
916ba9656685d930de843f18aaeee827ac09978b
fa1cca11bbf0cbafc2bf2e3f653684815caa8ed1
refs/heads/master
2020-04-06T04:44:11.354023
2017-05-03T05:56:08
2017-05-03T05:56:08
82,897,988
0
0
null
true
2017-02-23T07:29:09
2017-02-23T07:29:09
2017-02-23T06:32:40
2017-01-29T14:17:28
1,445
0
0
0
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from geopy.compat import urlencode from geopy.geocoders.base import Geocoder, DEFAULT_TIMEOUT from geopy.exc import ( GeocoderQueryError, GeocoderQuotaExceeded, GeocoderAuthenticationFailure, ) from geopy.location import Location from geopy.util import logger ...
UTF-8
Python
false
false
6,071
py
2
tencent.py
2
0.557202
0.551707
0
194
29.943299
82
yellowssi/study
11,836,929,911,681
c93cf77dc7cd381eadd2cd7f4fed5f47ea1a159e
6acabc1c11098282226846a14d6f974746879dac
/patternRecognition/pattern_recognition.py
126f67fdf14f17ea5e7a451d6063482c08b69b62
[]
no_license
https://github.com/yellowssi/study
3ce8946f2ea72ef88c3a93795c5d92400bcd1200
7135d3484a52e72f71c8e7281afb911dec522cc8
refs/heads/master
2018-08-24T01:06:45.159786
2018-06-03T01:21:45
2018-06-03T01:21:45
124,374,876
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from bayes import Bayes from fisher import Fisher from kNN import kNN import matplotlib.pyplot as plt trains3 = [] trainshw = [] trainshs = [] trainsws = [] def get_data(file, gender): global trains3, trainshw, trainshs, trainsws if gender == 'boy': try: data = open(file) for ...
UTF-8
Python
false
false
5,604
py
77
pattern_recognition.py
31
0.523911
0.50571
0
145
37.648276
83
webkom/lego
13,640,816,165,109
a2c987d15d26328c58d122cf5f4b90e3e1ed35e8
9be47cdc14abab79458d3fe4d1a1d39169f3c94f
/lego/apps/gallery/migrations/0007_gallery_public_metadata.py
7f4d935d9a52256cf77c4d029776c74ad33555d4
[ "MIT" ]
permissive
https://github.com/webkom/lego
ae370f0881a8dcaa21caaa9b0d0cc552a6799e12
2c1909fd84fe3b3e0a9d3792c4bcc51089ad5a87
refs/heads/master
2023-08-07T17:06:21.159973
2023-07-13T19:18:36
2023-07-13T19:18:36
24,420,075
53
33
MIT
false
2023-09-12T07:48:21
2014-09-24T15:13:29
2023-08-20T11:34:56
2023-09-12T07:48:21
11,229
53
19
163
Python
false
false
# Generated by Django 2.0.3 on 2018-04-10 14:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("gallery", "0006_auto_20171210_1610")] operations = [ migrations.AddField( model_name="gallery", name="public_metadata", ...
UTF-8
Python
false
false
380
py
726
0007_gallery_public_metadata.py
587
0.623684
0.542105
0
15
24.333333
59
kyamashiro/atcoder
7,602,092,145,561
8ee62aba7888d2d8cf9bfc04270f351ba649034d
9bb16f8fbf9f562f1171a3bbff8318a47113823b
/abc244/abc244_d/main.py
4f0d1876e22637309cfedc94d7dbb02a81665a7e
[]
no_license
https://github.com/kyamashiro/atcoder
83ab0a880e014c167b6e9fe9457e6972901353fc
999a7852b70b0a022a4d64ba40d4048ee4cc0c9c
refs/heads/master
2022-06-01T03:01:39.143632
2022-05-22T05:38:42
2022-05-22T05:38:42
464,391,209
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # from typing import * YES = 'Yes' NO = 'No' # def solve(n: int, a: List[int]) -> str: def solve(N, S): cnt = 0 for i in range(3): if N[i] == S[i]: cnt += 1 if cnt == 1: return NO return YES # generated by oj-template v4.8.1 (https://github.com/on...
UTF-8
Python
false
false
522
py
147
main.py
115
0.522989
0.507663
0
29
17
92
AdamZhouSE/pythonHomework
17,111,149,710,012
8d0299f1c7ef2fd2fb8123eede87961bd4fa244d
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2936/60782/304890.py
640b6e0bbfb944d799ced36196e57333a138da74
[]
no_license
https://github.com/AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
print('310-1010 2')
UTF-8
Python
false
false
19
py
45,079
304890.py
43,489
0.684211
0.263158
0
1
19
19
nagagopi19/Python_learning_curve
12,189,117,218,594
4c4e54e1690184f46be1f9be8cf43f1d1c00921f
c80df62eee7b4b23827ca9e128326edbcc21dcee
/Used Defined Functions/First-Class Functions_2.py
3c2930ef7673ac59a5270c4bb9d6bac3c54c858b
[]
no_license
https://github.com/nagagopi19/Python_learning_curve
ad39a312eca81f341231939673e5195c45d7bd9f
b0487d758f38e97cc0aaea3a81d13474c23a21b5
refs/heads/master
2023-06-01T13:46:15.646609
2021-06-09T09:54:44
2021-06-09T09:54:44
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Here, html_tag is a first-class function that can be assigned to a variable(line 12), passed as an argument(line 12, 14, 16), return these functions from other functions remember!, First-class function must return the enclosing function & mustn't execute it.""" def html_tag(tag): def wrap_text(msg): ...
UTF-8
Python
false
false
840
py
255
First-Class Functions_2.py
190
0.697619
0.675
0
19
43.263158
94
RonanLeanardo11/Python-Lectures
11,209,864,660,839
de424af19cabbeb32f7b7c0016def124bacb1ea8
0f23dfd24dfd09258e6b953e154c2e79af6f55cf
/Lectures, Labs & Exams/Lecture Notes/Lect 5 - Classes and Definitions/Lect 6 - Objects 2/Lect 6 Example 3 - Karen's Solution.py
bdd4ede9a3a7de2936ce2b5dfa5c4c416f0781bd
[]
no_license
https://github.com/RonanLeanardo11/Python-Lectures
224c33d4c98636665b925d5ef7c06828f365e026
0af024e1f72b4ae7861c3320961510c5b8472b70
refs/heads/master
2020-05-06T20:02:57.427535
2019-04-08T20:23:29
2019-04-08T20:23:29
180,218,871
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Create a class called DebitCard: #  Class Variables #  balance class DebitCard: #balance = 0 __balance = 0 def __init__(self): self.__balance = 10 #  lodge(amount) #  One argument, amount. Adds amount to balance if amount if > 0 #  Returns True if successful, Fal...
UTF-8
Python
false
false
1,805
py
46
Lect 6 Example 3 - Karen's Solution.py
43
0.637183
0.623662
0
61
28.04918
146
patchgreen99/advanced_vision_1
2,525,440,813,702
c82041a2faf3d173baa27302a4c81fb8c410f475
13bac31eb687ccec72be21774b6ef5220d8c6f28
/tochroma.py
e3474287a3f448ef2cc96694d3e5e14fc0442b38
[]
no_license
https://github.com/patchgreen99/advanced_vision_1
91751c12f1407efe0a30d8d30bc9ebd550e5e0b3
8e874e30ea75048151e95f5efc45fa1a5286aeb0
refs/heads/master
2020-03-28T17:21:22.962945
2018-10-15T11:50:27
2018-10-15T11:50:27
148,781,030
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# import the necessary packages from skimage.segmentation import slic from skimage.segmentation import mark_boundaries from skimage.util import img_as_float from skimage import io import matplotlib.pyplot as plt import argparse import glob import cv2,os images = sorted(glob.glob("day2/*.jpg")) done_images = sorted(glob...
UTF-8
Python
false
false
1,250
py
9
tochroma.py
7
0.6792
0.6488
0
43
28.069767
98
chuckharmston/yorumipsum
13,297,218,770,994
06f5d0d796e31a20a970392e1cbfbffc9ed48494
95b279e00f2cc026fbbc381f64a6c998c82ea270
/yorumipsum/urls.py
f404b26432c6629c7a3f72ae21853fb88290310d
[]
no_license
https://github.com/chuckharmston/yorumipsum
6316b26827dfee8c6312b02936e7e48a89b93a44
94c244397965a9faaff1d18ad90ae619eb0212b6
refs/heads/master
2016-09-05T16:56:25.016891
2012-05-27T16:09:22
2012-05-27T16:09:22
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf import settings from django.conf.urls.defaults import patterns, include, url from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.views.generic import TemplateView admin.autodiscover() urlpatterns = patterns('', url(r'^admin/', include(...
UTF-8
Python
false
false
745
py
21
urls.py
16
0.679195
0.663087
0
23
31.391304
70
MayerMax/pythonHome
2,147,483,657,994
8561c648b36b25e8dc2171edcd56c29771b9a6ae
ef07224f1e089b310e4177c8d20d6c8ff4ad40ea
/untitled/introToPython/intro.py
d51f95173847788c3971b97123bf0753537c388b
[]
no_license
https://github.com/MayerMax/pythonHome
b135a0824fed288189c6350e278a38e15b4af09d
03027c80b6c310634f75fc9c5811947a5927e578
refs/heads/master
2016-08-12T17:09:15.346000
2016-03-26T20:19:30
2016-03-26T20:19:30
53,084,584
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'Максим' # -*- coding: utf8 -*- a = b'abc' # let convert string in a bytes sequences, after we can check what can do with it if a.isdigit(): print(a[0]) else: print('none') def tuple_creation(): t = 1, 'asd', 'lol', False, (2,1j) # we've made a tuple - sequence of different objects contained ...
UTF-8
Python
false
false
1,101
py
12
intro.py
11
0.599087
0.573516
0
51
20.490196
108
pppppp040/text-classifier-py
2,602,750,208,238
fa2f7f3096b3419ff5bc4ec3b879af3329b4b2a3
b125ba703fb014470c2619f0b3a171b2fae40b4b
/NaiveBayes/testMultiClassifier.py
5b49e457c38bb41bc02ac013ee96ee7d80163abe
[]
no_license
https://github.com/pppppp040/text-classifier-py
557e55aedb8bc3969350bc589b5c0eaf61fcec0c
6186a6d3ead582e39513284c1fe77f7eba774df1
refs/heads/master
2021-10-11T05:01:24.136209
2019-01-22T11:32:26
2019-01-22T11:32:26
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! -*- coding:utf-8 -*- # __author__ = "houlisha" import random import multiClassifier as nb trainFile = "../data/mostClass.train.seg" featureFile = "../data/mostClass.features" modelFile = "../data/mostClass.model" if __name__ == "__main__": all_datas = [line.strip() for line in open(trainFile).r...
UTF-8
Python
false
false
970
py
14
testMultiClassifier.py
11
0.658228
0.652954
0
30
29.666667
82
Lekomrat/Game-raw-
14,946,486,203,083
17341cc76cd5efbbf6b515f72a92a7d64eb4f66f
28eb4f35e557b4d589c914cbb253dff4458d3a23
/Game.py
46ada115c66151db171ebdc470911461038b2390
[]
no_license
https://github.com/Lekomrat/Game-raw-
ae8b332b00462998d8c3b55bf7854737c7cdda91
dbaa2e55aa0c50575f84ee31ce207d614c7f4d0f
refs/heads/master
2020-06-18T19:07:57.291521
2019-07-11T14:41:46
2019-07-11T14:41:46
196,412,567
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import random actions_words=['say','walk','info','fight','start'] fightings_words=['hit','item','run'] locations_words=['forest','village'] items=['health_potion','mana_potion'] info_actions=['say', 'walk','sleep','items','equip'] players_weapons=["arm","sword_iron","axe_iron","spear_iron"] play...
UTF-8
Python
false
false
10,723
py
1
Game.py
1
0.497622
0.487084
0
241
42.443983
154
kevwjin/ContactsWebScraper
12,876,312,001,479
57a7c14076166cde8556e36500fbd5791ea7847a
9223e41fa2489085dc4af37e5856fb8741bc11a6
/WebContactScraper.py
7b6b2d6d3535f0c65c59c0823ae1c989a68be192
[]
no_license
https://github.com/kevwjin/ContactsWebScraper
d522ccf9d41682e7d954f2aa0639ca6165e6ca19
165b598399db5178f70e225eab681724620f9533
refs/heads/master
2023-04-13T19:58:30.306724
2023-03-21T04:52:19
2023-03-21T04:52:19
288,385,997
4
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Demo file for Spyder Tutorial # Hans Fangohr, University of Southampton, UK import requests from bs4 import BeautifulSoup import re from sortedcontainers import SortedSet class WebsiteContacts: """ The WebsiteContacts module is used to extract contact information from a website given a url. Given a url,...
UTF-8
Python
false
false
10,756
py
4
WebContactScraper.py
3
0.505857
0.49656
0
318
32.827044
195
mtshrmn/horrible-downloader
14,551,349,222,944
603a1c05527c4178cba688723ae402e15f554ab7
b4ee0d716b234eede629d09719ec276eeb141b89
/test/test_cmd_funcs.py
3b454ca0028bf7e1a643910fdf7630e6d32fb54c
[ "MIT" ]
permissive
https://github.com/mtshrmn/horrible-downloader
b15d6c7f086b42aea70b4492f90cb20ed9df46e2
f6fd6abcc4022dedf8c79b01a8f06e57a9d7695c
refs/heads/master
2022-12-24T14:58:25.231657
2020-10-02T07:53:33
2020-10-02T07:53:33
138,234,790
11
7
MIT
false
2020-09-20T15:20:50
2018-06-22T00:17:01
2020-09-17T15:51:02
2020-09-20T15:20:49
220
28
7
4
Python
false
false
import os import sys import pytest from itertools import combinations sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from HorribleDownloader.cmd import valid_qualities, episode_filter def test_quality_verification(): for r in range(1, 3): for qualities in combinations(["...
UTF-8
Python
false
false
871
py
15
test_cmd_funcs.py
7
0.602755
0.535017
0
27
31.259259
79
corl19paper273/midlevel-visual-priors
12,927,851,594,178
b081ac263c3e602a9616f9ddf4a51bce207e67f3
1abce5fa8185575ca58a37e8dbdd1352a37b5a51
/evkit/models/actor_critic_module_curiosity.py
6cc46107ef8917fcd4a7a255c86492e52afad5dc
[ "MIT" ]
permissive
https://github.com/corl19paper273/midlevel-visual-priors
a76efe6c470709b88b230043bb3a2f4dd5054aa2
9dbfeabf072ee9c841fefb1f854c8bc6ca8f1cc1
refs/heads/master
2023-04-02T16:12:28.566110
2019-07-07T21:49:11
2019-07-07T21:49:11
195,699,842
0
0
MIT
false
2023-03-25T00:00:32
2019-07-07T21:46:06
2019-07-07T21:51:08
2023-03-25T00:00:28
380,394
0
0
1
Python
false
false
from .actor_critic_module import NaivelyRecurrentACModule class ForwardInverseACModule(NaivelyRecurrentACModule): ''' This Module adds a forward-inverse model on top of the perception unit. ''' def __init__(self, perception_unit, forward_model, inverse_model, use_recurrency=False, internal_s...
UTF-8
Python
false
false
501
py
16
actor_critic_module_curiosity.py
13
0.710579
0.704591
0
12
40.75
117
Bill78Zhang/Data-Mining-and-Warehousing-Lab
3,530,463,166,627
f392abfb6c459fb9c47272a3789bc08b60634b34
f6affb8b53f0b4c1a637955abc513141c5dc4004
/mknn.py
0d20d2050695083490393f0e71197abe17e2123a
[]
no_license
https://github.com/Bill78Zhang/Data-Mining-and-Warehousing-Lab
52e258b1defdb8fcd878b6a98ada19ed1a07913e
34de179d4a92a672ae693ad7963bf91bada89536
refs/heads/master
2020-05-29T13:14:04.021569
2018-10-23T10:16:32
2018-10-23T10:16:32
189,153,222
1
0
null
true
2019-05-29T04:57:08
2019-05-29T04:57:07
2018-10-23T10:16:34
2018-10-23T10:16:33
165
0
0
0
null
false
false
# -*- coding: utf-8 -*- """ Created on Tue Sep 18 15:58:57 2018 @author: Student """ import numpy as np from sklearn.preprocessing import Imputer from sklearn.cross_validation import train_test_split from sklearn.neighbors import KNeighborsClassifier from sklearn.metrics import accuracy_score import pan...
UTF-8
Python
false
false
1,462
py
29
mknn.py
24
0.713406
0.694938
0
45
30.533333
93
advanced4/covid19-predict
11,330,123,776,986
b97cb627023ecd697b2b677db29882c824523c16
bb9d73016624de23ca6135beb688c03c7106f62f
/example-settings.py
abae4765ccfb0778e224139d53ef52e92fdb79cd
[]
no_license
https://github.com/advanced4/covid19-predict
f3ee231b7f04e8f585164ccb3698691a3ea5f7ef
d70418070ff50dc36cf46058047e1a1bf8383160
refs/heads/master
2021-04-22T02:21:01.557983
2020-05-05T20:43:00
2020-05-05T20:43:00
249,843,228
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
file_to_load = "example" population = 1000
UTF-8
Python
false
false
42
py
8
example-settings.py
5
0.738095
0.642857
0
2
20.5
24
trhn94/pythonexamples
2,963,527,463,098
0e226efa1f7289ccaf799f8ff70db0bf107f3e66
e2d2c16dec3e748b39f6ec45c39f294818d1f92f
/alıstırma12.py
80a386c2b0e96579406ea860c7a5487d656f8479
[]
no_license
https://github.com/trhn94/pythonexamples
8e1287192391b0caf4c22c5094731c8c24e1830f
66d440621781c8a103fb02ee1547bcaaa80b2a8f
refs/heads/master
2021-01-25T14:21:45.150995
2018-03-03T12:00:26
2018-03-03T12:00:26
123,682,581
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from random import randrange as rr x= rr(1,100) print(x) import math
UTF-8
Python
false
false
68
py
45
alıstırma12.py
45
0.764706
0.705882
0
4
16.25
34
ubnt-amber/selenium-v5
1,451,698,985,188
353e4f4809c4170e50497c6628ca9e518b3f30ce
c5c36ddb89cf347a6090d76808bea1cc740445e5
/reusable_functions_generic.py
4312eab3c6d87d05e4a6f35311b7035f00be9fd1
[]
no_license
https://github.com/ubnt-amber/selenium-v5
500d22bab98fc9d5ce74b66359c5350670be6f95
27bafe00fb309832910aba07784fd333f1cd1109
refs/heads/master
2016-08-09T00:15:18.195803
2016-03-05T15:43:29
2016-03-05T15:43:29
49,012,692
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import time, sys, inspect #re, signal, os, os.path, subprocess, from reusable_variables import * from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support.ui import Select from selenium.webdrive...
UTF-8
Python
false
false
11,964
py
9
reusable_functions_generic.py
9
0.639
0.633567
0
388
29.837629
172
mnestis/advent2015
7,567,732,422,188
90ad4279bb844ef1c92d2420cd73e5fedf421171
6232fdbcdd1951faefef1477d6e8a026ce5a253c
/12/part2.py
8b86a182004bd12c41d6d56f7904bb17f0566ade
[ "MIT" ]
permissive
https://github.com/mnestis/advent2015
3c191d33e284fb206a91316dd026198c11b32852
36d85230f77d23f246604db34c4c7a103b70780a
refs/heads/master
2021-01-10T06:06:28.436860
2015-12-25T05:16:58
2015-12-25T05:16:58
47,896,749
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import json def process_json_file(input_filename): json_obj = json.load(open(input_filename)) return process_obj(json_obj) def process_obj(obj): running_total = 0 for key in obj: if obj[key] == "red": break else: for key in obj: if...
UTF-8
Python
false
false
1,107
py
36
part2.py
35
0.535682
0.533875
0
50
21.04
55
lilongsy/python-tools
12,807,592,486,736
f1c03b2b4d384771e6eecb2d4d2bfa4d850d7f3b
8c175ba523ff076d93f652951e52e17f6a281f66
/xls2mysql/xls2mysql.py
114c1ad214e6b62e0006ac844599233a23b99d8f
[]
no_license
https://github.com/lilongsy/python-tools
fa568e0db7dabfa5cb2ff7c6d25e1fe04c2f6e39
5bc32b0a5f81fb0a7279ee835bfc973eb46b8420
refs/heads/master
2020-12-24T05:23:29.453487
2017-05-16T08:56:10
2017-05-16T08:56:10
62,382,184
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding:utf-8 -*- import MySQLdb import configparser import os import xlrd import sys reload(sys) sys.setdefaultencoding("utf-8") PATH = lambda p: os.path.abspath(os.path.join(os.path.dirname(__file__), p)) # connect database dbc = configparser.ConfigParser() dbc.read(PATH('../db.ini')) conn = MySQLdb.connect(...
UTF-8
Python
false
false
1,447
py
10
xls2mysql.py
7
0.619903
0.616448
0
41
34.292683
202
dkmiller/tidbits
10,058,813,440,225
feb97b122c792dfa4c80fc162a4a9b02b0a505cc
b6f35e66fdf0d007d58baea60a38b48e5b143892
/2021/2021-11-04_mnist-e2e/components/convert_idx_to_npy/run.py
c2e34b7a21e944c8067dcf029652e3119283792b
[]
no_license
https://github.com/dkmiller/tidbits
4467983c1d2b8a6495fbe1677d06be642303df22
ccc6560cf8ff1a211f6b22c16da90692907ec638
refs/heads/master
2023-08-31T19:10:57.967971
2023-08-31T15:40:12
2023-08-31T15:40:12
19,216,030
0
0
null
false
2023-09-05T05:37:25
2014-04-27T20:14:39
2021-12-13T23:32:41
2023-09-05T05:37:24
43,968
0
0
43
TeX
false
false
""" Imitate: https://stackoverflow.com/a/44712152 . """ import idx2numpy import numpy as np import os from pathlib import Path import sys print(f"Arguments: {sys.argv}") in_dir = Path(sys.argv[1]) out_dir = Path(sys.argv[2]) files = in_dir.glob("*") for in_path in files: out_path = out_dir / (in_path.name ...
UTF-8
Python
false
false
496
py
482
run.py
136
0.629032
0.604839
0
27
17.37037
55
Edenzzzz/yoloface-master
6,116,033,446,441
ff865266c63ec7f2d64593aa619da0e69f0bf24d
cc164c16c28644aa0e5f9970d75b40af22c41062
/resources/yoloface/Python39/Lib/ctypes/test/test_pep3118.py
252511c25cdc400e272bbfd396842fa96c485724
[]
no_license
https://github.com/Edenzzzz/yoloface-master
03b5f46035f874ec29c39ba8dc1db942b2898cc8
148b96c2a4874064fb60fc4644822513b74e7d85
refs/heads/main
2023-07-08T01:47:39.428313
2022-10-06T04:08:39
2022-10-06T04:08:39
394,413,651
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
version https://git-lfs.github.com/spec/v1 oid sha256:d8e35b9aa00030159f5907c4e0db059fb5d6fe5fafb498d27942f9c7a6c697d4 size 8516
UTF-8
Python
false
false
129
py
1,383
test_pep3118.py
1,076
0.883721
0.51938
0
3
42
75
IndomitableIbises/Bangazon-API-Sprint-1
14,431,090,140,231
db2276820326e8d931373ce2988d3ee13b496880
e39971c5ac21fbdb72685043b6097cc09df6ae12
/bangazon/API/migrations/0001_initial.py
41bb67023b9091182dcd1b58186dfd3e7226082e
[]
no_license
https://github.com/IndomitableIbises/Bangazon-API-Sprint-1
cf834693f8d8dc79864f86841b18742821fa6f64
273b000263900da31fc7b600ca2d3e379cad6342
refs/heads/master
2020-03-23T22:24:55.966311
2018-07-31T20:24:15
2018-07-31T20:24:15
142,174,514
0
0
null
false
2018-07-31T20:59:51
2018-07-24T15:00:28
2018-07-31T20:24:17
2018-07-31T20:46:31
3,270
0
0
3
Python
false
null
from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Computer', fields=[ ('id', models.AutoField(auto_created=...
UTF-8
Python
false
false
6,446
py
8
0001_initial.py
6
0.561589
0.557245
0
138
45.695652
142
hirenbioinfo/Dev
15,298,673,527,858
97b04b29065409fd478dc2c7ccb841fcea146f77
f3d50139ceb1f64628fc8fc10d53da381c290c37
/get-unmapped-from-mgrast/get-list-of-hits.py
f4f8e9e2fb79c885f7dd3e1e990c40ec080cd50c
[]
no_license
https://github.com/hirenbioinfo/Dev
d06d83d1adbfe9858dbdc5e636a8d7ea8181cc4a
96307fd788a381e6f46584f85e22addca8b3b024
refs/heads/master
2020-12-29T02:07:27.686495
2014-10-30T17:55:18
2014-10-30T17:55:18
28,400,857
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys d = {} for line in open(sys.argv[1]): line = line.rstrip().split('\t') orf = line[0] d[orf] = '' for key in d.keys(): print key
UTF-8
Python
false
false
156
py
162
get-list-of-hits.py
156
0.538462
0.525641
0
9
16.333333
36
CHAKFI/Python
7,559,142,469,172
b4235384043b7355e48fe48fd4a9e15ea2802b85
701f162f186047c44e0964fbc4a8a66b3a2486d1
/TP3/Exo3/ex3.3.py
be93d3ea09875736aae029e4d35d4b37aea7a999
[]
no_license
https://github.com/CHAKFI/Python
6447ee7253258afc3786a7c68db0c2b227c5ca45
6ace8ce61780d2300422393361bfd0d29522965c
refs/heads/master
2020-04-03T18:11:08.491447
2018-12-31T12:39:24
2018-12-31T12:39:24
155,474,083
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
nbr = int(input('Veuillez entrer entrer : \n')) if nbr < 10: print('Prix : 5 DH') elif nbr >= 10: if nbr <= 20: print('Prix : 4 DH') elif nbr >= 20: print('Prix : 3 DH')
UTF-8
Python
false
false
194
py
22
ex3.3.py
19
0.515464
0.458763
0
9
20.666667
47
alex-zaplik/crypto_labs
6,201,932,819,059
c4c28c387f2f9e4921776a8050fed25d320f50e3
8daa7c40acafd3210353c8cb223ad992193234d6
/Lab_4/libs/utils.py
f923757fe3b5e880fc3c126301b3b0676528ab4d
[]
no_license
https://github.com/alex-zaplik/crypto_labs
f96f4ef5286dba4b49de36d6a6fa672313c75904
10cc99dfb62c4ec58bd39add03f77e52429a20cf
refs/heads/main
2023-05-22T10:09:12.833286
2021-06-13T10:41:04
2021-06-13T10:41:04
353,636,284
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import functools import random def duplets(hex_input: str): if len(hex_input) % 2 != 0: hex_input = '0' + hex_input iterable = iter(hex_input) while True: yield next(iterable) + next(iterable) def hex_from_bytes(bytes_input: bytes): return bytes_input.hex() def byte_from_hex(he...
UTF-8
Python
false
false
901
py
31
utils.py
13
0.680355
0.671476
0
36
24.027778
86
tunglx/group14_k57ca
11,871,289,635,488
4a3f17d97821401d41cf3260152d7409cff9ce2f
8d10d1fdfe4dafd95dcfdd413b0c86d9c72e9d67
/periods/views.py
6e105b2c0016ee354253e7b294ea9d871ffc8373
[]
no_license
https://github.com/tunglx/group14_k57ca
02b7aeba064aeb9391b33f31e5a5a038b00b0d9f
f384b3b51a561d7fd6752228baf485246f65c5a3
refs/heads/master
2021-01-18T20:48:20.361190
2014-03-17T01:32:47
2014-03-17T01:32:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.http import HttpResponseRedirect # Create your views here. from models import Period from forms import EditPeriodForm def index(request): if not request.user.is_authenticated(): return HttpResponseRedirect('/users/auth_l...
UTF-8
Python
false
false
3,197
py
3
views.py
2
0.576791
0.573976
0
84
37.071429
133
xavoliva/CAT
19,370,302,522,772
15303b40f73e2bd81dd1f9b2395d3f8beba7a240
5c6a8cd15955f7ca5f822b17b56c37c36ca4144d
/reference/UCL/dataloaders/femnist.py
027494456488bad185b5ca0571c759bfb9214530
[ "MIT" ]
permissive
https://github.com/xavoliva/CAT
57e48eb958d10f17071797645f4836ed33ae74a7
5f32ada1eed4bf4de4488840bd3ae7163e9dd22b
refs/heads/main
2023-01-22T16:06:40.200292
2020-12-08T17:38:30
2020-12-08T17:38:30
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os,sys import numpy as np import torch from torchvision import datasets,transforms import json from torch.utils.data import Dataset from sklearn.utils import shuffle from PIL import Image ######################################################################################################################## def...
UTF-8
Python
false
false
6,800
py
83
femnist.py
39
0.531618
0.521029
0
203
32.492611
190
rootid23/fft-py
2,336,462,230,004
54feaa9d09ff553ff873071f7dc9dce0c53c34f2
fad3016136563a930e5ec98fd69782a339c570ba
/tricks/remove-duplicates.py
acdbe0c74820af99076274f7fbae312f2d0419df
[]
no_license
https://github.com/rootid23/fft-py
cabfafbca4a3ff0d5df17586d950a4c35029e678
182c864ec8b9d62d40a7a91ccc323d37de1dc223
refs/heads/master
2022-12-10T02:15:25.583804
2019-05-30T10:52:26
2019-05-30T10:52:26
124,316,458
0
0
null
false
2022-12-07T23:48:22
2018-03-08T01:08:20
2019-05-30T10:53:00
2022-12-07T23:48:22
1,670
0
0
5
Python
false
false
# For example, given nums = [0, 1, 1, 0, 3, 3, 0, 3, 4, 5, 0, 5, 5, 12], after calling your #function, nums should be [1, 3, 4, 5, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0]. #Move idx in forward direction def removeDuplicates(nums) : if(not nums) : return nums idx = 0 prev = 0 n = len(nums) for i in range(n) : if...
UTF-8
Python
false
false
587
py
239
remove-duplicates.py
199
0.519591
0.432709
0
22
25.590909
91
minikiller/flask-feme
6,296,422,106,055
982a619bd0cd11e71808e0752aeb06a9b131ce69
9605f02e509ae70754c35b0fb4eda2d224ae6a64
/app/resources/__init__.py
18e973882067bc1f0a006adc81f7145c912d6535
[]
no_license
https://github.com/minikiller/flask-feme
e8bfbb759dffa6ce4b61466c951d645b71161120
3727987b639cc17c043e97a25ac0bc95d1cb8aa1
refs/heads/main
2023-03-31T18:10:58.166097
2021-04-07T08:15:19
2021-04-07T08:15:19
340,590,583
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .example import ns as example_ns from ..utils import PatchedApi from flask_restful import Api from flask import Blueprint from .trade_views import TradeListApi, TradeApi from .setting_views import SettingListApi, SettingApi from .user import UserList, UserUpdate from .role import RoleList, RoleUpdate from .service...
UTF-8
Python
false
false
1,482
py
29
__init__.py
17
0.732794
0.732794
0
50
28.64
94
glosoftgroup/school-erp
3,607,772,549,776
7b94807240ddac667f18aa0d88e568be961a326d
28f24439203f2996710fab379fae5fb5b354a023
/app_dir/modules/workload/class_allocation/models.py
d43f343b994b48fa5e400d58edf6a53845d8486f
[]
no_license
https://github.com/glosoftgroup/school-erp
18cc376f1416d368f83573cecb3fbc16184e5532
a51bddab6fd5f804ded42d0db7539acf8fad9216
refs/heads/master
2021-03-30T15:33:15.233425
2018-08-14T15:35:30
2018-08-14T15:35:30
120,430,345
0
1
null
false
2018-08-14T15:35:31
2018-02-06T09:17:35
2018-08-14T10:27:50
2018-08-14T15:35:31
6,243
0
0
0
JavaScript
false
null
from __future__ import unicode_literals from django.db import models from django.utils.translation import pgettext_lazy from django.utils.timezone import now from django.contrib.auth import get_user_model from app_dir.modules.academics.academic_year.models import AcademicYear from app_dir.modules.academics.classes.mod...
UTF-8
Python
false
false
1,461
py
315
models.py
237
0.722108
0.720055
0
36
39.472222
81
silky/bell-ppls
4,166,118,301,665
7b79373bbf68761aa74986f970c42d51405f7464
8edd63a42469bf09fcad1c1070995ceda6e49646
/env/lib/python2.7/site-packages/observations/r/attitude.py
22900084cbcc314043baeb3e73dcab7cc8dcae9c
[]
no_license
https://github.com/silky/bell-ppls
fa0b5418f40dab59de48b7220ff30caba5945b56
369e7602c810b694a70ac1e875017480c8910ac8
refs/heads/master
2020-04-06T08:40:28.588492
2018-11-01T06:51:33
2018-11-01T06:51:33
157,312,221
1
0
null
true
2018-11-13T03:04:18
2018-11-13T03:04:18
2018-11-13T02:32:47
2018-11-01T06:55:56
124,660
0
0
0
null
false
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def attitude(path): """The Chatterjee–Price Attitude Data From a surve...
UTF-8
Python
true
false
2,958
py
830
attitude.py
823
0.505074
0.494587
0
71
40.633803
77
Mechachleopteryx/polya
2,353,642,101,519
ad50c74f884e8ed6298cec02a03ced3d7c404017
aac95cbe821ce402ee15b7874a7462f295a8086f
/polya/main/main.py
fe06d25f869c9756f46e42e64b192a31fb397884
[ "Apache-2.0" ]
permissive
https://github.com/Mechachleopteryx/polya
c674ec35732bc50e482fdac80cde012190d32727
6d611bf47185249a96f4cf7ee9b3884bc70a15ac
refs/heads/master
2021-09-22T01:25:31.806248
2015-10-01T19:49:26
2015-10-01T19:49:26
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#################################################################################################### # # main.py # # Authors: # Jeremy Avigad # Rob Lewis # Cody Roux # # Contains the main module for running the Polya inequality prover, with some prepackaged # solving methods. # #########################################...
UTF-8
Python
false
false
6,721
py
40
main.py
28
0.649011
0.647671
0
171
38.309942
100
scott198510/python_map_construction
12,146,167,542,732
a0e305ed9b4098c3cced12cfb7da267541d9fbb5
eacab90fc5d2d9e6255445fca369df6c2fe4137b
/src/importer/sample_hog_feature.py
49311dd6428b521d16e447f6f06292a7adff68bc
[]
no_license
https://github.com/scott198510/python_map_construction
9a94a3670f203f138a63d6b3fb6f4315d6320849
ff153c6a59467c8de35d3a7d647ce7f415c54c19
refs/heads/master
2021-05-31T21:31:00.113005
2014-05-15T22:30:05
2014-05-15T22:30:05
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python """ Created on Wed Oct 09 16:56:33 2013 @author: ChenChen """ import sys import cPickle import math import random import time import copy import numpy as np import matplotlib.pyplot as plt from matplotlib import cm as CM from matplotlib.collections import LineCollection from...
UTF-8
Python
false
false
5,237
py
72
sample_hog_feature.py
71
0.609891
0.580867
0
157
31.356688
94
ikibardin/DepositBot
9,363,028,713,576
f6238db167b91da425c334c72e772fe255383d16
73929c17b65a26d67df83f4eccb7e5c55af7e0b6
/database/converter.py
cb2abe0c54c081c3cae3af832177501d9ac99afe
[]
no_license
https://github.com/ikibardin/DepositBot
8c50a0ef82fcfa3d6b39d3b985e5ddab3b3bbdff
993f36eeb6564ec3e1718cd61ec74d4ca1d6ecde
refs/heads/master
2021-01-20T13:58:09.739012
2017-07-20T19:23:47
2017-07-20T19:23:47
90,543,579
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sqlite3 from telebot import types import windows import events from bank import Bank from constants import errorquotes class Converter: def __init__(self, database): self._db = database @staticmethod def user_to_row(user): if not isinstance(user, types.User): raise Ty...
UTF-8
Python
false
false
4,936
py
33
converter.py
30
0.513371
0.512156
0
135
35.562963
74
hwalterm/DjangoProject
13,082,470,384,280
02c2065b0b56e4a4ef17350acc79459de1485d9f
6ddadcc1ffef686cc11d5f1b65656358836caf4f
/Django_Forus/blog/urls.py
6f949396a0b1d842cfecc8386cf2becaeeae9fb2
[]
no_license
https://github.com/hwalterm/DjangoProject
501865c887f39894d9b144ffd070548e180dba51
fe0ae574c7c022dd483d6c978f10af44313d0c4d
refs/heads/master
2020-09-17T08:48:42.365297
2019-11-26T01:40:56
2019-11-26T01:40:56
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path, include from django.conf.urls import url from .views import ( PostListView, PostDetailView, PostCreateView,PostDeleteView, PostUpdateView, home) from . import views urlpatterns = [ path('', home, name ='blog-home'), path('post/<int:id>/', PostDetailView, name ='post-detail'), ...
UTF-8
Python
false
false
776
py
24
urls.py
17
0.667526
0.664948
0
17
44.705882
89
vlsd/nlsymb
6,305,012,034,941
9a90e5f9978c6b5ab851c58d63d1693d89a9522b
ccbc35fd0307325fe7f87a898b7c750807958fb8
/nlsymb/__init__.py
a831dd00cafc0a21fd7b0383859c976e0243fe12
[ "MIT" ]
permissive
https://github.com/vlsd/nlsymb
7ba5744589da096b3b4ad868e48f320c987fe9b2
525414cdd23b2efe97ef0436794f1fe2792c8a7d
refs/heads/master
2021-01-01T18:54:19.966141
2014-10-28T03:32:30
2014-10-28T03:32:30
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import sympy as sym from functools import reduce import time import scipy from scipy.integrate import ode import scipy.interpolate from copy import deepcopy from timeout import TimeoutError from termcolor import colored # from matutils import matmult def matmult(*x): """ Shortcut for stan...
UTF-8
Python
false
false
9,134
py
17
__init__.py
14
0.491898
0.482921
0
294
30.068027
80
CodyRichter/cr_dynamic
2,052,994,382,128
c3732e933e222a8467b8bece4b3ecdbb51245818
bdc92a08f3ca3c74f3b49a2b0f4ea998e2cb9116
/reports/admin.py
efe878f36608b1a302614198f038402acc7c4d39
[]
no_license
https://github.com/CodyRichter/cr_dynamic
fcb7f08b48b680b0645ca6824be6fa0041971bff
f326e55fad149381f0bbc497c4e9a8b620d8f8b4
refs/heads/master
2022-02-28T22:46:59.837432
2020-06-06T11:34:54
2020-06-06T11:34:54
202,457,212
0
0
null
false
2022-02-10T08:56:29
2019-08-15T02:10:07
2020-06-06T11:34:58
2022-02-10T08:56:27
1,499
0
0
8
JavaScript
false
false
from django.contrib import admin from .models import Post, Interaction admin.site.register(Post) admin.site.register(Interaction)
UTF-8
Python
false
false
133
py
42
admin.py
22
0.81203
0.81203
0
7
18
37