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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6075930272e040694012e964f04ec7d4bd71de8 | 7b314c39de4851891f334017f10698b30edbf610 | /main.py | 527531e35463c73e1899b1f65945dd95519f8a2a | [] | no_license | angelolihas/testapp1api | 8720d6e0b4bbdeb4f048583f64ad3fd33eb9e371 | dfa12a8c83d00eaa6d060997dd759580a7956bf6 | refs/heads/master | 2023-01-07T03:10:22.156623 | 2020-11-12T23:49:40 | 2020-11-12T23:49:40 | 312,423,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | import requests
def get_request():
response = requests.get('URL')
json_response = response.json()
print(json_response)
return json_response
if __name__ == '__main__':
get_request()
| [
"angelo.lihas@gmail.com"
] | angelo.lihas@gmail.com |
ddc87bfca79fabe3d914696f58497118d2d0d193 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_com_adobe_cq_wcm_mobile_qrcode_servlet_qr_code_image_generator_info.py | d51b3347b77c7b18680b18281fcd2bb012c5ead3 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,359 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-... | [
"michael.bloch@shinesolutions.com"
] | michael.bloch@shinesolutions.com |
94e3faddb581f06f82806b5938d8e3a57f3f58da | 4c1360643fa444e6c96e4cd1af709662b79f632c | /api/tests/test_settings.py | 0efab65543bc96c3e3d612389cae227212181854 | [] | no_license | pascalchevrel/shipit | aa02e8fbdf96ece798a8d1e323e014b7c1b4b8a8 | 273c14a2631a2e7166ae654c4a8a7cdf57286018 | refs/heads/master | 2023-03-16T08:15:52.319768 | 2021-04-20T10:29:25 | 2021-04-20T10:29:25 | 216,795,185 | 0 | 0 | null | 2023-03-07T13:02:19 | 2019-10-22T11:18:02 | Python | UTF-8 | Python | false | false | 3,380 | py | import os
def flatten(lst):
return [item for sublist in lst for item in sublist]
def test_scopes(monkeypatch):
FAKE_ENV = dict(
APP_CHANNEL="development",
TASKCLUSTER_ROOT_URL="fake",
TASKCLUSTER_CLIENT_ID="fake",
TASKCLUSTER_ACCESS_TOKEN="fake",
AUTH_DOMAIN="fake",
... | [
"noreply@github.com"
] | pascalchevrel.noreply@github.com |
a96d952d1a399291f4734fc2da61c0f1807e72c0 | 72624033973a14ccf943e7a4cbfb51b88e8db3f0 | /lesson/json_parsing.py | 1959ad43c05cae4bf9b1846d40cf2762a65cd017 | [] | no_license | brskasimova/LearnQA_PythonAPI | 4441690bc92f98899e1958755734877ee3f264f8 | 98bdf01c782ce7d3fc6c88a183001b956d87b2b8 | refs/heads/master | 2023-06-23T20:20:15.340836 | 2021-07-31T19:24:22 | 2021-07-31T19:24:22 | 385,873,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | import json
json_text = '{"messages":[{"message":"This is the first message","timestamp":"2021-06-04 16:40:53"},{"message":"And this is a second message","timestamp":"2021-06-04 16:41:01"}]}'
obj = json.loads(json_text)
key = "messages"
if key in obj:
value = obj[key][1]
print(value["message"])
else:
pri... | [
"brskasimova@gmail.com"
] | brskasimova@gmail.com |
e50d54beea6551c36fdd72ef808ecc04b47ee774 | 1445a2e276630a3ba30522a7efd8bd35387ac525 | /sheets/getPointData.py | e5065f4d3382872d7b3f212385503e5bf9432af4 | [] | no_license | Wu-jiaming/score | 7cbc071fc28b2c909c477abe319277f0ccd4e7f4 | e8b679ad8e88164de2070e1d08e92ab24f440aa8 | refs/heads/master | 2020-03-22T15:57:10.492895 | 2018-09-02T15:00:48 | 2018-09-02T15:00:48 | 140,291,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,433 | py | """
获取结点信息,保存为【(),()】格式,
对数据进行排序
格式转换为[{key:value}]格式,目的是分组
分组之后,自个组的key,value保存成[[key],[key]],[[value],[value]]
"""
import re
from operator import itemgetter
from itertools import groupby
"""
获取相关节点
"""
def get_point(sourcePath):
print("sourcepath:", sourcePath)
fR = open(sourcePath, 'r+' , enc... | [
"754205661@qq.com"
] | 754205661@qq.com |
86cbdae109b4c825963487d37ab3fd54f673eda2 | 0ec9e67e3d11982e1c6eb23375490217f9960dd3 | /UCB_Python/Week3_Python1/week03 day3 python1/07-Ins_Conditionals/conditionals.py | ac2d92ce67378b997e17a0524bbf2d5d383dba0e | [] | no_license | yamscha/repo_class | 53fb317394b3a469c1b8f1d5dfbcf89982b4f0c4 | d8080ea15c2387789f89292412a7a7a047df1a21 | refs/heads/master | 2020-05-02T10:59:29.839497 | 2019-03-27T03:54:50 | 2019-03-27T03:54:50 | 177,914,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py |
x = 1
y = 10
# Checks if one value is equal to another
if(x == 1):
print("x is equal to 1")
# Checks if one value is NOT equal to another
if(y != 1):
print("y is not equal to 1")
# Checks if one value is less than another
if(x < y):
print("x is less than y")
# Checks if one value is greater than another
if(... | [
"yamini@github.com"
] | yamini@github.com |
d195b352ac21be2ab82b0a6a1eedc768c5b2782d | 7abdff02d94848c1d5a5f1926596b7e72e47b5c5 | /.ipynb_checkpoints/mission_to_mars-checkpoint.ipynb | 76356d246a3c06428cd519746747a599ad49b2f1 | [] | no_license | rsimon5/Mission-to-Mars | 4edab055471d2cdff35874fd4fb75d86549064ac | bb21596ddb5db94e6872af41db9b40dfa0599bef | refs/heads/master | 2020-06-01T06:34:02.836899 | 2019-06-22T14:53:03 | 2019-06-22T14:53:03 | 190,680,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789,309 | ipynb | {
"cells": [
{
"cell_type": "code",
"execution_count": 64,
"metadata": {},
"outputs": [],
"source": [
"from bs4 import BeautifulSoup\n",
"from splinter import Browser\n",
"import requests\n",
"import pymongo\n",
"import pandas as pd \n",
"import time\n",
"import datetime"
... | [
"rsimon5@gmu.edu"
] | rsimon5@gmu.edu |
06a103582032ffff0d67b7ec6ac252dc5b255a8d | 91d48932143ced234aa13b35a597b809c757e928 | /cyclegan/load_data.py | ca9b07ce1717e3fe5c4769447ec1845be6ef5d6b | [] | no_license | starbucksdolcelatte/FittingroomAnywhere2 | 9b86e76b592960c1350f54ace84a2e0cc64ab7e7 | 147e04eb8f326f25bafdb917e1b1d4974798d230 | refs/heads/master | 2020-07-11T17:16:38.331533 | 2019-10-11T03:18:34 | 2019-10-11T03:18:34 | 204,602,862 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,698 | py | import os
import numpy as np
from PIL import Image
from keras.utils import Sequence
#from skimage.io import imread
def load_data(nr_of_channels, batch_size=1, nr_A_train_imgs=None, nr_B_train_imgs=None,
nr_A_test_imgs=None, nr_B_test_imgs=None, project_dir = '', subfolder='',
generator=Fals... | [
"seoyoon9535@gmail.com"
] | seoyoon9535@gmail.com |
3402c06780d9b02619086786a13c693ba57cb730 | 8e936ff1b7b1dfe5cce859691cd45037552c1568 | /kiasa.py | 37025b2540366f07b2cdd80a600f1d55c1a8b217 | [] | no_license | mortimervonchappuis/Kiasa | be0db9950ea5ffa536d3f28baba72a35f5855a9d | b79743066bdbb159ef3d9a9fce1b505fd2c3c000 | refs/heads/master | 2020-12-21T00:44:09.135543 | 2020-02-02T22:45:25 | 2020-02-02T22:45:25 | 236,256,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,062 | py | import pathos.pools as p
import chess.polyglot as opening
from random import shuffle
from copy import deepcopy as copy
from board import *
from time import time, sleep
from math import exp
class Kiasa:
def __init__(self, opening_book=True, variation=True, depth=3, offset=3):
self.chess = Board()
self.opening_boo... | [
"mortimervonchappuis@protonmail.com"
] | mortimervonchappuis@protonmail.com |
41a86538fd422e72ba79da31cd965f050d59b26c | 9e27cc85675ec764a62764decdc85d6b57a10be3 | /kaggle_kernel.py | 63533471d892f754944895ad665a85aa841ca8ee | [] | no_license | jsamaitis/Home-Credit-Default-Risk-2018 | 07886e3992301ca8e855773d615a41eecf647b5d | 26d690eabe137d210e963b2daf36d03adfc057d4 | refs/heads/master | 2020-03-24T21:13:48.635974 | 2018-08-13T08:13:26 | 2018-08-13T08:13:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,043 | py | # HOME CREDIT DEFAULT RISK COMPETITION
# Most features are created by applying min, max, mean, sum and var functions to grouped tables.
# Little feature selection is done and overfitting might be a problem since many features are related.
# The following key ideas were used:
# - Divide or subtract important features t... | [
"aukslius@gmail.com"
] | aukslius@gmail.com |
e179478d80e77a3260a018b7c4f15a9b826bef9c | 3f364166a2e89c57c8f823d68568eea84920817e | /comment/migrations/0001_initial.py | b76d98a708b72b9dcf6c574f34888243be4413ef | [] | no_license | damondengxin/forum | 84f66b90c8660e43c5f6fccd89d267c083c0a77f | 8fd4337cb63a63f7aaf108cfeba90c7043d02e83 | refs/heads/master | 2020-04-12T05:37:48.748073 | 2016-10-13T07:27:44 | 2016-10-13T07:27:44 | 64,310,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-01 01:48
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('article', '0003_auto_20160901_0948'),
... | [
"air@MacbookdeMacBook-Air.local"
] | air@MacbookdeMacBook-Air.local |
ee4b23bbf32042a37a0d791f5b2ca1db58e8570e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2741/60666/264322.py | a8362f4be09e9d763b52af7aceca5c10738a7630 | [] | 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 | 257 | py | nums=eval(input())
if len(nums)<2:
print(nums)
else:
count=1
temp=1
for i in range(len(nums)-1):
if nums[i]<nums[i+1]:
count+=1
else:
temp=max(count,temp)
count=1
print(max(count,temp)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4861ac85dd04717d62ba306fdcc2924c58a23062 | 8ffc97dcf9bab5c6d2a75039ed12b2bc9acf6548 | /HMWK_03_saa3053/ParseTree/Literal.py | 0b30ca2c4aa398e8ac5f77904653d72b9b8a514e | [] | no_license | saidadem3/compilers | 2f88f51d57dbffd9623de01c318d499f2e7d06df | 56e4b07485d412325970170c7b1544b5e914621b | refs/heads/master | 2022-03-08T11:26:16.555606 | 2019-10-24T11:00:47 | 2019-10-24T11:00:47 | 213,783,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | # Adem, Said
# saa3053
# 2019-10-23
#---------#---------#---------#---------#---------#--------#
import sys
from .common import *
#---------#---------#---------#---------#---------#--------#
class Literal() :
def __init__( self, lineNum, valType, value ) :
self.m_NodeType = 'Literal'
self.m_LineNum ... | [
"saidadem3@gmail.com"
] | saidadem3@gmail.com |
50aa9ec1e8375790464d80b6b8c2427b866fb928 | 5e9d846c15a736f6ffdbeb567184c51267af76f7 | /create_sql_engine.py | 786e44345cb7b48045e5fe5488456649804ebba5 | [] | no_license | soffenberger/resistor | 82f5e6bf47bbca123a6985d8165fbf894ae50255 | b9146c30488a16d19f82196afc7f9669fad7b001 | refs/heads/master | 2016-09-12T16:29:12.243786 | 2016-05-16T05:55:12 | 2016-05-16T05:55:12 | 58,840,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | import os
import sys
import sqlite3 as sql
import numpy as np
import io
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
from sqlalchemy import *
Base = declarative_base()
class img(Base):
__tablename__ = 'img'
id = Column(Integer, ... | [
"soffenbe@asu.edu"
] | soffenbe@asu.edu |
e057ef624b94fe0256123ec91bdf0734eb2d87bd | a79bc871a72d2c39bcbb7cb4242a7d469770bed0 | /masking_api_60/api/file_format_api.py | 750b5fa51da54a2f71b8f4f29ba1d59f7edf3fc1 | [] | no_license | pioro/masking_api_60 | 5e457249ab8a87a4cd189f68821167fa27c084f2 | 68473bdf0c05cbe105bc7d2e2a24e75a9cbeca08 | refs/heads/master | 2023-01-03T08:57:49.943969 | 2020-10-30T11:42:15 | 2020-10-30T11:42:15 | 279,624,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,223 | py | # coding: utf-8
"""
Masking API
Schema for the Masking Engine API # noqa: E501
OpenAPI spec version: 5.1.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import... | [
"marcin@delphix.com"
] | marcin@delphix.com |
ef74b6c780caea8be24fb7a36c1bd5e228e66148 | f36a9701975eec736b5e43ab09ec318eee80c8cc | /pyspeckit/spectrum/widgets.py | ae949705761f3d5018daacf9ece04cedd453487e | [
"MIT"
] | permissive | soylentdeen/pyspeckit | e995f38531256d85313038a0ddeb181a4c6480b8 | 11c449c6951468f2c07dfda3b1177b138f810f16 | refs/heads/master | 2021-01-18T11:32:51.659032 | 2013-06-26T00:39:22 | 2013-06-26T00:39:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,757 | py | from matplotlib.widgets import Widget,Button,Slider
from matplotlib import pyplot
import matplotlib
class dictlist(list):
def __init__(self, *args):
list.__init__(self, *args)
self._dict = {}
self._dict_index = {}
for ii,value in enumerate(self):
if len(value) =... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
9057ed04cf369d4a838d9fe112ebf8c99e9ee024 | 572b5639ceccd7d5b0551af2376283c126663d45 | /account/forms.py | 47c4a988e56e3c2a0f7ed0ec88900f6cf615d4c9 | [] | no_license | luoying1105/myblog | 348cb363413f917312d8507fb04ae8fb235bce59 | 9f13d228772027797c1b915c1a19b5b5841bd97b | refs/heads/master | 2020-07-02T22:08:32.771781 | 2016-11-29T02:09:45 | 2016-11-29T02:09:45 | 74,278,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | from django import forms
from django.contrib.auth.models import User
from blog.models import Profile
class UserEditForm(forms.ModelForm):
class Meta:
model = User
fields = ('first_name', 'last_name', 'email',)
class ProfileEditForm(forms.ModelForm):
class Meta:
model = Profile
... | [
"411426150@qq.com"
] | 411426150@qq.com |
33c679ef31d8a55ff6125c693fa10ac8d9f24460 | 795df757ef84073c3adaf552d5f4b79fcb111bad | /hypercube/hypercube_integrals.py | d41fbf8b960343823c0f1eb202c112bb2e36bffd | [] | no_license | tnakaicode/jburkardt-python | 02cb2f9ba817abf158fc93203eb17bf1cb3a5008 | 1a63f7664e47d6b81c07f2261b44f472adc4274d | refs/heads/master | 2022-05-21T04:41:37.611658 | 2022-04-09T03:31:00 | 2022-04-09T03:31:00 | 243,854,197 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,020 | py | #! /usr/bin/env python3
#
def hypercube01_monomial_integral ( m, e ):
#*****************************************************************************80
#
## HYPERCUBE01_MONOMIAL_INTEGRAL: integrals over the unit hypercube in M dimensions.
#
# Discussion:
#
# The integration region is
#
# 0 <= X(1:M) <= 1,
#
#... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
74e35392f5c4e36cd4980a15661af109baa74410 | 516b2b403bf9033fe4fedbab014b09710b21efd8 | /mdts/mdts.py | 276c7c6a84fff8ebb04f5ac5bc9d6d9c772bbdba | [] | no_license | usccolumbia/MDTS | 77f4960a975b1b4f0ff2425e1dee5c23deafaba5 | 56c97a56eb3a9d48541998b60af43f385377fdbe | refs/heads/master | 2020-03-31T11:36:55.420586 | 2018-02-21T08:12:15 | 2018-02-21T08:12:15 | 152,183,835 | 1 | 0 | null | 2018-10-09T03:44:07 | 2018-10-09T03:44:07 | null | UTF-8 | Python | false | false | 14,498 | py | from __future__ import division
from node import Node
from result import Result
import collections
import random
import numpy as np
import sys
import combo
import math
import ast
class Tree:
def __init__(self, get_reward, positions_order="reverse", max_flag=True, expand_children=1,
space=None, ca... | [
"thaer.dieb@gmail.com"
] | thaer.dieb@gmail.com |
5efdcd21a7640545a98bab365bbcc45294f53786 | bafb1d32f798e69b2d811495f615f36a8761d776 | /simplemooc/core/urls.py | 7b54cb2c9250c416d5a19b1a41e4de9da8f5d8da | [] | no_license | andreylucasantosss/TCC-Evolution | 8c02eadd798ba8f7d773c8adcd5417efb0734f22 | 94a9fb15ba4ff0c6c4ecc92444840e0d8365ba39 | refs/heads/master | 2022-12-10T00:47:00.385427 | 2019-12-06T18:12:57 | 2019-12-06T18:12:57 | 216,825,473 | 0 | 0 | null | 2022-11-22T04:17:51 | 2019-10-22T13:49:43 | HTML | UTF-8 | Python | false | false | 190 | py | from django.conf.urls import include, url
from simplemooc.core import views
urlpatterns = [
url(r'^$', views.home, name='home'),
url(r'^contato/$', views.contact, name='contact')
] | [
"andrey.santos.as1@votorantim.com"
] | andrey.santos.as1@votorantim.com |
a6fa615f7fb4b26b658dab52008462a204aaa48f | c8fc387b0b440bf1681e581adaac5b5ef718525f | /project/src/utils/output_util.py | e49077470bc0acbdcf2c936edf1f99a927b514f5 | [] | no_license | MingjunGuo/bdt_5002 | bc0f37a2f5453d531a6b73c1dccc959c1cc7311c | 591ec7f3854d5d0e1ffd47f2086776253ce405ce | refs/heads/master | 2020-04-01T13:09:35.819447 | 2019-01-24T06:50:28 | 2019-01-24T06:50:28 | 153,239,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,637 | py | # -*- coding: UTF-8 -*-
## 主程序
import numpy as np
import pandas as pd
import os
def write_value_to_csv(city,
file_name,
values,
output_features,
day=True,
seperate=False,
... | [
"noreply@github.com"
] | MingjunGuo.noreply@github.com |
bb07eb8c3aa2bc5fe116eb4b06c0d8860091b772 | 5175cba1f24acd31db04bdf130d2da69eee31336 | /tag_OG_text_with_XML_enit.py | 0d42bb9e4b12848ea3ca2d4bbbedc3ea6f60fe9d | [] | no_license | magpie1984/gv_info_extractor | f5ceb6a04368f5f918ed16749420afda866162f9 | 6fff8b4ac144a1feca57f310f0dbfcaaafc8cfbf | refs/heads/master | 2021-08-23T13:02:56.567244 | 2017-12-05T00:49:18 | 2017-12-05T00:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,935 | py | import xml.etree.ElementTree
import sys, json, re
import traceback
import os
from time import sleep
from unidecode import unidecode
reload(sys)
sys.setdefaultencoding('utf8')
def load_xml(input_filename):
xmldoc = xml.etree.ElementTree.parse(input_filename).getroot()
return xmldoc
def gather_entites(xmldoc):
... | [
"mike.partin@gmail.com"
] | mike.partin@gmail.com |
57dcf4ac4135b21514dedd7221615770f17b6223 | 5b315e1606c8b3c753431f028e9bb76600148db7 | /todo_list/admin.py | 857b3bd6df7d0d13fc69369d7feeffcd07676f99 | [] | no_license | abel-masila/django_todo | 0e23d45fefc45a0e9463639dbe7125d4a0fec8cf | 634914967dc024e1a765fa8618481a23285cea7e | refs/heads/master | 2020-04-30T01:06:40.794234 | 2019-03-23T13:40:02 | 2019-03-23T13:40:02 | 176,520,149 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from django.contrib import admin
from .models import List
# Register your models here.
admin.site.register(List) | [
"abelmasila@gmail.com"
] | abelmasila@gmail.com |
147b3bc0148ddc69e31304519e65c37ad3c790e6 | 80de5ac86ce85b5aa93788d5d2325d88b87b47f7 | /cf/1334/c.py | 0d9603f1d8a8e97a68d5e3f095f080f1f5405a4e | [] | no_license | ethicalrushi/cp | 9a46744d647053fd3d2eaffc52888ec3c190f348 | c881d912b4f77acfde6ac2ded0dc9e0e4ecce1c1 | refs/heads/master | 2022-04-24T07:54:05.350193 | 2020-04-27T20:27:31 | 2020-04-27T20:27:31 | 257,911,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | t = int(input())
for _ in range(t):
n = int(input())
a =[]
for i in range(n):
u, v = [int(x) for x in input().strip().split()]
a.append([u,v])
if n==1:
res=a[0]
else:
mn = 10**10
si = None
for i in range(1,n):
if a[i][0]>a[i-1][1]:
... | [
"pupalerushikesh@gmail.com"
] | pupalerushikesh@gmail.com |
a5c946729ef57bcccc32f61428f82484fc908fba | f7387905bfe862e525602a5a3e997de088684e10 | /Swagger/python-client/setup.py | bea8806adae6917c4d8806ab2f19f8cfe88674b4 | [] | no_license | AnirudhNagulapalli/Flyingsaucers | a5724f81e1dec698cc3bcebda182f04e6fb4e07a | a429300273626f259ee158ba8a97d44a23d68406 | refs/heads/master | 2021-01-23T14:30:53.828674 | 2017-12-11T09:37:58 | 2017-12-11T09:37:58 | 102,689,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | # coding: utf-8
"""
Flying Saucers
This is for MSCS710 Project Course
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import sys
from setuptools import setup, find_packages
NAME = "swagger-client"
VERSION = "1.0.0"
# To install the library, run... | [
"anirudh.nagulapalli1@marist.edu"
] | anirudh.nagulapalli1@marist.edu |
17e6f75ed18e0677f37465f1e06fd694ac1f207c | 7790e3a3f2de068fef343585ec856983591997a2 | /employee/templatetags/custom_math.py | f84010231a266d25ecf80f4bd85b0e1e5c8705ff | [] | no_license | mehdi1361/tadbir | ce702a9a02672826f0bf06e8d5cf0644efe31949 | c0a67710099f713cf96930e25df708625de89a6f | refs/heads/master | 2021-06-04T07:35:37.624372 | 2018-07-23T05:25:04 | 2018-07-23T05:25:04 | 148,870,028 | 0 | 0 | null | 2019-10-22T21:40:28 | 2018-09-15T04:40:26 | HTML | UTF-8 | Python | false | false | 484 | py | from django import template
from django.db.models import Sum
from bank.models import File
register = template.Library()
@register.simple_tag
def add(a, b):
return a + b
@register.simple_tag
def count_files(user):
files = File.objects.filter(employees__employee=user)
return files.count()
@register.simp... | [
"mhd.mosavi@gmail.com"
] | mhd.mosavi@gmail.com |
14b450a72c93ad9b78cf7685fe19e4122eb15c24 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_mp21.py | 562fa5609e8ddc81fe2febf073542f27d358c618 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | from xcp2k.inputsection import InputSection
from xcp2k.classes._mp2_info1 import _mp2_info1
class _mp21(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Method = None
self.Big_send = None
self.MP2_INFO = _mp2_info1()
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4ae48a9d376d47aaba570ad7568afe37cbb02418 | 6953e2f2ef4d70f940dfbe0671f1d2ef6bb1bd03 | /classtutorial.py | 51d73ab22cb1123c9a0693d0cb06b496a8cd283e | [] | no_license | mogarg/Python-Tutorial-Lynda | 2e786880a2e98b067095af5fefb4b1b3adac4bd2 | 452326453ddb6990d81e1a6b5a478da72f8769cb | refs/heads/master | 2021-01-17T17:44:27.357207 | 2016-06-18T22:45:07 | 2016-06-18T22:45:07 | 58,245,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | #!/usr/bin/python3
class Fibonacci():
def __init__(self, a, b):
self.a = a
self.b = b
def series(self):
while(True):
yield(self.b)
self.a, self.b = self.b, self.a + self.b
f = Fibonacci(0, 1)
for r in f.series():
if r > 100: break
print(r)
| [
"matpsycic@gmail.com"
] | matpsycic@gmail.com |
616cf3654526e0f3ecb4547651c5536bb2e4bc82 | 9c5116ab446a0fba4dfaaa1685cbd3a1042dc054 | /kubernetes/test/test_v1_image_stream.py | 3129b06ad6d6ea315c9b6d88a781b4978cc33449 | [
"Apache-2.0"
] | permissive | caruccio/client-python | fc11a354ce15507c94308e35b6790b6776e01e6e | cb65186027ce68beedcd7752c488b8e3b5c0968e | refs/heads/master | 2021-01-25T08:18:45.601502 | 2017-06-08T13:14:06 | 2017-06-08T13:14:06 | 93,747,698 | 0 | 0 | null | 2017-06-08T12:37:32 | 2017-06-08T12:37:32 | null | UTF-8 | Python | false | false | 4,144 | py | # coding: utf-8
"""
OpenShift API (with Kubernetes)
OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is... | [
"mateus.caruccio@getupcloud.com"
] | mateus.caruccio@getupcloud.com |
86e28e058036e1492b3a36eb2e82fa2641ec4989 | 2deddb3a19163f9cc461bdb9c2dacfdbb57b9f47 | /sfbay_cons_tracer_00.py | dc2f2067ff4a50328831179e3832cba4d0b2f4f5 | [] | no_license | rustychris/sfbay_cons_tracer | f1548bbf06841d56790110e1019c92ee60e5a142 | 7d7653d5747b638a10ebdb3dac7b2b89c18cbc1c | refs/heads/master | 2021-06-11T02:01:16.386183 | 2019-09-06T19:33:32 | 2019-09-06T19:33:32 | 128,102,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,917 | py | """
Copied from
/home/rusty/models/delft/nbwaq/spinupdate/spinupdate_wy2013_D02cons_tracer.py
Moving on to 4/28/16, np=4, D02 hydrodynamics
this one does the full list of passive tracers
"""
import os
import shutil
import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger()
import numpy as ... | [
"rustyh@sfei.org"
] | rustyh@sfei.org |
73616b9e93361ad0fc86bdeef7e8e7d1c8c6c9fb | c86043aff8b6803102e44bc0f323b5dd3e2e3a2d | /comp/plot_numbers.py | b8e06d6ceeeb439f02390acf3575a407cef2e273 | [] | no_license | ivotron/open-comp-rsc-popper | 6a3a2d6fe0b17aae5d4f26ff25ed186187e3c714 | 05acba677f68f3fea6c88245c84d181384163a96 | refs/heads/master | 2020-03-16T21:54:13.804728 | 2018-10-18T08:16:16 | 2018-10-18T08:16:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | import sys, matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as pl
import numpy as np
fpath = sys.argv[1]
data = np.load(fpath)
pl.plot(data)
pl.savefig('comp/data/original.png')
| [
"ivo.jimenez@gmail.com"
] | ivo.jimenez@gmail.com |
4d23735583d49ed6fba1925bf636572e5d146be5 | 2f2e9cd97d65751757ae0a92e8bb882f3cbc5b5b | /121.买卖股票的最佳时机.py | 7cd0e5ce63fc4da08187b59ea4f973e49037b644 | [] | no_license | mqinbin/python_leetcode | 77f0a75eb29f8d2f9a789958e0120a7df4d0d0d3 | 73e0c81867f38fdf4051d8f58d0d3dc245be081e | refs/heads/main | 2023-03-10T18:27:36.421262 | 2021-02-25T07:24:10 | 2021-02-25T07:24:10 | 314,410,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | #
# @lc app=leetcode.cn id=121 lang=python3
#
# [121] 买卖股票的最佳时机
#
# @lc code=start
class Solution:
def maxProfit(self, prices: List[int]) -> int:
if not prices:
return 0
min_price = prices[0]
max_profit = 0
for i in range(1, len(prices)):
max_profit = max(pri... | [
"mqinbin@gmail.com"
] | mqinbin@gmail.com |
a1d1ee62356d167897f0766db41dcf93a9ca6203 | c59a02471f295f93b56f9fadd51b47ec24414014 | /historical/myenv/lib/python2.7/site-packages/pip/_vendor/requests/adapters.py | b48165bb7e18aced872069dd55d5b3a7989ca46d | [] | no_license | jgdevelopment/Chronos-Backend | a3abe8bfea88d1456d03b2eaf411ab31d6b83fc1 | 548af4d7c8edc81c0b860862999dc0156b2e1fa2 | refs/heads/master | 2021-01-01T19:51:59.551831 | 2014-10-21T11:05:57 | 2014-10-21T11:05:57 | 16,659,327 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,968 | py | # -*- coding: utf-8 -*-
"""
requests.adapters
~~~~~~~~~~~~~~~~~
This module contains the transport adapters that Requests uses to define
and maintain connections.
"""
import socket
from .models import Response
from .packages.urllib3.poolmanager import PoolManager, proxy_from_url
from .packages.urllib3... | [
"ginsdaman@gmail.com"
] | ginsdaman@gmail.com |
ccf640a6f3089b61899c512ea864d117a27d00e3 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /a7WiKcyrTtggTym3f_11.py | 38c97ae03767b14cd4f73e59493d45390792e3c0 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | """
Create a function that takes two numbers as arguments and return the LCM of
the two numbers.
### Examples
lcm(3, 5) ➞ 15
lcm(14, 28) ➞ 28
lcm(4, 6) ➞ 12
### Notes
* Don't forget to return the result.
* You may want to use the GCD function to make this a little easier.
* LCM stands... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7ea7df614f889ecc385d58e0cb8da56dff59d665 | bb735076e6a351dd6cbf74b7eb34b9a4538789b7 | /Laboratorio 25_4.py | 562bd35a30b90071fdfb8a5713776cf23201b51f | [] | no_license | Santi0207/mapa-mental | 27a4915c9c5c2184b4325f90eab53820f4ea7a6e | 95dff50253792145deea509337d83d1b474aea15 | refs/heads/main | 2023-05-03T03:03:06.578337 | 2021-05-25T19:38:41 | 2021-05-25T19:38:41 | 359,498,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 20 14:19:58 2021
@author: santi
"""
def cantidad_A(palabra):
cont=0
for x in range (len(palabra)):
if palabra [x] =="a" or palabra [x] =="A":
cont+=1
return cont
palabra=input("Ingrese una palabra: ")
print ("la p... | [
"noreply@github.com"
] | Santi0207.noreply@github.com |
2722446b64a90b86d4f746b22fdad8f220f3b9d9 | 172e35bb936c0219c1ae751f48c331047b7fd68f | /problems/py-strings/gc2.py | 431b8360e044c41e1d33d7b736c245c75d625fd6 | [] | no_license | cmrrsn/abe487 | 8f25d49533450ee69637fe397aeec7ba374642e0 | 2572e418bbd7d76fe2028da07896c02de40cd420 | refs/heads/master | 2021-01-23T17:55:25.414975 | 2017-12-05T19:38:40 | 2017-12-05T19:38:40 | 102,779,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | #!/usr/bin/env python3
import sys
import os
def main():
"""main"""
files = sys.argv[1:]
if len(files) != 1:
print('Usage: {} FILE' .format(sys.argv[0]))
sys.exit(1)
if os.path.isfile(files[0]) == False:
print('"{}" is not a file'.format(files[0]))
sys.exit(1)
for seq in open(files[0]):
i=0
gc=0... | [
"cmmorrison1@login2.cm.cluster"
] | cmmorrison1@login2.cm.cluster |
06b857862b7da068774dc2990c21f01bfaffbd27 | aec21c0a63b4a29fe1c911fada0dc479c1803f02 | /scripts/profile.py | 80a0a6a6f07b8305226999c54b80794a781378f4 | [
"MIT"
] | permissive | ultimachine/Reflow-Profiler | fb3e4cde1a8649d4d68e4853eee43d39079ecec2 | f472c14a9555473a83626909da16ffcf2db3f59b | refs/heads/master | 2020-05-29T22:58:24.993275 | 2013-07-25T17:13:56 | 2013-07-25T17:13:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,600 | py | #!/usr/bin/env python
import matplotlib.pyplot as plt
import serial
import time
import sys
import numpy as np
import re
import signal
import argparse
#Setup Command line arguments
parser = argparse.ArgumentParser(
prog = "reflow-profiler",
usage = "%(prog)s [options] input...",
description = "Log thermo... | [
"kd2cca@gmail.com"
] | kd2cca@gmail.com |
a9151a391b64c038d80fc25c24e8ae9bcc938c36 | 927fc31a0144c308a5c8d6dbe46ba8f2728276c9 | /tasks/final_tasks/file_handling/2.count_word_in_file.py | 7ad9f89f0c38383b2a89b17194e5f946ad3c11d8 | [] | no_license | ChandraSiva11/sony-presamplecode | b3ee1ba599ec90e357a4b3a656f7a00ced1e8ad3 | 393826039e5db8a448fa4e7736b2199c30f5ed24 | refs/heads/master | 2023-01-14T00:09:19.185822 | 2020-11-23T02:07:00 | 2020-11-23T02:07:00 | 299,527,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # Python Program to Count the Number of Words in a Text File
def main():
num_words = 0
with open('text_doc.txt', 'r') as f:
for line in f:
words = line.split()
num_words += len(words)
print('Number of words', num_words)
if __name__ == '__main__':
main() | [
"chandra2.s@aricent.com"
] | chandra2.s@aricent.com |
2226ec9d9a3aed988198452e5700c9f65c9fc0f1 | 185d97a996e75d153b881d0ebf847ec33e7b049d | /primepairs.py | 1fa54588c0bb0b309897a824aaa8546b59b8aa53 | [] | no_license | shivank96/pythonbasiclevel | 88a12d366ed015928cc21b405dcb9ca96d0ade36 | 46623ad75ec176161a780b75651fa80c2d35f107 | refs/heads/master | 2023-04-03T13:43:32.974100 | 2021-04-12T13:11:21 | 2021-04-12T13:11:21 | 305,385,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | import collections
def primepairs():
n=int(input())
i=2
k=0
le=0
li=[]
while i<=n:
count=0
j=1
while j<=i:
if i%j==0:
count=count+1
j=j+1
if count==2:
li.append(i)
le=le+1
i=i+1
l=0
# ... | [
"shivankg96@gmail.com"
] | shivankg96@gmail.com |
510ee037286e9bb98097631e6f4b1e333b3618f9 | 93c58b92803d0467d29fd9c9c4b1a3998bcf283f | /transcriptions/models/show_the_model.py | c55516278826758fd4b5e249b1086d7d9947b427 | [
"MIT"
] | permissive | Ipuch/dms-vs-dc | ac4ac5d62bca9839cbe7b60f58fd9cb7f96f4416 | 2878e00f4a862c5bcb9064b0c962922af6be00ea | refs/heads/main | 2023-09-04T00:00:22.787777 | 2023-08-21T20:13:19 | 2023-08-21T20:13:19 | 519,305,613 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,598 | py | """
This file is to display the human model into bioviz
"""
import os
import bioviz
from transcriptions import Models
# model_name = Models.LEG
# model_name = Models.ARM
# model_name = Models.ACROBAT
model_name = Models.UPPER_LIMB_XYZ_VARIABLES
# model_name = Models.HUMANOID_10DOF
export_model = False
background_colo... | [
"pierre.puchaud@umontreal.ca"
] | pierre.puchaud@umontreal.ca |
407c2a6677c326a7a56789bea899851a9a6a5764 | dda862418770f3885256d96e9bdb13d0759c5f43 | /codeforces/april-fools-day/is_it_rated.py | 2f78bf4c3d6d9df72b4d6880be8c4503b3f93453 | [
"MIT"
] | permissive | bellatrixdatacommunity/data-structure-and-algorithms | d56ec485ebe7a5117d4922caeb0cd44c5dddc96f | d24c4001a797c12347973263a0f4f98939e86900 | refs/heads/master | 2022-12-03T00:51:07.944915 | 2020-08-13T20:30:51 | 2020-08-13T20:30:51 | 270,268,375 | 4 | 0 | MIT | 2020-08-13T20:30:53 | 2020-06-07T10:19:36 | Python | UTF-8 | Python | false | false | 114 | py | """
[A. Is it rated?](https://codeforces.com/contest/1331/problem/A)
"""
print("No") # The contest was not rated
| [
"adityaraman96@gmail.com"
] | adityaraman96@gmail.com |
5e2bc1d085bbd63facebfeafee69c6b6b83a580a | c1aae64218b22140097dd9c4047684fcaa61cb6e | /code/栈的压入、弹出序列.py | 8ae1b7115d253d3ed4f61511426741ad471436da | [] | no_license | KIM199511/-offer | b3b75609d4885b1616db541aa10e54f83655e4ce | 0ddb5c0d7f32fe3654ab9de7ac132a50c016dd7e | refs/heads/master | 2022-11-08T22:00:02.598019 | 2020-07-05T16:27:29 | 2020-07-05T16:27:29 | 277,333,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/5/11 19:16
# @Author : XXX
# @title : 栈的压入、弹出序列
# @Site :
# @File : 栈的压入、弹出序列.py
# @Software: PyCharm
class Solution:
def IsPopOrder(self,pushV, popV):
temp = []
while pushV:
for value in pushV:
temp.append(va... | [
"15061112157@163.com"
] | 15061112157@163.com |
fcceb2b371e8ee367db6bbabddea88495e6aef69 | ed7708e815a30ebbac6efc696d826b9c3d59c561 | /1049.py | 1ec3142525e48fe57e4bc7096ee7b7216248eea4 | [] | no_license | LehmannPi/URIOnlineJudge | 222e1c44f6613e79a023227bd6f1ab9ac353eedd | 5bb82d7b623c152aeb89264ca16dc3c758bf1209 | refs/heads/master | 2020-12-04T23:34:01.365947 | 2020-01-05T15:38:17 | 2020-01-05T15:38:17 | 231,935,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | #estrutura: l[0]; classe: l[1]; habitos_alimentares: l[2]
l = []
for i in range(3):
l.append(input())
if l[0] == 'vertebrado':
if l[1] == 'ave':
if l[2] == 'carnivoro':
print('aguia')
else:
print('pomba')
else:
if l[2] == 'onivoro':
print('homem')
else:
print(... | [
"noreply@github.com"
] | LehmannPi.noreply@github.com |
1af4a2a2ce07a8d901b6177b7776dc669f8f06fe | faf50edfb415f2c5232d3279cf9b6d3684d1bb39 | /src/python/ml/eval_functions.py | 939d893f862fccee2383548006d15267f6b62b37 | [] | no_license | ALFA-group/EEG_coma | aff66ed15f597bdde8583e11bec7d33210bab224 | c2e65ab1d6491378c71520bc75827f8c1374715d | refs/heads/main | 2023-04-23T18:42:17.519875 | 2021-05-04T21:22:09 | 2021-05-04T21:22:09 | 364,260,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,344 | py | import torch
import numpy as np
import matplotlib.pyplot as plt
from torch.autograd import Variable
import math
def encode(bursts, masks, encoder):
try:
if isinstance(bursts, np.ndarray):
bursts = torch.Tensor(bursts)
if isinstance(masks, np.ndarray):
masks = torch.Tensor(m... | [
"shash@mit.edu"
] | shash@mit.edu |
731f1ef4f038c7584b72ccae8637f6c4ca8c0302 | 6414ff7510850f898ae791af24bd4daebedd1ed8 | /Unet_Mobile/train.py | e62ad2b35e106fb7c030a35c6630893425aba13a | [
"MIT"
] | permissive | Ice833/Semantic-Segmentation | 00ba943a0e33e34e19cbd579598ef8ac4f081460 | 23d23f6da3b34884c044a2253d65a1e4097adb2d | refs/heads/master | 2022-12-02T02:37:46.145036 | 2020-08-14T02:17:15 | 2020-08-14T02:17:15 | 284,207,399 | 0 | 0 | MIT | 2020-08-01T07:05:31 | 2020-08-01T07:05:30 | null | UTF-8 | Python | false | false | 4,563 | py | from nets.unet import mobilenet_unet
from keras.optimizers import Adam
from keras.callbacks import TensorBoard, ModelCheckpoint, ReduceLROnPlateau, EarlyStopping
from PIL import Image
import keras
from keras import backend as K
import numpy as np
NCLASSES = 2
HEIGHT = 416
WIDTH = 416
def generate_arrays_f... | [
"noreply@github.com"
] | Ice833.noreply@github.com |
2846ddd10fe2bc71174ac826856a840867ef6f23 | 8ed9ad7935736bd53c112768e823585d67300773 | /pipelines/record_only.py | 64f333cad79b7a1fd045f547a2cb2fae9b60ceb9 | [] | no_license | danielhertenstein/streaming-object-detection | 5913da972d72cdd6ce4aedbfb2b83f10de261292 | 3b7aa2923d0f5e4b03ff97ce13e12509f1abcacc | refs/heads/master | 2021-04-27T10:12:51.607914 | 2018-04-28T19:04:39 | 2018-04-28T19:04:39 | 122,532,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | import assembler
from pieces import WebcamCapture, Record
def main():
pipeline = assembler.Pipeline(
pieces=[[WebcamCapture], [Record]],
options=[[{}], [{'framerate': 60.0}]]
)
pipeline.run()
if __name__ == '__main__':
main()
| [
"daniel.hertenstein@gmail.com"
] | daniel.hertenstein@gmail.com |
244746f59dab7356af77d6b088d09be0109e7eea | 5e76a420178dcb9008d6e4c12543ad0e3a50c289 | /python/104.py | 188ebec7d7866ddc2ac4ab6f887b025327467442 | [] | no_license | LichAmnesia/LeetCode | da6b3e883d542fbb3cae698a61750bd2c99658fe | e890bd480de93418ce10867085b52137be2caa7a | refs/heads/master | 2020-12-25T14:22:58.125158 | 2017-07-18T06:44:53 | 2017-07-18T06:44:53 | 67,002,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | # -*- coding: utf-8 -*-
# @Author: Lich_Amnesia
# @Email: alwaysxiaop@gmail.com
# @Date: 2016-09-18 17:38:27
# @Last Modified time: 2016-09-18 17:41:20
# @FileName: 104.py
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# ... | [
"lich@D-10-157-202-8.dhcp4.washington.edu"
] | lich@D-10-157-202-8.dhcp4.washington.edu |
4e6c68f2c808e9ad3a64694e5548a0ffd6165878 | 7532253fcc5d2fb01ceefe924bac7de45376e97b | /main.py | 2b371e6750e3035b3d4edc940eff390d60352c51 | [
"MIT"
] | permissive | NixonZ/QNetwork-RL | 37879cc0b976ed9594833598ba3532546d2fef51 | acf34dd8d598104267da88f3eacc3e44f06265a7 | refs/heads/main | 2023-08-28T18:11:31.536607 | 2021-09-29T13:14:54 | 2021-09-29T13:14:54 | 381,694,681 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | from environment.env import Env,node
from environment.metalog import U,Exp,metalog
import numpy as np
# from agent.agent import MPNN,Graph_Representation,Agent
from trainer import trainer
from agent.Qmix import Qmix
from agent.agent import device
p = 2
b = 32
n = 6
M = 100
temp = Env(
arrival = [lambda t: Exp(0.1... | [
"nalinshani14@gmail.com"
] | nalinshani14@gmail.com |
ba877f1d961002ab0c0e83e9928982deed661a66 | 089e5c10201815ff5b44c4b1aa510f5745d43c13 | /ThreadUtil.py | 164bb25bfb019c158db26893fbf2b162a4011a33 | [] | no_license | Remaerdeno/Passer-zhihu | ebe1589b44dd388141224d47bcef8cb37239dece | 8f60d6d3952df90dad92b095a1d6aae520e8eaf9 | refs/heads/master | 2021-06-17T15:47:51.668190 | 2017-06-07T13:11:01 | 2017-06-07T13:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | py | # encoding=utf8
import Util,urllib
from IpProxy import *
class ThreadDeco(object):
def __init__(self,func):
self._func = func
def __call__(self,*args):
self._func(*args)
proxy = Proxy()
while True:
if not args[0].empty():
page = args[0].get()
if page == Util.ENG_FLAG:
args[1].put(Util.ENG_F... | [
"904727147@qq.com"
] | 904727147@qq.com |
6a5c1ea749f8102e0c5b36a0df88242b59dbcb09 | 96a62c5639154d9985148bce698362eb5be19735 | /svr-2.7/arelle/PrototypeDtsObject.py | 551bd298f0b3d1e1619e37f3bbadb514a22f77a6 | [
"Apache-2.0"
] | permissive | sternshus/not_arelle2.7 | c535d35305af08a7d774be9bac8eeb68ba7c62bf | e2315999c514d6d30897168a98e5f343b06520f9 | refs/heads/master | 2020-04-14T07:27:43.615174 | 2016-06-20T21:16:02 | 2016-06-20T21:16:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,115 | py | from arelle import XmlUtil, XbrlConst
from arelle.ModelValue import QName
from arelle.XmlValidate import VALID
from collections import defaultdict
import decimal, os
ModelDocument = None
class LinkPrototype(): # behaves like a ModelLink for relationship prototyping
def __init__(self, modelDocument, pa... | [
"ndraper2@gmail.com"
] | ndraper2@gmail.com |
d301667e9da5f7d349fdf435dc6c5bdd2dd9d67e | 46bd3e3ba590785cbffed5f044e69f1f9bafbce5 | /env/lib/python3.8/site-packages/pip/_vendor/pep517/envbuild.py | 7e6160fc539bc7bd382d6a660739256889eb380f | [] | no_license | adamkluk/casper-getstarted | a6a6263f1547354de0e49ba2f1d57049a5fdec2b | 01e846621b33f54ed3ec9b369e9de3872a97780d | refs/heads/master | 2023-08-13T11:04:05.778228 | 2021-09-19T22:56:59 | 2021-09-19T22:56:59 | 408,036,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:2dc493d0c01299c40d2ce16a0cfc43a12d648e4825c7c17a784868049f835a48
size 6112
| [
"a.klukowski@live.com"
] | a.klukowski@live.com |
02640468512f314887a6c73faf4f94bf5dd034af | a0583ceb402497e77a2f683424decea16b8ab80b | /sushichef.py | 0ca31f6a58af0eb64e63a82b0aa4e93b4a557a15 | [
"MIT"
] | permissive | richard-dinh/sushi-chef-newz-beat | b5a07e21ec18b7539071a520dc910c8910253d3a | 766e5251b2f0002db0c5fe912fe0bf07f7c1ad94 | refs/heads/main | 2023-03-05T00:32:11.104007 | 2020-10-23T23:49:36 | 2020-10-23T23:49:36 | 309,466,267 | 0 | 0 | MIT | 2020-11-02T18:54:48 | 2020-11-02T18:54:47 | null | UTF-8 | Python | false | false | 2,826 | py | #!/usr/bin/env python
import os
import sys
from ricecooker.utils import downloader, html_writer
from ricecooker.chefs import YouTubeSushiChef
from ricecooker.classes import nodes, files, questions, licenses
from ricecooker.config import LOGGER # Use LOGGER to print messages
from ricecooker.exceptions impor... | [
"kevino@theolliviers.com"
] | kevino@theolliviers.com |
08e5d1a22b5e130fdb0e5d1100450e88632081a4 | 726a25e7bdc6e12645afcd00db693f2b561a4daa | /youtubeNet/load_YouTubeNet_model_to_predict.py | e2ac6deb62438f08a13aed14eef3517132a6ed62 | [] | no_license | 13483910551/deep_ctr | 5e6d6a24eac12422118890142b6ecf61a1e8df43 | 239abcb3a93dbd296c90ff827a9f761d0228f708 | refs/heads/master | 2022-11-12T06:04:13.557727 | 2020-06-29T10:44:55 | 2020-06-29T10:44:55 | 276,299,940 | 1 | 1 | null | 2020-07-01T06:50:54 | 2020-07-01T06:50:53 | null | UTF-8 | Python | false | false | 3,344 | py | #-*- coding:utf-8 -*-
import tensorflow as tf
import numpy as np
from tensorflow.keras.models import Model
from YouTubeNet import YouTubeNet
from data_generator import init_output
# 1. Load model
re_model = YouTubeNet()
re_model.load_weights('YouTubeNet_model.h5')
# 2. Load data
user_id, gender, age, occupati... | [
"wangdehua@360buyad.local"
] | wangdehua@360buyad.local |
ecf6379021503cfa49fc77acfc14f9a1a5136758 | 4ebb06450c79980f5726bba62e1a61dad811c1da | /src/excerpt_server.py | 1ae4afb3b92564a3a532b3c2a7613999be2257cc | [
"MIT"
] | permissive | joy13975/covidprof_submission | 5a2b1d89c0c53f6c11bed8669b865e8ae7209ae8 | b3c7bb0ebf6fa1557edb8d1ca5d3d41377508e7d | refs/heads/main | 2023-01-31T14:15:51.336935 | 2020-12-08T12:43:58 | 2020-12-08T12:43:58 | 314,133,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,416 | py | import logging
import json
import sys
from http.server import BaseHTTPRequestHandler, HTTPServer
from excerpt_gen import ExcerptGen
from base.config_loader import ConfigLoader
class ExcerptServer(ConfigLoader):
def run(self, **kwargs):
# allow command line arguments to overwrite config
for k, v i... | [
"joyyeh.tw@gmail.com"
] | joyyeh.tw@gmail.com |
5629815332356a23d2c3641637248dc89de4587e | a535ca0344d629837ab8f75b51c7d7e4eba91fca | /res/bin/usbtoh.py | 928ab934251e71fdf57d7dfd5dc08bf9c8b96d82 | [
"Zlib"
] | permissive | TheHoodedFoot/SpaceLCD | f2661433ee3dd917e5bd0d28f58f4a4020d43ef3 | 52a8409c7b83a98c8200bddecbb17e9371349294 | refs/heads/master | 2023-01-18T15:39:52.147606 | 2020-12-13T13:53:15 | 2020-12-13T13:53:15 | 320,777,918 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | #!/usr/bin/env python3
import sys
import re
# Output header
out = "static const unsigned char bitmap[] = {"
char_count = 0
line_count = 0
things = ""
things_size = 0
for line in sys.stdin:
x = re.search(".*0x00(..): (.*)$", line)
if x is not None:
buffer = x.group(2) + " "
for word in re.... | [
"thf@thehoodedfoot.com"
] | thf@thehoodedfoot.com |
bab5556638f533d64d9c39fd6e03374ca346dcbd | 9c2e87292aa0892e621c67b8f335f569e457837e | /problem_12/main.py | c3fd712667a53a7f074c89d5bf13a929d3cffa19 | [] | no_license | scirelli/dailycodingproblem.com | 66253198e738ec7dc8f741e3230ffa8fbed1ecf7 | 3f84e5a19dada4fd69c0e8fc02f930c8531193c0 | refs/heads/master | 2023-08-05T08:50:59.569552 | 2023-07-20T13:11:48 | 2023-07-20T14:08:05 | 159,087,800 | 0 | 0 | null | 2023-07-20T14:08:06 | 2018-11-26T00:20:24 | Python | UTF-8 | Python | false | false | 417 | py | #!/usr/bin/env python3
def unique_climbs(N, X={1, 2}):
"""
Brought force method. Try out all possible combinations.
"""
result = 0
if N == 0:
return 1
if N < 0:
return 0
for cnt in X:
result += unique_climbs(N-cnt, X)
return result
print(unique_climbs(4))
p... | [
"stephen.cirelli@capitalone.com"
] | stephen.cirelli@capitalone.com |
d4d5988e623e558b14497efc3dc84f1a4d62bd63 | bd0a310924a6987250314f995be4d264731e6efa | /python_auto/part 2/part2_2.py | 49740cee76e666254c3d9aa1174d4463242f4493 | [] | no_license | Maryks44/my_project | 5696e4e8ba473947c13d48b98ef14a1c358de032 | 9ce7afd6dc4a027635cca803b0c7a09a85942a53 | refs/heads/master | 2023-06-24T06:21:30.709721 | 2021-07-30T15:35:19 | 2021-07-30T15:35:19 | 381,142,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | # Вывести на экран чикл N из звездоче. Причем каждая строка должна быть пронумерована и ровна колличеству звездочек
count = int(input('Укажите число N: '))
for i in range(1, count + 1):
print(i, '*' * i)
| [
"maryks44m@yandex.ru"
] | maryks44m@yandex.ru |
1d898f4d7db5808af12b3e9bd413033060f8403f | dfaf6f7ac83185c361c81e2e1efc09081bd9c891 | /k8sdeployment/k8sstat/python/kubernetes/test/test_v1_local_object_reference.py | db02de623a1ffb63d799a47e9d655bb2206d76b9 | [
"MIT",
"Apache-2.0"
] | permissive | JeffYFHuang/gpuaccounting | d754efac2dffe108b591ea8722c831d979b68cda | 2c63a63c571240561725847daf1a7f23f67e2088 | refs/heads/master | 2022-08-09T03:10:28.185083 | 2022-07-20T00:50:06 | 2022-07-20T00:50:06 | 245,053,008 | 0 | 0 | MIT | 2021-03-25T23:44:50 | 2020-03-05T02:44:15 | JavaScript | UTF-8 | Python | false | false | 994 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: v1.15.6
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import kube... | [
"JeffYFHuang@github.com"
] | JeffYFHuang@github.com |
25265341286876db617a7ceabe8e9353a1421c8d | 64a82fb1ac6ff3e1ec0c9f9306f4eeafca01837e | /users/migrations/0015_auto_20210607_1909.py | cf197dc2584939f2a37101c62243b4bcfa80d3d8 | [] | no_license | DiabCh/Online-Store-Project | 54b6e1aad7563471b81eade81f1daf2baeec19b8 | 065302fb9e363a1645bff2e516248a22fb49f9db | refs/heads/main | 2023-07-15T01:53:36.611256 | 2021-08-20T10:44:59 | 2021-08-20T10:44:59 | 398,246,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | # Generated by Django 3.1.7 on 2021-06-07 19:09
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0014_auto_20210607_0735'),
]
operations = [
migrations.AlterField(
model_name='activation',
... | [
"chraifdiab@gmail.com"
] | chraifdiab@gmail.com |
dc518d3adbaa5570a85345dacbb2b97213280b09 | eb35535691c4153ba2a52774f0e40468dfc6383d | /hash_table/uncommon_words.py | 849d39c6b50e9e3e7e62e2067fc6a68f1b0c2178 | [] | no_license | BJV-git/leetcode | 1772cca2e75695b3407bed21af888a006de2e4f3 | dac001f7065c3c5b210024d1d975b01fb6d78805 | refs/heads/master | 2020-04-30T19:04:12.837450 | 2019-03-21T21:56:24 | 2019-03-21T21:56:24 | 177,027,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py |
def uncommon_words(A,B):
A=A.split(' ')
B=B.split(' ')
res=[]
d={}
for i in A:
d[i] = d.get(i,0)+1
for i in B:
d[i] = d.get(i,0)+1
for i in d:
if d[i]==1:
res.append(i)
return res | [
"noreply@github.com"
] | BJV-git.noreply@github.com |
36fff049a68fa9e7fb10cd09b31ccfc987e4d16b | 7a3d56fac035f2de9ed94ccb852293ea9e643aee | /PortfolioGenerator/Library/DataClass.py | 4374cafd40bd3112d75f2a83086db26f1d4dea99 | [] | no_license | DT021/MoneyTree | 612d7d811a2f8109b9e369d906f45920fcc7e935 | 064600fec4c5664dd191c4f203284ca05534640e | refs/heads/master | 2022-11-06T03:47:16.014120 | 2020-06-18T21:27:13 | 2020-06-18T21:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,376 | py | from dataclasses import dataclass
from dataclasses_json import dataclass_json
from typing import List
from enum import Enum
import datetime
import pandas as pd
### Dataclasses used internally for generating portfolios and risk calculations ###
@dataclass()
class Asset():
Ticker: str #asset ticker symbol
... | [
"matthewsages@gmail.com"
] | matthewsages@gmail.com |
622684ec5c306509536391a79ee86352bd8df45f | 088cc2a6e03aedea5f86372fc23f646836e6b9eb | /data/migrations/0008_auto_20201113_1031.py | ab1c23632751618ca4963f85913725bff8c55a8a | [] | no_license | EliSEstes/Air-Quality-Forum | 6cd2055151d9523a02de847ab5440f25cb52f128 | f3fbd95ed0a9711d9a8fe5cc72942d38fec5ebdd | refs/heads/main | 2023-03-31T23:10:00.985683 | 2021-03-23T02:23:36 | 2021-03-23T02:23:36 | 348,881,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | # Generated by Django 3.1.1 on 2020-11-13 16:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data', '0007_city_humidity'),
]
operations = [
migrations.RemoveField(
model_name='city',
name='maxCo2... | [
"noreply@github.com"
] | EliSEstes.noreply@github.com |
20900db7b1b8044e1bf0b27b91907868005a426c | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayInsSceneSellerActivitySignModel.py | 4ef2bcff18867f0f8ba427a6a7c71a574c386b9c | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,623 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayInsSceneSellerActivitySignModel(object):
def __init__(self):
self._biz_data = None
self._channel_account_id = None
self._channel_account_type = None
self._sp... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
20e72c8d12bd0c7a49dd9f63a286d85a7d31f4fe | 15fb5db5c65b06303e3251f11bf2450e7bb1fa74 | /Mac_address.py | 5f1f47a3e7b393fc4dc88ed91322a8ce6141cc65 | [] | no_license | schirrecker/Codewars | 27d18af79f29cb1b7d8980344f858e1ecb031274 | e1ee5126488589c1213779480f6b066c85740f74 | refs/heads/master | 2022-01-14T09:08:47.617250 | 2022-01-10T05:49:24 | 2022-01-10T05:49:24 | 158,765,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | import time
from time import sleep
import os
import uuid
def get_mac():
mac_num = hex(uuid.getnode()).replace('0x', '').upper()
mac = '-'.join(mac_num[i: i + 2] for i in range(0, 11, 2))
return mac
print(uuid.getnode())
print(get_mac())
| [
"noreply@github.com"
] | schirrecker.noreply@github.com |
45be357e7b38ec918dbbec6c0e106c1fd5ccafbb | 91578595b5aa689b277827860141c60ca26753a4 | /src/State.py | 6315ad42a83966bbb8cf9d922bf9347d459a5c60 | [
"BSD-3-Clause"
] | permissive | lnerit/ktailFSM | bfb99378ea2e23d0a392cf88e43e2892c2734a02 | abed58d97aad87a1b6eb7f062cd42a7256c55306 | refs/heads/master | 2021-01-10T08:09:59.412708 | 2016-02-21T05:24:21 | 2016-02-21T05:24:21 | 49,031,698 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,539 | py | '''
Created on 15/12/2015
@author: lenz
'''
MACHINES = dict()
NOOP = lambda: None
NOOP_ARG = lambda arg: None
class FSMError(Exception):
"""Base FSM exception."""
pass
class StateError(FSMError):
"""State manipulation error."""
class State(dict):
"""State class."""
DOT_ATTRS = {
... | [
"lewelnerit@gmail.com"
] | lewelnerit@gmail.com |
95606499c7800d62f8e508016262efca1b1262b1 | 92225c51f4d4ccf6330afc83eb8cebc9eda2d767 | /mach_o/headers/prebind_cksum_command.py | 1bde67456e66355c17e8e187f9f685e37f328299 | [
"Apache-2.0"
] | permissive | jeffli678/MachOTool | 17f120b1dbec0f5b50d56b4bcd450ae5be08dad5 | 469c0fd06199356fcc6d68809c7ba15a12eac1fd | refs/heads/master | 2020-07-02T01:23:21.048970 | 2015-10-31T09:21:59 | 2015-10-31T09:21:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | from utils.header import MagicField, Field
from load_command import LoadCommandHeader, LoadCommandCommand
class PrebindCksumCommand(LoadCommandHeader):
ENDIAN = None
FIELDS = (
MagicField('cmd', 'I', {LoadCommandCommand.COMMANDS['LC_DYSYMTAB']: 'LC_DYSYMTAB'}),
Field('cmdsize', 'I'),
F... | [
"henrykwok2000@yahoo.com"
] | henrykwok2000@yahoo.com |
131cac583fbecae810f6bf5d0f112c5dca2fef27 | 9894fe2e1a1777845f7625fdff21092ba7629c96 | /src/functions/Preprocess.py | 0006dce3b6a14abeb294f8ff4cc947b40515b967 | [] | no_license | Gion-KS/GSSL | 443ef533779b682e87894109e5946fbde9550dbb | 90207f29f45512760eb1141b5a484184095e9cff | refs/heads/master | 2020-06-04T00:04:22.364907 | 2019-06-13T14:45:40 | 2019-06-13T14:45:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,586 | py | import re
import nltk
from nltk.corpus import wordnet
from nltk.stem import WordNetLemmatizer
import string
from sklearn.datasets import fetch_20newsgroups
from src.classes import Dataset
from sklearn.feature_extraction.text import CountVectorizer
import src.functions.Vocabulary as voc
from src.classes.dataset import D... | [
"LUCBO@users.noreply.github.com"
] | LUCBO@users.noreply.github.com |
b3fcc969062efca70aa4b4866ce7e8189b6d948a | 8c953249a62367a8f0138eff488ce5d510e65620 | /cs109/lab1OldClone/rpnc.py | 5a6a89132f900087c2e0ed5306b2da657c50dcb0 | [] | no_license | nahawtho/cs109copy | 5ce87799eb09ac22b38f63b8d77b3878f8b5b001 | 66e2b2be6adf54bf724a437f2a32090a1d834cba | refs/heads/master | 2020-04-05T06:50:35.063576 | 2018-11-08T05:10:56 | 2018-11-08T05:10:56 | 156,653,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | #
# Python3 Reverse Polish Notation (RPN) Calculator
#
# Accepts an single argument in RPN, evaluates it and prints the answer to stdout.
#
print("not implemented")
| [
"nahawtho@thor.soe.ucsc.edu"
] | nahawtho@thor.soe.ucsc.edu |
096663cd9cbae0fabe082fe91e8332f3900bd763 | d95e3c7cd912a2eab479bbe66e747e4709edf2d0 | /bs_scrape.spec | ba36aa3a232605334babf932789b283ca0fb76c4 | [] | no_license | jaked842/ammoscrape | 91666e0166156c5a9dc1e3c7f64a3091b05ff3e4 | e09a01508cc110a8685f075e1ef75460caaaeaff | refs/heads/main | 2023-06-03T22:57:55.615450 | 2021-06-24T18:01:34 | 2021-06-24T18:01:34 | 379,684,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['bs_scrape.py'],
pathex=['/Users/admin/Downloads/bsoup'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
... | [
"admin@MacBook-Pro.local"
] | admin@MacBook-Pro.local |
7be171b3c6ccd20d4e7c354d4e4620d1a88c649d | fa1faa5c480ba249fbec18c0fb79b696d6b4bdf9 | /4 - Arrays/RemoveKDigits.py | 2c3dd044de47a9f8f777661c108947dbbc7b6b7f | [] | no_license | AbhiniveshP/CodeBreakersCode | 10dad44c82be352d7e984ba6b7296a7324f01713 | 7dabfe9392d74ec65a5811271b5b0845c3667848 | refs/heads/master | 2022-11-14T11:58:24.364934 | 2020-07-11T22:34:04 | 2020-07-11T22:34:04 | 268,859,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | class Solution:
# Time: O(N) --> a max of double visit
# Space: O(N)
def removeKdigits(self, num: str, k: int) -> str:
stack = []
# before pushing a digit to stack, take care that it is monotonically increasing stack, also k > 0 and stack not empty
for i... | [
"pabhinivesh@gmail.com"
] | pabhinivesh@gmail.com |
7405dcae9c9ff0679f22af578de88618c8ccd5ee | 42adb09d60cfca14a5beb1f581538d8d730d457c | /logic/weapon/Club.py | a292e9364387dabb0993e9705d5631aca337e91d | [] | no_license | martinKindall/dungeon-game | 70514e26b245c5208c1e4f4ba0adfd1c9463676f | 95c6a66ae1c3f39aae5c0d006dbf3df23a61baa4 | refs/heads/master | 2022-06-01T15:10:06.675187 | 2020-04-30T01:53:22 | 2020-04-30T01:53:22 | 259,819,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from logic.weapon.Weapon import Weapon
class Club(Weapon):
def getAttackPoints(self) -> int:
return 2
def __str__(self) -> str:
return "Club"
| [
"mart256@gmail.com"
] | mart256@gmail.com |
9e2990da4d26978bf83a7eada161aa6270a0f17e | 8084a7e3289d4ae530ce5808b2c19323b34d6289 | /invoices/nfe.py | df183a009323f01b74ba45110d0bcc130eb28bd1 | [
"MIT"
] | permissive | lclpsoz/misc-scripts | c05f16d128d4b4eee8d7ccf22332831627ee681d | 7834292011bf47e0f7272485e2f440b68a2c6414 | refs/heads/main | 2023-08-28T20:23:42.635825 | 2021-11-13T21:28:53 | 2021-11-13T21:28:53 | 387,044,544 | 0 | 0 | MIT | 2021-11-13T21:28:54 | 2021-07-17T22:06:15 | JavaScript | UTF-8 | Python | false | false | 2,761 | py | #%% Request
import requests
from bs4 import BeautifulSoup
import re
nfe_code = input('Input nf-e code: ')
nfe_code = re.sub('\D', '', nfe_code)
url_qrcode = 'http://www.nfce.se.gov.br/portal/qrcode.jsp?p=' + nfe_code + '|2|1|3|bb608455a1c917b0cb910034688a4fa65f851089'
headers = {
"accept": "text/html,application/... | [
"lclpsoz@gmail.com"
] | lclpsoz@gmail.com |
27765d93a89279793b38eb5ecee621db296f5941 | 1ad7addd3cf4d29130a09eb379dbce572a8351b8 | /Github-Spider/dummy_spider1.py | 8fec7d7ec4e810cebce2920ef19399e81927d75c | [] | no_license | parasKumarSahu/KML | 9f23e9d02303eba00f95966d95097aa7bf0b001c | 385370ca4c631ed99d5f352ff31b3fa40c9007ea | refs/heads/master | 2020-04-17T14:01:00.394848 | 2018-11-30T23:04:55 | 2018-11-30T23:04:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | import scrapy
f = open('haha.txt', "w")
# 'https://github.com/jquery/jquery/commits/master',
# 'https://github.com/codeschool-projects/HelloCodeSchoolProject/commits/master'
class DummySpider(scrapy.Spider):
name = "dummy"
start_urls = [
'https://github.com/codeschool-projects/HelloCodeSchoolProject/... | [
"2016csb1047@iitrpr.ac.in"
] | 2016csb1047@iitrpr.ac.in |
dea7dc5a83f238f53995a42c85e7a082cf7c8435 | 67c846e50f9179b062bb9d70b637d4ea00b33e2f | /venv/Scripts/easy_install-3.6-script.py | 0c33e21fc36e535c2ec12d6a20db1b8af6367546 | [] | no_license | feriosch/Hack2019 | 2cdb71f06e4ba8ca8c1246b8b06f43460de14c9c | e1a6085b53ab6509c1eb4e5f4056814c1fa78985 | refs/heads/master | 2020-05-17T16:30:50.417049 | 2019-04-28T17:07:44 | 2019-04-28T17:07:44 | 183,820,846 | 0 | 0 | null | 2019-04-28T05:57:23 | 2019-04-27T20:55:24 | Python | UTF-8 | Python | false | false | 458 | py | #!C:\Users\ferio\PycharmProjects\Banorte\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"47795404+feriosch@users.noreply.github.com"
] | 47795404+feriosch@users.noreply.github.com |
f552c9dfa2e04cea58e9d077a133917bf59a3b5b | 8a83b2b6e5906b28de898123d8a895727f1dd300 | /ai/cf_ai/cf_action_eval_ai.py | 94fd1bc7f3f3a8ffc0d5eea8e1deadf722523779 | [] | no_license | iamsure89/ticket_to_ride | bac86f45e2d1b03b12a90908fa0978a4996f8332 | 59ebcd65707faa4471c367fc7b5ae5852f0ad6d2 | refs/heads/master | 2022-06-23T07:53:29.154858 | 2016-12-17T21:45:53 | 2016-12-17T21:45:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,713 | py | from random import randrange
import game.board as board
from game import Player, Game
from game.actions import *
from game.classes import Colors
from game.methods import find_paths_for_destinations
from cf_base_ai import CFBaseAI
class CFActionEvalAI(CFBaseAI):
"Evaluate Every Action Based on the cost function"
... | [
"di.zeng@transcendrobotics.com"
] | di.zeng@transcendrobotics.com |
bfae83b275fbfae46d9026de5ef5217a6f90a547 | 872a6279df8f6c8786002f9012cad3ca2d99bcb3 | /countries/admin.py | 0e838f57e0febdd25e4eaac3c191a25a229c68a2 | [] | no_license | ndanield/countries_list | 50611cffd22a8c3c59c5e4972c4785db21663e94 | 532334dc6767182479501a189ac797997fb3efbc | refs/heads/master | 2021-01-10T07:05:34.679445 | 2015-12-02T05:19:32 | 2015-12-02T05:19:32 | 47,042,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from django.contrib import admin
from .models import Country
class CountryAdmin(admin.ModelAdmin):
list_display = ['code', 'name', 'continent', 'region', 'population']
admin.site.register(Country, CountryAdmin) | [
"Nelson Daniel Durán Morel"
] | Nelson Daniel Durán Morel |
da0f752f37d66f5033607317460320c51b7d99e2 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ec2_write_f/vpc_create.py | 72acec139ecc5774ba67c1d8199de44fc116c546 | [] | 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 | 588 | 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 |
d6e1af3c1f70472c05f440c578e0bb66519b95d3 | 205d581673e3960c99e6b8fe1475efb661421cb3 | /bikeshed/update/main.py | 1be2b76b3f73f81060b4b4fa57d6141ebd24f5e6 | [
"CC0-1.0"
] | permissive | TBBle/bikeshed | 08f9137f7a561d154720297b76ced061cdd6a04a | 5834a15f311a639c0b59ff2edbf3a060391d15ff | refs/heads/master | 2021-01-12T18:33:43.213471 | 2017-09-29T20:56:24 | 2017-09-29T20:56:24 | 81,327,888 | 0 | 0 | null | 2017-02-08T12:30:22 | 2017-02-08T12:30:21 | null | UTF-8 | Python | false | false | 3,886 | py | # -*- coding: utf-8 -*-
from __future__ import division, unicode_literals
import os
from . import updateCrossRefs
from . import updateBiblio
from . import updateCanIUse
from . import updateLinkDefaults
from . import updateTestSuites
from . import updateLanguages
from . import manifest
from .. import config
from ..mes... | [
"jackalmage@gmail.com"
] | jackalmage@gmail.com |
5a1955b494c614d47f8fb98e8dfc46c8d5d321b8 | 18111180983ce2d2c0f3557741efbbc6234f2c36 | /layers/modules/multibox_loss.py | 4424e181c5cf8eb8a96a4edf667c880b8fb64947 | [] | no_license | bmemm/AP-MTL | 61ba8f72a6fa9b70cf4cd1ed869f0bfa6b26f5f9 | 30470e818442a4383ed778fa164e79499aed9a9c | refs/heads/main | 2023-08-01T22:42:38.400053 | 2021-09-11T00:45:51 | 2021-09-11T00:45:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,521 | py | # -*- coding: utf-8 -*-
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
#from data import coco as cfg
#from data import *
from ..box_utils import match, log_sum_exp
class MultiBoxLoss(nn.Module):
"""SSD Weighted Loss Function
Compute Targets:
1) P... | [
"mobarakol@u.nus.edu"
] | mobarakol@u.nus.edu |
3183747cd1835046d97a500fd56fc5a714d8f69c | f90a30cfafc5d786a3dc269f3ca48dce3fc59028 | /Payload_Types/apfell/mythic/agent_functions/iterm.py | 94b35b48c3156d56770b68fba7a567e64efb0415 | [
"BSD-3-Clause",
"MIT"
] | permissive | NotoriousRebel/Mythic | 93026df4a829b7b88de814e805fdce0ab19f3ab9 | 4576654af4025b124edb88f9cf9d0821f0b73070 | refs/heads/master | 2022-12-03T01:19:20.868900 | 2020-08-18T03:48:55 | 2020-08-18T03:48:55 | 288,780,757 | 1 | 0 | NOASSERTION | 2020-08-19T16:20:19 | 2020-08-19T16:20:18 | null | UTF-8 | Python | false | false | 920 | py | from CommandBase import *
import json
class ITermArguments(TaskArguments):
def __init__(self, command_line):
super().__init__(command_line)
self.args = {}
async def parse_arguments(self):
pass
class ITermCommand(CommandBase):
cmd = "iTerm"
needs_admin = False
help_cmd = ... | [
"codybthomas@gmail.com"
] | codybthomas@gmail.com |
4c800d767661ee69f80d462a929fd68be4f8b58f | a39dbda2d9f93a126ffb189ec51a63eb82321d64 | /mongoengine/queryset/__init__.py | 026a7acdd533719065dcc1c7c1955565b13d6f6f | [
"MIT"
] | permissive | closeio/mongoengine | 6e22ec67d991ea34c6fc96e9b29a9cbfa945132b | b083932b755a9a64f930a4a98b0129f40f861abe | refs/heads/master | 2023-04-30T04:04:52.763382 | 2023-04-20T07:13:41 | 2023-04-20T07:13:41 | 5,533,627 | 21 | 5 | MIT | 2023-04-20T07:13:42 | 2012-08-23T23:02:20 | Python | UTF-8 | Python | false | false | 525 | py | from mongoengine.errors import (DoesNotExist, MultipleObjectsReturned,
InvalidQueryError, OperationError,
NotUniqueError)
from mongoengine.queryset.field_list import *
from mongoengine.queryset.manager import *
from mongoengine.queryset.queryset import *
f... | [
"ross.lawley@gmail.com"
] | ross.lawley@gmail.com |
93cc65a38af08b3fdc484d18995da04bb407aee2 | a689be48a5b5d844fb196df95e1df8e91a3ce59e | /python/035. Search Insert Position/searchInsert.py | 781bea8b68f8f46654f9b95b17b0a2820a389989 | [] | no_license | stevepomp/LeetCode | a923cb0f5af42e4449a922d8edabd289f43c5210 | 9b9f37fe573c8a6a6b3a00a34b2a4c9a7835c16e | refs/heads/master | 2020-03-22T21:18:47.708688 | 2018-08-09T03:46:00 | 2018-08-09T03:46:00 | 140,676,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | '''
Given a sorted array and a target value, return the index if the target is found.
If not, return the index where it would be if it were inserted in order.
Input: [1,3,5,6], 5
Output: 2
Input: [1,3,5,6], 2
Output: 1
Input: [1,3,5,6], 7
Output: 4
Input: [1,3,5,6], 0
Output: 0
'''
class Solution:
def searchI... | [
"noreply@github.com"
] | stevepomp.noreply@github.com |
62f15e21cc7da0172f76ec0118796903115796ca | 4944541b0cd0fa48a01581ffce5e7ce16f5cf8d7 | /src/Backend/MbkExam/Notification/serializers.py | a64b1c49829f6af25ac8f32051e5c5e42e2348cb | [] | no_license | aballah-chamakh/the_exam | 49a5b5c9d28c61b2283f2d42d2b2fb771dd48bf4 | dbbbdc7a955ca61572f26430a7788407eaf0c632 | refs/heads/main | 2023-03-28T13:19:18.148630 | 2021-04-03T22:12:51 | 2021-04-03T22:12:51 | 354,404,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | from rest_framework import serializers
from .models import AdminNotification,StudentNotification
class AdminNotificationSerializer(serializers.ModelSerializer):
student_username = serializers.CharField(source='student.user.username')
student_img = serializers.CharField(source="student.image.url")
student_s... | [
"chamakhabdallah8@gmail.com"
] | chamakhabdallah8@gmail.com |
464e3a6a337dc9407f02ce39e571e1809949a6a1 | a719b8d93e0517badd0d9c3c61c7e3149fb80b46 | /exhaustive_search.py | 38e7219edf5abd2c29d6cd6ef898a61c60c08c02 | [] | no_license | srishilesh/Optimization_Algorithms | 01b9a8648b788b87a443ef07299b44ecb74a8791 | ff688e5a90b7d32844bbef2b7e3fcdd51d33bdc4 | refs/heads/master | 2020-08-05T12:40:31.154220 | 2019-10-03T06:17:01 | 2019-10-03T06:17:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | print("\n *** EXHAUSTIVE SEARCH METHOD *** \n")
a = int(input("Enter the lower bound : "))
b = int(input("Enter the upper bound : "))
n = int(input("Enter the number of steps : "))
def func(x):
if(x!=0):
f = (x*x) + (54/x)
else:
f = 100000
return f
cx = (b-a)/n
x1 = a
x2 = x1 + cx
x3 = x2... | [
"noreply@github.com"
] | srishilesh.noreply@github.com |
d7b4a024eaa06f6f3213a1527629e074bed475ed | 5185954d3e4a076b779522007148b8420ff3d30b | /freeze.py | c803becf9318a6a9b29946174616d8faf465bde6 | [] | no_license | wcraft/first-news-app | bdb0cec5e159a1cadce739752f4c383bf0ce2c10 | 5cd960ac04f2eda690aac2726be486b4421c84d3 | refs/heads/master | 2021-01-10T01:36:32.709958 | 2016-03-24T19:43:41 | 2016-03-24T19:43:41 | 53,678,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from flask_frozen import Freezer
from app import app, get_csv
freezer = Freezer(app)
@freezer.register_generator
def detail():
for row in get_csv("./static/la-riots-deaths.csv"):
yield {'row_id': row['id']}
if __name__ == '__main__':
freezer.freeze()
| [
"wcraft1204@gmail.com"
] | wcraft1204@gmail.com |
eb4921718ea76bd76fd0d09bef6d3040445b07fe | bfd6ac084fcc08040b94d310e6a91d5d804141de | /PulseSequences2/multi2d_test2.py | 1609e844e7a2e84b959142d2d35d97635fe46e69 | [] | no_license | jqwang17/HaeffnerLabLattice | 3b1cba747b8b62cada4467a4ea041119a7a68bfa | 03d5bedf64cf63efac457f90b189daada47ff535 | refs/heads/master | 2020-12-07T20:23:32.251900 | 2019-11-11T19:26:41 | 2019-11-11T19:26:41 | 232,792,450 | 1 | 0 | null | 2020-01-09T11:23:28 | 2020-01-09T11:23:27 | null | UTF-8 | Python | false | false | 671 | py | import numpy as np
from common.devel.bum.sequences.pulse_sequence import pulse_sequence
from labrad.units import WithUnit as U
from treedict import TreeDict
from common.client_config import client_info as cl
from multi_test import multi_test
class multi2d_test2(pulse_sequence):
is_2dimensional = True
is_compo... | [
"haeffnerlab@gmail.com"
] | haeffnerlab@gmail.com |
5c6ed42382f1049861f15353853dc3dcd95f30ef | bbd77439acd004b394552d59c2a4eb2293a76387 | /jam_ro/execute.py | cf88d32702ac6cca8bb4755154c7a4af3da496a2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | platipusica/jampy-demo | e041833d18df47ab8a3c8193e9a6c8695b686d7c | ecd30c028b66ede4672a951c93d6d60aca1bba39 | refs/heads/master | 2022-12-08T21:41:47.425379 | 2022-12-07T02:45:15 | 2022-12-07T02:45:15 | 135,378,069 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 6,682 | py | from __future__ import division
import sys, os
import datetime
import traceback
from werkzeug._compat import string_types
from .common import consts, error_message
def execute_select(cursor, db_module, command):
# ~ print('')
# ~ print(command)
try:
cursor.execute(command)
except Exception a... | [
"dbabic"
] | dbabic |
b2a641f6cfdf9e6783620ae9de8ec4a54e4811f0 | 562a487181ba6605dd119ba7fb14f3ee7e4b0832 | /CSE_231/Lab/Lab 9/lab09a.py | 962322851fca48f296e96809c56cffeb322ec31a | [] | no_license | JudeJang7/CSE_231 | d25930ff9c43e909dfff4fc483cdf4c893286d87 | a91148d843cecab908357fda8d3ec8fd59faa365 | refs/heads/master | 2020-04-05T01:11:14.994327 | 2018-11-06T18:12:49 | 2018-11-06T18:12:49 | 156,426,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py |
import string
def build_word_set( input_file ):
word_set = set()
for line in input_file:
# Making a list of every word in the line
word_lst = line.strip().split()
# Puts all of the word in lower case and gets rid of all punctuation
word_lst = [w.lower().strip(string... | [
"noreply@github.com"
] | JudeJang7.noreply@github.com |
5fda096a90541b4f8f01c8692ee9f34c6977c70a | b40a140a911279f3c61737367ab8f3b7c15fe98b | /avakas/get_parameters_file.py | 6f6976a02b4d1dc3baa10e6796e10d3f55ed8aa2 | [] | no_license | AurelienNioche/HotellingBathtub | 80fef9b4106454ec339a6c106c52738f1e95e77b | 5b370a20b1d2417022fd2a6de8a7a4baeeda321e | refs/heads/master | 2021-05-06T13:02:04.130850 | 2018-02-16T22:47:01 | 2018-02-16T22:47:01 | 113,213,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | import os
def get_parameters_file(i):
parameters_files = sorted(
[os.path.join("tasks", f)
for f in os.listdir("tasks") if os.path.isfile(os.path.join("tasks", f))])
return parameters_files[i]
| [
"nioche.aurelien@gmail.com"
] | nioche.aurelien@gmail.com |
5f9505e1e1b70de95dcb28c6046a8d0e0f7887d4 | 99d268ebdbd2ace4f1d7a77287233f79d3e568a6 | /ABC.py | 174dd811d1789206877702fd869b7f2f1feb263a | [] | no_license | hakannatayy/KutuphaneSqlite | 9ed1ec1fdbf08059451f9c9d8ecde7df419e03ba | e5dbfd1b49c1edd0967d8395daa2dc3b645012ac | refs/heads/master | 2020-06-19T22:12:50.218842 | 2019-07-14T23:39:15 | 2019-07-14T23:39:15 | 196,893,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | import sqlite3
db = sqlite3.connect("Kitaplar.sqlite")
imlec = db.cursor()
menu="""
[1] Kitap Ara
[2] Yazar Ara
"""
print(menu)
islem=input("işleminiz: ")
if islem =="1":
isim = input("Kitap Adı: ")
sorgu = "SELECT * FROM 'kitaplik' WHERE kitap = '{}'".format(isim)
imlec.execute(sorgu)
... | [
"noreply@github.com"
] | hakannatayy.noreply@github.com |
18a8a1313433d0b60915c2d10c7992f7f4edbf22 | b9264524ecfa5e3607ee8d70b8b60eb9090c26d2 | /.github/scripts/core_checker.py | f02f4f7bc5789e2dab38f722d8da08ce8d37b0a8 | [
"MIT"
] | permissive | kilograham/FreeRTOS | 884fe99a520616796e29aa4fdb0f0c4f6f641756 | e117bdcd178c4074fd0d255958487807a7b50032 | refs/heads/main | 2023-06-10T21:22:00.915782 | 2021-05-07T22:15:00 | 2021-05-07T22:15:00 | 366,805,094 | 2 | 1 | MIT | 2021-05-12T17:57:40 | 2021-05-12T17:57:39 | null | UTF-8 | Python | false | false | 5,879 | py | #!/usr/bin/env python3
# python >= 3.4
import os
from common.header_checker import HeaderChecker
#--------------------------------------------------------------------------------------------------
# CONFIG
#-------------------------------------------------------------------... | [
"noreply@github.com"
] | kilograham.noreply@github.com |
5d2b4dfaf7911d6060185e33b0f2355572409db8 | 9137e1b185c5588f6e5f057a2a23f85aaa53ffcb | /time.py | 7d3770849e29989662a33eb6c90de6916c0563f5 | [] | no_license | jslijb/python3.x | e8335078cab08939984fb88261aea96f957f4886 | 5675c2cd23b3b9ac63ac13dffb02a8fa3c41b95b | refs/heads/master | 2021-09-02T23:23:23.109466 | 2018-01-04T03:13:55 | 2018-01-04T03:13:55 | 114,987,618 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | # Countdown using Tkinter
from Tkinter import *
import time
import tkMessageBox
class App:
def __init__(self,master):
frame = Frame(master)
frame.pack()
self.entryWidget = Entry(frame)
self.entryWidget["width"] = 15
self.entryWidget.pack(side=LEFT)
self.hi_there = Button(frame,text="Start",comma... | [
"jslijb@126.com"
] | jslijb@126.com |
ad62e62ad82ee0af317cf8a52a60259baf388df5 | 5be744f908ea25bd5442dfb4cb8a24a0d7941e14 | /projects/admin.py | c8920bf36677cf7e0c9cc134b005263cc4b8b0d0 | [] | no_license | CalebMuhia/JobsBoard | f986d7c4af939dded0a3e2f8305a444f3502bad3 | 66c40dd5151261bc7e4fb8309a6139d11604f215 | refs/heads/master | 2022-07-07T22:49:06.733313 | 2022-06-23T20:52:20 | 2022-06-23T20:52:20 | 4,616,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | __author__ = 'caleb'
from django.contrib import admin
from projects.models import *
admin.site.register(Project_categories)
admin.site.register(Projects) | [
"clbnjoroge@gmail.com"
] | clbnjoroge@gmail.com |
f58ab100b7516d0f0afa1a0daff5254a61b54ada | eeb609b8555a4ac6b948c5ce2485a12a88ad2c4b | /app_calendar/views.py | 0c73d3b88588054b4b49ea2e17cbd1509693954f | [] | no_license | Karasevgen1205/The_calendar | ab99b99ecc358024c0b49c90d457c0c10d04e577 | c90ab3fbf9f113379b12f6b255ccda100d7241b0 | refs/heads/master | 2023-03-12T00:59:22.492732 | 2021-03-01T19:33:56 | 2021-03-01T19:33:56 | 332,513,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,009 | py | import django_filters
import holidays
from django.http import request
from django.shortcuts import render
from django_filters.rest_framework import DjangoFilterBackend, FilterSet, BaseInFilter, CharFilter, RangeFilter
from ics import Calendar, Event
from rest_framework.generics import ListAPIView, UpdateAPIView, Create... | [
"Karasevgen1205@yandex.ru"
] | Karasevgen1205@yandex.ru |
41387b0edba51a241184f0ce0eaf133c66de62b7 | 7c92b1e9faf4f7823373dfecfb5ad3a4e4840961 | /s11b-rm-ko.py | 429618006e3dbaa1c40a3d7f7cf3de090141d053 | [
"BSD-3-Clause"
] | permissive | CardiacModelling/AtrialLowK | 7fcd9db47c4551db4decc9b8113abac07edcd9bf | c73a294de137c416eb6dbe5e57231206bcef9d86 | refs/heads/main | 2023-08-10T21:24:45.472769 | 2023-08-02T13:10:34 | 2023-08-02T13:10:34 | 196,734,580 | 0 | 0 | BSD-3-Clause | 2023-08-02T13:10:35 | 2019-07-13T15:05:19 | Python | UTF-8 | Python | false | false | 2,921 | py | #!/usr/bin/env python3
#
# Rm calculcations with different step sizes and durations
#
import os
import sys
import matplotlib.pyplot as plt
import matplotlib.gridspec
import myokit
import shared
# Get path for figure
fpath = shared.figure_dir()
fname = 'figure-s11b-rm-ko'
debug = 'debug' in sys.argv
shared.splash(fname... | [
"michael.clerx@nottingham.ac.uk"
] | michael.clerx@nottingham.ac.uk |
0615c365276b7014f1b2c30106aefa87169532e2 | 20190c7bfbb96819ae707c0c0dd36d4628bd7661 | /cons.py | 6a73ceda7a3c7f2a81f2065d832dc58db9f7faf6 | [] | no_license | Jananisathya/jananisathya | f2ccea6da30ee70a780ce8410ec6c2cd4bf90ea0 | e6b38d860d93690a9176a679a47cd1fa76043412 | refs/heads/master | 2020-06-29T20:47:23.069326 | 2020-01-07T04:22:20 | 2020-01-07T04:22:20 | 200,620,459 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | ch = input("Enter Character : ")
if(ch == 'a' or ch == 'e' or ch == 'i' or ch == 'o' or ch == 'u' or ch == 'A'
or ch == 'E' or ch == 'I' or ch == 'O' or ch == 'U'):
print("Vowel")
else:
print("Constant")
| [
"noreply@github.com"
] | Jananisathya.noreply@github.com |
d0d20fa9e6734a72dee78b47ba0146e83bb3c2c1 | aa0d747ebd4fe6a0d6ba421df1b55bbf7e56449f | /lobby/admin.py | 1e848b1ebea4a77de45e23bc10fef9a11807e178 | [] | no_license | cardholder/server-side | 0dbaca74d1962bd4813f8ca38f0b1ceccfa49019 | bbe0eda02286d5722882e1d4b4c95a31024176f4 | refs/heads/master | 2022-11-14T02:26:25.979819 | 2019-07-14T10:54:58 | 2019-07-14T10:54:58 | 183,203,087 | 0 | 0 | null | 2022-11-04T19:35:10 | 2019-04-24T10:08:01 | Python | UTF-8 | Python | false | false | 138 | py | from django.contrib import admin
from .models import *
admin.site.register(Game)
admin.site.register(Card)
admin.site.register(CardSet)
| [
"stefan.kroeker@fh-bielefeld.de"
] | stefan.kroeker@fh-bielefeld.de |
b796b20a4d9e957f27a98c703b071bbc111e9bde | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/ancpvlanrange_58418cab117460d5be96e7c24e4e1bfb.py | 00c591b0ead7d391ee148ba1bd8b5a0ea079d425 | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 12,400 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# 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,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
8987a79b8238e079d6527786951d545fffd1ab1c | f1614f3531701a29a33d90c31ab9dd6211c60c6b | /test/menu_sun_integration/infrastructure/aws/sqs/mocks/customer_mock.py | a7b78f7010ca6a18c5de255b002fa7e7ea1d8312 | [] | no_license | pfpacheco/menu-sun-api | 8a1e11543b65db91d606b2f3098847e3cc5f2092 | 9bf2885f219b8f75d39e26fd61bebcaddcd2528b | refs/heads/master | 2022-12-29T13:59:11.644409 | 2020-10-16T03:41:54 | 2020-10-16T03:41:54 | 304,511,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,321 | py | def mock_queue_make_api_call(self, operation_name, kwarg):
if operation_name == 'SendMessage':
return {'MD5OfMessageBody': 'a836c42e687e8a08e66a794a5dacd8c1',
'MessageId': '85e8a505-2ba4-4fa3-a93c-cc30bf5e65e7',
'ResponseMetadata': {'RequestId': '7313c686-bca3-5d79-9295-90a51... | [
"pfpacheco@gmail.com"
] | pfpacheco@gmail.com |
62c4cad48205db17deb8d43ff05d2268ff749191 | 1e60b1b311e4e1ced836f43ef055c65f5e78f7ef | /test/functional/feature_block.py | 1e075691fa322b966b361988062a716df107a1a1 | [
"MIT"
] | permissive | liufile/BlackHatWallet | 529bd4b492dbf672aa3d7b1f7dd456e53508fdc4 | 0e6b310fb6cb9bdb3b51a81ab55e606efed891f2 | refs/heads/master | 2023-04-24T13:49:07.117712 | 2021-05-01T12:34:50 | 2021-05-01T12:34:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,998 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test block processing.
This reimplements tests from the bitcoinj/FullBlockTestGenerator used
by the pu... | [
"contact@blackhatco.in"
] | contact@blackhatco.in |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.