blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25bff43441d7b8e7e8014b4c2460b1f03aba0b80 | d2a030f7a050a641fddd657e895651ee0310ae41 | /givers/migrations/0016_auto_20211001_1156.py | 2a116491398f3098f4070830c1672652bfeb618f | [] | no_license | Shawen17/Giveawaynow | f052a1055a96f2d0a392aaf748adcafbec2a5135 | 92f3bc0b359a712776661348e239b492894b81a1 | refs/heads/master | 2023-09-05T00:28:59.237486 | 2021-10-24T21:12:37 | 2021-10-24T21:12:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # Generated by Django 3.1.7 on 2021-10-01 10:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('givers', '0015_auto_20210927_1438'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='profile_pic... | [
"shawen022@yahoo.com"
] | shawen022@yahoo.com |
1679c2dd1798c535df1208262c2e5919a3e0a6cf | 08b182f318fe26b8b2a2fc4022855a76bac5fcf3 | /tweetAnalysysByStrata/example_kde.py | bd0fcaff7a211cb4d0903fec63d84da5598eb236 | [] | no_license | vbabushkin/Sensing-Global-HappinessProject | 68d3449ef74236a8a0e2b62b8176e3dd11bd5a96 | 43074c070b9c3a40b1d27b82ede773001f42559b | refs/heads/master | 2021-01-10T02:07:58.118002 | 2015-12-29T06:28:20 | 2015-12-29T06:28:20 | 48,730,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,467 | py | """
================================================
Kernel Density Estimate of Species Distributions
================================================
This shows an example of a neighbors-based query (in particular a kernel
density estimate) on geospatial data, using a Ball Tree built upon the
Haversine distance metric... | [
"vbabushkin@masdar.ac.ae"
] | vbabushkin@masdar.ac.ae |
cbed7f9bb985a2c95984191d95e17568eba91a69 | 62dab16e77c3828b0bddc7df6bb705b14b040f6a | /yahoo_fin/news.py | 3f034a73f89af45276fc5721d1eb4bab0259ed7b | [
"MIT"
] | permissive | atreadw1492/yahoo_fin | d82eb0bc5242d6845f0bcd1a1236ac78884a69ae | 1f7ed2899db5dd6e7195aea66f7f2b642709b756 | refs/heads/master | 2023-06-21T13:42:10.762126 | 2023-06-15T00:06:45 | 2023-06-15T00:06:45 | 93,340,736 | 275 | 132 | MIT | 2023-06-15T00:06:46 | 2017-06-04T20:51:51 | Python | UTF-8 | Python | false | false | 218 | py |
import feedparser
yf_rss_url = 'https://feeds.finance.yahoo.com/rss/2.0/headline?s=%s®ion=US&lang=en-US'
def get_yf_rss(ticker):
feed = feedparser.parse(yf_rss_url % ticker)
return feed.entries
| [
"noreply@github.com"
] | noreply@github.com |
34ce1215a1f0114d758912539f6b8b23e9087aee | 640e42e90a93854e174ce5a3ea14ced34a465844 | /09_real_estate_app/concept_dicts.py | 81bedb257b80d9e258d64ac872c8e6f2a4970c3e | [] | no_license | kajpawl/pythonApps | 49e5521f59014a67ae7ae91551a8c2572f2db726 | 075a56f1ffab89901fa5079b2774b856ca71abec | refs/heads/master | 2022-12-21T20:33:28.199641 | 2020-09-22T14:32:02 | 2020-09-22T14:32:02 | 294,814,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | lookup = {}
lookup = dict()
lookup = {'age': 42, 'loc': 'Italy'}
lookup = dict(age=42, loc='Italy')
class Wizard:
def __init__(self, name, level):
self.level = level
self.name = name
gandolf = Wizard("Gandolf", 42)
print(gandolf.__dict__)
print(lookup)
print(lookup['loc'])
lookup['cat'] = 'Cod... | [
"kajetan.pawliszyn@gmail.com"
] | kajetan.pawliszyn@gmail.com |
7b2ee7259aad21d0d58d0d91abc4c64525c3ebb7 | 7d5147bb094968d995a04f612ec0e42875643a14 | /linAlg.py | 2c7dddd47ceb53ab58f27d4d44daf34d2a68d704 | [] | no_license | jake-orielly/Getting_Started_with_Data_Science | 3d6633dbec000bf9a02d8554891d64b6d60b73c5 | 003f5a32aa1a7ef849f15dab98d4c3e8afe90f95 | refs/heads/master | 2020-04-05T16:51:28.612873 | 2018-11-25T02:16:30 | 2018-11-25T02:16:30 | 157,031,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | from __future__ import division
import math
v1 = [1,2]
v2 = [2,1]
# --- Vectors ---
def vector_add(v, w, addon=1):
"""adds corresponding elements"""
return [v_i + w_i*addon for v_i, w_i in zip(v,w)]
def vector_subtract(v,w):
return vector_add(v, w, addon=-1)
def vector_sum(vectors):
return reduce(v... | [
"jake.orielly@gmail.com"
] | jake.orielly@gmail.com |
4a7c717c2a9fd7825c1dc5412a40741960d68b5c | 45b51d05e56e9c760e0bc482a82622b6fac72f76 | /Dynamic Programming/Coin_recursive.py | 2e9838cf429e8d1515d3686cc9ef686c8120ff07 | [] | no_license | EricHeGitHub/code-challenge-for-reference | 96c80e10ecab4737dce5bdd0e29f871aeaff3b34 | d39d2b7eac03844b08d1949e9c5b79f94a9e7121 | refs/heads/master | 2020-04-24T01:35:26.772628 | 2019-06-02T10:11:39 | 2019-06-02T10:11:39 | 171,603,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | #problem:
#You are working at the cash counter at a fun-fair, and you have different types of coins available to you
#in infinite quantities. The value of each coin is already given.
#Can you determine the number of ways of making change for a particular number of units using the given types of coins?
#Coin Problem ... | [
"noreply@github.com"
] | noreply@github.com |
7df80da79e41949652e6d21c772ae56164b3b313 | 4d914868d4eafcb5b24fcd0a810e8f7b64489ec3 | /src/utils.py | ce007dcfaaec98c5559cac024daca0a792de4b44 | [
"MIT"
] | permissive | jsennett/ELISA | 824a9dcad62a6adb65e7cb058b2e347c5e7292be | aea1a77f37181ec7e6e9ba26c0ddcb34119f8075 | refs/heads/master | 2020-04-21T22:25:14.468618 | 2019-10-01T23:15:56 | 2019-10-01T23:15:56 | 169,910,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | import struct
def b_to_f(binary):
"""Convert binary to floating point"""
return struct.unpack('f', struct.pack('I', binary))[0]
def f_to_b(decimal):
"""Convert binary to floating point"""
return struct.unpack('I', struct.pack('f', decimal))[0]
| [
"joshua.sennett@tufts.edu"
] | joshua.sennett@tufts.edu |
a7a16fdf2c6741c50f2489152c3bfc87446e807e | 506ed91d4041500d2479eb1ec87b221bda9c4b03 | /utils/types.py | d47a35b21ff897bc62243ae482556825ec6d9a5d | [] | no_license | kerengaiger/RecSys_PyTorch | 1476cb4b9d6702b48b9d34e74e816d9e2fdab6fd | 9adb2634b024dda6e2f61a0b0a227c6f167fbf51 | refs/heads/master | 2023-08-20T19:48:11.047338 | 2021-09-17T08:15:46 | 2021-09-17T08:15:46 | 387,476,776 | 0 | 0 | null | 2021-07-19T13:37:33 | 2021-07-19T13:37:33 | null | UTF-8 | Python | false | false | 582 | py | import pandas as pd
import scipy.sparse as sp
from typing import Tuple
def df_to_sparse(df: pd.DataFrame, shape: Tuple[int, int]) -> sp.csr_matrix:
users = df.user
items = df.item
ratings = df.rating
sp_matrix = sp.csr_matrix((ratings, (users, items)), shape=shape)
return sp_matrix
def sparse_to_... | [
"yoongi0428@naver.com"
] | yoongi0428@naver.com |
8d35cd2f4d8824fbd7b9a3ecb877ac81cb2fd464 | 4416a23d8a6188d46aaccffadbf1efb80fe72c4e | /touch_Sensor.py | f6d15398fefd56aff2f94e39c18546f8bfe5ff6c | [] | no_license | sg1021/Sensor | c518b0770561f96cf4d6bb5245e02acb2a8b2640 | fa79cd2a96b8d00affa254cfeccac1b91c097d3c | refs/heads/master | 2020-03-29T11:21:11.421594 | 2018-09-22T05:14:59 | 2018-09-22T05:14:59 | 149,847,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | from time import sleep, time
import RPi.GPIO as GPIO
TOUCH_PORT = 19
GPIO.setmode(GPIO.BCM)
GPIO.setup(TOUCH_PORT, GPIO.IN)
def touch():
value = 0
if GPIO.input(TOUCH_PORT):
value = 1
else:
value = 0
return value
try:
while True:
ans = touch()
if ans == 1:
... | [
"b1612932@gmail.com"
] | b1612932@gmail.com |
b5c294455b00620bbfbf2a8a455c919efa4fdc72 | cde10c88340a3462b4aba6a0513aa915902caf6d | /api/helpers.py | b1d6cf247605b6689c8afcf971fd42c4b2bd1164 | [] | no_license | bhavrish/QuizConvert-Backend | 066e47478914c29f0531fff9a5046c1f8e442ee1 | 646680fa8e4018ee2cad376b78e1a1743b0345e3 | refs/heads/master | 2022-12-23T18:57:05.690851 | 2020-09-13T06:17:53 | 2020-09-13T06:17:53 | 295,024,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,986 | py | """Transcribe speech from a video stored on GCS."""
"""API key is needed for authentication"""
# Path should be of form "gs://quiz-videos/<video name>"
# Import libraries for text preprocessing
# You only need to download these resources once. After you run this
# the first time--or if you know you already have the... | [
"Lcamila.bustos@yahoo.com"
] | Lcamila.bustos@yahoo.com |
d88ea2ba6d7477db9a64f292db0f6c2310f08086 | b20c7a905e18f2e1c3cd82d3f7eecdac909c9681 | /web/migrations/0004_recognitions.py | 2ba88b3900a99522fba7ac1e848b980b4d743f34 | [] | no_license | samyakjain0657/Professor-Web-Portal | ed50fc4fca573e9f0e263837d73465bd39a89680 | f6beec1f5f6d16b6e8d784a3ef9d99a88e192005 | refs/heads/master | 2020-03-23T22:33:40.328800 | 2018-07-24T22:10:39 | 2018-07-24T22:10:39 | 142,182,411 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-11-11 12:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('web', '0003_compbtstudents_compmtstudents_compphdstudents_contbtstudents_contmtstu... | [
"jainsamyak554@gmail.com"
] | jainsamyak554@gmail.com |
50d8820972add7db1e12f143f05cf38d7f3ed8a2 | 548a5ed489f88b34f0dd31a2118cb1ce82155c99 | /BOJ/2020_12/2562.py | fce608b3cdaa9bec2c41b134ed6c60e49a90d410 | [] | no_license | rkdtmddnjs97/algorithm | f44606f0f39c39af272ffef5373c801e7388d882 | 7cc3d20d654ea067502c3e60b706b0cb765784c0 | refs/heads/main | 2023-07-13T08:20:38.750770 | 2021-08-21T20:31:54 | 2021-08-21T20:31:54 | 398,647,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | a = [ int(input()) for i in range(9)]
b = max(a)
print(b)
for key,value in enumerate(a):
if value == b:
print(key+1) | [
"rkdtmddnjs97@gmail.com"
] | rkdtmddnjs97@gmail.com |
cbfc3ff4e380aeada17a0d1c10ff1a8e10ad2e5e | 4158d5990538233e7677919581e13c45519d7176 | /django_react/auto_calendar/auto_calendar/asgi.py | 32d15dde9b55df90a272f21d359c4ea368f362cf | [] | no_license | gwonin-kenji/auto_calendar | ea59cc2b96a0a4393bb1d06e9bc85aad5fafd72d | e9d88d67e41e839211dc94b234bd897a22365174 | refs/heads/master | 2023-08-28T22:29:01.075267 | 2021-10-17T11:36:45 | 2021-10-17T11:36:45 | 418,101,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for auto_calendar project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"63086285+gwonin-kenji@users.noreply.github.com"
] | 63086285+gwonin-kenji@users.noreply.github.com |
d630b1dd7a6eb1c30f516c89ef5c64aaeb65c260 | 6a0b5dd52577003eddeb45d1ccc173ff6de7e7ca | /director/users/api_v1_urls.py | 5721468341cbb8e8260894fc59e968198546b117 | [
"Apache-2.0"
] | permissive | paulolimac/hub | 98ab1fd0c60ccc28a5a887dc486119da066ced36 | ce5d86343e340ff0bd734e49a48d0745ae88144d | refs/heads/master | 2020-04-03T13:21:20.046117 | 2018-10-29T23:49:37 | 2018-10-29T23:49:37 | 155,282,253 | 0 | 0 | null | 2018-10-29T21:14:19 | 2018-10-29T21:14:18 | null | UTF-8 | Python | false | false | 129 | py | from django.urls import path
from users.api_views import UserSearch
urlpatterns = [
path('search', UserSearch.as_view())
]
| [
"ben@beneboy.co.nz"
] | ben@beneboy.co.nz |
e100d58583d17c1d8f17b6ac0bd3975d1d7a443f | 8b7a3d4fc60d125f52647d30f21d3fbbe424005b | /IIS_project/Kulecnik/migrations/0007_auto_20191024_1451.py | 6bb7bdb4f9f8d028aa184c5996b815d3f510254c | [] | no_license | Jonnymen/IIS-projekt | c7460e0c94eb5c9f48c121316ee663f4b4ad43a9 | f49ffe5799b90db9b3a49fe30c88ee8cb7f7d1eb | refs/heads/master | 2022-03-08T06:27:39.418518 | 2019-12-02T20:34:54 | 2019-12-02T20:34:54 | 217,028,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # Generated by Django 2.2.5 on 2019-10-24 14:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Kulecnik', '0006_auto_20191023_1340'),
]
operations = [
migrations.AlterField(
model_name='tournament_s',
name='plac... | [
"jonny.mensik@gmail.com"
] | jonny.mensik@gmail.com |
fbe5458cc827a0d5d51e19fb100f09b340786554 | aa00321c07abffc86e3c7486f4caee70dc5f3a25 | /upc_ws/build/upc_mrn/catkin_generated/pkg.develspace.context.pc.py | fdfc72ff9150e242801311c55473ee3f0a694eac | [] | no_license | eduardoruiz4/mapping_project | b4dccf3c8fab2ff8193d4f2fedb12359a4cf488c | 769b423dfa2b4d8ff2b890b1f8875096ca6f90d3 | refs/heads/master | 2021-01-21T06:24:31.183484 | 2017-02-27T05:14:57 | 2017-02-27T05:14:57 | 83,225,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "move_base_msgs;roscpp;rospy;action_lib;tf;sensor_msgs;visualization_msgs;nav_msgs;geometry_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_P... | [
"eduardorz@eduardorz-K43E.(none)"
] | eduardorz@eduardorz-K43E.(none) |
4febf68c978b5008fc4c285756f5d452b0554f81 | 9f4b192e9effee10a1ca45f79ded6e633d5ccdc7 | /Berkeley/cs47a/hw09/tests/parent-height.py | 68e723f940a47634620fb79ff226eb3d113f08ba | [] | no_license | mdugar/Problem-Sets | 57b27b3b818d109148702c31d6e597b9b8731ee6 | 58070105c9d56b5c08de004397c48e4238dc915a | refs/heads/master | 2021-06-09T01:05:18.499050 | 2016-11-24T00:56:24 | 2016-11-24T00:56:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | test = {
'name': 'size',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
sqlite> select * from by_height;
herbert
fillmore
abraham
delano
grover
barack
clinton
""",
'hidden': False,... | [
"nunni2@illinois.edu"
] | nunni2@illinois.edu |
890c730f3455a002f518e47dd3c75db9f811bf6d | 7b775d38358de50416f81b07ff3ad9945efe3382 | /utils/transform.py | a5e3950a549b5873f447e52bad7de4d89bad9820 | [] | no_license | fred4freedom/knowledge-distillation-demo | 530b5a4966958dff15efb077bd1a1c190e17479e | 3f661d5776949e71c9446a6f80d5b73cfbafbeb8 | refs/heads/master | 2021-03-17T09:44:12.247473 | 2020-03-13T03:37:27 | 2020-03-13T03:37:27 | 246,981,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py |
import torchvision.transforms as transforms
normalization = transforms.Normalize(
mean=(0.4914, 0.4822, 0.4465),
std=(0.2023, 0.1994, 0.2010)
)
training_transform = transforms.Compose([
transforms.RandomCrop(32, padding=4),
transforms.RandomHorizontalFlip(),
transforms.ToTensor(),
normalizat... | [
"fred@dsaid.gov.sg"
] | fred@dsaid.gov.sg |
1509d9b68521df12375cdeb84a7ebe5c1ec96e76 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /elasticache_write_f/tags-to-resource_add.py | 9d6e980bae8076a92de85796496e725ed2d6d06f | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
31d4f20c8b0882358fa754ca769dc5ee20509306 | 852b6017c6a277b2afc4b24a903566e7d9121285 | /Prediction.py | 310f09af36a388fc37bfcacfbcbff1036ee7c0c8 | [
"MIT"
] | permissive | s123600g/asr_edgetpu_demo | 6d4dbdbb7cc9a60ce0d59cf676d54e3d4a67862c | 628f885a4998cf9c0bed5ab5b85effa2a8ea4c68 | refs/heads/master | 2020-06-19T18:56:36.585685 | 2020-05-10T13:27:20 | 2020-05-10T13:27:20 | 196,832,288 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,201 | py | # -*- coding:utf-8 -*-
'''
MIT License
Copyright (c) 2019 李俊諭 JYUN-YU LI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to... | [
"noreply@github.com"
] | noreply@github.com |
abfe1eb5ad4a1f46bb5c3849ae609f441b1bb094 | 113eda40b426911aa11f61049a69815690ceac00 | /ccg_travel_orders/models/ccg_travel_order.py | 5b06867906a9ad03981750ed3740a4026644baa5 | [] | no_license | vidtsin/cadcam_oe | 2cd30433351c184b83fc0d6b2c3b6549deccbe1d | 84cc40989c2eb55ad7a21b04d0e92054948643df | refs/heads/master | 2020-07-07T14:50:37.014234 | 2019-05-28T12:44:10 | 2019-05-28T12:44:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,024 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2016 CADCAM Design Centar d.o.o. (<http://www.cadcam-group.eu/>).
#
# This program is free software: you can redistribute it and/or modify
# it ... | [
"boris.kumpar@cadcam-group.eu"
] | boris.kumpar@cadcam-group.eu |
555718c3e4afae608762a4da52591dcbda894734 | 05e4c9c4358569833d30d9e114fc6a18b48d3164 | /python/presigned/test_presigned_url.py | 13aaf0e73d64491dc69301b68518f17f7b9ad455 | [] | no_license | AruniMishra/aws | 385682575a79cb5ab369b528372f4d4aaa086172 | 4ad94b3f99f0ebee5866704b9055a2197721c725 | refs/heads/master | 2023-09-04T22:33:54.530093 | 2021-09-28T17:10:49 | 2021-09-28T17:10:49 | 290,276,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
"""
Unit tests for presigned_url.py functions.
"""
import boto3
import logging
import presigned_url
logger = logging.getLogger(__name__)
def test_generate_presigned_url():
s3_client = boto3.client('s3')
... | [
"arunimishramsit@gmail.com"
] | arunimishramsit@gmail.com |
3947bd751ee9a880de119c51faed2a596997270f | a9e21231a336bb156912d178cdbd9b06b9dd7494 | /app/core/management/commands/wait_for_db.py | a0d51a8c58872888524430cf04a041528b4828ea | [] | no_license | adam-harmasz/recipe_rest_api | 3e10646957fbd28b1516ed7df22d04fbd92b26cc | 7c087b0885a816ee1587ab0654044e39e4526999 | refs/heads/master | 2020-04-18T03:55:16.358144 | 2019-01-27T20:46:50 | 2019-01-27T20:46:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | from django.db import connections
from django.db.utils import OperationalError
from django.core.management.base import BaseCommand
# import time
class Command(BaseCommand):
"""Django command to pause execution until db is available"""
def handle(self, *args, **options):
self.stdout.write('Waiting fo... | [
"adam.harmasz@o2.pl"
] | adam.harmasz@o2.pl |
c1ab259708f78e673c1ea1ed3d255d0513875109 | 59140a964605cbda4eb12607d3b407a3a36b9bae | /pub.py | 9e2d0531e578d16b79c272a1470ab6e29ff02857 | [] | no_license | luist1228/SambilServices | 62f5dabfdb9f590118e126ca8951fc8a50b2eb61 | 08826cfddebde1d67d1803951b9fa4590bdb52e5 | refs/heads/master | 2020-06-16T14:46:45.922633 | 2019-07-10T09:54:11 | 2019-07-10T09:54:11 | 195,613,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,523 | py | import ssl
import sys
import json
import random
import time
import paho.mqtt.client as mqtt
import paho.mqtt.publish
import numpy as np
import datetime
import psycopg2 as psy
import pandas as pd
import csv
import datetime
centrada = psy.connect(host = 'localhost', user= 'postgres', password ='12t09lma', dbname= 'Se... | [
"luis.t1228@gmail.com"
] | luis.t1228@gmail.com |
1d57e49ce81e53f11eb64d0c4ec9979d84b5706d | d48c0d07c51d3bea16288b7450c8051efdcf0a94 | /libraries/rje_tree.py | b6077f2ce48d09cf34f9b08751407db273f38857 | [] | no_license | YasmineO/SLiMSuite | 68981451b142f9e11980ea5514b437a581fbce3a | 02944bd204a801e5d3e4b3a04364a1c72fe80f22 | refs/heads/master | 2020-03-27T18:04:55.534043 | 2018-07-02T05:28:31 | 2018-07-02T05:28:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258,038 | py | #!/usr/bin/python
# rje_tree.py - Phylogenetic Tree module
# Copyright (C) 2007 Richard J. Edwards <redwards@cabbagesofdoom.co.uk>
#
# This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either... | [
"richard.edwards@unsw.edu.au"
] | richard.edwards@unsw.edu.au |
cf885552e84010143da31e48274a4eca2885c0f0 | f4ee2133e733c2eccad7cff39d09a3909aa0152f | /apps/account/views.py | 20ad1963b85765cb879b11792a9c4174622b879d | [] | no_license | shakiill/TechFort | d50aae59b55b1430af0aa3872cae61cafc35e1b9 | 700ebcb9e06eaf8ae9346d3df375541bb4d50823 | refs/heads/master | 2023-01-29T17:27:31.225976 | 2020-12-14T18:30:33 | 2020-12-14T18:30:33 | 321,437,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,720 | py | from django.shortcuts import render, HttpResponseRedirect, redirect
from django.urls import reverse, reverse_lazy
from django.http import HttpResponse
# Authentication
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.decorators import login_required
from django.contrib.auth import logi... | [
""
] | |
0a781a4c64581b3ff11b1a775649eef398bd470f | 5aa6a4cbce18f781067530291e29181d118f0911 | /allocate_new.py | 6b792ff0241af8f4378585f823e0e5d05cea96e1 | [] | no_license | AllenZYoung/keyword-util | 9f860b66533cfb365187ed1266d32d5b4701c53b | 779374d567e3e22074a788a77448d779018520b0 | refs/heads/master | 2021-01-22T21:00:36.893556 | 2017-08-23T08:56:06 | 2017-08-23T08:56:06 | 100,683,406 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,676 | py | from random import shuffle
list1 = [
'/Users/zhangyang/PycharmProjects/IdiomSpider/stage-nd/newdir/winrar/ALLOCATE-ULTRA-KEYWORD-LOWERSOURCE-book_summaries_filter.txt',
'/Users/zhangyang/PycharmProjects/IdiomSpider/stage-nd/newdir/winrar/ALLOCATE-ULTRA-KEYWORD-LOWERSOURCE-movie_summaries_filter.txt',
'/Users/zha... | [
"allenzyoungazy@gmail.com"
] | allenzyoungazy@gmail.com |
148189703be9ceae30cceda182d90852094df8a4 | aa56a7336260dd79711ded10c638dc18cf063d32 | /pizza_cost.py | 67d0effcf3ee6a475013e1144d9e2bda1c389f26 | [] | no_license | ZenSorcere/pizza_costPerInch | f150a14786284415c6a07c318608b54641150a75 | cec465fb36c2a50093e0a0795f38ad3b6fb9edc5 | refs/heads/master | 2020-06-20T13:25:52.798296 | 2019-07-16T06:46:11 | 2019-07-16T06:46:11 | 197,136,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | # pizza_cost.py
# calculate the cost per square inch of a circular pizza
# Import math library
from math import *
def main ():
# Inform user of program purpose.
print("This program calculates the price per square inch of a pizza. \n")
# Get size of pizza, and divide by 2 to get radius (pizza sizes... | [
"noreply@github.com"
] | noreply@github.com |
4ba9dd5155a46583999e303364738eb845069c8e | 94838674ffd175df6194437c1ccc3f90ab409d6c | /pillowV3/log/2018-12-30 14:32:11.007864 | f0ffac647e42c1490e5d2efabb7c2febde427f75 | [] | no_license | WojciechKoz/MyFirstNeuralNetwork | 4fdb3140d8f02257599d005638598f78055c1ac8 | 3cd032aba80ecd71edb0286724ae9ba565b75a81 | refs/heads/master | 2020-04-02T03:02:48.680433 | 2020-02-29T17:57:43 | 2020-02-29T17:57:43 | 153,943,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278,221 | 007864 | #!/usr/bin/env python3
# -*- coding: utf8 -*-
from __future__ import print_function # new print() on python2
from datetime import datetime
import sys
import numpy as np
from mnist import MNIST
# Display full arrays
np.set_printoptions(threshold=np.inf)
mndata = MNIST('./data')
images_full, labels_full = mndata.loa... | [
"246992@student.pwr.edu.pl"
] | 246992@student.pwr.edu.pl |
f25e10e1de6598126c133ce3929fdd51614412ab | 29dea00941a5dedc63821cc025822e2935281875 | /sqlalchemy_example/sqlalchemy_example.py | 11f55253a5010e59520308cdac84edb6c6e07a12 | [] | no_license | joecabezas/flask-learning | 4c271a60b4d3478ae793c9e163c87e00541c7a63 | f6177c6a689aadf09885f6d3541906db08df59df | refs/heads/master | 2020-03-20T19:46:05.137143 | 2018-06-17T12:17:31 | 2018-06-17T12:17:31 | 137,652,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | import json
from flask import Flask
from flask import redirect
from flask import url_for
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///database.db'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS '] = False
db = SQLAlchemy(app)
class Tasks(d... | [
"joe.cabezas@gmail.com"
] | joe.cabezas@gmail.com |
79ad61b8d831f2d9ea69c242acc35367ae774957 | b22fdbd496c6086428a939a2d4c5bdc0b44ecd13 | /shipyard/prepare_table.py | 4f12c3e08ac0231cc941eba448eb65d1bfac2344 | [] | no_license | compmetagen/AIforEarth2020 | 3c080f83eb1bb37759f8b52e8ba827f8a23e0839 | c100207095b2ba105c59776844875ae9f789ed36 | refs/heads/master | 2021-02-05T18:20:35.069762 | 2020-06-19T07:20:27 | 2020-06-19T07:20:27 | 243,814,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | import sys
import csv
import re
import os
import pandas as pd
from Bio import Entrez
input_fn = sys.argv[1]
output_fn = sys.argv[2]
Entrez.email = "davide.albanese@fmach.it"
input_df = pd.read_csv(input_fn, delimiter='\t', index_col=False, header=0,
dtype=str, na_filter=False)
output_df = pd.DataFrame()
bios... | [
"davide.albanese@gmail.com"
] | davide.albanese@gmail.com |
53960c4fdf7b1956a9d83229b2d3c49ab5632689 | 1b388332666b0ab0ff7b8cc67352e6bb0347a180 | /produto/admin.py | 196802e19fb6af8f38a6d57bc6cdbb7432fa532e | [] | no_license | GomesMarcos/calculo_frete_drf | 9c6199a4d11e6d7e7073d9341b49c631281f07d7 | a9c5b30fb9cd0ff3936d6453b2abfaca2b6101e1 | refs/heads/main | 2023-02-25T02:55:31.684749 | 2021-02-01T14:37:43 | 2021-02-01T14:37:43 | 333,989,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from django.contrib import admin
from .models import *
admin.site.register(Produto)
| [
"gomes.marcosjf@gmail.com"
] | gomes.marcosjf@gmail.com |
887821cb1d3663aec05aded7090a12fbb0863b88 | d9c95cd0efad0788bf17672f6a4ec3b29cfd2e86 | /disturbance/migrations/0163_apiarysiteonapproval_site_category.py | b2f18b430255810ee5d6bbd518185236c84db914 | [
"Apache-2.0"
] | permissive | Djandwich/disturbance | cb1d25701b23414cd91e3ac5b0207618cd03a7e5 | b1ba1404b9ca7c941891ea42c00b9ff9bcc41237 | refs/heads/master | 2023-05-05T19:52:36.124923 | 2021-06-03T06:37:53 | 2021-06-03T06:37:53 | 259,816,629 | 1 | 1 | NOASSERTION | 2021-06-03T09:46:46 | 2020-04-29T03:39:33 | Python | UTF-8 | Python | false | false | 592 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2020-09-17 04:10
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('disturbance', '0162_auto_20200917_1209'),
]
operat... | [
"katsufumi.shibata@dbca.wa.gov.au"
] | katsufumi.shibata@dbca.wa.gov.au |
c40bb4138fdd7b48069ab7bc4e9018018446266a | b49248f0454a066940219eadef8d3f14021816c1 | /EcommerceProject/wsgi.py | 39d8df5688950f4b3284af553975406f3e6f76fd | [] | no_license | anilchouhan8480/EcommerceProject | ded6691df6b20950371f1df20642f45e4a2e7305 | b98492a4d184df780a44b1ca0d255108f9303066 | refs/heads/master | 2023-06-05T23:51:04.086020 | 2021-06-12T03:20:10 | 2021-06-12T03:20:10 | 367,442,102 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for EcommerceProject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"chauhananil152@gmail.com"
] | chauhananil152@gmail.com |
caca76cf5670844b8fb9ce1fc6838c91abd6578f | f78cc6b4b816e982313e2e9e49abfd36ff758243 | /0x08-python-more_classes/9-rectangle.py | f94b935694f7a15dc1bf0d3cb0c1ff5354b9e37a | [] | no_license | csoriano2832/holbertonschool-higher_level_programming | 1ff274dcb0782b8c99f359961b234c5f07174a14 | 76e6eb6310c94c5b3ea12299974a9f042e7bfb9c | refs/heads/main | 2023-09-01T22:09:41.698482 | 2021-09-28T20:42:41 | 2021-09-28T20:42:41 | 361,794,684 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,846 | py | #!/usr/bin/python3
"""This module contains the class Rectangle"""
class Rectangle:
"""Defines a rectangle"""
number_of_instances = 0
print_symbol = "#"
def __init__(self, width=0, height=0):
"""Instantiation"""
self.width = width
self.height = height
Rectangle.number_o... | [
"2832@holbertonschool.com"
] | 2832@holbertonschool.com |
64724bb718e51f021275096a77275b11b6481ac4 | 4178f2916d2da72cbb45454fbed941dcfe8f6460 | /POM_test/TestCase/Debug2.py | a6a55e7b2f21f479f7cacf5f29ff779122b450fc | [] | no_license | maxcrup007/Selenium_Webdriver_Python | 15196cb04ba5cafdc5b776c26d167f0b48fb0e14 | 6be7f0b9f53df1ba592957029e8a4d22e409d1c4 | refs/heads/main | 2023-03-24T21:04:31.976451 | 2021-03-22T09:16:04 | 2021-03-22T09:16:04 | 349,379,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py |
import os
os.chdir('C:/Users/voraw/Desktop/Working/Gaming & Hobby/Ma11/miKu-Doujin/Chane name')
print(os.getcwd())
COUNT = 1
def change_name():
global COUNT
COUNT = COUNT + 1
for f in os.listdir():
f_name, f_ext = os.path.splitext(f)
if COUNT >= 100:
f_name = str(COUNT)
elif COUNT >= ... | [
"36732487+maxcrup007@users.noreply.github.com"
] | 36732487+maxcrup007@users.noreply.github.com |
29637e7e8fe558e5d7e6148b29ef02ed2d86a8fd | bce7ac4be692d4073ab5e48d111cd976940d5c0e | /systemIntegrityVerifier.py | 93b01c5de50effb8be4c196b5571649db3961584 | [] | no_license | Nasirali-Kovvuru/SystemIntegrityVerifier | 6b07240a7e3684059bf8b8e1d2ee814885075279 | 40248111e86d7ee294ea89f5d8840134e38a9ee2 | refs/heads/master | 2020-03-27T07:15:39.026708 | 2018-08-26T11:53:03 | 2018-08-26T11:53:03 | 146,176,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,655 | py |
import argparse
import hashlib
import json
import os
import pwd
import sys
import textwrap
from datetime import datetime
from grp import getgrgid
from pprint import pprint
parser = argparse.ArgumentParser(
description=textwrap.dedent('''Initialization --> siv.py -i... | [
"nasiralikovvuru@yahoo.com"
] | nasiralikovvuru@yahoo.com |
4fab9a75556eef5fd6f1526961dc1d9781aaad35 | 280a40f148b741b1abe6da5c6e13d08d2f8ec1ec | /is-binary-search-tree/main.py | 322c69c7c20ca0d5f6fca541529060cad1462e1b | [
"MIT"
] | permissive | nbrendler/hackerrank-exercises | 83f0d91082aab05007924e585dcc1aa6c24b7953 | 8b9f0944b5ea89b47b1e071965b996a238362757 | refs/heads/master | 2021-01-12T08:07:22.520041 | 2016-12-14T17:11:58 | 2016-12-14T17:11:58 | 76,478,416 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | """ Node is defined as
class node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
"""
def check_binary_search_tree_(root, minBound = 0, maxBound = 10000):
if root.left is not None:
if root.left.data >= root.data:
return False
if not minBound <... | [
"nbrendler@gmail.com"
] | nbrendler@gmail.com |
986016797e5e1c211ca0e05a473bca03d8fdb54e | 795da8b6463bf4b9553ea6631af0cef36605b88b | /test.py | a12399d9f62fbade08a9951baf0d4bf1bde1d9b2 | [] | no_license | coder-fy/ChineseWordCollection | 0601105efcd586c0254508d010aef918de13b59e | 05e931abb85de5f33c0d01fbed77e2c0ae8655ca | refs/heads/master | 2020-06-23T20:26:47.469765 | 2019-07-25T01:39:34 | 2019-07-25T01:39:34 | 198,743,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | import re
str = "\n test it \n"
new_str = re.sub(r"\s+", " ", str).strip()
print(new_str) | [
"innovstudio@outlook.com"
] | innovstudio@outlook.com |
782f7ad84a757286a8685de5ded3aa137187a6e8 | f042383cbc9f10837ebdb5b9033a0263f6a43698 | /examples/docs_snippets/docs_snippets/intro_tutorial/basics/e04_quality/custom_types_2.py | 70e3912ca669f3083987bf7f01f0b16146f8993a | [
"Apache-2.0"
] | permissive | helloworld/dagster | 664e6636d68bafa5151418c9d4316a565717f5ee | 779e27faa3e46b7d043cb9624617e655a9ed570c | refs/heads/master | 2022-03-24T12:15:36.626783 | 2022-02-26T01:34:29 | 2022-02-26T01:34:29 | 464,019,094 | 0 | 0 | Apache-2.0 | 2022-03-05T20:23:14 | 2022-02-27T02:38:17 | null | UTF-8 | Python | false | false | 1,116 | py | import requests
from dagster import DagsterType, In, Out, get_dagster_logger, job, op
# start_custom_types_2_marker_0
def is_list_of_dicts(_, value):
return isinstance(value, list) and all(
isinstance(element, dict) for element in value
)
SimpleDataFrame = DagsterType(
name="SimpleDataFrame",
... | [
"noreply@github.com"
] | noreply@github.com |
ed4e480144d864d245faccc359b175da7e04c517 | 1809761794a0a4947888f2e268c3dfe3f98061ad | /simulator/simulator.py | f4d672a2986ab74592e0d6765aeca273334f8ad7 | [] | no_license | jacopobr/car-2-smart | e4a5ac86bb53b3f508369eda6bacc748c4b98b49 | 074bd964847dc3cbc73f84c1db679d2abb59c1e0 | refs/heads/master | 2023-05-11T03:55:01.661692 | 2021-06-06T14:59:58 | 2021-06-06T14:59:58 | 374,378,053 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,266 | py | import random, requests, mysql.connector
from threading import Timer
from kivymd.app import MDApp
from kivy.core.window import Window
from kivy.uix.screenmanager import ScreenManager, Screen
from kivymd.uix.dialog import MDDialog
from kivymd.uix.list import IconLeftWidget, ThreeLineIconListItem, IconRightWidget
from ki... | [
"jacopobraccio@yahoo.it"
] | jacopobraccio@yahoo.it |
12d53d4cbd34a1e94bc6658f4ed05dd8b0621b98 | 4868e7990c818dfeb4a06af9bea93e7a7d919015 | /contoh hitungan manual/modulku_/StemNstopW.py | 075cab656f3a03f006cefc69c3036251365ea381 | [] | no_license | lufias69/fraud_sms_detection | 1c762dbbbe2cbe226fcf70cc6654ef1c690653a5 | 1669ce36ae706f82f58c26a31a787f148905063a | refs/heads/master | 2020-07-26T05:22:27.096424 | 2019-10-09T11:04:12 | 2019-10-09T11:04:12 | 208,547,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | import re
import os
import json
delimiter_ = [" ", ".",",",'?','!','@','#','%','^','*','(',')','<','>','/','\\',"-","_","*",'[',']','{','}',':',"&"]
dir_path = os.path.dirname(os.path.realpath(__file__))
from Sastrawi.StopWordRemover.StopWordRemoverFactory import StopWordRemoverFactory
from Sastrawi.Stemmer.StemmerFact... | [
"syaifulbachrimustamin@gmail.com"
] | syaifulbachrimustamin@gmail.com |
838c654692872ad206975d3932464f9effb66b5a | ef2b9336b9075c90bd115a0b095815bc26fdc778 | /V21_Optisches_pumpen/scripts/plot.py | 2b8ff42f69063ffef666d430306529b70e059897 | [] | no_license | janleoloewe/FP14 | c7636f0d4cbc893a28774cef9b54963755b53b10 | 2aa6462fcf1b5724ea52d0e4ec0a0fdea879039a | refs/heads/master | 2021-06-05T21:44:00.802570 | 2016-10-07T19:42:14 | 2016-10-07T19:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | #! /usr/bin/env python3
import matplotlib.pyplot as plt
import numpy as np
def gauss(x, nu):
return np.exp(-(x - nu) ** 2)
xs = np.linspace(-4, 12, 500)
plt.plot(xs, 1 - (gauss(xs, 0) + 0.7 * gauss(xs, 8)))
plt.xlabel(r'$B_\mathrm{m}$')
plt.ylabel(r'Transparenz')
plt.ylim(0, 1.1)
plt.xticks([0])
plt.yticks([1])... | [
"ms_r@hotmail.de"
] | ms_r@hotmail.de |
5c788f4b5e34cc8255582db1bd42ddce5fe7f451 | 3a05f78a45c0f329927a4464f2346de66f927b4f | /features/steps/account_steps.py | a214745ae36b5939bb10d754b4d9870f48538472 | [] | no_license | MarkAufdencamp/cloudonyms | be7dad4530e37b17c5eb0fcbce6f50013e81b916 | 61f1202b5be1dbd0e22fa12d78372fdf3cd2c455 | refs/heads/master | 2016-09-06T00:02:48.856940 | 2013-09-30T23:21:33 | 2013-09-30T23:21:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | import unittest2 as unittest
from selenium import webdriver
#############################################
@given(u'I am on the signup page')
def step_impl(context):
assert False
@when(u'I fill in the user signup form')
def step_impl(context):
assert False
@then(u'I should be on the account created page')... | [
"Mark@Aufdencamp.com"
] | Mark@Aufdencamp.com |
fc296ea91577dd5ee2c036f5147bdaebcdc6dd63 | 50df4ea45867332dedb2678f899ae5c6e0d24ea9 | /public/pytodo/bin/isort | fbd999139578dba4226b2a0f6fab0624ba46b8da | [] | no_license | thisisshub/devel | 7c53e7a0f7fe1ae72cf7dd051f52ba40a552594f | 25edd315ed83ffc5d882735d91acac9c1306bc2a | refs/heads/master | 2020-08-06T13:23:53.837086 | 2019-12-09T03:40:19 | 2019-12-09T03:40:19 | 212,985,811 | 0 | 3 | null | 2019-10-10T14:32:29 | 2019-10-05T11:08:33 | Python | UTF-8 | Python | false | false | 234 | #!/home/shub/devel/public/pytodo/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"thisisshub@gmail.com"
] | thisisshub@gmail.com | |
a3960ab4e09898eb5608f1131dfcb8255eb67e01 | a8a6b14e8ad9206d15ec52a57f5c85340ff0073e | /PycharmProjects/corpus_building/noun_identify/src/processing.py | 9a69618b685486d7500d67407bd31987205cbe33 | [] | no_license | dbshuai/implicit_corpus_building | 1b236437aa8e0956415daab033090e8d5206e2c4 | 89c8c1999ce2ca349bbb86fe0dc4953553b17414 | refs/heads/master | 2020-04-07T13:01:58.573282 | 2018-11-13T01:30:01 | 2018-11-13T01:30:01 | 158,390,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,191 | py | import xlrd
import pickle
import argparse
import cmath
import sys
import os
sys.path.append("../../")
from yutils.str_utils import segment_str,postag_str,parse_str
def vvyxhqc_xlsx_read(xlsx_file):
"""
:param xlsx_file:
:return:
"""
read_file = xlrd.open_workbook(xlsx_file)
sheet = read_file.s... | [
"wangshuaidexiang@163.com"
] | wangshuaidexiang@163.com |
959d08c86faa5429545a51552270f33743c50c74 | 3485140792e9bae67499fef138d50d046cccb256 | /datamining/AprioriProject/util/ProgressBar.py | 5858e003c7264ec53dab5ae6a814fc400029c84a | [] | no_license | ALREstevam/TopicosBD-DataMining-IBGE-Apriori | dc14a50ca8f3046b8125a183cdcb4e99d3c4c616 | 5bf8dee35df0f22902f7816b8738e585fdca3410 | refs/heads/master | 2020-03-17T04:38:08.111880 | 2018-06-14T12:14:11 | 2018-06-14T12:14:11 | 133,282,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | import sys
class ProgressBar(object):
DEFAULT_BAR_LENGTH = 65
DEFAULT_CHAR_ON = '█'
DEFAULT_CHAR_OFF = '░'
def __init__(self, end, start=0):
self.end = end
self.start = start
self._barLength = self.__class__.DEFAULT_BAR_LENGTH
self.setLevel(self.start)
sel... | [
"a166348@g.unicamp.com"
] | a166348@g.unicamp.com |
931300b3c495baff8b052bb61df42f03e9e0e772 | 1a758ef862f733d98ddd8ebc8ade5cefd95c24f2 | /customers/migrations/0013_facebookcustomer.py | 3abb34e6d2d0c3b6e1e3df3ca8e899dc7fe394e5 | [] | no_license | ajajul/ReactJS_Python | f116b35394666c5b3f2419eb5d8d7aeb077d4a24 | 08310d56fa88f326ddbfdd4b189f2a3a71f76d99 | refs/heads/master | 2020-03-19T03:16:57.510672 | 2018-06-01T10:36:36 | 2018-06-01T10:36:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('customers', '0012_auto_20160802_1628'),
... | [
"web.expert@aol.com"
] | web.expert@aol.com |
2017d05bde739bffc7e152160a95f0a50186b250 | c13553fc611be7559f12c83393ab16bb36c8e4b6 | /words.py | d772618e5bc4b8e2049b5a66f7661d8561ea4c7b | [] | no_license | savvyknee/OOP100 | 6ad8a7f43c23181f560c8e0658f033076fa48091 | 61995ead259c91df4dbd6d9baf8c70d0d942ec39 | refs/heads/master | 2016-08-07T07:25:00.678227 | 2014-03-10T18:25:15 | 2014-03-10T18:25:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,338 | py | # Andrew Savini CST100 21Feb2014
# longestWord.py
# creates a list of words typed, finds the longest word, outputs it
def main():
#getTheInput() takes the input from the user. if the user enters a blank space, it returns a 1, which will reset the program
#otherwise, it returns the input in the form of a list
def ... | [
"savini.andrew@gmail.com"
] | savini.andrew@gmail.com |
c9ed8cae33fb6e394314b860c1f34cfcfa9d10bb | a0ab18317188801d76d00fdbe7b7972aac3b6f0d | /evalml/tests/component_tests/test_drop_null_columns_transformer.py | 763968a5e0501e00fa7735ad57836325a6d04b24 | [
"BSD-3-Clause"
] | permissive | sharshofski/evalml | 04d96f0125075fe9ac01ee4f77ce32c6f3370c16 | f13dcd969e86b72ba01ca520247a16850030dcb0 | refs/heads/main | 2023-02-28T07:59:26.506815 | 2021-02-07T22:43:19 | 2021-02-07T22:43:19 | 337,245,652 | 0 | 0 | BSD-3-Clause | 2021-02-09T00:11:20 | 2021-02-09T00:11:20 | null | UTF-8 | Python | false | false | 5,786 | py | import numpy as np
import pandas as pd
import pytest
from pandas.testing import assert_frame_equal
from evalml.pipelines.components import DropNullColumns
def test_drop_null_transformer_init():
drop_null_transformer = DropNullColumns(pct_null_threshold=0)
assert drop_null_transformer.parameters == {"pct_null... | [
"noreply@github.com"
] | noreply@github.com |
3d6274b08b39fdeba3da7d99bfeba9440fbeeb96 | 6ec7663212ec9955d68543cf9eab5680d259704f | /npc_url_scrape.py | d23c3dafa3c13cd20936ec15f19c70f6c85293cb | [] | no_license | blangwell/souls-wiki-scrape | 682372224500df9e009b3c6f538ce586b2dc923a | 722865be7bea98d5a0d44107beff602e5209474a | refs/heads/main | 2023-03-21T15:46:37.979906 | 2021-03-22T01:14:50 | 2021-03-22T01:14:50 | 349,308,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | import requests
from bs4 import BeautifulSoup
WIKI_URL = 'http://darksouls.wikidot.com/npcs'
def get_npc_links():
print(f'Making a GET request to {WIKI_URL}')
try:
npc_idx = requests.get(WIKI_URL)
npc_idx.raise_for_status()
except requests.exceptions.RequestException as e:
raise Sy... | [
"b.langwell@outlook.com"
] | b.langwell@outlook.com |
13818edfd220a8cbd9a16461d0ed75fc9baea8fc | cd05f9c37f779abc044e6f998f3c06de98d46f0e | /core/dummy/dummy.py | 6894b0e3d9d786491df35492aad6ef20dcc68baf | [] | no_license | lordknight1904/tensorflow | 3ef99dabc9845749c67ea297dec74c799cd37d75 | 7a86b5a4dc40c2ddf2141c7e47a6cfb812ecf69a | refs/heads/master | 2020-04-18T11:19:43.444462 | 2019-02-11T03:06:00 | 2019-02-11T03:06:00 | 166,517,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,539 | py | import pickle as cPickle
import gzip
import numpy as np
from tensorflow import layers
import tensorflow as tf
# if __name__ == "__main__":
#
# inputs = tf.keras.Input(shape=(32,)) # Returns a placeholder tensor
# x = layers.Dense(64, activation='relu')(inputs)
# x = layers.Dense(64, activation='relu')(x)... | [
"lordknight1904@gmail.com"
] | lordknight1904@gmail.com |
bb25d439cb529a2ca4ddb5a746d9802470effb6d | 4e1358e120e99b60db51caa73d9073719fd5f0cd | /main.py | 279b002c580d1e6ace0f62ad6b572f0c8ba93141 | [] | no_license | asyte/wsissue | b79d357c502d7b7d027face6e02d78bae76180a6 | 4f6f49e3dd88cbb8b732dcb9ddf8b233daac4fd1 | refs/heads/master | 2022-12-02T04:44:00.231852 | 2020-08-19T08:58:15 | 2020-08-19T08:58:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | from sanic import Sanic
from sanic import response
from sanic.log import logger
from aiofile import AIOFile
from db import db
import wslib
import secret
app = Sanic("Websocket Issue")
app.config.DB_USE_CONNECTION_FOR_REQUEST = True
app.config.DB_HOST = secret.DB_HOST
app.config.DB_PORT = secret.DB_PORT
app.config.DB_... | [
"rwlundy82@gmail.com"
] | rwlundy82@gmail.com |
00dac1d7f1170b442a0d17f46be3611f7429cc05 | d3395d2e1a8ec82d224c60ad5247c8a726cf32b9 | /Decision Trees/Applying Decision Trees-143.py | 3ae495cce144f9aa63970de73d8e13cc4f9d7b34 | [] | no_license | smzimran/dataquest-projects | 88300a6ac09b38264d43f862a97695d51a7bc8ab | 7d55a0d4ad7a7004678b18bbb5f2ee668e6e1c91 | refs/heads/master | 2022-12-02T15:01:59.172778 | 2020-08-07T08:58:39 | 2020-08-07T08:58:39 | 112,442,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,854 | py | ## 2. Using Decision Trees With scikit-learn ##
from sklearn.tree import DecisionTreeClassifier
# A list of columns to train with
# We've already converted all columns to numeric
columns = ["age", "workclass", "education_num", "marital_status", "occupation", "relationship", "race", "sex", "hours_per_week", "native_co... | [
"noreply@github.com"
] | noreply@github.com |
4cd457aae559324c28a76e8ff71688100483e7f2 | f7a48634de139b7f5585c2bf3d3014605130428c | /ebedke/plugins/kompot.py | c41f831fd3d7bba415606e8c90bfa14c14c43220 | [
"Apache-2.0",
"MIT"
] | permissive | ijanos/ebedke | b72dcdef63c575eb4090661bab2e2c7a7864ab76 | 9a0f91cc6536a78d7da9aca1fab22924a56d38e2 | refs/heads/master | 2023-04-20T19:36:03.928669 | 2021-01-24T11:35:15 | 2021-01-24T11:35:15 | 99,848,492 | 35 | 11 | Apache-2.0 | 2023-03-27T22:36:27 | 2017-08-09T20:08:13 | Python | UTF-8 | Python | false | false | 1,742 | py | from datetime import datetime, timedelta
from ebedke.utils.date import days_lower, on_workdays
from ebedke.utils.text import pattern_slice
from ebedke.utils import facebook
from ebedke.pluginmanager import EbedkePlugin
FB_PAGE = "https://www.facebook.com/pg/KompotBisztro/posts/"
FB_ID = "405687736167829"
@on_workday... | [
"ijanos@gmail.com"
] | ijanos@gmail.com |
d3154b550cc9b18879b36bff03549d4bb8f20106 | d14966a1c4a8e8edbf5bb9ec6de83a67e3ad1407 | /seed.py | 9bc78d95fae56693bbadcf45fac5c6dcc50e363d | [
"MIT"
] | permissive | speranskydanil/stock | b14b9b79b2312f21f97cc2e3e7c7b89c40fabe89 | f2e8e88d2fe30f78f0cea4f0a0df7db4165094ea | refs/heads/master | 2020-05-17T06:53:51.862256 | 2015-04-12T06:36:12 | 2015-04-12T06:36:12 | 33,782,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,609 | py | #!/usr/bin/env python
import os
import sys
from random import randint, choice
from django.utils import timezone
from datetime import datetime
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "stock.settings")
import django
django.setup()
from stock.models import Message
from blog.models import Category, Article, L... | [
"speranskydanil@gmail.com"
] | speranskydanil@gmail.com |
52293113769b3428576112541cfd97055209963b | d90229dfb7b41c58fdeae328e535ebdd6c69243f | /scMVP/dataset/scMVP_dataloader.py | d58c5cc97be621c81c99b4d3158da927a85b9a14 | [
"MIT"
] | permissive | lgyzngc/scMVP-1 | 5674f75b03384e2797693dc8638c4a15311f5cae | 091597da27eac78d5d84353649f23bb386c2eb76 | refs/heads/master | 2023-02-22T04:55:14.234408 | 2021-01-23T14:57:46 | 2021-01-23T14:57:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,731 | py | import logging
import os
import urllib
import numpy as np
import pandas as pd
import scipy.io as sp_io
from scipy.sparse import csr_matrix, issparse
from scMVP.dataset.dataset import CellMeasurement, GeneExpressionDataset
logger = logging.getLogger(__name__)
available_specification = ["filtered", "raw"]
class Load... | [
"adam.tongji@gmail.com"
] | adam.tongji@gmail.com |
036e3d295763df1c929f8e67dc984431b06d439d | 4ba222b431e3b3fb30ffa829b70ae9d6039ffa9b | /Source_code/Non_successful_models/lstm.py | 930da82469a3eba9218d2361361fdd49112739bc | [] | no_license | violetta-ta/CourseProject | 6a4c27e991d4cad4b6e977f16651a4e36cbb261d | e740aee644326c49045184cea331165a5912579d | refs/heads/main | 2023-02-01T14:06:44.019984 | 2020-12-14T04:47:14 | 2020-12-14T04:47:14 | 307,004,342 | 0 | 1 | null | 2020-10-25T01:44:13 | 2020-10-25T01:44:12 | null | UTF-8 | Python | false | false | 6,103 | py | import json
import tensorflow as tf
import numpy as np
import sklearn.model_selection as sk
from tensorflow.keras.layers.experimental.preprocessing import TextVectorization
import re
import string
from tensorflow.keras import layers
from tensorflow.keras import losses
import nltk
from nltk.stem import PorterStemmer
fro... | [
"manghs@amazon.com"
] | manghs@amazon.com |
c24c342519ec88d4ce0641ea44d71fb9aacfd354 | ffcda8acb3b3e3fa68b28c761b1a36d3ee6576d3 | /node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/config.gypi | 8ce5bce2f2fe7a595ef8e29a18e4b580b9559522 | [
"Apache-2.0",
"MIT"
] | permissive | anupkelkar02/Maths | 9d40efcb42c9d4e9e36905d73234ccfcfd8515f8 | ac68527207b467e1e8740fabda5597ad3baf02d1 | refs/heads/master | 2016-09-05T15:19:21.960940 | 2015-02-28T10:21:54 | 2015-02-28T10:21:54 | 31,459,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,245 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 48,
"host_arch": "x64",
"node_install_npm": ... | [
"anupkelkar02@gmail.com"
] | anupkelkar02@gmail.com |
d6d43f7b6a42de881d32d0fdd6f7c873b79ac260 | 5ba006696ba7f79e99c1b08b2c540b4465f22f53 | /aiortc/rtcpeerconnection.py | 345ee3246f1a1b0dfa02b5c64d5897e6b46c494e | [
"BSD-3-Clause"
] | permissive | shaunastarabadi/aiortc | 8305720b3972a142184efb69a7add827161598bb | b19674e4776bced784aab497db2a81af269e9024 | refs/heads/master | 2020-06-11T15:21:42.638437 | 2019-06-27T04:18:27 | 2019-06-27T04:18:27 | 194,009,757 | 0 | 0 | BSD-3-Clause | 2019-06-27T02:35:55 | 2019-06-27T02:35:55 | null | UTF-8 | Python | false | false | 39,141 | py | import asyncio
import copy
import uuid
from collections import OrderedDict
from pyee import EventEmitter
from . import clock, rtp, sdp
from .codecs import CODECS, HEADER_EXTENSIONS, is_rtx
from .events import RTCTrackEvent
from .exceptions import InternalError, InvalidAccessError, InvalidStateError
from .rtcconfigura... | [
"jeremy.laine@m4x.org"
] | jeremy.laine@m4x.org |
19e6ef00e9fe5002e20f0893955cee6ec497bcc0 | a3a3cb9749fa259cd465294cbfac0da1815d747d | /DEP/views.py | 5374620c61c40fbc0572e1854fcbec33a20fa661 | [] | no_license | arcidodo/DEPTool | aae0fcf20cbe41f9ce587b3a5ed2708ea16345af | bdda123005aff9a4406cb62969dd012b1907f2e6 | refs/heads/master | 2022-11-20T09:12:53.454374 | 2019-07-03T07:50:04 | 2019-07-03T07:50:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,667 | py | from django.conf import settings
from django.http import *
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.contrib.auth import authenticate, login, logout
from django.views.decorators.cache import never_cache
from django.views.static import serve
from django.vie... | [
"ent_dev_apple_emea@trendmicro.com"
] | ent_dev_apple_emea@trendmicro.com |
76ffed6ea5fce21b63dfbacd0d8a3e79515b811f | 64fa49a9a2c0b157aec3224530d7f61ddf9d24fa | /v6.0.2/log/fortios_log_threat_weight.py | 7911f24d762e0a9373349dcc086d0004d60c504e | [
"Apache-2.0"
] | permissive | chick-tiger/ansible_fgt_modules | 55bee8a41a809b8c5756f6b3f5900721ee7c40e4 | 6106e87199881d1d4c3475a4f275c03d345ec9ad | refs/heads/master | 2020-03-31T11:05:12.659115 | 2018-10-04T10:20:33 | 2018-10-04T10:20:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,651 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2018 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lic... | [
"magonzalez@fortinet.com"
] | magonzalez@fortinet.com |
d8382685a5e788393f0482fc6f5105e5495065ab | b270c09e0d28fff4ba188aaaa4ee68bfbde337cb | /todo/migrations/0001_initial.py | 86f83eb4f800d8d16e93f2d6fa48b3af167f2755 | [] | no_license | vbc221/To-Do-App | c40e60afd21befbd9791fa9fe058ca04bad2a33d | 14a67fc745f63f8367d2aff43e5ec22d358a593e | refs/heads/master | 2023-05-02T10:48:50.979316 | 2019-11-07T21:01:36 | 2019-11-07T21:01:36 | 220,106,073 | 0 | 0 | null | 2023-04-21T20:42:53 | 2019-11-06T22:57:33 | Python | UTF-8 | Python | false | false | 549 | py | # Generated by Django 2.2.7 on 2019-11-07 15:22
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id', models.AutoField(aut... | [
"vbc221@nyu.edu"
] | vbc221@nyu.edu |
12f17cfe1508e172d6bc459308ee4a8935318c12 | 29be7ad12a8463be61ddfad62406f200bbbbeea2 | /bot.py | 6609206f15dce3f76465b97bd623ecc21d669bcd | [] | no_license | allwells/telegram-bot | 10228e79b72b291232ca255a88dc4d35686d81a0 | f50fd104efdc27f6e17686513ece1caabfd5ace6 | refs/heads/master | 2023-01-10T10:43:11.112488 | 2020-11-05T13:58:57 | 2020-11-05T13:58:57 | 310,275,593 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import requests
import json
import configparser as cfg
class telegram_chatbot:
def __init__(self, config):
self.token = self.read_token_from_config_file(config)
self.base = "https://api.telegram.org/bot{}/".format(self.token)
def get_update(self, offset=None):
url = self.base + "/getU... | [
"aleenfestus@gmail.com"
] | aleenfestus@gmail.com |
dd36ec55c9c70679b740fdbabe11923c17e49b2b | 5dbbcd5e1df606adefcb11b798219665ef3c8aab | /examples/python/test_aabb2.py | 1a678a270539337721265623758a844af20a9cb5 | [
"BSL-1.0"
] | permissive | sciencectn/cgal-bindings | f769d75153eac46bf1a4b3773860da031097eb74 | e7a38a7852a50bb107b9be997a10a7e4a3f3c74b | refs/heads/master | 2020-12-24T12:05:14.022263 | 2018-05-20T02:09:04 | 2018-05-20T02:09:04 | 32,248,691 | 37 | 6 | BSL-1.0 | 2018-04-17T18:43:40 | 2015-03-15T06:50:57 | C++ | UTF-8 | Python | false | false | 6,993 | py | '''
Created on Nov 18, 2015
@author: Willie Maddox
Test passing a python sequence directly to aabb trees
and print out some timing info.
Verified with with python lists, tuples, and numpy arrays.
The following results were obtained with
ubuntu 14.04 running on Intel Xeon E5-2620 cpu.
Bindings compiled with CGAL 4.6 ... | [
"willie.maddox@gmail.com"
] | willie.maddox@gmail.com |
0a1e7e1a9dc2bd86b18d26b0da038b8c00a5c661 | 5528290429e3e98be841dc8a8ea504aa657f0187 | /interesesCRUD/apps.py | e0c578d5d3637bd700d7af40be820af09c131c58 | [] | no_license | dillan08/PAT | ac8973c2ccd9efbd8692bce4173dfc3e307e5a5a | 39a75bc2a29bcaf7457c886989f291623dcd465d | refs/heads/development | 2020-09-15T01:44:55.021752 | 2016-10-21T13:29:08 | 2016-10-21T13:29:08 | 67,364,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from django.apps import AppConfig
class InteresescrudConfig(AppConfig):
name = 'interesesCRUD'
| [
"d1ll4n08@gmail.com"
] | d1ll4n08@gmail.com |
26e0ecf72b4c3430ad2cf40ab65bb0a2280e1ef3 | c7500549fa5b41508f013f13ba8459a1783be707 | /ownership/manager.py | 0120aa8556dd6aaf4053bccc618c5c52c49f5d16 | [] | no_license | kkthxbye/ownership | e7958016275e3d727b45dae5e26ea752c1147b8a | 62fe3490b8c1118cb8d08a1960b528fc77f4076b | refs/heads/master | 2021-05-04T14:16:44.915775 | 2019-07-15T04:15:40 | 2019-07-15T04:15:40 | 120,196,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,727 | py | from typing import Dict, List, Set
from ownership.allocation import Uniform
from ownership.client import Client
from ownership.resource import Resource
class Manager:
"""
Manages "resource: client" assignation.
Attributes:
resources: List[Resource] initialized resources
clients: List[Cli... | [
"tema@klochko.ru"
] | tema@klochko.ru |
cc6ca42fe150c046f0bd7f787c2c723fa62afe64 | c00e650b7e10a59bc4193aa2e9cbd7f01abd24d6 | /service/modules/synthetic-data-module/mwem/mwem.py | 9c7be7e026270139d04096f0ca9240f764e59029 | [] | no_license | sliwhu/whitenoise-system | b4b92c68ea594f9d82014545a2655620c3249a1c | 2c1e6d9102125638d927ed2ef9ac3e86fce18fc1 | refs/heads/master | 2022-04-21T06:42:22.902595 | 2020-04-21T17:44:11 | 2020-04-21T17:44:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,333 | py | import sys
import os
import math
import random
import numpy as np
import pandas as pd
from sdgym.synthesizers.base import BaseSynthesizer
class MWEMSynthesizer(BaseSynthesizer):
"""
N-Dimensional numpy implementation of MWEM.
(http://users.cms.caltech.edu/~katrina/papers/mwem-nips.pdf)
... | [
"noreply@github.com"
] | noreply@github.com |
92bde3c61aab38dc2a47c8d79f88291081c5d5f1 | cebe19676bf9cddffefa6acfe5e8c2cfa67b0e29 | /qa/rpc-tests/proxy_test.py | 953d08ca244ff0ff2d1c7230ccd67d5b0eb29cd9 | [
"MIT"
] | permissive | topcryptomob/diversex | d6d65fcf85be51d04060e18422a27c6f1dd1968b | 362f8772e560a4d5ada1b1513be4c7eeaf692749 | refs/heads/master | 2020-04-06T08:02:31.278315 | 2018-11-12T09:02:40 | 2018-11-12T09:02:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,084 | py | #!/usr/bin/env python2
# Copyright (c) 2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import socket
import traceback, sys
from binascii import hexlify
import time, os
from socks5 import Socks5Conf... | [
"jackkdev@protonmail.com"
] | jackkdev@protonmail.com |
a4606cf74738347229e2423074a0eab57eddb3ef | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/ow1.py | ff3594bcc2829e13cbb5c24ef13111ffb291b242 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
6e210328858f6452857a8f09f3486b78b2ddc68c | 51fba32aca3114a6897e11b271ee29d3b038056c | /tests/08_test_patch.py | bc9a507c707597c9dbc29ad814635d12538e8e77 | [] | no_license | lamby/git-buildpackage | b2fbf08b93ed0520c8e5ba0c3eb66f15d7a64a41 | c4bc6561c788f71b5131d0bd8e92478e83808200 | refs/heads/master | 2021-01-02T23:04:26.941635 | 2017-08-05T23:46:58 | 2017-08-06T00:55:37 | 75,486,665 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | # vim: set fileencoding=utf-8 :
"""Test L{Patch} class"""
from . import context # noqa: 401
import os
import unittest
from gbp.patch_series import Patch
class TestPatch(unittest.TestCase):
data_dir = os.path.splitext(__file__)[0] + '_data'
def test_filename(self):
"""Get patch information from t... | [
"agx@sigxcpu.org"
] | agx@sigxcpu.org |
87b0dd6e888af9135133eca50579aa63daaeb18a | 27edc5b2c5d3475e119d89ebe8a39ca62ec33376 | /Injection Interface (Python)/ui_mod.py | 693f52cf39b2f4ac8f9d61c19c675ce7cd8ad466 | [] | no_license | Marti-R/Portfolio | c407c4cf90c46877c78c1dcc73cf4d7bdee50392 | 57bb84b242c7fc98b0470f6110c9b196524070b5 | refs/heads/main | 2023-08-28T10:22:55.219520 | 2021-10-19T11:40:37 | 2021-10-19T11:40:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,670 | py | from brainrender_gui.ui import UI
from brainrender_gui.style import style, tree_css, update_css
from brainrender_gui_mod.style_mod import additional_styles
from PyQt5.Qt import Qt
from qtpy.QtWidgets import (
QLabel,
QVBoxLayout,
QPushButton,
QWidget,
QHBoxLayout,
QSlider,
QCheckBox,
... | [
"84347817+Marti-Ritter@users.noreply.github.com"
] | 84347817+Marti-Ritter@users.noreply.github.com |
9f8cd500280b144936498b1f6ab5a4dfed1edcd6 | c91453e9b4b9e9ce30c493d3cc85407d07495ef6 | /DatesAndDateTime/dateandtime.py | d9f42647077137bd50f4bdadf33e450fd94f6049 | [] | no_license | lopez1941/PythonMasterClassRepo | 9e1f9d75a2c1d1d3c6a888cc31b0c3face6c4f64 | 496b96ffef07f399f28f0befc6b45c4c9b88ad36 | refs/heads/master | 2021-09-05T01:50:51.126805 | 2018-01-23T15:49:45 | 2018-01-23T15:49:45 | 103,982,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # import time
#
# print(" the epoch starts at " + time.strftime('%c', time.gmtime(0)))
#
# print("the current time zone is {0} with an offset of {1}".format(time.tzname[0], time.timezone))
#
# if time.daylight != 0:
# print("\tDaylight savings time is in effect for this location.")
# print("\tThe DST timezone i... | [
"guitarlopez33@gmail.com"
] | guitarlopez33@gmail.com |
9f076e5aa69d46acb53e4921041dfcdee801ca2a | 25be67640c1465739dd86dcc15ea731c17bcf649 | /gre/__init__.py | 7cf781d076c0ae70272c9c343c9f1e33234320d1 | [] | no_license | Henry-Ding/DPMPN_pytorch | 47fa08cca0a8083909a009f21b6435a726cdf690 | 5cff58b59c257d004b14d240c5bef08aa942d0ce | refs/heads/master | 2022-03-05T04:58:16.486540 | 2019-11-18T15:07:11 | 2019-11-18T15:07:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from gre.graph_generator import LoadedGraph
from gre.graph_accessor import GraphAccessor
from gre.long_memory import LongMemory, NodeParams, ETypeParams, GlobalParams
from gre.short_memory import ShortMemory, NodeStates, EdgeStates, GlobalStates
from gre.attention_tracker import AttentionTracker, Attention, Transition
... | [
"seanxu.sophie@gmail.com"
] | seanxu.sophie@gmail.com |
8f92110063549bf47b136000dd1e24bb6f6d7cd6 | 98105e224decb9e699acd74b66872597b3a30731 | /depth_maps/src/solve.py | 616e8038e3e36f4b0ae28b756b2b5b690ef4e212 | [] | no_license | Hackmas/problems | 6c1458eae6b243a65c2a6f3a3b5abdc9113639d6 | 54cd659bfcbd0e975511dc4c721eca8d720582f2 | refs/heads/master | 2021-03-22T02:13:00.965062 | 2018-03-31T12:55:15 | 2018-03-31T12:55:15 | 116,677,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | #!/bin/python3
import sys
def check_cavity(x,y,grid):
cur_depth = grid[x][y]
up = grid[x][y-1] < cur_depth
down = grid[x][y+1] < cur_depth
left = grid[x+1][y] < cur_depth
right = grid[x-1][y] < cur_depth
return up and down and left and right
n = int(input().strip(... | [
"Nikolas.papaioannou@gmail.com"
] | Nikolas.papaioannou@gmail.com |
d6b285050d6afe90f5a4158973231257038ce33f | 9657137623c998e5267344fa4ba309be4529bb0e | /pyapinizer/tornado.py | 8f07d3f7152ac13289d3f6befccf2db3fbce0ef6 | [
"MIT"
] | permissive | osoken/pyapinizer | 386a086307cec294053f1634345a86614d405a78 | 785f57ff80be239f91a66dfec3ba9ce4a78a9a50 | refs/heads/master | 2021-01-12T09:22:46.837366 | 2016-12-11T15:05:57 | 2016-12-11T15:05:57 | 76,154,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | # -*- coding: utf-8 -*-
import json
from tornado.web import RequestHandler
def generate_handler(func):
class Handler(RequestHandler):
def get(self, *args, **kwargs):
argdict = dict(kwargs, **self.request.arguments)
json.dump(func(*args, **argdict), self)
return Handler
| [
"osoken.devel@outlook.jp"
] | osoken.devel@outlook.jp |
e33e0f183ff2a1f715c25c82811542ba69e19bf1 | c9cdd3145189c4655aa5a08f900864e4233bdb3d | /racers/migrations/0005_auto__add_field_racer_team.py | dd1429c1538cb76ce4785127057421cc748283ed | [] | no_license | dougsuriano/checkpoint | 97f5ed88891870059f021d964aa97ea26e04524d | feb10875c0976e0e1583a0cd51e08804194c10d7 | refs/heads/master | 2021-01-01T18:55:36.494132 | 2016-10-18T01:31:31 | 2016-10-18T01:31:31 | 12,650,891 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Racer.team'
db.add_column(u'racers_racer', 'team',
... | [
"doug@hoteltonight.com"
] | doug@hoteltonight.com |
71a9861fe82b7b137692a7b04995fd0e65e94386 | cd74536f746d8475da02356a4ad5ee76ac18a55c | /fuzzy.py | ec7ff3e97c29699b62c48f04a406024ab114e07c | [
"MIT"
] | permissive | nmalaguti/python-fuzzyhash | 3330abd33a6a3f5e371f22729ff36620e9027d4b | e7877565e64fb3278bb54c6cdc5f40e9ac3b4bae | refs/heads/master | 2021-01-25T10:39:11.798875 | 2014-07-07T12:52:20 | 2014-07-07T12:52:20 | 21,570,218 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,527 | py | import random
import zlib
import hashlib
import math
base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
S = 64
def md5hex(arr):
m = hashlib.md5()
m.update(str(bytearray(arr)))
return m.hexdigest()
def sha1hex(arr):
m = hashlib.sha1()
m.update(str(bytearray(arr)))
retu... | [
"nmalaguti@gmail.com"
] | nmalaguti@gmail.com |
6e248c7365a903010c866c0f556d026a124c56af | 9c636aeed2fc0a591507fcf0a8a6124fae710c9b | /insertLL.py | 3d8c20f19faad87ef2b54e0fea3e0ad01926eb92 | [] | no_license | ilkaynazli/challenges | 4b2d1ac847b1761f98183457f8ea5bac6556eeff | f7c165fedbdc9811fb7f1d2a43c797f5b5ac5322 | refs/heads/master | 2020-04-07T01:03:18.625568 | 2019-04-25T19:40:22 | 2019-04-25T19:40:22 | 157,928,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | """
Given a node from a cyclic linked list which is sorted in ascending order, write a function to insert a value into the list such that it remains a cyclic sorted list. The given node can be a reference to any single node in the list, and may not be necessarily the smallest value in the cyclic list.
If there are mul... | [
"ilkayncelik@gmail.com"
] | ilkayncelik@gmail.com |
1549dbbffe60bde02cbe4a4dc8ded721bb9ac421 | f56346f16477de58c5483ddbab63d3bff15801c6 | /python_source/graph-tool/example2.py | a7571e1e5d9faf83e8928fe282b25427d72ff25a | [] | no_license | jerryhan88/py_source | ca6afb6582777a444a19e33c832b638fc9e2fd52 | e1500b1d2d4fa5f30e278422c5b1afa1d777f57f | refs/heads/master | 2020-04-06T13:12:34.814275 | 2016-10-06T09:30:50 | 2016-10-06T09:30:50 | 40,874,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,517 | py | #! /usr/bin/env python
# We will need some things from several places
from __future__ import division, absolute_import, print_function
import sys
if sys.version_info < (3,):
range = xrange
import os
from pylab import * # for plotting
from numpy.random import * # for random sampling
seed(42)
# We need to imp... | [
"jerryhan88@gmail.com"
] | jerryhan88@gmail.com |
a74738b3e2b3569b07ca28e1abd673051590d1c8 | 590649b9abb619a99936f087b9d8bb6a548abe9a | /Gui/Clock/clock.py | 2d943be130820f6458dad2ebd0460f633b443e44 | [] | no_license | sperr0w/PP4E | de627d100f9cf1f7aa050c3a9876682dc1af92fb | 18df3332e8d0b68e8bcd299bbb255591687826da | refs/heads/master | 2020-03-19T03:16:44.370209 | 2018-06-01T12:03:28 | 2018-06-01T12:03:28 | 135,710,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,867 | py | """
###############################################################################
PyClock 2.1: a clock GUI in Python/tkinter.
With both analog and digital display modes, a pop-up date label, clock face
images, general resizing, etc. May be run both standalone, or embedded
(attached) in other GUIs that need a cloc... | [
"sprutskih@gmail.com"
] | sprutskih@gmail.com |
e87acb9a972fbc841b375cd19b7a3397f02cb1d5 | 920bc59a07adc65569ae2d6736388519b43cfa23 | /business_logic/blockly/build.py | 9f732ce12acd96a8f9d521cb445158fd5990988a | [
"MIT"
] | permissive | glafira-ivanova/django-business-logic | e924ccabac6b5219fd87dabe60c6e0ecfaa40303 | 7cc0d0475815082e75a16201daf9865d08d3f281 | refs/heads/master | 2021-01-11T05:35:35.193191 | 2016-10-24T12:59:04 | 2016-10-24T12:59:04 | 71,771,078 | 0 | 0 | null | 2016-10-24T09:03:42 | 2016-10-24T09:03:42 | null | UTF-8 | Python | false | false | 5,305 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
import inspect
from lxml import etree
from django.db.models import Model
from ..models import *
from .data import OPERATOR_TABLE
from .exceptions import BlocklyXmlBuilderException
def camel_case_to_snake_case(name):
s1 = re.sub('(.)([A... | [
"dgk@dgk.su"
] | dgk@dgk.su |
4405bde8af8fc39580905868d3bbd3e70f95b142 | 774f43f248a9ad4cf08c56e5a5dbf506eb111a9a | /user-password.example.py | 1e951f1dc6697c9199bf598dffa0e43291987e10 | [
"MIT"
] | permissive | NordicMuseum/Wikimedia-Commons-uploads | b3b6524aff64b9a5bd8129d97604485df10ed839 | 57c23ccbe4c3f2f292e863a91fdb855801f3c93e | refs/heads/master | 2022-03-10T19:08:19.626558 | 2019-11-22T09:06:44 | 2019-11-22T09:06:44 | 105,751,960 | 7 | 4 | MIT | 2019-11-22T09:06:46 | 2017-10-04T09:35:18 | Python | UTF-8 | Python | false | false | 74 | py | (u'ExampleUser', BotPassword(u'ExampleBotSuffix', u'ExampleBotPassword'))
| [
"noreply@github.com"
] | noreply@github.com |
12d7d0236d58487ba5f9d74bafeeeaeb487401aa | 3940b4a507789e1fbbaffeb200149aee215f655a | /lc/112.PathSum.py | 14e465def2db1577e4b4e9af3851db0a471c4446 | [] | no_license | akimi-yano/algorithm-practice | 15f52022ec79542d218c6f901a54396a62080445 | 1abc28919abb55b93d3879860ac9c1297d493d09 | refs/heads/master | 2023-06-11T13:17:56.971791 | 2023-06-10T05:17:56 | 2023-06-10T05:17:56 | 239,395,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | # 112. Path Sum
# Easy
# 2849
# 583
# Add to List
# Share
# Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all the values along the path equals targetSum.
# A leaf is a node with no children.
# Example 1:
# Input: root = [5,4,8,11... | [
"akimi.mimi.yano@gmail.com"
] | akimi.mimi.yano@gmail.com |
ee018afa6b9ef93d3c69b4db12cb798f736335a8 | 71c7683331a9037fda7254b3a7b1ffddd6a4c4c8 | /PIDCalib/CalibDataScripts/jobs/Stripping26/Jpsi/ganga_JpsiFit_MagUp.py | bb05b680f884ac4f70a6660d3d10974ebb1174ea | [] | no_license | pseyfert-cern-gitlab-backup/Urania | edc58ba4271089e55900f8bb4a5909e9e9c12d35 | 1b1c353ed5f1b45b3605990f60f49881b9785efd | refs/heads/master | 2021-05-18T13:33:22.732970 | 2017-12-15T14:42:04 | 2017-12-15T14:42:04 | 251,259,622 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,402 | py | # set the stripping version
stripVersion = "26"
# magnet 'Up' or 'Down'?
magPol='Up'
# file suffix:
#
# dst_k_and_pi: Kaons and pions from D*
# lam0_p: Protons from Lambda0
# jpsi_mu: Muons from J/psi
# dst_k_and_pi_muonUnBiased: 'MuonUnBiased' kaons + pions from D*
# lam0_p_muonUnBiased: 'MuonUnBiased' protons from ... | [
"liblhcb@4525493e-7705-40b1-a816-d608a930855b"
] | liblhcb@4525493e-7705-40b1-a816-d608a930855b |
cc8198ee6324093016de729339a2b4b5a521a02d | 5cca58dbb749b388d18ccffe5bc0cc7b0b92d6a6 | /calc-stats.py | 1ef382bdeecd95583f8fd19794f4bc52818e6050 | [] | no_license | samadlotia/rnaseq | ad646af8620b1675a3fcc9f5c930a4bf44a1ef77 | 544a4571d8da4d8233a6fe3a7b3a9dfafd576f86 | refs/heads/master | 2020-05-18T02:19:43.540190 | 2013-01-29T21:50:46 | 2013-01-29T21:50:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,897 | py | import cPickle as pickle
import numpy as np
import re
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
from util import indices_dict, each_replicate
from config import All_samples, Gene_count_matrix_file_path, Gene_indices_file_path
import csv
def load_gene_count_matrix():
gene_cou... | [
"samad.lotia@gladstone.ucsf.edu"
] | samad.lotia@gladstone.ucsf.edu |
040da08f98ffd9b102de0d8c3fb12f826ce7f563 | 523e24bd96d7de004a13e34a58f5c2d79c8222e0 | /plugin.program.indigo/maintool.py | 7517a338760875f088560711b832ad5ef1cff331 | [] | no_license | Bonitillo/Bonitillonew | ec281e5ab9d4fec83d88936e8d8ce32bad6a81c9 | a8099e326dda297f66096480ec93def8a8c124a8 | refs/heads/master | 2022-10-13T05:39:01.126653 | 2017-03-21T16:47:23 | 2017-03-21T16:47:23 | 85,725,652 | 2 | 4 | null | 2022-09-30T21:18:58 | 2017-03-21T16:16:33 | Python | UTF-8 | Python | false | false | 7,349 | py | from urllib2 import Request, urlopen
import urllib2,urllib,re,os, shutil
import sys
import time,datetime
import xbmcplugin,xbmcgui,xbmc, xbmcaddon, downloader, extract, time
from libs import kodi
from libs import viewsetter
addon_id=kodi.addon_id
addon = (addon_id, sys.argv)
artwork = xbmc.translatePath(os.path.join('... | [
"richellizardo@Djs-MacBook-Pro.local"
] | richellizardo@Djs-MacBook-Pro.local |
bbb76cf5efe9742b0b6907e36684f4e6789d1552 | d5d12507f8e62abd6ad4ae143ed0c30d2ec70a34 | /chapter_10/ch10_text_d.py | 7fb9677cea14ecfb7857eda62e7070ae376772c4 | [] | no_license | JohnHowardRoark/thinkcspy3 | 5ad3add17c4b534f0a1d007c7def1ace72583223 | def8e6615f2bcef367cb747d13a9f3cf23ece83a | refs/heads/master | 2020-09-19T21:35:57.213913 | 2019-12-22T18:25:58 | 2019-12-22T18:25:58 | 224,303,785 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | import turtle
turtle.setup(400,500)
wn = turtle.Screen()
wn.title("Using a timer")
wn.bgcolor("lightgreen")
tess = turtle.Turtle()
tess.color("purple")
tess.pensize(3)
def h1():
tess.forward(100)
tess.left(56)
wn.ontimer(h1, 2000)
wn.mainloop() | [
"johnschmidt@engineer.com"
] | johnschmidt@engineer.com |
3eb53c7799362cdc6c41647804734c03d62b2e4e | a3e52fbdfc81da3d17fee3d11b4451b330bfd592 | /JudgeOnline/solution/hrank/algorithm/graph/shrotestReach.py | 69b1ab517d2a6ef79f88316198cd25092699b26d | [] | no_license | chrislucas/python | 79633915dd0aa8724ae3dfc5a3a32053f7a4f1e0 | d3cca374f87e134a7ddfc327a6daea983875ecac | refs/heads/master | 2021-01-17T04:08:25.056580 | 2016-12-26T11:41:31 | 2016-12-26T11:41:31 | 42,319,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | '''
Created on 11 de dez de 2016
@author: C.Lucas
https://www.hackerrank.com/challenges/bfsshortreach
'''
if __name__ == '__main__':
pass | [
"christoffer.luccas@gmail.com"
] | christoffer.luccas@gmail.com |
e8a19ea67c840dd26b306a01ba11687009a0f5a0 | ee735e11151aef75cf3ea8790f5e86ea285aa55f | /estruturas_repeticao/ciclo_for.py | 360aba6debac67f2268b834c7d46644cde7fdb42 | [] | no_license | Joaovismari/Python | 81dd7b3ab824e27221b1e034d1a2be2b74c17b24 | fc76c956987e3e839b1f993369d9bc28f1e5f722 | refs/heads/master | 2023-06-19T18:59:02.203183 | 2021-07-21T12:17:53 | 2021-07-21T12:17:53 | 371,078,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | nomes = ['Pedro', 'João', 'Leticia']
for n in nomes: #passa por todos os elementos da lista atribuindo seus valores a variavel n
print(n)#imprime o valor de n em uma linha
else:
print("Todos os nomes foram listados com sucesso")#após todas a posições terem sido utilizadas a cima
print('________________________... | [
"jmvismari@hotmail.com"
] | jmvismari@hotmail.com |
8333aeedd2a428cb35e678bc7d6c6204ecc3b206 | 06220ddebf29c95408af3a6b06b578644f6b9e6f | /passwords/fields.py | 4a36ba5211d6a3784b6724c51372d941b1895461 | [] | no_license | lnxg33k/bugtrack | c2ed9cf32314bad7166156b717fe38de3cbd2eea | 103c7694425bed26a6f89678288b28057def7eeb | refs/heads/master | 2023-03-04T13:02:31.279104 | 2021-02-08T07:38:35 | 2021-02-08T07:38:35 | 40,562,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from django.forms import CharField, PasswordInput
from passwords.validators import (validate_length, common_sequences,
dictionary_words, complexity)
class PasswordField(CharField):
default_validators = [
validate_length,
common_sequences,
dictionary_word... | [
"ahmedelantry@gmail.com"
] | ahmedelantry@gmail.com |
16debb3ed031d44bf817d364a06a0eb527e43618 | d4e927cf18086bfb1dc917df50adbb56e3c04de5 | /tests/test_template_variables.py | 5d38657dcd81b2bd7f145a6a95005565bc6b1782 | [
"MIT"
] | permissive | dafanasiev/yasha | 85d899fded5474ef19f8eda1e4a86fcf9a18cad9 | b4488779647db344d98ee9754022f44e40109e1f | refs/heads/master | 2022-09-30T11:37:24.481077 | 2020-06-01T06:42:48 | 2020-06-01T06:42:48 | 267,877,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,433 | py | """
The MIT License (MIT)
Copyright (c) 2015-2017 Kim Blomqvist
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, ... | [
"afanasiev.dmitry@gmail.com"
] | afanasiev.dmitry@gmail.com |
24609c047c4733b47f8db778301c3bfd22eddb0b | 20ba6d00badae6e0be5416628056da5247187eed | /templates/urls.py | e5a53614f5d62bf4aaa7721c2c610f981f41c6f8 | [] | no_license | elaine05/ecommerce | 3a6ad34d160acf0dd0a3866215e7f57a6127ebcf | 2003122cc2b203a383bcf52bb1f5519c4c17fb9b | refs/heads/master | 2022-09-19T13:25:18.786678 | 2018-05-29T08:18:00 | 2018-05-29T08:18:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | from django.urls import path
from .views import (ProductListView,
ProductDetailSlugView)
urlpatterns = [
path('', ProductListView.as_view(), name='list'),
path('<slug:slug>/', ProductDetailSlugView.as_view(), name='detail'),
]
| [
"le0nana0888@gmail.com"
] | le0nana0888@gmail.com |
eeb1559f1a0bbc46f5e47f3df99f5f63b293fdc6 | 40771419d17e8862043da434780f67ff56ddf9ae | /activity_27_lambda_s3/src/consolidation.py | 70b8bb8f8ec3efe7a59beff258587b98fecf566e | [] | no_license | HuyBui-ruum/21UCS39AB | 129d5925584f83a4731eff09c34f0d14d75cb2e4 | b7df19e73673cfb7bd70aeb5303f1fcfcd6f4d39 | refs/heads/main | 2023-07-03T05:40:43.803991 | 2021-08-02T19:01:56 | 2021-08-02T19:01:56 | 379,763,752 | 0 | 0 | null | 2021-06-24T00:44:38 | 2021-06-24T00:44:38 | null | UTF-8 | Python | false | false | 1,967 | py | # CS39AB - Cloud Computing - Summer 2021
# Instructor: Thyago Mota
# Description: Activity 26 - Consolidates in/out inventory data
import os
import boto3
# parameters
BUCKET_DESTINATION = os.getenv("BUCKET_DESTINATION")
def lambda_handler(event, context):
s3 = boto3.client('s3')
for record in event['Records'... | [
"thyagomota@gmail.com"
] | thyagomota@gmail.com |
4612ab9203cd165e66834e356d3ee6f8bf137430 | 1c46509ec42f7a7194ddbe475c02084d10504d52 | /exercise1.py | 2619e0743f27ba23964e274e345a09b632b50078 | [] | no_license | santoshisubedi/git-test | 304879884962585edae5cb9dc6566fece9b492c3 | ebab3fa6d92ca1d48f16aeaff7ff3981b7f9f0fa | refs/heads/master | 2021-01-23T01:27:03.883594 | 2017-03-26T06:34:55 | 2017-03-26T06:34:55 | 85,911,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | a = raw_input('enter the marks of C')
b = raw_input('enter the marks of IT')
c = raw_input('enter the marks of DAA')
d = raw_input('enter the marks of DL')
e = raw_input('enter the marks of SAD')
total = float(a) +float(b) + float(c) + float(d) + float(e)
print'total marks,total'
percentage =(total/5) * 100
print 'tot... | [
"santusubedi96@gmail.com"
] | santusubedi96@gmail.com |
ca994935a62ea261c18b09d4bdfc61831b7e7aa7 | e2513458d29e3ec9da59f6edda1fe9fe481c8810 | /total_beginner_projects/virtual_pet/virtual_pet_day_3.py | 86ecaf85f684e968727089cefc3f0de8d6b0dfe6 | [] | no_license | vencabot/intro_to_python | 8678135742ef91a7e5e9f5011287cc0c29dbd0b1 | c43d547fbc97cfbdd66fdf8bcd47cb83f686b356 | refs/heads/master | 2023-03-16T07:50:34.756472 | 2019-04-20T01:13:26 | 2019-04-20T01:13:26 | 149,873,956 | 2 | 3 | null | 2023-03-07T21:18:57 | 2018-09-22T12:16:23 | Python | UTF-8 | Python | false | false | 4,114 | py | def feed_pet(pets_name, pets_happy_level, pets_hunger_level):
pets_food = input("What do you want to feed " + pets_name + "? ")
print()
if pets_food == pets_favorite_food1 or pets_food == pets_favorite_food2:
pets_happy_level += 20
elif pets_food == pets_hated_food:
pets_happy_le... | [
"noreply@github.com"
] | noreply@github.com |
ab3c1e04097341e3cd191c0c795cfd6366d615b2 | 376040d6ce67354c783d61edeb14c1d7059ed0b4 | /test/python/threading/mtfacfib.py | b38d8805ddd9c5944eb80be9d7672a9b8988921e | [] | no_license | panluo/learn | 8140af4b274ce858637d6b82dc6558957e4a2ba6 | ca03fc00a34d7603909dd80a90e7d72290374485 | refs/heads/master | 2021-01-25T04:58:00.503329 | 2015-03-20T08:28:15 | 2015-03-20T08:28:15 | 23,575,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | #!/usr/bin/env python
import threading
from time import ctime,sleep
class Mythread(threading.Thread):
def __init__(self,func,args,name=''):
threading.Thread.__init__(self)
self.name = name
self.func = func
self.args = args
def getResult(self):
return self.res
d... | [
"pan.luo@bilintechnology.com"
] | pan.luo@bilintechnology.com |
6284f7cad02b6cf3714a1f65b202aa4cc2502691 | 753b29a92b4c3e42a31718883019fb142105932a | /webpersonal/portfolio/models.py | 365e394fb715476d522300fd584ef5a8ed6c28c5 | [] | no_license | l-ejs-l/PythonDjango-Udemy | d1cea5404c44daed3bb7a5df0f6528f18298edf2 | 175ebb83a2c58b1be1178657550edac8e25c341f | refs/heads/master | 2023-03-03T19:36:56.603611 | 2019-01-28T11:42:09 | 2019-01-28T11:42:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | from django.db import models
# Create your models here.
class Project(models.Model):
title = models.CharField(max_length = 200, verbose_name = "titulo")
description = models.TextField(verbose_name = "Descripcion")
image = models.ImageField(verbose_name = "Imagen", upload_to = "projects")
link = models... | [
"emilio.jeldes@gmail.com"
] | emilio.jeldes@gmail.com |
ab35e9e283009e6ecf13db879c04cf26b445e562 | 20a5da07103f472a803a72cc6da53253e1630049 | /dbinfo/main.py | a07197bfe48f9483397639e76a92c7d9a00c51a6 | [] | no_license | travishathaway/dbinfo | 209e7e0286616d1efe12f56b6fc96855a429475e | 21df6982ba9d5f6d5361ceb21de571a5128dd3bf | refs/heads/master | 2020-06-06T18:59:15.079351 | 2014-07-28T19:34:39 | 2014-07-28T19:34:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | #! /usr/bin/env python
'''
Usage:
dbinfo <report> [-d <dbms> -f <format> -o <outfile>]
Options:
-h --help Show this screen.
-d <dbms>, --dbms <dbms> Database Engine [default: mysql]
-f <format>, --format <format> Database Engine [default: csv]
-o <outfile>, --outfile <outfile> Output filename
'... | [
"travis.j.hathaway@gmail.com"
] | travis.j.hathaway@gmail.com |
596c2d341bff67735b22fbdd7402b5b94c2d838d | 40323f76b6685f9c4154ed514a7eec1fd2937c3f | /amr_srvs/catkin_generated/pkg.installspace.context.pc.py | 503d25db3163c83d179cde31004ad7c67f88cb30 | [] | no_license | Kishaan/amr_team07 | f5b53f3f7e271f33c7ce84bcaa13e7241a1ff2df | 956dcf0983a71de246d7a2fb8180bcbdcda9fd8a | refs/heads/master | 2021-04-28T06:05:38.391202 | 2018-02-05T10:09:34 | 2018-02-05T10:09:34 | 122,192,234 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/kishaan/catkin_ws/install/include".split(';') if "/home/kishaan/catkin_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "geometry_msgs;amr_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_W... | [
"kishaan.kishaan@smail.inf.h-brs.de"
] | kishaan.kishaan@smail.inf.h-brs.de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.