blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
eacbce1209788203c69e54775e0146e947dbb0b2
88b73a0ed9367f3a56db47e6d16089ae57c21744
/myblogsite/blog/feeds.py
7047ed4cf428d04b05beef9b7e4d8315f73d7046
[]
no_license
Sholamide/django-blog-app
4635093f65eaae11634466452981d0218de0a046
7ce9b6faf6178da5f304aeee34bfb2b54aa4b998
refs/heads/master
2023-03-01T11:22:26.296854
2021-02-15T15:41:14
2021-02-15T15:41:14
334,110,921
0
0
null
2021-02-10T16:06:19
2021-01-29T10:27:12
Python
UTF-8
Python
false
false
522
py
from django.contrib.syndication.views import Feed from django.template.defaultfilters import truncatewords from django.urls import reverse_lazy from .models import Post class LatestPostsFeed(Feed): title = 'My blog' link = reverse_lazy('blog:post_list') description = 'New posts of my blog.' def items(...
[ "soluade101@gmail.com" ]
soluade101@gmail.com
fbca74d02065c0ad6ae13ca3c9a6556c2d1050f2
f86f4f39e1e63bf2103faaad3b738074aa5ad214
/prml/nn/__init__.py
cf746ac7bb0d1e83a3c9e6bf760e6a86f5386383
[]
no_license
zgcgreat/PRML-1
a918ec670fd756086cde860e408f81f980bb9a8d
77056922f23176065b056d5ca136a43971831969
refs/heads/master
2021-07-03T09:58:06.843226
2017-09-24T04:26:27
2017-09-24T04:26:27
105,968,426
0
1
null
2017-10-06T04:50:26
2017-10-06T04:50:26
null
UTF-8
Python
false
false
563
py
from prml.nn.function import ( convolve2d, dropout, log_softmax, max_pooling2d, relu, sigmoid_cross_entropy, sigmoid, softmax_cross_entropy, softmax, softplus, tanh, weight_decay ) from prml.nn import optimizer from prml.nn.network import Network __all__ = [ "convol...
[ "r0735nj5058@icloud.com" ]
r0735nj5058@icloud.com
4687eb2c354a559fd6bbc8b620b8fc1f267e95c6
74c0aa4829fc57538ff3477eee8ecf2cf77ef9e1
/serverSetup.py
3225e65ba9974eb2da44496b1cce9e2c61c59048
[]
no_license
diobat/KillYourFriends
42e2f9783a6b158b7872d6aa343b9b8bb309f36c
3b816ac642d1d979648902b23de72acbf2615b9f
refs/heads/master
2020-03-27T22:41:20.013675
2018-12-02T11:45:03
2018-12-02T11:45:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
952
py
import socketserver as ss class MyTCPHandler(ss.BaseRequestHandler): """ The RequestHandler class for our server. It is instantiated once per connection to the server, and must override the handle() method to implement communication to the client. """ def handle(self): # self.requ...
[ "diogobatista@ua.pt" ]
diogobatista@ua.pt
22b6f77efdeb0185dd0e87192dbd47ca2af677f2
2d4b531b9b04ceae6c4e0312463836ae4a7654cd
/scripts/parse_clips.py
53e87037c61c5bf93b054b174b47849445a9e548
[]
no_license
intheory/web-app
e843ea066f7acc1be3377849e16cfe54df9b3acb
7680e3db1c1a1cbbbb7e1a9b8290ce4bf9cc49bb
refs/heads/master
2021-01-24T06:36:08.703649
2012-11-09T19:26:32
2012-11-09T19:26:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,214
py
''' Created on 19 Sep 2012 @author: george This module parses a txt file containing info about the hazard perception clips. ''' import os from mongoengine import connect env = "ITENV" in os.environ and os.environ["ITENV"] or "dev" if env=="prod": parentdir = os.path.dirname(os.path.dirname(os.path.abspath("/www/virt...
[ "basketballcy@gmail.com" ]
basketballcy@gmail.com
55a4acdebc8d83005e9cc93dfef6fdaace57ff60
f6990693f6f8ac5c59cf7f2589f91ca53412ce74
/jenkins/urls.py
280f0ad9c3d934b892745aac3f98da2746890a41
[]
no_license
daba0007/python-jenkins
3677ba2f176fe6d51fd408898c6342f2127ae689
fc5e93af96d77cde05b1559a45a75dee70ef8da8
refs/heads/master
2020-09-12T13:57:52.558410
2019-11-19T06:19:58
2019-11-19T06:19:58
222,446,458
0
0
null
null
null
null
UTF-8
Python
false
false
597
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import url from . import views urlpatterns = [ url(r'^getversion', views.getVersion, name='getversion'), url(r'^getjoblist', views.getJobList, name='getjobList'), url(r'^getconfig', views.getConfig, name='getconfig'), url(r'...
[ "yld060631@163.com" ]
yld060631@163.com
adb9a20f66c9656c23a420ee47e037f7a80d95f9
1fad3905860f078d076cac8ebd09fe1f619b77bd
/week01/assignment2/assignment2/spiders/maoyan.py
7fa4182967aa19db9011605207d862cb2aa0fa73
[]
no_license
Farinosa/Python001-class01
7f832dfef1df7cf5a11b0909c7fb787789b94a99
0496e470246046cfa1d70aaeafbf3074a430d143
refs/heads/master
2022-12-07T06:04:16.303644
2020-09-05T17:25:36
2020-09-05T17:25:36
273,857,131
0
0
null
2020-06-21T07:36:06
2020-06-21T07:36:05
null
UTF-8
Python
false
false
1,264
py
# -*- coding: utf-8 -*- import scrapy from scrapy.selector import Selector from assignment2.items import Assignment2Item class MaoyanSpider(scrapy.Spider): name = 'maoyan' allowed_domains = ['maoyan.com'] start_urls = ['https://maoyan.com/films?showType=3'] def parse(self, response): pipline_i...
[ "you@example.com575813104@qq.com" ]
you@example.com575813104@qq.com
f6b460e2c17819c23b9ebca29e14420995355f2c
7a187cf8e86a0b72b864a189747891cf1cd5c0d5
/Final Project/report_email.py
eb5420ac58ad82a2afeb06ba3604745f0f9c4b97
[]
no_license
Kirkkm/Google-Projects
743ca31bdc79b465e282be28147ae194245fda1e
268a68a80a23809d696fe966ea40274fec710c05
refs/heads/master
2022-11-15T08:18:36.482279
2020-06-30T19:21:29
2020-06-30T19:21:29
265,541,067
1
0
null
null
null
null
UTF-8
Python
false
false
2,522
py
#!/usr/bin/env python3 import os from datetime import date import requests from . import run, reports, emails ''' Create another script named report_email.py to process supplier fruit description data from supplier-data/descriptions directory. Use the following command to create report_email.py. Import all the nece...
[ "matthewkk7@gmail.com" ]
matthewkk7@gmail.com
c1a520252df4ebe42fe9f87657a7ec6d33bf15ad
15f66dc29c176891fe213f54469f8aa8e9b11172
/Emulation/autonetkit/plugins/graph_product.py
a3b571edc02c7c6a37d9a2d28cf3fce85fc36fce
[]
no_license
wilko77/STRIP
24a707909d66d19f84ec8760798da45d50070e4d
6dc3867da249b4d7ea89286740f3eab5a3b8ee17
refs/heads/master
2020-05-20T04:00:57.051119
2013-10-01T06:24:57
2013-10-01T06:24:57
11,779,552
1
0
null
null
null
null
UTF-8
Python
false
false
5,566
py
import networkx as nx import autonetkit.ank_utils as ank_utils import autonetkit.ank as ank import os import pprint import autonetkit.log as log import autonetkit.load.graphml def expand(G_in): """ Expands out graph products. G is the source "backbone" graph. H_x is the "PoP template" graphs """ graph_unwr...
[ "wilko.henecka@adelaide.edu.au" ]
wilko.henecka@adelaide.edu.au
ca8251ca6103bd7ac332fc537961d3390d96ef1a
5ec4098d7d11ceb9b37feeb340e7815683864b19
/Timetable/server/backend/core/core_utils.py
4e0d591224d29f3339737eb8e04b130dcc25f6ba
[]
no_license
sunyangkobe/Timetable
dfed21f717c0a93838c4c8f6bf86e9d743068122
79aac0ce48b9514cc1fa2b885f1c18cce87d85c8
refs/heads/master
2021-01-02T22:37:53.836555
2013-12-13T19:04:04
2013-12-13T19:04:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
__author__ = 'mimighostipad' from django.core.cache import cache AVATAR_PRE = "avatar_" DEFAULT_AVATAR = "avatar_default" def get_user_avatar_key(user): return AVATAR_PRE + str(user.id) def get_user_avatar(user): avatar_key = get_user_avatar_key(user) if cache.has_key(avatar_key): return cache...
[ "yksun@cs.cmu.edu" ]
yksun@cs.cmu.edu
a0a9f050439356ae3ab9c7b58a7ae193821ced2e
e3ca1ff203bd7a6d73dec1461999217ad2f34e85
/sana/api/.svn/text-base/widgets.py.svn-base
e9b8076203ff07926ba307893d05fdd1b6cbcf49
[ "BSD-3-Clause" ]
permissive
satvikdhandhania/vit-11
1f8b2796f14e56c9a36d5c39d852c1ff344c42d7
e599f2b82a9194658c67bbd5c7e45f3b50d016da
refs/heads/master
2021-01-25T04:02:15.875370
2014-04-24T10:46:18
2014-04-24T10:46:18
19,178,144
1
0
null
null
null
null
UTF-8
Python
false
false
3,837
'''Provides fields for api forms @author: Sana Dev Team Created on Jun 10, 2011 ''' from django.forms.widgets import Input, MultiWidget, TextInput, PasswordInput, mark_safe, force_unicode, flatatt class JSONInput(Input): input_type = 'hidden' is_hidden = True class BinaryWidget(MultiWidget): ''' Provide...
[ "akshaydixi@gmail.com" ]
akshaydixi@gmail.com
7910786e5c47a2f6784773af358697d67ebb761f
b30ec73f10f204c3fb7059c311283c43238275eb
/ss411/users/tests/test_models.py
ad365f91ba55cda427544104f90e4239c010c55b
[ "MIT" ]
permissive
mbronstein/ss411
f8a5829db01eff90399da9acdd59264bc2f39db9
e901423e1fd16d4c414039083c6c7bc99b7e35ad
refs/heads/master
2023-03-24T08:47:44.344457
2021-03-03T22:13:34
2021-03-03T22:13:34
338,348,101
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
import pytest from ss411.users.models import User pytestmark = pytest.mark.django_db def test_user_get_absolute_url(user: User): assert user.get_absolute_url() == f"/users/{user.username}/"
[ "mark@bronsteinlaw.com" ]
mark@bronsteinlaw.com
f3fee73504086589689015b432b61e3df713ce4c
cd72dbaf5ba1e250df76982e97830306cdb934de
/assignment1/assignment3.py
14b24b10e1c5d8f88b0600e8915a7c5ace93a0c8
[]
no_license
Vinith69/collegeInternship
2dd8516bd73c76ac36de5f6ef30618b9d351ffa6
6f8beabd1b21d1d0632c5d7962c7d824e1fb89dc
refs/heads/master
2023-08-16T11:58:29.756082
2021-10-14T03:20:11
2021-10-14T03:20:11
416,967,982
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
n = int(input("Enter the size of array\n")) if 1 < n < 11: arr = map(int, input().split()) arr = list(set(list(arr))) ar = len(arr) arr = sorted(arr) print(arr[ar-2]) else: print("n size must be between 2 and 10")
[ "ramarock09@gmail.com" ]
ramarock09@gmail.com
076a8187acddfb020c167468b814387208f56679
3a5c94dce25e38fc083619a2a0bf8a657b9afb8c
/vol_108/p10812.py
4c216f0874b42850ec067aa54142d74c4d6452df
[]
no_license
tkoz0/problems-online-judge
a322e296fb14fdf4ca616352ead28895465879e9
3372c6fe75556a9dd3e6eb8b06ae65058290ab31
refs/heads/master
2022-07-23T01:20:57.380524
2022-07-10T07:15:56
2022-07-10T07:15:56
157,949,283
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
n = int(input()) for z in range(n): s, d = map(int,input().split()) if (s+d)%2 != 0: print('impossible'); continue small = s//2 large = small + s%2 small -= d//2 large += d//2 if small < 0: print('impossible'); continue print(large,small)
[ "you@example.com" ]
you@example.com
a8ca534232ac3e410b79c33d06e4dd2514b31e5a
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-roma/huaweicloudsdkroma/v2/model/update_special_throttling_configuration_v2_response.py
aa4225211245441353468dcae8e63dd285571101
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
11,116
py
# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class UpdateSpecialThrottlingConfigurationV2Response(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
c6c5efb226333f27660bf83ad7d0642ec32736b3
69233f51c2beb492f273940756e19f41ece7f793
/nemo_text_processing/inverse_text_normalization/en/taggers/tokenize_and_classify.py
731e677d8ec9173657a53146d25485f205f82c08
[ "Apache-2.0" ]
permissive
skgusrb12/NeMo
1e42f9a2799805ac0cc3b4fd14b1f199c26aed7d
dfb5bf5b741fdf3a2cad68f373cd42c74c600681
refs/heads/main
2023-06-28T17:09:39.975386
2021-08-02T17:49:54
2021-08-02T17:49:54
392,194,106
1
0
Apache-2.0
2021-08-03T04:55:53
2021-08-03T04:55:53
null
UTF-8
Python
false
false
4,261
py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # Copyright 2015 and onwards Google, 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/license...
[ "noreply@github.com" ]
skgusrb12.noreply@github.com
2d757dfd5eb6b67f27916ee25bab7c274cc3e173
4cf5298b6670ed306033e10e7417a66dbc89953c
/jtheakst.py
f5b3f5dd9e86f3745cb744aed02b3d5bd8533a86
[]
no_license
chiefspace/python_thinkful
c72331bfa10a26d85d098151785c5d3ab6d6f11e
c181d33f9447b6d21df6d340e13ee481884eb2bf
refs/heads/master
2020-12-24T06:57:21.475202
2016-06-30T13:50:33
2016-06-30T13:50:33
61,953,550
0
1
null
2016-06-30T13:48:18
2016-06-25T17:14:28
Python
UTF-8
Python
false
false
344
py
phone_book = { "Sarah Hughes": "01234 567890", "Tim Taylor": "02345 678901", "Sam Smith": "03456 789012" } for key,val in phone_book.items(): print("{} = {}".format(key, val)) lookUp = "Jamie Theakston" try: phone_book[lookUp] except KeyError: print "Aparently, {} has an unlisted phon...
[ "ben@chiefspace.com" ]
ben@chiefspace.com
3f889a3d9bfda4ea7f2372059485132b8d91da03
1a0bc226dfa6adfe4782c4dde3363ed4e8192540
/external_scripts/rank_metrics.py
e6620c41858c216f45054cad621b9e4f90937807
[]
no_license
alexandervansomeren/msc_thesis
5decc0f4be9d47ff4f3146da9a078e8b16636692
49e7a853ebb678648607817d095e5ff280c4f79b
refs/heads/master
2021-09-16T00:04:04.308141
2018-06-13T11:18:53
2018-06-13T11:18:53
105,005,948
1
0
null
null
null
null
UTF-8
Python
false
false
6,205
py
"""Information Retrieval metrics Useful Resources: http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt http://www.nii.ac.jp/TechReports/05-014E.pdf http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf Learning ...
[ "alexander.vansomeren@gmail.com" ]
alexander.vansomeren@gmail.com
982461cebcec680105d00ab0e89423333960302d
f415db347e2f3c92143439e382c28df61442de97
/beginner level/between even.py
0735b1cb6c338352404ef2e68d5ceccd534780a1
[]
no_license
Maniramez/python-codes
dadd8d2272ae3c616892800ee551f4733a2b0ca4
6d866913b147cc0cd146f2da859e498a83acec2e
refs/heads/master
2021-09-13T12:56:40.769191
2018-04-30T04:48:04
2018-04-30T04:48:04
125,207,665
0
2
null
null
null
null
UTF-8
Python
false
false
114
py
a=int(input("enter the value")) b=int(input("enter the value")) for i in range(a,b+1): if(i%2==0): print(i)
[ "noreply@github.com" ]
Maniramez.noreply@github.com
760e5020cf69a86dafd45f9e8860eef44dcca520
3d1da50b7eff3bd38e2e398a63ed39a5d429cce9
/python-ai/python高级/06闭包装饰器_/15_类中call方法的使用.py
5325baaf4f635cddc88925ddf9da401e659f7557
[]
no_license
wusanpi825117918/study
b10b3a646a66ff4f95daa98f8498d3ba78644bd2
ffdd358b95ed7b79a9cc11d46db9112a8664666d
refs/heads/master
2023-02-07T07:04:06.216477
2023-01-28T06:13:56
2023-01-28T06:13:56
224,645,256
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
# 定义一个类,实现__call__方法 class Check(object): def __call__(self, *args, **kwargs): print("我是call方法") c = Check() c()
[ "noreply@github.com" ]
wusanpi825117918.noreply@github.com
f49ded29cbccc54c00c519ff5fd9283004c5cf81
c477588f2d0e924ee2a6d56b0784668a186ca340
/gtypes/gmessage_pass.py
cea41290fee4bacb11d4076cd3153dfedd041668
[]
no_license
becharrens/MCProjectionTool
de09678d6ac8f7e3a610a541e8077b67e93ea21b
e1e64cf3b43f4c6ab6158d8724c4a94e2af21d6e
refs/heads/master
2023-03-05T17:57:35.424828
2020-09-29T13:27:14
2020-09-29T13:27:14
299,571,751
0
0
null
null
null
null
UTF-8
Python
false
false
1,652
py
from typing import Set, Dict import gtypes from gtypes.gaction import GAction from gtypes.gtype import GType from ltypes.ltype import LType from ltypes.lmessage_pass import LMessagePass class GMessagePass(GType): def __init__(self, action: GAction, cont: GType) -> None: super().__init__() self.ac...
[ "bes.seb.98@gmail.com" ]
bes.seb.98@gmail.com
6a6a056b69d8c1b0e499fe7b3da15e21acf1f8d9
e2045ea965ce2024c80d4d697384b1b5fddc27c8
/chess/chess.py
80a86801b51eea0e3231b08ed52222399ebd2c0a
[]
no_license
AI-Factor-y/Games
c1e307b96017ae45a65b90cc200b40c206192387
7b7fcb92373ba2d25f228f340125f0643d36fb7e
refs/heads/main
2023-05-01T03:01:15.231519
2021-05-18T14:31:02
2021-05-18T14:31:02
368,551,074
0
0
null
null
null
null
UTF-8
Python
false
false
55,327
py
import pygame from copy import deepcopy from network import Network pygame.init() menu=pygame.image.load("entrance.jpg") globe=pygame.image.load("globe.png") disp_width=900 disp_height=750 STAT_FONT = pygame.font.SysFont("comicsans",50) stat_font = pygame.font.SysFont("comicsans",70) stat_font2=pygame.font....
[ "noreply@github.com" ]
AI-Factor-y.noreply@github.com
3622120dddd6b2f0521775b7eeaec59ce961df1b
efd3aa99a1669ef547a1625fd62e881d2281acfb
/Energy.py
31bdd135104066868f19753397f775b54ef3661a
[]
no_license
MaxLu0428/TensorNetworkPartitionFn
9b2e803d530027557c2724d22fb09e3a99d9c8f2
531955c6dac60a3a24e43de5cacb189c51425b2e
refs/heads/master
2023-03-11T23:37:53.064128
2021-02-25T07:17:23
2021-02-25T07:17:23
305,578,756
0
0
null
null
null
null
UTF-8
Python
false
false
3,308
py
# -*- coding: utf-8 -*- """ Created on Thu Mar 26 13:38:42 2020 @author: chingyuhuang """ import numpy as np from math import pi from scipy import linalg import time, itertools import matplotlib.pyplot as plt import HOTRG_two import pandas as pd from pathlib import Path def SAVE_dATA( Cdata,RG_step,Dcut,name): ...
[ "maxlu0428@gmail.com" ]
maxlu0428@gmail.com
264641448c559a31731c347e5aa9462dc5ccb1f9
14f413371efe349646b737167c26c66ddb2fa898
/answer/views.py
88b40d6647fa0eb73d190827d5154963d5b9c07e
[]
no_license
pabissonnier/project8__purbeurre
bace2341a76dc1281d25dce59d9e23f8fec4e252
f59f57d78b04075ac7fa9c104cd88fb2278e8820
refs/heads/master
2022-12-15T19:10:22.821407
2019-12-05T18:15:52
2019-12-05T18:15:52
186,840,027
0
1
null
2022-12-08T01:47:21
2019-05-15T14:09:45
CSS
UTF-8
Python
false
false
6,596
py
# -*- coding: utf-8 -*- from django.shortcuts import render, get_object_or_404, redirect from django.core.exceptions import MultipleObjectsReturned from django.core.paginator import Paginator from .models import Product def index(request): return render(request, 'answer/index.html') def search(request): q...
[ "pabissonnier@gmail.com" ]
pabissonnier@gmail.com
b7a956e9d522c03754567cfb5a37b9907762ee17
fce517b931838629ecdf1f61de763eaa208409ec
/category/models.py
9972266c3276ed893d76489f4a88563f6495284c
[]
no_license
bird50/rs_cat
19abec386815d3b0b0511f17260049a63f5dbd02
5adb4d49f3a6a9a4870305d3717183980c860c1c
refs/heads/master
2022-11-14T16:42:28.853472
2020-07-07T23:54:33
2020-07-07T23:54:33
277,946,338
0
0
null
null
null
null
UTF-8
Python
false
false
3,081
py
from django.db import models ''' [datacat] - name (ชื่อข้อมูล) - link (ลิ๊งค์ของแหล่งข้อมูล) - agency (หน่วยงานเจ้าของข้อมูล) - agency_provided_data (หน่วยงานที่ให้ข้อมูล) - keyword (หัวเรื่องหรือคําสําคัญ ที่ใช้สําหรับอ้างอิงในการค้นหาข้อมูล) - description (รายละเอียดของข้อมูล) - Time_period (ช่วงเวลาของข้อมูล) - so...
[ "siratis.w@gmail.com" ]
siratis.w@gmail.com
c88a0f750789bbd73b0cdbec3214fd73b3684bf5
07f814b6b165825bab75f01b30113547f9dfc8ca
/src/074. Digit factorial chains/074.py
7a76248279038db2be6bed273644bca548f01ed8
[ "MIT" ]
permissive
yuhao600/project-euler
d1800ceba53c0bc66947e0b373ba42d3e3c372b2
201fc68aa9cca63b751036bb61623c12939dcac4
refs/heads/master
2021-01-18T23:17:33.956922
2020-12-22T08:19:26
2020-12-22T08:19:26
27,674,349
15
3
null
null
null
null
UTF-8
Python
false
false
395
py
factorial = [1] for d in range(1, 10): factorial.append(factorial[-1] * d) def digit_fact(n): return sum([factorial[int(d)] for d in str(n)]) counter = 0 for n in range(10 ** 6): m = n sequence = set() while True: sequence.add(m) m = digit_fact(m) if m in sequence: ...
[ "yuhao10@baidu.com" ]
yuhao10@baidu.com
73c3b2c1b683f77bbfe7516ef0d32e2e5c86737d
24f97e9bd7eddca0ddcc174bedb012257c483921
/module/gr-round/python/deci.py
b537bfcc3411b538b3c1905022674eefc84b3dc9
[]
no_license
13717630148/graduation-project
8afb90b8aa7fc1544cc144522105869456e36372
743cda2b956e71e8d0323baf0b3aba9a347105be
refs/heads/master
2020-08-09T13:32:54.563870
2018-04-17T07:34:48
2018-04-17T07:34:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,429
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2018 <+YOU OR YOUR COMPANY+>. # # This 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, or (at your option) # any later version. #...
[ "464271301@qq.com" ]
464271301@qq.com
c263f0cb8caa0efb7c52441a920dbdc751510535
f525e83095eff72a2452495aae4d800ffe5a553b
/main.py
72cc15b9b9fcfbbd84208dce47b6cbe2b51a68b1
[ "Apache-2.0" ]
permissive
maysrp/daolao
942b518eb86433f956b00b2f0962ffc0bec17ccc
42c9d5acb85e39f878f9f4a97cb2a7afeb2421e2
refs/heads/main
2023-02-17T10:17:18.949634
2021-01-14T14:32:52
2021-01-14T14:32:52
329,247,918
1
0
null
null
null
null
UTF-8
Python
false
false
590
py
from cnfont import chinese,pixel,image,anime1,anime2,anime3,flx,anime0 import max7219 from machine import Pin, SPI import time spi = SPI(1, baudrate=4000000, polarity=1, phase=0, sck=Pin(4), mosi=Pin(2)) ss = Pin(5, Pin.OUT) display = max7219.Matrix8x8(spi, ss, 16) l1="大佬让我过去吧" l2="祝您身体健康" l3="财源广进" ...
[ "noreply@github.com" ]
maysrp.noreply@github.com
97572804913cc220df3cf3925bd1a06df91f8c6e
385554a930b259412b3e843d5936a12b2bb35bd5
/quest2.3.py
67061739c87f5818d6b039722865e1d2b376ad39
[]
no_license
prajwalacharya016/CrackingCodingInterviewSolutions
ea60d2c125434ffc657143d0c22e64c81ecc9c1f
ca6e1a35220b83e799d8e81a7e96e3276dad19ab
refs/heads/master
2020-12-30T16:41:35.029676
2017-05-17T20:10:52
2017-05-17T20:10:52
91,015,518
0
0
null
null
null
null
UTF-8
Python
false
false
512
py
from linkedlist import LinkedList, Node def deleteNode(l2,data): head=l2.first n=None while head: if head.data == data: n = head break else: head=head.get_next() if n is None or n.get_next() is None: return False nextd = n.get_next() ...
[ "callmeprajwal@gmail.com" ]
callmeprajwal@gmail.com
02a898bb283bd23b227d789c20e524113a8a8126
beba988ee3440ee0549b23f8dfc8c11d1452b3c0
/login/views.py
9f2939d4f0fbabb2ae28e783dc5479d023b58eaf
[]
no_license
pdf2e/Tektiles
c4c91f910466acf9e539d32e0e6ba62c2a71df7c
a25dd385757ce8f463c590863a5363dd8fb0fbae
refs/heads/master
2020-12-11T02:03:08.003218
2014-04-14T18:04:26
2014-04-14T18:04:26
17,325,359
1
0
null
null
null
null
UTF-8
Python
false
false
1,133
py
from django.template import RequestContext from django.shortcuts import render_to_response from login.forms import PersonForm def add_user(request): # Get the context from the request. context = RequestContext(request) # A HTTP POST? if request.method == 'POST': form = PersonForm(request.POST...
[ "angelotodaro92@gmail.com" ]
angelotodaro92@gmail.com
b2586349d2cf431fa0748ebd0657102088fb88cf
1d96db84225301d972f07cad95c2a13f4fbafa84
/python/my_PyFeyn/feynman_diagram_lfv_charm/gen_diagrams.py
c622629912d615fbabe66878c68815279854cad8
[]
no_license
mattbellis/matts-work-environment
9eb9b25040dd8fb4a444819b01a80c2d5342b150
41988f3c310f497223445f16e2537e8d1a3f71bc
refs/heads/master
2023-08-23T09:02:37.193619
2023-08-09T05:36:32
2023-08-09T05:36:32
32,194,439
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
#!/usr/bin/env python from diagrams import * tag = "_blk_bkg" for i in range(0,4): name = "fd_lfv_c_quark_%s_%d" % (tag,i) fd_lfv_c_quark(name,i)
[ "matthew.bellis@gmail.com" ]
matthew.bellis@gmail.com
3d2911a8f45cd81863e800a596cc087613d79b6b
039d8f2beb0991e2f1a4b3580b33250ae04440d1
/RPi/rpi_led.py
88c8eddb546b780f76b32c626ee19a3bb8edf57f
[]
no_license
a1ali/smartstreetlight
ff91eef204e16e582d3bac4ce4fe0923b062a1f9
e6a8c5b737f82d45bf3cd92ec38c6283bfa7c0d7
refs/heads/master
2023-02-20T05:11:27.711806
2021-01-26T22:09:22
2021-01-26T22:09:22
293,435,170
0
0
null
null
null
null
UTF-8
Python
false
false
1,810
py
import RPi.GPIO as GPIO import time from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTClient import json import pigpio led = 18 GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) #GPIO.setup(PIR, GPIO.IN) GPIO.setup(led, GPIO.OUT) #led = GPIO.PWM(LED, 500) #led.start(1) pi = pigpio.pi() pi.set_mode(led, pigpio.OUTPUT) pi.set_...
[ "noreply@github.com" ]
a1ali.noreply@github.com
e6e44ed46fd2a04ce3ee66aa3b01fd54f6275b00
f525b7beb6d15d6e0ede93d4efdbe8918074f19c
/venv/game_settings.py
0e759cbe0da464b1c4afc0ff221d96bc6975a7c9
[]
no_license
MarcLiander/CPSC-386-02-Pong
5543a1ede459fd037d834bbbafd2c40df0919181
640d101d4c1bd49d841e0c0db972af8d2b7f6079
refs/heads/master
2020-04-13T04:33:56.856359
2018-12-29T07:15:52
2018-12-29T07:15:52
162,965,510
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
class Settings(): def __init__(self): self.screen_width = 1200 self.screen_height = 800 self.bg_color = (50, 50, 50) self.item_color = (230, 230, 230) self.paddle_short = 20 self.paddle_long = 150 self.ball_speedup = 1.05 self.ball_size = 16 ...
[ "digizaku@gmail.com" ]
digizaku@gmail.com
96db2632d69d94830bd67115dadcaeb6e2e707c7
9cd8801c3ed2206bf731986a628f33a3577e10dd
/assignment1/cs231n/classifiers/neural_net.py
640b81e9abfb3f355b9c90edfc8f725b011063b7
[]
no_license
mfouda/CS231n
d82d47756070d721e342a28a67fc2c3cb4f45c8b
37e3252d69a84be7d94c452dce4f787f00c5dec9
refs/heads/master
2021-01-19T13:15:16.573273
2017-02-16T06:13:30
2017-02-16T06:13:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,287
py
import numpy as np import matplotlib.pyplot as plt class TwoLayerNet(object): """ A two-layer fully-connected neural network. The net has an input dimension of N, a hidden layer dimension of H, and performs classification over C classes. We train the network with a softmax loss function and L2 regularization ...
[ "gspat27@gmail.com" ]
gspat27@gmail.com
65ad5ba93a0830380d7d18ea1f7bc82e2d821bf9
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2526/60593/257150.py
58ca4c9267f800e30bf8438b260eda4e11fca89f
[]
no_license
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
UTF-8
Python
false
false
295
py
sa=input().replace('[','') sb=input().replace('[','') sb=sb.replace(']','') b=list(sb.split(',')) sa=sa.replace(']','') a=list(sa.split(',')) ans=[] for i in a: if(i!='null' and i!=''): ans.append(i) for i in b: if(i!='null'and i!=''): ans.append(i) ans.sort() print(ans)
[ "1069583789@qq.com" ]
1069583789@qq.com
8c79106855988b0ea3d04868c80e1f5dfc736257
29225f283c3c0cccf87ecc839ff0d369864e8ae3
/Quiz/p4.py
94d308c1ab1397ce7afeb6149d47aaadafdb6ada
[]
no_license
Darmaiad/mit-602-computational-thinking
275059cb6aaab3dd31e9ca6c6de593fe936f9bbd
591a01583f1057d09d61de1f76f1d2040ada0978
refs/heads/master
2020-09-09T02:07:25.547970
2019-12-22T09:54:11
2019-12-22T09:54:11
221,312,480
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
def max_contig_sum(L): """ L, a list of integers, at least one positive Returns the maximum sum of a contiguous subsequence in L """ maxSum = -999999999 currentSum = 0 for l in L: currentSum += l if (maxSum < currentSum): maxSum = currentSum ...
[ "geo.filippakis@gmail.com" ]
geo.filippakis@gmail.com
6063fa9c544db5cf55f7ae1fa2e3d530b67afdd6
7e842bd81a28869ebbcc989f60df7b64f83be531
/Easy/Chevaux_de_course.py
6cb45ddaad5fbd643ca7d9688b49ea86ba572b2b
[ "MIT" ]
permissive
Alumet/Codingame
06a39b5b8a5139bc38fc9db03dca65a66e54d447
5cb2f779bb7107864283744f7bbac260f4641af6
refs/heads/master
2021-01-13T00:50:22.607406
2017-11-28T19:02:09
2017-11-28T19:02:09
55,340,918
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
''' Author Alumet 2015 https://github.com/Alumet/Codingame ''' n = int(input()) power=[] for i in range(n): pi = int(input()) power.append(pi) power.sort() best=abs(power[1]-power[0]) for i in range(n-1): best = min( best, abs(power[i]-power[i+1])) print (best)
[ "Alumet@users.noreply.github.com" ]
Alumet@users.noreply.github.com
f1cd1bef9505f22695630dcfe93ee310ffded7c1
fc3c1a6f9b4fb171b191f931a2bc26106058b897
/python/p149.py
617382ae2a10ff315286f42cd4810cab13a0706b
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
MvdB/Project-Euler-solutions
ff425f63f1b9fbb34de38037f8fbdc25c39b8f04
57b6d6ac7a6562ec3d76b83f74faf0d5d9e990cc
refs/heads/master
2021-01-16T19:48:24.907038
2016-02-26T19:53:56
2016-02-26T19:53:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,750
py
# # Solution to Project Euler problem 149 # by Project Nayuki # # https://www.nayuki.io/page/project-euler-solutions # https://github.com/nayuki/Project-Euler-solutions # def compute(): SIZE = 2000 # Generate the pseudorandom sequence according to the lagged Fibonacci generator randseq = [] for i in range(SI...
[ "nayuki@eigenstate.org" ]
nayuki@eigenstate.org
be15189d73c5ffd5055c724d0a430d4b2da75912
5a8dd4591bfe79df8d7d7ade144ca40f4f88d1ab
/alive-speed/alive/scheduler/urls.py
cccde518f66003b21e0909486b838b56d2d1642a
[]
no_license
liudaihua/test_study
822e7891d024eaf60fdd6763d624353dfe2ef6a4
932fd634c02779a8171d64764b3f3611df831473
refs/heads/master
2020-06-19T02:53:10.671279
2019-07-12T08:26:12
2019-07-12T08:26:12
196,529,250
0
0
null
null
null
null
UTF-8
Python
false
false
345
py
from django.urls import path from . import views urlpatterns = [ path('blocking', views.blocking, name='blocking'), path('background', views.background, name='background'), path('async_with_block', views.async_with_block, name='async_with_block'), path('async_no_block', views.async_no_block, n...
[ "noreply@github.com" ]
liudaihua.noreply@github.com
296182028cf9ce3ce55c1ef80a55e7111f7d8a8f
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/algorithm/hard_algo/6_11.py
7d522d31b34bcdff5ab37adea8e334f1a2a51be6
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
10,993
py
Find the longest subsequence of an array having LCM at most K Given an array **arr[]** of **N** elements and a positive integer **K**. The task is to find the longest sub-sequence in the array having LCM (Least Common Multiple) at most **K**. Print the LCM and the length of the sub-sequence, following the ind...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
b8f94e051f25e62ea1ad122dd583ece74db54721
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/7/r--.py
8991aaddf2c0f342dcddb879f1d827ed3f50ea3a
[]
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
1510aedb16c9dbb1d1655296c75c68faa736a48d
ebfc05a0e3c771aebe4045f9bb945926e3fbeaf5
/demo/admin.py
2b8e9727a99fb3f2bb962c17361a4533366d09ca
[]
no_license
nurgalix/Books
d26dc5e2fd272e891fe1b82d95ac2a2cce9263fc
ab85de0752249a1fb1ebb1f3307d215c7802a2e4
refs/heads/master
2020-11-27T11:30:09.840435
2019-12-21T12:03:10
2019-12-21T12:03:10
229,421,459
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
from django.contrib import admin from .models import Book, BookNumber, Character, Author @admin.register(Book) class BookAdmin(admin.ModelAdmin): list_display = ['title', 'price'] list_filter = ['published'] search_fields = ['title'] admin.site.register(BookNumber) admin.site.register(Character) admin.s...
[ "nurali.nurgali@gmail.com" ]
nurali.nurgali@gmail.com
4f1f5c574cdad49cfca516d1a275383a77f66f53
7b4d8fb23036711f24dd264a0ffe36418d19316f
/training/ride/ride.py
278c0c358d98341e098d452d905f5d10d1e3048b
[]
no_license
warmar/USACO-Problems
51a56d0a4aa7d8788482140ab17fc8a1c3464473
2c6b38283397531b27e7ecbd743f6c4de83cbfc0
refs/heads/master
2021-08-31T21:04:36.492962
2017-12-22T22:51:03
2017-12-22T22:51:03
115,082,081
0
0
null
null
null
null
UTF-8
Python
false
false
564
py
""" ID: warwick2 LANG: PYTHON2 TASK: ride """ fin = open ('ride.in', 'r') fout = open ('ride.out', 'w') name,group=fin.read().split('\n')[:-1] letters='abcdefghijklmnopqrstuvwxyz' dic = {} for i, letter in zip(range(len(letters)), letters): dic[letter] = i+1 name_product = 1 for letter in name: name_product *= di...
[ "lifelessmango@gmail.com" ]
lifelessmango@gmail.com
42de44b094f3783113cee47b78a3c41af6da842c
6809e06e21895e3366b37b0dff6c0521a093c909
/Labs/Lab1/problem1.py
cc3942b447f4311f7e2580dc6b5b20c49480ca60
[]
no_license
arcPenguinj/CS5001-Intensive-Foundations-of-CS
1820b3d919fd96239d2e04bc0c000ff9e36cadd3
b9281f5f959e0268b75baa2c2b1262712da3780f
refs/heads/main
2023-08-15T04:11:08.968276
2021-10-18T02:54:46
2021-10-18T02:54:46
418,321,674
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
def main (): total_amount = float (input ("what is the total amount of your bill?")) people = int (input ("how many people will split the bill?")) tip = float (input ("the percentage everyone willing to tip?")) amount = (total_amount / people) * tip + (total_amount / people) print ("the num...
[ "noreply@github.com" ]
arcPenguinj.noreply@github.com
22acb203173e23deb4efa6558b9c41228c38119f
7da0a001437ed2785da82cb6dbd2c459b7085295
/python_textmining/0413118_3.py
00d84bf0b38c68035cc4757be277bfcc86d2591d
[]
no_license
d86518/Python-Machine-Learning
dbd29dab948652f96bbae33f3120a0df67f282c8
02ee74e5228bba0cfb4b77204dea5f97b66de9e0
refs/heads/master
2021-10-10T00:34:47.602813
2019-01-05T04:39:45
2019-01-05T04:39:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,889
py
from nltk.tokenize import word_tokenize import nltk from collections import Counter import string from nltk.stem.snowball import SnowballStemmer stemmer = SnowballStemmer('english') from nltk.corpus import stopwords nltk.download('stopwords') stopword_list = stopwords.words('english') from nltk.stem im...
[ "noreply@github.com" ]
d86518.noreply@github.com
0532268807bfa568f5591eacc7e1455a6d0c6bdd
39d7337092314bd014ccb33062c37db4e329052d
/ex17.py
d6bc2489fd545cc0fde32e2a4c66c57e5508c461
[]
no_license
JingGH/Hello-Python3
bf34adde15cc13f171f80e2e66e3ea49b6d990b8
9b9b93b1dcfddca19cd452e3abf05236e077aac8
refs/heads/master
2020-04-27T17:51:13.169607
2019-03-14T14:12:25
2019-03-14T14:12:25
174,533,835
0
0
null
2019-03-08T12:48:41
2019-03-08T12:26:52
null
UTF-8
Python
false
false
2,004
py
<<<<<<< HEAD from sys import argv from os.path import exists # tips:文件编码应该为utf-8 # echo "This is a test file." > test.txt 在win下不可用 script, from_file, to_file = argv print(f"Copying from {from_file} to {to_file}") # we could do these two on one line, how? # indata = open(from_file).read() in_file = open(from_file) pr...
[ "zhangjing@njfu.edu.cn" ]
zhangjing@njfu.edu.cn
760a735560b67a2e77ef1be059169f0c3485441b
2af4732248c3e8513537bf379a02abf9980ce0ee
/test/tools/myrequests.py
acb64aaf2741f5373fd5aac8bc87120f2214d532
[]
no_license
weizhimeng/biyesheji
2fd18346288d339e4106e3e2b57bdadcd80d1e11
1126eea12a239d0e4f586f5316a8d5cbb1e399f4
refs/heads/master
2021-07-11T00:50:45.798562
2020-08-14T10:45:25
2020-08-14T10:45:25
180,568,991
1
0
null
null
null
null
UTF-8
Python
false
false
1,968
py
# -*- coding: utf-8 -*- import sys sys.path.insert(0, '.') import urllib3 from tools.user_agent import UserAgent import requests import lxml.html etree = lxml.html.etree ua = UserAgent() Headers = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'Accept-En...
[ "noreply@github.com" ]
weizhimeng.noreply@github.com
180b782b318217a45b288ec1bf6b7ce903cc0ff7
c92b71615106f7e85ca30d5f55d10222b86164f3
/old/archive_images.py
457f07bc51af48bea7dfa303eaedff065499e81c
[ "MIT" ]
permissive
damienallen/growcam
dce071c52c21ea905aca9846f1e2bff839bc20e2
81565090a50b755fec059be511e2f197f057b7d4
refs/heads/master
2018-12-20T18:22:06.113935
2018-09-22T18:52:24
2018-09-22T18:52:24
55,100,278
0
0
null
null
null
null
UTF-8
Python
false
false
1,236
py
import os import logging from shutil import move # set up logging logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) # create logging file handler handler = logging.FileHandler('growcam_archive.log') handler.setLevel(logging.INFO) # set logging format format...
[ "contact@dallen.co" ]
contact@dallen.co
af06b7653f12b422e7151eb5b49d2339f48d2cef
b7fe2fc9a037a97c2064d99e73d949b8e7741287
/week1/lab06_beautifulsoup4.py
bbb1206c9cf4b8c1e0d65241172e072dec3ec0d7
[]
no_license
andrewintw/learning-python-web-crawler
f56f988e6046e65c580325df0e43a6d998ca0e14
6ab7b08d6b62349ae65e37b4ff123795ff311556
refs/heads/main
2023-06-30T11:50:30.429013
2021-08-01T15:51:40
2021-08-01T15:51:40
390,589,066
0
0
null
null
null
null
UTF-8
Python
false
false
1,068
py
import bs4 import cloudscraper import time url = 'https://www.mobile01.com/forumtopic.php?c=37&s=56' scraper = cloudscraper.create_scraper() found = False while not found: response = scraper.get(url) soup = bs4.BeautifulSoup(response.text, 'lxml') tr_lines = soup.select('div.l-listTable__...
[ "andrew.lin@browan.com" ]
andrew.lin@browan.com
8783a72dddde63b8fc84ec012474bba9cd508d65
7e3358791ccfa5f2f49fbe550ee0e06ce0dd067f
/list-comprehension.py
f21a9be9a9ac165927544c30d26ac1181ad453a9
[]
no_license
Sasmita-Coder/HackerRank
af83c182e5a946d130eeb7d9bbd237510a52e2a4
2481baa17a6761210a6d2388eca67dc8185c3bf2
refs/heads/main
2023-06-02T10:17:07.772988
2021-06-21T16:42:20
2021-06-21T16:42:20
378,996,066
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
if __name__ == '__main__': x = int(raw_input()) y = int(raw_input()) z = int(raw_input()) n = int(raw_input()) ans = [[i,j,k] for i in range(x + 1) for j in range(y + 1) for k in range(z + 1) if i + j + k != n] print ans
[ "noreply@github.com" ]
Sasmita-Coder.noreply@github.com
93b908eaf2d6182a8abaa2dc58a07a235f7a0dc2
08352d51ff1904a963b4e7f1ef598ae6c3854634
/datasets/samplers.py
42161bccb6f8ae04227ba403a7cc7476009da648
[]
no_license
HELL-TO-HEAVEN/prcv2019-mvb-renet
ec9cd69d8ef02eb354363362fcba023403c01850
6911c89980fb0bdeb516b93a502fc201860363c0
refs/heads/master
2022-02-24T22:53:46.759942
2019-11-05T08:31:09
2019-11-05T08:31:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,066
py
from __future__ import absolute_import from torch.utils.data.sampler import Sampler from collections import defaultdict import numpy as np import torch import random class RandomIdentitySampler(Sampler): def __init__(self, data_source, num_instances=4): self.data_source = data_source self.num_inst...
[ "wuh199512@gmail.com" ]
wuh199512@gmail.com
3767aeadb5576307bff507246af46f7f149d214b
458b1133df5b38a017f3a690a624a54f0f43fda7
/PaperExperiments/XHExp210/parameters.py
0e79814e843c3bfd43606772163f13a544dbf5b7
[ "MIT" ]
permissive
stefan-c-kremer/TE_World2
9c7eca30ee6200d371183c5ba32b3345a4cc04ee
8e1fae218af8a1eabae776deecac62192c22e0ca
refs/heads/master
2020-12-18T14:31:00.639003
2020-02-04T15:55:49
2020-02-04T15:55:49
235,413,951
0
0
null
null
null
null
UTF-8
Python
false
false
3,709
py
# parameters.py """ Exp 210 - {'Initial_genes': '500', 'Host_mutation_rate': '0.03', 'TE_progeny': '0.15, 0, 0.55, 1, 0.30, 2', 'TE_Insertion_Distribution': 'Triangle( pmax=0, pzero=3.0/3.0 )', 'Carrying_capacity': '300', 'TE_excision_rate': '0.1', 'Junk_BP': '14', 'Gene_Insertion_Distribution': 'Triangle( pzero=1.0/3...
[ "stefan@kremer.ca" ]
stefan@kremer.ca
33c52dc3df5d875d5aad941584e61dbcefb846f6
70730512e2643833e546e68761ee6cd3d7b95e1d
/01-python基础/code/day15/demo02.py
43e4cf71d1e4e010b2fcfc16cee26cf9c9d9203e
[]
no_license
Yuchen1995-0315/review
7f0b0403aea2da62566642c6797a98a0485811d1
502859fe11686cc59d2a6d5cc77193469997fe6a
refs/heads/master
2020-08-26T23:16:33.193952
2019-10-24T00:30:32
2019-10-24T00:30:32
217,177,822
0
0
null
null
null
null
UTF-8
Python
false
false
1,465
py
""" 异常处理 练习:exercise03 练习:信息管理系统 练习:购物车 shopping__oo.py """ def div_apple(apple_count): """ 分苹果 """ person_count = int(input("请输入人数:")) # ValueError result = apple_count / person_count # ZeroDivisionError print("每人%d个苹果" % result) # 处理目的:让异常(错误)流程 转换为 正常流程 """ 1. 统一处理所有...
[ "2456830920@qq.com" ]
2456830920@qq.com
e924375359f54ede1522b3ccc187df226dc396db
41e28669a7ec08778ebb8b80222bd3643515f03b
/src/patternfly/patternfly.py
af4e20eb47c486bee4f322a448a6ac2c1e412c63
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Rintsi/django-patternfly
92a94d0fc180c420a62c4643ea5231f3ce07dd29
78a443524c08452c58548641d003da3520b19b2f
refs/heads/master
2023-03-01T22:19:33.306125
2021-01-18T22:39:30
2021-01-18T22:39:30
330,493,588
0
1
null
null
null
null
UTF-8
Python
false
false
3,679
py
from importlib import import_module from django.conf import settings PATTERNFLY_DEFAULTS = { "css_url": { "href": "https://unpkg.com/@patternfly/patternfly@4.70.2/patternfly.min.css", "integrity": "sha512-bWjWdYITpRYUxiU5mbATJFGaSyto6l6uH4PM5NBxampYLIcLgZX14nk5h/GE6dchDNsB+VAPyMojw4YCtX9qow==", ...
[ "rintsi@gmail.com" ]
rintsi@gmail.com
886fd6cf3fc2b0ef118a75dda6970d19a4dbe368
a5ba631dddaf2912c309601f8fbdd3c5b494fe20
/src/azure-cli-core/tests/test_application.py
2142b0515bc0f65955d650493cf8b880a7437891
[ "MIT" ]
permissive
saurabsa/azure-cli-old
37471020cd2af9a53e949e739643299f71037565
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
refs/heads/master
2023-01-09T04:00:15.642883
2018-04-23T21:40:04
2018-04-23T21:40:04
130,759,501
0
0
NOASSERTION
2022-12-27T14:59:06
2018-04-23T21:33:34
Python
UTF-8
Python
false
false
4,302
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ "saurabsa@microsoft.com" ]
saurabsa@microsoft.com
a24c64d98cd1aa2290e0a7b928ec7b1c9d502a24
03477749a8cb7aea88ab3f75a0a458c4cf647e72
/AC-agents/keras/actor.py
6a8cd3784b9238b844f617c4274916e9b6586a44
[]
no_license
amirloe/DRL_ASS3
ebc434e7fcccf140daff1d59d68b218d3a93b23b
7a5254a945b11af3e3a6ad28b087efd6dc933e9c
refs/heads/master
2023-02-16T10:12:18.351105
2021-01-14T15:38:01
2021-01-14T15:38:01
324,605,320
0
0
null
null
null
null
UTF-8
Python
false
false
1,740
py
import tensorflow as tf from keras.models import Model from keras.layers import Dense, Concatenate, Input weights_initializer = tf.initializers.GlorotUniform() class Actor: def __init__(self, state_size, action_size, name='actor'): self.state_size = state_size self.action_size = action_size ...
[ "amirloe@post.bgu.ac.il" ]
amirloe@post.bgu.ac.il
e0e3e669df1e49aed4df29deef8a61af3e197166
3551107a3fdc643d96382b24b03f9b5628218431
/chocolate/search/cmaes.py
79fb445191346a2439c2b4f626dd4d63eb2911c1
[ "BSD-3-Clause" ]
permissive
lccostajr/chocolate
3c62a6f9fedd879c7a40d90a02849a37721064c4
a4a310b4d96bb4afcdf99ce482c12481d209fbc6
refs/heads/master
2021-01-01T04:52:58.625918
2017-07-14T18:50:30
2017-07-14T18:50:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,511
py
from itertools import groupby from operator import itemgetter import numpy from ..base import SearchAlgorithm class CMAES(SearchAlgorithm): """Covariance Matrix Adaptation Evolution Strategy minimization method. A CMA-ES strategy that combines the :math:`(1 + \\lambda)` paradigm [Igel2007]_, the mixed ...
[ "f.derainville@gmail.com" ]
f.derainville@gmail.com
eaeeca02077d219d98821fcaf5dbc7bbde70203d
01e29cbbb3eba58e255b9bdaa2d17f800a50073e
/2 Discrete time signals/DiscreteTimeSignals.py
34e35faa9b3ac918cfb703f7fbf80c0cb7a136a8
[ "MIT" ]
permissive
Alja9/Plot-Signal-Processing-with-Python
ecef89018bf911c3a83e4d3da67c31165dce6e83
71021f06a6dd66a1234d6ed8f8b2ccbc5a04fc93
refs/heads/master
2021-01-02T09:54:29.495502
2020-02-13T13:30:29
2020-02-13T13:30:29
239,566,054
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
import numpy as np from matplotlib import pyplot as plt n = np.arange(-1,6) xN = np.array([0,1,2,3,4,5,0]) xN_1 = n+1 xN_11 = [None] * len(n) x=0 for l in xN: if xN_1[x] == 0: xN_11[x] = 1 elif xN_1[x] == 1: xN_11[x] = 2 elif xN_1[x] == 2: xN_11[x] = 3 ...
[ "sayaalja12@gmail.com" ]
sayaalja12@gmail.com
15a52973aad29181b12f44a258c04283d53544fd
d8a766d00c6cdc78ae62204d61c1ff32d4c76914
/menu.py
d4acc49f049bd8e946649c8ef85102e0e0f9f090
[]
no_license
Dosache/RepositorioPython006
759ece3f85178b25591f986f729ce6fd5eb30866
65b9df982c24c288369095001d3d16cff49b04b7
refs/heads/main
2022-12-19T07:04:23.304199
2020-10-03T02:50:13
2020-10-03T02:50:13
300,626,009
0
0
null
null
null
null
UTF-8
Python
false
false
1,717
py
import os #menu def Numeros(n): posi = 0 nega = 0 cero = 0 for i in range(1,n+1): numeritos = int(input("Ingrese un numero: ")) if (numeritos>0): print("El numero es postivo") print("") posi = posi+1 if (numeritos<0): print("El nume...
[ "riquelme.sc9@gmail.com" ]
riquelme.sc9@gmail.com
2469304eb23d9a67d2c373e555ac6e69712e742c
96a0b0f1a8300418519164c51a54ce5dc12b5003
/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build/config.gypi
f66b3084e2cfd137457da1f2d887b02b37d2e394
[ "Apache-2.0", "MIT" ]
permissive
benhalverson/angularWorkshop
8da075a6c9fd4929d9af18e861b29e3637f0d97d
75adefd56563bd2b80ce28d46778aabd422e2bef
refs/heads/master
2021-01-10T19:56:46.406716
2015-02-05T00:05:36
2015-02-05T00:05:36
30,328,385
0
1
null
2019-04-25T05:56:18
2015-02-05T00:06:11
JavaScript
UTF-8
Python
false
false
3,161
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": 1, "host_arch": "x64", "node_install_npm": "true", "node_prefi...
[ "benhalverson33@gmail.com" ]
benhalverson33@gmail.com
c856e9daf7af421e56d6286c9e05ae9ec6b2e402
66893940013495796c9f371e52e287305bcaeb47
/olympus-app/olympus/settings.py
94bb05fa898cc66e6d1e25746e8784963dbde347
[]
no_license
marselester/django-prometheus-via-statsd
b17bcd82dbb0ab8db24c4f86867e851a657ff255
f625d204c334d72afcac1ed88a482c0976f0bee9
refs/heads/master
2021-06-23T03:17:44.359342
2017-06-23T04:29:03
2017-06-23T04:29:03
93,476,076
1
1
null
2020-12-02T01:45:24
2017-06-06T04:27:11
Python
UTF-8
Python
false
false
2,382
py
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'swordfish' DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.c...
[ "marselester@ya.ru" ]
marselester@ya.ru
0c8895e935685ca264dd4d56859d0679fa753124
e164dfb3591162fae383b0519bb19e958f7ffec3
/AdventofCode/pythonDay1.py
151182a8eed13ad79ced7db21e9cba0b397b2ba8
[]
no_license
JordanBradshaw/Coding_Challenges
47eedb405213603c0b927e6d3fd4bb3cdc07417f
6ec1fb4f4b15e7f109550163dd2022a2385d35bc
refs/heads/main
2023-02-05T01:50:13.591734
2020-12-26T00:43:27
2020-12-26T00:43:27
320,424,075
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
# PART 1 fileOpen = open('Day1/inputDay1.txt', 'r') listInt = [int(i) for i in fileOpen.readlines()] twoValuesMult = [x * y for x in listInt for y in listInt if x + y == 2020] print((set(twoValuesMult)).pop()) # PART 2 threeValuesMult = [ x * y * z for x in listInt for y in listInt for z in listInt if x + y + z == ...
[ "jordanbradshaw27@aol.com" ]
jordanbradshaw27@aol.com
65f216806b2947135f7235854a38bc036cdb3264
bb5fd3b4af87c51267bff02dd5b895569956cea8
/bin/git-change-date
9da45a89073ca66ed2384f535ff7309293d8a3a4
[]
no_license
amigrave/toothbrush
5151708ee6fc9d61e976d5847c0b5fceffb59448
8198d7988ebaa312295844047d51d88c7d859333
refs/heads/master
2021-09-29T23:00:39.407958
2020-06-15T13:23:30
2020-06-15T13:23:30
104,474,725
2
1
null
null
null
null
UTF-8
Python
false
false
1,281
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import argparse import subprocess import sys parser = argparse.ArgumentParser() parser.add_argument("commit", help="The commit to edit") args = parser.parse_args() commit = args.commit try: date = subpr...
[ "agr@amigrave.com" ]
agr@amigrave.com
99f6d5092ae5f13632a74eea5f0df8c0d96a43a3
a09aeddddcadd2adc795e49890ad45a118a02dc4
/src/data_loader.py
9891834132daedac435a5e84eef8c8a44873dc53
[]
no_license
Zumbalamambo/Solar-Panels-Detection
7607fa774bf7d9b81e1116a105503ac4fe613963
5f6df0b743ce7915d1075ebe12c5f790eec35f03
refs/heads/master
2020-04-12T15:54:11.913732
2018-05-30T20:15:21
2018-05-30T20:15:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,365
py
import torch.utils.data as data from PIL import Image import os import os.path #from tifffile import imread from scipy.misc import imread, imresize import torchvision.transforms as transforms import torch import numpy as np import cv2 import random import tifffile as tiff IMG_EXTENSIONS = [ '.jpg', '.JPG', '.jpeg...
[ "marcsv87@gmail.com" ]
marcsv87@gmail.com
a1e578e8f76920f85451a52014e38448708f5fb3
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_227/ch54_2020_03_25_12_43_46_843222.py
c6cc1e0e1175dc441e85e676ecb8da1c00a6319b
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
def calcula_fibonacci(n): F=[0]*n F[0] = 1 F[1] = 1 i = 1 while i <= n: F[i + 1] = F [i] + F[i - 1] i += 1 return F
[ "you@example.com" ]
you@example.com
404b2029b028e71a7c90ae5fc5060501e472fbdf
43fd4a6edc07d8021c83e3a382ec5fda9f4d3e18
/tests/test_repo.py
0a99533af77704b7094dc8dd5880ea2029037917
[ "Apache-2.0" ]
permissive
pombredanne/dvc
7aabefb700eed5793024e12e41132e9de3dc63f7
402eb2da0122932c0a8cd04cd1a9b88f6a0bc432
refs/heads/master
2020-05-01T00:21:59.674072
2019-03-22T13:50:30
2019-03-22T13:50:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,656
py
from tests.basic_env import TestDvc from dvc.scm.git import GitTree from dvc.repo.tree import WorkingTree class TestCollect(TestDvc): def setUp(self): super(TestCollect, self).setUp() self.dvc.add(self.FOO) self.dvc.run( deps=[self.FOO], outs=[self.BAR], ...
[ "andrew@ei-grad.ru" ]
andrew@ei-grad.ru
a1fbbc3fc04cd57ed0d79382528d4efe0b8c50b4
a27295e174a341f7f9b792dbf8bd8abb7679c380
/backend/articles/article.py
fb00612507bc67e25781193fff7c11370564f266
[ "MIT" ]
permissive
alilou01/NeuralOPS
02c6b798d2f4dae90f3eaa6972b829dd1fda06fa
f5ea5768a7e0940cb978a7822dd53c3ab63d47b3
refs/heads/master
2020-06-16T18:28:43.761584
2019-07-06T13:56:54
2019-07-06T13:56:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,656
py
import pickle import torch class Article: def __init__(self, arti): self.source = arti["source"] self.author = arti["author"] self.content = arti["content"] self.description = arti["description"] self.title = arti["title"] self.urlToImage = arti["urlToImage"] ...
[ "raysamram@gmail.com" ]
raysamram@gmail.com
fb4173a546d903ee4250a1fb91774ef47ad3ab53
88292515f30df6662d55a992ec1837614287b9bd
/Lab4_6/posts/models.py
8a15a4a3a54afe94447fcb2ec119b8000612d8fd
[]
no_license
JakubPikus/aplikacje-internetowe-22164-185ic
becb73cc4bff3fab0eee0f776a0cee84ba2f219e
2951739a74e3da7e8055afc096cdfee65d89fef8
refs/heads/master
2023-02-22T05:46:41.460594
2021-01-24T04:16:53
2021-01-24T04:16:53
315,351,818
0
0
null
null
null
null
UTF-8
Python
false
false
449
py
from django.db import models from django.contrib.auth.models import User class Post(models.Model): author = models.ForeignKey(User, on_delete=models.CASCADE) title = models.CharField(max_length=50) body = models.TextField() created_at = models.DateTimeField(auto_now_add=True) updated_at = models.D...
[ "kub943@gmail.com" ]
kub943@gmail.com
7377a597b212b5e80263e4d76d6b5e4f66101ac7
6463cc6418eae02bb1436d04dff1dfd4f69b85c6
/Chapter 5/favorite_fruit.py
ae16d5866f48361e68f8267e30f2e460caf6d2af
[]
no_license
danielgaylord/PythonCrashCourse
f0d69ec133973fdc08897c4e0533833d58c7aa9a
8ce5b5862a90c138036f9772d73db0feda5f982c
refs/heads/master
2021-01-17T12:57:11.545532
2016-06-22T02:15:30
2016-06-22T02:15:30
59,448,072
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
favorite_fruits = ["strawberry", "pear", "pineapple"] if "banana" in favorite_fruits: print("You really like bananas!") if "apple" in favorite_fruits: print("You really like apples!") if "grape" in favorite_fruits: print("You really like grapes!") if "pear" in favorite_fruits: print("You really like pe...
[ "danielgaylord@gmail.com" ]
danielgaylord@gmail.com
c6a39643969e44e9b0aa6fa2005d17e2633d91f6
0f7b1937b16239778529c094fdd08b7b93dfb1cf
/retrace/ddrawretrace.py
4f2ff944144f53710e46f764b17deba2174b404d
[ "MIT" ]
permissive
laanwj/apitrace-kms
707cb13cc08827a6e4279329ddf44aed47376abe
96b39d84accfca01897490ff975362c0931b220b
refs/heads/master
2021-01-12T15:51:35.328219
2016-11-24T16:12:58
2016-11-24T16:27:15
71,892,145
3
0
null
null
null
null
UTF-8
Python
false
false
5,543
py
########################################################################## # # Copyright 2011 Jose Fonseca # All Rights Reserved. # # 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 res...
[ "jfonseca@vmware.com" ]
jfonseca@vmware.com
de1485dac110b950249be801a4a06ab687b134c4
fc00b177802c49cf04dc6a8e430093bc14ae9b53
/venv/Lib/site-packages/git/test/test_git.py
060a4c3c16583ef845e9d97e6eff59b0007e2f53
[]
permissive
artisakov/vigilant-journey
9c8264d36da5745374a0d08b0b0288a70f978a11
4fed9026071a64489d26422ba7cd1a9b9cb05e16
refs/heads/master
2022-11-16T03:10:06.418221
2020-07-16T07:33:06
2020-07-16T07:33:06
238,490,887
0
1
MIT
2020-03-01T10:12:22
2020-02-05T16:03:07
HTML
UTF-8
Python
false
false
10,926
py
# -*- coding: utf-8 -*- # test_git.py # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php import os import subprocess import sys from tempfile import TemporaryFile fr...
[ "60698561+artisakov@users.noreply.github.com" ]
60698561+artisakov@users.noreply.github.com
d3b93125a8b6cff22b783911d384af6ebc4e2a4e
60dab7cc9f0f0304acd2069c804752d1679386fd
/datatank_py/DTTriangularMesh2D.py
44735768d069f1a57f1cc76d2cbde456bcd0648b
[ "BSD-3-Clause" ]
permissive
amaxwell/datatank_py
d459578d395e7a08329c722801dcebe8cc1c871f
69404b23e456b23db8ef2e59b484283f40dbb9ec
refs/heads/master
2021-06-24T09:10:27.365004
2020-12-19T23:35:14
2020-12-19T23:35:14
17,044,589
2
0
null
null
null
null
UTF-8
Python
false
false
8,707
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # This software is under a BSD license. See LICENSE.txt for details. import numpy as np class DTTriangularMesh2D(object): """2D triangular mesh object.""" dt_type = ("2D Triangular Mesh",) """Type strings allowed by DataTank""" def __init__(sel...
[ "amaxwell@mac.com" ]
amaxwell@mac.com
a6155ef023589c254e65453a1624e089ee5200d3
5d614198b61ab7e4287c17db1c13ab1c7745dc94
/Classes.py
fd0f8bedd5d5decda61185aae4b564ee5d5b5de7
[]
no_license
cesarak2/EM624_assignments
1bb31971fdd07465c20d832272f88fd824704e59
7f84e872364ff8aaafe3daf687913e8d3c366bed
refs/heads/master
2021-09-07T19:33:42.808252
2018-02-27T23:27:53
2018-02-27T23:27:53
119,113,851
0
0
null
null
null
null
UTF-8
Python
false
false
914
py
class Student(object): """ Description of the class Methods: name: str represents the name of the student Attributes: .... """ def __init__(self, name, course): self.__name = name self._course = course self.__age = None def print_my_name(self): ...
[ "cesarak2+github@gmail.com" ]
cesarak2+github@gmail.com
c52088881bbfb8044d419632a30838c99d52f2b4
7fd5c148da0549124acbc98b2166066244c0813a
/testing/test_parm_yaml.py
3a3310319e8690c4f4af76a35e0d2866ec91ac26
[]
no_license
FPP-1454737567/FPP-homework
b1ff33233509423cee2fe040b453562f61122353
ad89a5c1575afb0ecd89ccf188df91ec6a1b41bd
refs/heads/main
2023-03-10T23:01:20.763549
2021-02-28T08:37:07
2021-02-28T08:37:07
320,301,749
0
0
null
null
null
null
UTF-8
Python
false
false
517
py
# @Time : 2020/12/13 # @Author : FPP import pytest import yaml def get_datas(): with open("data.yml") as f: datas = yaml.safe_load(f) print(datas) add_datas = datas["datas"] add_ids = datas["myid"] return [add_datas, add_ids] def add_function(a, b): return a + b @p...
[ "1454737567@qq.com" ]
1454737567@qq.com
fc592a2a675b1f77409e611c942ec11c431e62ba
849e95a72f4f380d6b31573a0a13e9eccd288838
/legal-api/src/legal_api/models/party_role.py
ead552b83329bfbcb0478b9f16c94e55b44cfa10
[ "Apache-2.0" ]
permissive
bcgov/lear
d9b27e2b44ba607ca13878357a62a0623d54ddee
d90f11a7b14411b02c07fe97d2c1fc31cd4a9b32
refs/heads/main
2023-09-01T11:26:11.058427
2023-08-31T20:25:24
2023-08-31T20:25:24
168,396,249
13
117
Apache-2.0
2023-09-14T20:52:02
2019-01-30T18:49:09
Python
UTF-8
Python
false
false
6,487
py
# Copyright © 2019 Province of British Columbia # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
[ "noreply@github.com" ]
bcgov.noreply@github.com
7b1116460997af5e119696e3f90fb8615fd4e3de
4cbf3ab1162509a5322dc9c31838e6db81e8ea3a
/koordinat/admin.py
0bb9c6cfef7fdcd333b4b742500f1a9215e06a07
[]
no_license
RyanDritama/bridge-crack-monitoring
425a27fed2345cdb2715a4a4dd7c061fb1208ff7
e9edfd17e505e255199ab0de03b251ec7585af30
refs/heads/main
2023-06-29T01:47:32.160256
2021-07-28T11:06:10
2021-07-28T11:06:10
390,318,070
3
0
null
null
null
null
UTF-8
Python
false
false
125
py
from django.contrib import admin from .models import Koordinat admin.site.register(Koordinat) # Register your models here.
[ "noreply@github.com" ]
RyanDritama.noreply@github.com
473dd365fb3ca3dd368745e5d30fe6e70bbc1266
7c763618a2b37cbff09f5b61e2d14e70abae60d8
/stack_balanced_parenthesis.py
3a9bfd8a8062f078dc6a442e1a85698e1cd0bcc6
[]
no_license
shubhamg14/DataStructures-Algorithms
5f669db5a0b5459634885d3759bc44b28a49736d
7c54277d9cd5b4aef9ace91e4c77fe9bd135c142
refs/heads/master
2020-05-24T18:22:47.241861
2019-05-18T21:54:49
2019-05-18T21:54:49
187,408,732
0
0
null
null
null
null
UTF-8
Python
false
false
913
py
from stack import Stack def is_match(p1, p2): if p1 == "(" and p2 == ")": return True if p1 == "{" and p2 == "}": return True if p1 == "[" and p2 == "]": return True else: return False def is_parenthesis_balanced(paren_string): s = Stack() is_balan...
[ "noreply@github.com" ]
shubhamg14.noreply@github.com
3e95fdd18d9acec82483b21c2815e10ae2e465dd
2e86a37cfa3f882b3dd93433bc2cc86e569bc7a6
/web_app/recommendation/recommender.py
b4afdec245b94eef0b52ea4aab8b4cdc7ee9efd7
[]
no_license
peterle93/Recommendations-with-IBM
8a2f2d890b25f0a308e43ca24702312c3aa2f043
2f0758e20097eed8fb5dceb58b197e81072592d7
refs/heads/main
2023-03-26T13:51:44.730291
2021-03-14T03:53:35
2021-03-14T03:53:35
322,931,043
0
0
null
null
null
null
UTF-8
Python
false
false
2,881
py
import pandas as pd import numpy as np # web app use plotly , so remove : import matplotlib.pyplot as plt from recommendation.data_clean import Data_Clean from recommendation.rbrecommender import RBRecommender from recommendation.ucfrecommender import UCFRecommender from recommendation.mfrecommender import MFRecommende...
[ "le.peter1993@gmail.com" ]
le.peter1993@gmail.com
65a977859bc72062caed63bb6ea59ebeb4f24d3c
d02c7b6097573d469d4fc42dffbcb43f72b193fa
/examples/counter/urls.py
83c9e566e14b7e7ce65e180d3a47b6ded1a3a02c
[]
no_license
wmatyskiewicz/django-serverpush
5febeedee6ca6834c6cfb487432bb8e9cdd2357c
51c67df5a4b7157b801d1d53aa63bdf16382a8e1
refs/heads/master
2020-07-01T15:39:30.183320
2014-04-17T07:44:13
2014-04-17T07:44:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('', url(r'^$', 'counter.demoapp.views.list'), )
[ "ziga@hamsworld.net" ]
ziga@hamsworld.net
22e2585734491967052aa67dc5f1eb1ebb10b18f
92d19be0e7825a8ec99a876530fa943cd3b3739c
/telegram_flask_bot.py
c295f1992cb069fd274b43aa67f78def85f1fca6
[ "MIT" ]
permissive
bondgeodima/first
36e11c0d9eb7739270549812b4a9e00520094dde
5fb772cbffd065a1ee17135c369c2878b28122dd
refs/heads/master
2021-07-17T01:44:03.909795
2021-04-01T08:47:04
2021-04-01T08:47:04
68,470,987
0
0
null
null
null
null
UTF-8
Python
false
false
764
py
from flask import Flask, request import requests app = Flask(__name__) def send_message(chat_id, text): method = "sendMessage" token = "1383386139:AAGWeMlF9BW26ZwUwnVuk2pQm6nOvUADxyw" url = f"https://api.telegram.org/bot{token}/{method}" data = {"chat_id": chat_id, "text": text} requests.post(url...
[ "bondgeodima@gmail.com" ]
bondgeodima@gmail.com
961970383721ee8e81d947897598f984e6316067
eb4b2609a0ce2f74569a3691a5ec2f1dcb8112ba
/demo/simple_app.py
00c6a17ac90931fdfc07852dc5d0f38c9aa4bdc3
[ "MIT" ]
permissive
ra2003/Calendarium
15ca05ff142bffbbefe82a8c015f904b60210a05
4c7fa27ed70851dc607ee293c84179e9356b8e2f
refs/heads/master
2022-02-14T14:15:44.882525
2019-08-28T08:46:58
2019-08-28T08:46:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,378
py
#!/usr/bin/python3 import tkinter as tk from tkinter import ttk from tkinter import messagebox from calendarium import Calendarium class Main(ttk.Frame): def __init__(self, parent): super().__init__() self.parent = parent self.text = tk.StringVar() self.init_ui()...
[ "noreply@github.com" ]
ra2003.noreply@github.com
2db38cfeec04bd93ee0dff2f0a9c4a1cf5e1c111
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/dockerized-gists/a1312d211c110ff3855d/snippet.py
f27dd11226e4e07b0fa62f88066af4631a465cb1
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
5,920
py
#!/usr/bin/env python2 """ Automate your browser via telnet. Requirements: * Firefox * MozRepl add-on (https://addons.mozilla.org/en-US/firefox/addon/mozrepl/) - activate the add-on (under Tools -> MozRepl, "Start" and "Activate on startup") Documentation of gBrowser: * https://developer.mozilla.org/en-US/docs/XUL/...
[ "gistshub@gmail.com" ]
gistshub@gmail.com
7a4051effcd4d7d715a73c0ff50a3b60c05a5460
5993170b5a055ce60f207af8e95414909379561c
/frontend/view/config.py
27463473aac1dde0e70b96d271d9a908d23b516f
[]
no_license
vyakunin/zakupki
29b1879be79e23a0616d802103fdb85891e2fcd0
396614e2fb8c22f934a2aab12ea878378c979b22
refs/heads/master
2020-04-06T11:54:21.298112
2012-04-28T10:34:56
2012-04-28T10:34:56
32,123,985
1
0
null
null
null
null
UTF-8
Python
false
false
327
py
#!/usr/bin/python2.5 # encoding: utf-8 """ config.py Copyright (c) Sergey Babenko and Vladimir Yakunin 2011. All rights reserved. """ class Config(object): # TODO: invent a better way to deal with this. # Probably we may store it in DataStore actuality_date = "29 ноября 2011" start_date = "1 января 2007"
[ "mc.vertix@gmail.com" ]
mc.vertix@gmail.com
13e51cf7b1950166defe7ad6a138d5944de27cba
6a94ad9e53d81e09894e7a9c7c27edc1b6ff8123
/reverseflow/generator.py
fbb2d65bb0481cf2a514294473b02f40ccd9a74c
[]
no_license
zenna/reverseflow
c59ed2470dae743202acc2a3a2af0db60d157d5a
7a9f2961fb59e608d0f0cae4f8b10e83cc36a20d
refs/heads/master
2021-05-04T06:20:41.426689
2016-10-13T17:31:58
2016-10-13T17:31:58
66,391,115
0
1
null
null
null
null
UTF-8
Python
false
false
3,347
py
"""Generate random tensorflow graphs""" from rf.util import * import tensorflow as tf import numpy as np import random import pdb class Choice: def __init__(self, transform, prob, **kwargs): assert prob > 0 self.transform = transform self.prob = prob self.kwargs = kwargs ## Predi...
[ "zennatavares@gmail.com" ]
zennatavares@gmail.com
08f678546969bfacb9cf47a6133749b69d114030
47c3a25497269cfe4fde41bb01856acb6566d280
/book_management/models.py
faf7f7111a6733f350fc9165c5171c64f306f4f9
[]
no_license
sreekanth-kc/Books-inventory-System
d6bf847bd33828593513e46d833e7493ea7ae23f
45501ef4a8c9ba67c326e43af965210d38eae1cd
refs/heads/master
2022-07-30T05:22:08.011554
2020-05-19T15:58:36
2020-05-19T15:58:36
265,243,456
0
0
null
null
null
null
UTF-8
Python
false
false
1,170
py
import uuid from django.contrib.auth.models import AbstractUser from django.db import models from rest_framework.authtoken.models import Token from Books_Inventory import settings from django.db.models.signals import post_save from django.dispatch import receiver class AppUser(AbstractUser, models.Model): """ ...
[ "sreekanthc@qburst.com" ]
sreekanthc@qburst.com
e047f38b9cc1f44a36290382d061ca90d7d3df9c
c546730456a2b72865bbb93764be89602f370d8e
/oceans/synop.py
17e92dd4a2422081c002d57092bc11658f991d17
[ "BSD-3-Clause" ]
permissive
anhlpham/python-oceans
164b46afe21f5240a71a7515884b315f8b597704
591e85d1e6421337f031ea65ddf152f2e3e71486
refs/heads/master
2022-04-03T12:52:17.574913
2020-02-12T20:30:07
2020-02-12T20:30:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,880
py
import numpy as np def scaloa(xc, yc, x, y, t=None, corrlen=None, err=None, zc=None): """ Scalar objective analysis. Interpolates t(x, y) into tp(xc, yc) Assumes spatial correlation function to be isotropic and Gaussian in the form of: C = (1 - err) * np.exp(-d**2 / corrlen**2) where: d : Radial ...
[ "ocefpaf@gmail.com" ]
ocefpaf@gmail.com
42a8c0b06bee2d39d2f246bb2c072f3cf3f1dbc7
3a42b62133900d84ebd71bcde6115d3e3c003d18
/test_cg.py
dd7f0547bb436950976e83a5c70c69620da41540
[]
no_license
4Lisandr/cgmc
0d7bc479a4bff98fadd1f47e4e49b7efa4370a36
641dfb9a2b672f75d321ff1c13980c1567237040
refs/heads/master
2023-08-24T11:50:15.366286
2021-10-11T10:00:21
2021-10-11T10:00:21
407,466,774
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
import pandas as pd import requests coingecko = "https://www.coingecko.com/en" r = requests.get(coingecko) fields = ["Coin", "Price", "Mkt Cap", "1h","24h","7d"] table = pd.read_html(r.text)[0][fields] #left symbol only table["Coin"] = table ["Coin"].apply(lambda x: x.split(" ")[2]) for s in fields[1], fields[2]: t...
[ "sumy.ua@gmail.com" ]
sumy.ua@gmail.com
c68f272bb4279ab85f248f79876c827125fbf5f3
6d6a79cfb3cc7e9db5bd84c92ce815da52ddae58
/PX4Flow_I2C.py
4d62529657ba71b224023a6cee203b5fae59b704
[]
no_license
kyle-kelly/PX4Flow_python
d4d86e1be8a41789cf0b41e2a07aa547d3a0a382
9765144dbddbcbfbdc5573fa2cc180c8ceca7163
refs/heads/master
2021-01-25T06:24:43.794343
2017-10-21T17:45:10
2017-10-21T17:45:10
93,566,120
2
0
null
null
null
null
UTF-8
Python
false
false
7,236
py
import smbus import time class PX4Flow_I2C(object): """ Class to hold I2C frame data from PX4Flow typedef struct i2c_frame { uint16_t frame_count;// counts created I2C frames [#frames] int16_t pixel_flow_x_sum;// latest x flow measurement in pixels*10 [pixels] int16_t pixel_flow_y_sum;// latest y f...
[ "kkelly.667@gmail.com" ]
kkelly.667@gmail.com
7571dcccdfd3671f28bc3e9a8266832a0a5b8be7
e17d214b24d2e648ee5c0f888c7679b3a75a9c99
/madlib.py
91cf6af14f2dcb412f6ba2e04fafd2fa25634dde
[]
no_license
AngelDelunadev/python-101
012b7f0e0ec001411b067721363f6edba5ceebbd
78971790a5d071602b0a0bc8ea63e084ca0da046
refs/heads/main
2023-02-11T04:58:35.314751
2021-01-13T16:26:29
2021-01-13T16:26:29
329,095,531
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
print("Please fill in the blanks below: ") print("__(name)___'s favorite subject in school is __(subject)___.") name = input("What is the name? ") subject= input("what is the subject? ") print("%s's favorite subject in school is %s."%(name, subject))
[ "angelluna2016@gmail.com" ]
angelluna2016@gmail.com
157b38ddeaad12bf914205f92359e1d4d0b674be
12c02706f25294e975e1864e8488513d192e69ec
/Códigos_2/sistema-masa-resorte(1).py
54a10abc339188b00cc0299bc87060002b1dc096
[]
no_license
Dishonestink/Dishonestink
b2dc6e6757f7c8edb6a24351dd967bc6e7f0b9b2
61a13d076c31a0b9d5f1bdd629a90d248728a242
refs/heads/main
2023-07-19T06:41:10.011884
2021-09-22T01:22:50
2021-09-22T01:22:50
367,212,672
0
0
null
null
null
null
UTF-8
Python
false
false
3,115
py
# -*- coding: utf-8 -*- """ Created on Sat Oct 24 18:15:30 2020 @author: Admin """ import numpy as np import matplotlib.pyplot as plt m1 = 1.0 m2 = 0.5 m3 = 2.0 k1 = 500.0 k2 = 100.0 k3 = 200.0 k4 = 1000.0 b1 = 1.0 b2 = 3.0 def funciones(t,x,i): #x --> [x1,v1,x2,v2,x3,v3] x1 = x[0] v1 = x[1] x2 = x[2...
[ "dishonestink.2001@gmail.com" ]
dishonestink.2001@gmail.com
cc3a3e754f397f503bf522f5399f45aa1f67c86a
c31d37f23786328e0124d1d92a1abb58b3a23e68
/Writeafunction.py
254d7677ff438689df3d5b96ec8a1e2309f50746
[]
no_license
Santiago78op/hackerrank
6cfdbdb04e49ddcc8eb6fa72327d4ede4bf49523
4040d9012cc340bc7c3e4e67b46153e910a5222e
refs/heads/main
2023-02-27T17:03:26.889350
2021-02-06T19:08:55
2021-02-06T19:08:55
336,616,034
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
def is_leap(year): leap = False if not year % 4 and (year % 100 or not year % 400): leap = True return leap
[ "2993696170101@ingenieria.usac.edu.gt" ]
2993696170101@ingenieria.usac.edu.gt
7754a204926e6e907b58c9854ddc2a349a3796cf
196babffc00795575104960f98f64f614911b72f
/기능개발.py
2a8ae32fb344a8aaa12cce78ff48325cf14fd04b
[]
no_license
do-park/programmers
9c4ff5289eb5c42aaba9ff33612dfd32eded4baa
054603f5a551e4e3d3f4b48d6b04a094b70c0661
refs/heads/master
2022-06-12T03:12:07.154184
2022-06-10T05:22:32
2022-06-10T05:22:32
250,500,372
0
0
null
null
null
null
UTF-8
Python
false
false
729
py
# 코딩테스트 연습 > 스택/큐 > 기능개발 from collections import deque from math import ceil def solution(progresses, speeds): completes = deque() for progress, speed in zip(progresses, speeds): completes.append(ceil((100 - progress) / speed)) print(completes) answer = [] deploy, count = completes.popleft...
[ "dohee.pa@gmail.com" ]
dohee.pa@gmail.com
1092e202125466531c8ebdc1e3aa56b0901d94e6
f5c6015c3c57b4b8bed95b4f55fc8233c5a5697a
/Django - Kelas Terbuka/07-Menggunakan_URL_pada_App/Django_Project/blog/urls.py
46c57dfbdada47135aa2505dd3ed9445716d4857
[]
no_license
rasyidev/learn_django3
0f8c072dbc7ebd2b92b2fb56de47a564aff163d3
b12041b560eaf4012bb358667ffd26cf6784469a
refs/heads/main
2023-03-15T17:07:20.081457
2021-03-02T06:03:29
2021-03-02T06:03:29
335,824,399
0
0
null
null
null
null
UTF-8
Python
false
false
123
py
from django.urls import path from . import views urlpatterns = [ path('', views.index), path('recent/', views.recent) ]
[ "habib.rasyid11@gmail.com" ]
habib.rasyid11@gmail.com
b0c8ebe0e54a04e4890f8d2c85dcc7fe6fc82bc5
fdf51c5834c0f9d854018be9cfc280030ceb52b0
/weather/weather/items.py
a4c45cba68b9c4d037ee454ab4da7914bb0568bd
[]
no_license
gangyu0716/spider_project
70987f1353ae55633fbc7d2c68c79d315f1db9d2
ec475d9def7dcd31c13496c14ca479f2ecf97bf9
refs/heads/master
2021-04-15T06:06:58.742717
2019-07-29T08:05:41
2019-07-29T08:05:48
126,314,799
4
0
null
null
null
null
UTF-8
Python
false
false
444
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class WeatherItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() date = scrapy.Field() week = scrapy...
[ "yu_gang@apowertec.com" ]
yu_gang@apowertec.com
f25e867061cc00a6a48dd776f96286d0422ddb92
79bef927639937a2ae611293497e981a04d54f9f
/huicong/middlewares/useragent_middlewares.py
307fbab0213d1cbc36a4dea2244ae7999edf6e3f
[]
no_license
msean/crawl_huicong_web
aeb2f63bec11322beaad4b54b46731e1ac754497
4c9e1444cb46c013b61230a19c7619b23358188d
refs/heads/master
2020-04-17T16:54:05.782398
2019-01-22T13:17:40
2019-01-22T13:17:40
166,760,815
0
0
null
null
null
null
UTF-8
Python
false
false
2,794
py
import logging import random from scrapy.downloadermiddlewares.useragent import UserAgentMiddleware class RotateUserAgentMiddleware(UserAgentMiddleware): def __init__(self, user_agent=''): self.user_agent = user_agent super().__init__(user_agent) def process_request(self, request, spider): ...
[ "m_wuhua@126.com" ]
m_wuhua@126.com
581791cfa265823f721e7727a7ce6c5d779656a8
853d4cec42071b76a80be38c58ffe0fbf9b9dc34
/venv/Lib/site-packages/networkx/algorithms/community/community_utils.py
4c372fa31ead346c902fa49f657b2843459e478d
[]
no_license
msainTesting/TwitterAnalysis
5e1646dbf40badf887a86e125ef30a9edaa622a4
b1204346508ba3e3922a52380ead5a8f7079726b
refs/heads/main
2023-08-28T08:29:28.924620
2021-11-04T12:36:30
2021-11-04T12:36:30
424,242,582
0
0
null
null
null
null
UTF-8
Python
false
false
894
py
"""Helper functions for community-finding algorithms.""" __all__ = ["is_partition"] def is_partition(G, communities): """Returns *True* if `communities` is a partition of the nodes of `G`. A partition of a universe set is a family of pairwise disjoint sets whose union is the entire universe set...
[ "msaineti@icloud.com" ]
msaineti@icloud.com
de2051f36005099f0b51e74c2c08c7a8aa6f698a
41960a07a8118cf99236972c1e94a36ef00c55c9
/progress_analyzer/migrations/0007_auto_20180213_1614.py
11fd9a49ab46bc723d77d247abb129f88cad53f2
[ "MIT" ]
permissive
wahello/jvb
7288f3fc8099dbbdfa5cdac86b251d4d739f4dca
c87fdf49ae040668323d1a034aa407cfe23c4a1d
refs/heads/bug/aa_ranges/chart2
2022-11-29T12:58:37.561674
2019-06-17T10:50:17
2019-06-17T10:50:17
211,479,327
0
1
MIT
2022-11-19T02:54:15
2019-09-28T09:52:28
null
UTF-8
Python
false
false
423
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2018-02-13 16:14 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('progress_analyzer', '0006_auto_20180213_1109'), ] operations = [ migrations.RenameM...
[ "atulk@s7inc.co" ]
atulk@s7inc.co
36ff95f7833f6cd320ebdc4632a2b862b6c5d5a2
83e5ceee5aeed92ce1c1c14e21197744ca96a96e
/Name.py
d9c0293a7a9c9d29cad368b06d13e0795857f463
[]
no_license
SanjanaManjegowda/PythonAssignments
3899aa76263e34c86e7b2ddcd8e481469b093310
d33fc0d117294d0d96d2bac097099ff1f9b2a70c
refs/heads/master
2020-08-11T16:02:43.995737
2019-12-04T16:57:46
2019-12-04T16:57:46
214,592,272
0
0
null
null
null
null
UTF-8
Python
false
false
59
py
name=input("Enter Your Name") print("Hello" ,name, "!!!")
[ "noreply@github.com" ]
SanjanaManjegowda.noreply@github.com
eab86eb956920bb3b12c74729b6008b7268c2fc5
c001bd1576c064eef69eef172d99594377bcc7eb
/lambda_pumpkin.py
74f99c74a44487cb79e5a1b1d1cc64c44bd31f31
[]
no_license
nfultz/pumpkin
88d4d06b866b4366ab5e33b3d1c8276f8220fca6
65c4a16a6830da4701803c101173e274d47e38e0
refs/heads/master
2021-06-29T20:53:07.531771
2020-07-14T22:03:28
2020-07-14T22:03:28
84,591,865
7
2
null
2017-10-06T22:09:55
2017-03-10T19:02:48
Shell
UTF-8
Python
false
false
442
py
import boto3 def lambda_handler(event, context): instanceID = event['instanceID'] instanceType = event['instanceType'] ec2 = boto3.resource('ec2') instance = ec2.Instance(instanceID) instance.stop() instance.wait_until_stopped() instance.modify_attribute(InstanceType={"V...
[ "nfultz@gmail.com" ]
nfultz@gmail.com
4239b540f62907401da42ff6044c087742f0f322
f52ddcafb4a33c2cbf9ee49505cae3c84c0c1f3c
/setup.py
ae2fe0d2a55d50cd98212e2719d5928a32e8a9a6
[]
no_license
kalyanchatterjee/image_flip
dd693fce04bfb2c11beb4f85a5dd48b22f37050d
aeb1d34f8bfd4225b8d37ce26e1c1e6ad6e2829d
refs/heads/master
2020-06-12T02:03:45.792115
2019-06-27T20:56:42
2019-06-27T20:56:42
194,160,437
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jun 27 14:07:53 2019 @author: kalyan.chatterjee """ import sys try: from PIL import Image except ImportError: sys.exit("""You need the Pillow module! Install it by running "pip install Pillow" """)
[ "Kalyan.Chatterjee@cantire.com" ]
Kalyan.Chatterjee@cantire.com
acd444692cb0f73b17cb72f114939466ca2ca538
deab03581c41836901ebaa7a5c72b2e21ec6be86
/algos/sorts.py
eb6781723abb637622655e8fe075edfddc6fff38
[]
no_license
alvinburgos/contest-stuff
bf352061419d0695d7f322e4aa9574e48900d655
01cf26d66a07fab61540614e43284c549605e02e
refs/heads/master
2016-08-04T07:55:00.583083
2014-12-08T18:40:38
2014-12-08T18:40:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
761
py
import random def insertsort(a, i, j): for x in xrange(i+1, j): tmp = a[x] while x > i and tmp < a[x-1]: a[x] = a[x-1] x -= 1 a[x] = tmp def merge(a, i, m, j): l = [] k1 = i k2 = m while k1 < m and k2 < j: if a[k1] < a[k2]: l.appe...
[ "ajmburgospp@gmail.com" ]
ajmburgospp@gmail.com