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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3e94ba1423443f58923407d0e19aecc2c319fd7e | 7df759d602d2226e0eb033b97cb05000d6890e39 | /src/apps/admin/urls.py | c0737eb25e1b8d5a32449b94472b6b8d7d23d787 | [] | no_license | lenciel/django-shanyou | 958bfa297603b176ea1a186df132c9d2bafb3740 | d580b9c624b10e133ef66b4c16bfa1c49cb48541 | refs/heads/master | 2021-01-10T19:50:04.017038 | 2014-09-26T05:00:22 | 2014-09-26T05:00:22 | 24,486,763 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf import settings
from django.conf.urls import patterns, url, include
from apps.admin.views import ExcelCenterView
urlpatterns = patterns('',
url(r'^$', 'apps.admin.views.home', name='admin_home'),
url(r'^system/$', 'apps.admin.views.system', name=... | [
"lenciel@gmail.com"
] | lenciel@gmail.com |
5f193a424d2c1dd80e275deda7296079eccaf970 | 2b0dbdf25fde57df678eeba96896418f0581ba51 | /上网.spec | bb2a4b6a46f001e5cd5719ce247f1a92e44229c6 | [] | no_license | hysspoluo/jiaoben | bb04bb85e0cf24ff81530dfe3f700d8d7c6f6263 | a79f79821abd29a20a953ad59d2a6598fe6bd6da | refs/heads/master | 2021-02-09T23:14:05.610206 | 2020-03-02T09:39:51 | 2020-03-02T09:39:51 | 244,333,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['mian.py'],
pathex=['F:\\code\\jiaoben'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefe... | [
"517645428@qq.com"
] | 517645428@qq.com |
9e59b42c4a053307c5155b8d56e9f4db65997251 | 920f473f11e839d91e0fb51d94529326881c8ac6 | /vemcee/configtest.py | b8c294781b98ed106d91ec323b4895ccca627d3b | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | decaelus/vplanet | 3345127fa774ec59fe4a88abe1f0de2d280b890f | f59bd59027f725cc12a2115e8d5df58784c53477 | refs/heads/master | 2020-03-28T16:26:06.828950 | 2018-09-17T18:21:32 | 2018-09-17T18:21:32 | 148,694,597 | 0 | 0 | MIT | 2018-09-13T20:34:07 | 2018-09-13T20:34:07 | null | UTF-8 | Python | false | false | 337 | py | import ConfigParser
Config = ConfigParser.ConfigParser()
Config.optionxform = str #Must be before read command
Config.read("vemcee.ini")
#for name in Config.options("Input"):
# print name
#nwalkers = int(Config.get("Global","nwalkers"))
for name in Config.options("Input"):
print name, float(Config.get("Input",name... | [
"benguyer@uw.edu"
] | benguyer@uw.edu |
ab172a988b3dfc53542acc067f85e1400d72973c | b2799efc823f3e7775824aca01311fe2fabe21b5 | /Lexer.py | 6aa066b5ddb4a4aa96e967b717476da87fb02f18 | [] | no_license | EllaHayashi/Recursive_Descent_Parser | 8d877cb6f32ebcfc39909fda6ab3f3ed4c7361d1 | aa640d3df8f9eb62a3615c9434d2fc1168321eca | refs/heads/master | 2020-04-21T23:19:00.083976 | 2019-02-11T04:30:02 | 2019-02-11T04:30:02 | 169,943,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | import re
class Token(object):
""" A simple Token structure. Token type, value and position.
"""
def __init__(self, type, pos):
self.type = type
self.pos = pos
def __str__(self):
return '%s' % (self.type)
class LexerError(Exception):
def __init__(self, pos):
self.pos = pos
class Lexer(object):
"""... | [
"ella.j.hayashi@gmail.com"
] | ella.j.hayashi@gmail.com |
5539e5e8bbe2d9831f752004d2018f128952adf3 | fce51ce3c3da9ca43cc32a1874a94c550d60b90c | /tests/mathops/test_concat.py | 30c1b8157d7ed5f6295c6f82bc866f80d1ff4f79 | [
"Apache-2.0"
] | permissive | kgnandu/TFOpTests | b98ccca4cc8c4ead1dbc6032b41120fafce107f0 | c7e062f228100fd356ca9541de1bf2684f84e757 | refs/heads/master | 2020-03-10T23:44:30.028625 | 2018-04-04T21:14:46 | 2018-04-04T21:14:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | import tensorflow as tf
from tfoptests.persistor import TensorFlowPersistor
from tfoptests.test_graph import TestGraph
class ConcatTest(TestGraph):
def list_inputs(self):
return []
def test_concat_one():
concat_test = ConcatTest(seed=13)
arrs = []
for i in xrange(1, 5, 1):
arrs.appen... | [
"susan.eraly@gmail.com"
] | susan.eraly@gmail.com |
5d9691933859b4e096ca05dd4aaa3c55b71ffbf8 | dbfac16e3f0dd2456f75b346a7f6353d0acecf62 | /homeassistant/components/philips_js/light.py | ef5333a329d786e75be30ec3e8b576f59fff28ba | [
"Apache-2.0"
] | permissive | andersonshatch/home-assistant | 1060b4b92b33edbb3aeec8f5a81950f7095a65e6 | 10e2caf9e698759c48f4e859d3ed7d5c335a18b8 | refs/heads/dev | 2023-03-12T10:46:42.017224 | 2022-01-06T08:32:55 | 2022-01-06T08:32:55 | 81,867,261 | 1 | 0 | Apache-2.0 | 2023-02-22T06:18:12 | 2017-02-13T20:17:34 | Python | UTF-8 | Python | false | false | 12,238 | py | """Component to integrate ambilight for TVs exposing the Joint Space API."""
from __future__ import annotations
from haphilipsjs import PhilipsTV
from haphilipsjs.typing import AmbilightCurrentConfiguration
from homeassistant import config_entries
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
... | [
"noreply@github.com"
] | andersonshatch.noreply@github.com |
70347e3c16ab77aac057331aab21e4349f80540f | 8d4cb9defff8dcbaa4aba92324585eb20f760c76 | /week3/is_in.py | 98d13acb8f7ef88bd3eb281c137766508de2c50f | [] | no_license | tornyak/mit_cs_intro | 48a9add60e1c9bb5a1b90192ea56e9032d3c9789 | d632c94abd89eb35e42e9b34e976a881b6db5d68 | refs/heads/master | 2021-01-22T08:52:50.981979 | 2015-08-11T06:40:36 | 2015-08-11T06:40:36 | 37,287,522 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | __author__ = 'vanja'
def isIn(char, aStr):
'''
char: a single character
aStr: an alphabetized string
returns: True if char is in aStr; False otherwise
'''
length = len(aStr)
# Your code here
if length == 0:
return False
else:
middle = aStr[length / 2]
if char... | [
"vanja.divkovic@gmail.com"
] | vanja.divkovic@gmail.com |
3e4c38aec4617b7e23f6bc80b6dcfb79634a3073 | d5ee0b8f009f5e66218b187f46db23df2cc3a5b8 | /tests/__init__.py | 3dbf0863580f6067bd105133bd16bbae9dd3e5c7 | [
"Apache-2.0"
] | permissive | patarapolw/memorable-password | 53597b21a81a6eac1d82eec105ee1230b2efddab | f53a2afa4104238e1770dfd4d85710bc00719302 | refs/heads/master | 2022-10-20T18:42:49.445087 | 2018-05-05T03:37:03 | 2018-05-05T03:37:03 | 129,497,851 | 10 | 0 | Apache-2.0 | 2022-10-18T18:34:33 | 2018-04-14T08:28:33 | Python | UTF-8 | Python | false | false | 1,441 | py | from time import time
import signal
from functools import partial
def timeit(func, validator=lambda x: True, rep=50):
time_record = []
i = 0
try:
for i in range(rep):
print('Running test {} of {}'.format(i+1, rep))
start = time()
x = func()
if valida... | [
"patarapolw@gmail.com"
] | patarapolw@gmail.com |
e9e49da0b393e489602a258ab2cd3f4f02e30304 | bacd75354fe12269ae5ff7ffef8df712e86ac641 | /05-data-pipelines/dags/udac_sparkify_dim_tables.py | 9d695f2093d8c2ebdd3112ae699d55b48eb8cac8 | [] | no_license | mvillafuertem/udacity-data-engineer-nanodegree | 2fc0ce37f733402069d4e27f6f517a27aa7c5282 | 27930a41a6de6049a05375f488c9ac94608ed2fe | refs/heads/master | 2022-04-19T00:31:59.697442 | 2020-04-19T15:07:28 | 2020-04-19T15:07:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | from airflow import DAG
from airflow.operators import LoadDimensionOperator, DataQualityOperator
def get_staging_to_dim(
parent_dag_name,
task_id,
redshift_conn_id,
table,
truncate,
insert_sql_query,
validate_sql_query,
*args, **kwargs):
dag = DAG(
... | [
"tommi.ranta@wapice.com"
] | tommi.ranta@wapice.com |
00567d992ba6afd5b463dec821fddea678c714c7 | 752b5296171dc6406402a2f5d7d357975bb6b262 | /backend/test1_20435/urls.py | 1117fae5edb4a95bda07a264d8670c908f1bbd65 | [] | no_license | crowdbotics-apps/test1-20435 | 5eb22e772aae9a3f21d4ed68203d4a7dc453f07b | 426b3f6be145e4f7f6167d606026dde86da08b30 | refs/heads/master | 2022-12-19T05:56:38.960908 | 2020-09-19T07:07:35 | 2020-09-19T07:07:35 | 296,806,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,457 | py | """test1_20435 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
34110eb0228dc930d9f3f6c42651cafcaf34570a | 07dbcbe7c48e82b111316c15342e43996e482604 | /survey_results/small-world.py | 3e6e820f84aaa9413628a72f4c7afeca40ca68b3 | [] | no_license | satunr/ProjectCodes | 18f377fa1d9d58ec4c6240dd4ab2aaea3aba096f | 4df96687c829c8059f1fbeaca3cd2d3b7c55e9ab | refs/heads/master | 2020-07-31T06:14:43.071591 | 2019-09-24T05:07:22 | 2019-09-24T05:07:22 | 210,512,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | import networkx as nx
def tiers(G):
t1, t2, t3 = [], [], []
for u in G.nodes():
if G.in_degree(u) == 0:
t1.append(u)
elif G.out_degree(u) == 0:
t3.append(u)
else:
t2.append(u)
return t1, t2, t3
def diameter(G):
G = G.to_undirected()
... | [
"noreply@github.com"
] | satunr.noreply@github.com |
b591e85cf803b93d0a19c9f327bde9105d64c8db | 5c0ef303de210f053c7b2cc0cdccc6a1440e79ea | /soft_toys/SoftToys.py | b321a0d04f9bd78b85ddc93bdd792e92f892521a | [
"MIT"
] | permissive | rutuja1302/NQT-20 | 2ea6ddf2b5f61bca42c8821234503db580bec189 | e1a496058297111e13dbda91f57f587b33aca0c0 | refs/heads/main | 2023-01-30T02:30:16.766528 | 2020-12-04T14:53:37 | 2020-12-04T14:53:37 | 308,243,235 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,438 | py | '''There is a shop of Soft Toys. A shopkeeper arranges the Items on the shelf for display. Customer asks for any Item randomly, either by its name or by its position number.
When Customer places order, Shopkeeper removes those Items from Shelf to sale.
Shopkeeper then rearranges the remaining Items on the shelf such th... | [
"noreply@github.com"
] | rutuja1302.noreply@github.com |
513d38351a10bd85ee201df740e75c0e319c9aa3 | 42245f7a3298b39a6a4826fa0cc2fc3b943a8506 | /codigosURIJudge/animal.py | 10d095ff27348f230c90697a47cd5d470ed09a35 | [] | no_license | JamissonBarbosa/questPython | be5f4bd5b4b6f534fa065911e285cd85b48a63d6 | 1406b94c6b755ee7a2a081b863d4f6314be52ad9 | refs/heads/master | 2023-03-20T19:23:24.893126 | 2021-03-12T11:21:17 | 2021-03-12T11:21:17 | 287,741,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | reino = input()
classe = input()
tipo = input()
retorno = ''
for caractere in reino:
if caractere.isupper():
retorno += caractere.lower()
reino1 = retorno
retorno1 = ''
for caractere in classe:
if caractere.isupper():
retorno1 += caractere.lower()
classe1 = retorno1
retorno2 = ''
f... | [
"jamissondasilvafilho@gmail.com"
] | jamissondasilvafilho@gmail.com |
21b19315ad070353065ed4a8b9998ccbf9707852 | fb87ac4cd514e505e3e6d346e8f0c80291518ee6 | /reddit-clouds.py | d6d9d80364b003e9fc072584b20fb8402c7d2638 | [] | no_license | kodbyte/reddit-clouds | 1e2133d557650b86abcf228c25f859bb0400517b | a0a5cab083ee09f1f88192e96773d6d65ec06b99 | refs/heads/master | 2020-03-11T17:47:46.484298 | 2018-04-19T04:12:43 | 2018-04-19T04:12:43 | 130,127,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | # -*- coding: utf-8 -*-
"""
Program to extract comments from top 100 all time posts for a list of
subreddits and create a wordcloud.
"""
import praw
from wordcloud import WordCloud
from os import path
class Reddit(object):
def __init__(self):
self.r = praw.Reddit(
user_agent=('Comment Wo... | [
"38510574+kodbyte@users.noreply.github.com"
] | 38510574+kodbyte@users.noreply.github.com |
62a53fb992bfa88f9bb00fd0ced85235af8379ee | f6e7bf63d88ddcd43892f62850f8d7f03ba85da0 | /Tools/Scripts/webkitpy/layout_tests/port/base.py | 8c4578dbfa7c3832bf5b7978040114592da2dba9 | [] | no_license | frogbywyplay/appframeworks_qtwebkit | 6ddda6addf205fb1a498c3998ef6fc0f3a7d107f | 5a62a119d5d589ffbf8dd8afda9e5786eea27618 | refs/heads/master | 2021-07-09T14:55:57.618247 | 2021-04-28T13:58:39 | 2021-04-28T13:58:39 | 18,559,129 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 70,330 | py | #!/usr/bin/env python
# Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list ... | [
"dcaleca@wyplay.com"
] | dcaleca@wyplay.com |
4832cf449db617359ba04076eca87a953ae736ee | a93e6d60f9314181eff5a3b2d8950002432c279b | /ordersweb/migrations/0005_auto_20200416_0819.py | 79374387b9234b63c3e9d7f46f38f97e97e72571 | [] | no_license | shanirabi/hasabim_shotim_site | 2ffa8f60305e3426359f941f60a3c876899fcd92 | 0f53708294b27cbcb9b68bfddda7ac62c776a9d1 | refs/heads/master | 2022-12-17T02:29:07.969202 | 2020-05-26T18:36:50 | 2020-05-26T18:36:50 | 243,497,476 | 0 | 0 | null | 2022-12-08T03:41:52 | 2020-02-27T10:55:54 | HTML | UTF-8 | Python | false | false | 527 | py | # Generated by Django 3.0.2 on 2020-04-16 08:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('carts', '0001_initial'),
('ordersweb', '0004_auto_20200416_0723'),
]
operations = [
migrations.Alte... | [
"rabbi.shani@gmail.com"
] | rabbi.shani@gmail.com |
902a73d1028f8660126c938729265ec64884c57f | aa2d5b23fd5c23ffa87af6e2dc4ede4c277e2d24 | /project_LiveCode/settings.py | f62ac28b70de38fe2541071304ae1b1a7f5a0be3 | [] | no_license | adesupraptolaia/DjangoLiveCode | d08359d7febdf1cd4ca811a8de6f709d324c2fe3 | 99c870169e734da29a921769d58043b49e831e9f | refs/heads/master | 2022-12-11T17:53:22.999647 | 2019-10-24T01:02:29 | 2019-10-24T01:02:29 | 198,740,753 | 0 | 0 | null | 2022-12-08T01:05:59 | 2019-07-25T02:19:04 | Python | UTF-8 | Python | false | false | 2,816 | py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
# SECURITY WARNING: keep the... | [
"ades@alterra.id"
] | ades@alterra.id |
ed3cf995887326db79c8a41cf378cb93d291fde3 | 4ccaa7115fb14378a749225201911b7df573bddf | /assignments/tests/func_methods_test.py | 39e146133f5bb3cab84d249c4ac642fef51206c6 | [] | no_license | ukhlivanov/python_learning | 50b54462d1aeb04571623d5f867e25b11a5c08fb | c34251a3a2f0e1ae7e2faf9bd7b9db989b95ccca | refs/heads/master | 2022-02-04T02:59:35.501727 | 2019-07-22T01:36:44 | 2019-07-22T01:36:44 | 198,108,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | import math
def vol(rad):
return (4/3) * math.pi * rad**3
res = vol(2)
# print(res)
def ran_check(num,low,high):
# return num>=low and num<=high
return num in range(low, high)
res = ran_check(0,2,7)
# print(res)
def up_low(s):
uppers = list( filter( (lambda x:x.isupper()),s ) )
lowers = l... | [
"ukhlivanov@gmail.com"
] | ukhlivanov@gmail.com |
7fca940a7ecd0d810bb64a3564789a79a9306770 | 5a5e25ab951ca4a4344ebbcf349245afe869ac8b | /dynamic_circuits/PythInJava/practiceCode.py | 00334f4ae01fc6e3831b18daa4e1d34566e9a2e5 | [] | no_license | CIDARLAB/MIT-BroadFoundry | a351088a407070d2c6fdeb8e7490594f85fb671d | 3ab9722c7d4d85fe6bf48ff3ca94b28366459629 | refs/heads/master | 2021-06-07T04:17:17.910303 | 2016-10-03T16:33:05 | 2016-10-03T16:33:05 | 20,890,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | def func():
return "hello"
def func2():
return 3
def func3(x):
return x
def func4(x):
return "hello"
def funcx(n):
for i in range(n):
he = func()
number1 = 10
number2 = 32
number3 = number1+number2
| [
"arinzeokeke0@gmail.com"
] | arinzeokeke0@gmail.com |
3cd8053c230334887a0fd5125b0fa465c2fa5518 | 6dfffd0e35233069b2ff57066b3b3fe695cb8a1e | /88888.py | 431e80cc0914d9499f13b7b33440938742cfd4bc | [] | no_license | kavinkumar12/2et | 1e5ba38ade5463dddfef907a6601d192d4426746 | 344ad43da4432821588bdb4280d29e0bddc11f84 | refs/heads/master | 2020-06-01T06:56:05.280880 | 2019-06-07T08:42:58 | 2019-06-07T08:42:58 | 190,688,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | N=int(raw_input())
l=[int(i) for i in raw_input().split()]
o=[1,3,2,4,5,4,6,7,8,9]
if l==o:
print(4)
else:
l=[1 for i in range(0,N) for j in range(i+1,N) for k in range(j+1,N) if l[i]<l[j]<l[k] and i<j<k]
print(sum(l))
| [
"noreply@github.com"
] | kavinkumar12.noreply@github.com |
78a0b347d15e45b89bb1bb6e8a16bb6d4874752d | 4ea758f8fe6455941d76ac78a8e4732b8809b252 | /Decisions/DateHelpers.py | e5e7e39d6fef36f6f94b6d992c3f3548d203fc4d | [] | no_license | pscrv/DecisionBibliography | 4599032b7ad99415b44ec921c0951cd0ebdfd0fd | b6b0e2799ed1c7b7eb9f111bf4c68e153d015947 | refs/heads/master | 2020-04-10T17:28:35.468125 | 2017-02-28T23:28:51 | 2017-02-28T23:28:51 | 68,334,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | import datetime
def EndOfThisMonth(dt: datetime):
next_month = dt.replace(day=28) + datetime.timedelta(days=4) # enough to get to the next month, no matter where we start
return next_month - datetime.timedelta(days=next_month.day)
def FirstOfNextMonth(dt: datetime):
next_month = dt.replace(day=28) + da... | [
"scrv.pscrv@googlemail.com"
] | scrv.pscrv@googlemail.com |
4f55f34cb9baa45bbb2488d14da1390ff1c80ee5 | 8d53908ab9a2a9cfe87aaff59407d2931ba8dc7d | /shippy/shipppy/trader/tests.py | 2063c9d482301559944c93e1e60211b300d13bd9 | [] | no_license | shawn-mit/Ship.py | 51cba1f381cad1d17ee0d807ca73a1921f5fe10a | 35d9646060e4ef524e70584fd8532cb40df758bf | refs/heads/master | 2021-01-22T20:02:46.010383 | 2017-10-06T07:19:35 | 2017-10-06T07:19:35 | 85,276,594 | 0 | 0 | null | 2017-05-30T05:07:11 | 2017-03-17T06:04:29 | JavaScript | UTF-8 | Python | false | false | 673 | py | from django.test import TestCase
# Create your tests here.
"""
```def get_products_of_type(request, pk):
product_type = models.ProductType.objects.filter(id=pk)
products = models.Product.objects.filter(product_type=pk)
return render(request, 'initial_site/product_list.html', {
'product_list': p... | [
"forgeforza@outlook.com"
] | forgeforza@outlook.com |
16eb4b1388305c6b5db81b101906995e196e8923 | 343bdaddfc66c6316e2cee490e9cedf150e3a5b7 | /0601_0700/0606/0606.py | a6c01b313b379a2b0cb27b83cb4ee65e4b879e6c | [] | no_license | dm-alexi/acmp | af7f6b4484b78f5922f3b464406a0ba5dea0d738 | 3fa0016d132adfeab7937b3e8c9687a34642c93a | refs/heads/master | 2021-07-09T15:14:25.857086 | 2020-10-20T19:08:54 | 2020-10-20T19:08:54 | 201,908,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | with open("input.txt", "r") as f, open("output.txt", "w") as q:
a, b, c = (int(x) for x in f.readline().split())
q.write("YES" if a + b > c and a + c > b and b + c > a else "NO")
| [
"telefrag@mail.ru"
] | telefrag@mail.ru |
9f912b7519b68590dc6612de222bcae53b67c01d | 6196f75ff091049c4aed32228fb537841714aecd | /Backpropagation/test.py | dc5ac3c7cb1334cc40e4dc12ac5bb1c982e5619c | [] | no_license | PK025/python_exercises | a0f079238d7fdc10038a05c48393396a262c0018 | 74ffd8eea0355954a481fc346f2c7d1a3eea4636 | refs/heads/main | 2023-03-26T18:08:43.574878 | 2021-03-23T20:50:18 | 2021-03-23T20:50:18 | 349,801,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | #!/usr/bin/python
import matplotlib.pyplot as plt
import numpy as np
from backpropagation import BackpropagationNetwork
x = np.array([0, 0, 0.0])
x = np.c_[x, [1, 0, 0]]
x = np.c_[x, [0, 1, 0]]
x = np.c_[x, [1, 1, 0]]
x = np.c_[x, [0, 0, 1]]
x = np.c_[x, [1, 0, 1]]
x = np.c_[x, [0, 1, 1]]
x = np.c_[x... | [
"80473046+PK025@users.noreply.github.com"
] | 80473046+PK025@users.noreply.github.com |
926769219ac6a39eda5430b8a5689740529a8af8 | fe3941c0a6a7d19d031893c7507249315f07c283 | /ML.py | e642fd147e872a02d159c845ef87f659713efafb | [] | no_license | lihan-hub/DIT- | bc4a6ab05408503404dcd3f7345eb879415b3214 | ad116e15123b888d8879270851a1bdde8a11590a | refs/heads/main | 2023-01-12T05:48:07.252596 | 2020-11-17T13:53:03 | 2020-11-17T13:53:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,918 | py | import os
import numpy as np
import random
import sklearn.svm as svm
from sklearn.ensemble import RandomForestClassifier,AdaBoostClassifier
from scipy.io import loadmat
from sklearn.decomposition import PCA
def get_data(train_list):
data = loadmat("MCAD_AFQ_competition.mat", mat_dtype=True)
train_set = data["... | [
"noreply@github.com"
] | lihan-hub.noreply@github.com |
e6fa66d0695e08d0e924ef2ef7dbce60f02cdf35 | 58d6c7927d58ba9782c79624dadd9602c8148daa | /deform/tests/test_field.py | bf5e518679796938aeb0f46080e5db3fdc3481f0 | [
"CC-BY-3.0"
] | permissive | benzheren/deform | 413c57da9a5e43d6b228c661756e19ff6461cbba | 79d8ac16743815f0c24c27c2ca7ea4287dc5ffb4 | refs/heads/master | 2021-01-15T20:23:55.318165 | 2011-05-20T03:06:33 | 2011-05-20T03:06:33 | 1,549,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,445 | py | import unittest
def validation_failure_exc(func, *arg, **kw):
from deform.exception import ValidationFailure
try:
func(*arg, **kw)
except ValidationFailure, e:
return e
else:
raise AssertionError('Form error not raised') # pragma: no cover
class TestField(unittest.TestCase):
... | [
"chrism@plope.com"
] | chrism@plope.com |
a5fc5e913e393f7bf043d122a6bbfcfbb1c2aea4 | 3e1fbafd3dd8ce692436cf1e7e5e4e73d007c35d | /marketlist/list/models.py | 8a1bea32176f6411eeb3f50b5fffc95d64c79d9c | [] | no_license | NemoIII/marketlistapp | a2ade01bcb5879988b461bcdcf026580644f2c3f | 5e5a257d2f0944f6a6fc70c2a8df2cfe1c283b98 | refs/heads/main | 2023-03-29T19:47:54.092712 | 2021-04-08T10:29:00 | 2021-04-08T10:29:00 | 355,608,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class List(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, null=True, blank=True)
title = models.CharField(max_length=100)
description = models.TextField(null=True, blank=True)
co... | [
"ipizette@gmail.com"
] | ipizette@gmail.com |
c42c1dfc895aca4384eeaaffae5e23429436d4a3 | 85235c8c2e60eacfde777a9f1db28b9543a1f0c9 | /Lab6 Seaborn/adv_com_prog_lab_6.py | 328a573020d43fc835ad20b48fc44ab7f812b233 | [] | no_license | mikepeerawit/AdvComProg-Lab | 5a2922cc66ed7340cf8ca7dbd7e390c2b541796a | 6c14094edb02c30a4e448f77c309b0f128976991 | refs/heads/master | 2023-02-14T15:48:51.901631 | 2020-12-17T13:12:16 | 2020-12-17T13:12:16 | 289,206,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | # -*- coding: utf-8 -*-
"""Lab 6:Seaborn and Plotly.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1hX_8oify-XbjHu_up5s_1dMkWIpCJdod
# 1.Pairplot
"""
import pandas as pd
import seaborn as sbs
df=pd.read_csv('Iris.csv')
temp_df=df.T.iloc[1:]
te... | [
"noreply@github.com"
] | mikepeerawit.noreply@github.com |
546a0de4ae6c8d3f960ecb415f3c7612dd85337b | c47744e6087ba4b5bd04b442bbf10cddcf98db0a | /nautical.py | 92f1c0745aba12037d9cae407080f3018ab93440 | [] | no_license | ebrianphillips/python-musings | e4b7f4e4a182a10a3997e9f24bab5d5845a33462 | fcf635374f915184d739e8e2598cabe14a067db3 | refs/heads/master | 2021-07-02T08:22:45.989410 | 2017-09-20T00:54:53 | 2017-09-20T00:54:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | """
Program: nautical.py
Author: Brian Phillips
Convert kilometers to nautical miles.
A program that takes as input a number of kilometers
and prints the corresponding number of nautical miles.
Using the following approximations:
A kilometer represents 1/10,000 of the distance
between the North Pole and t... | [
"noreply@github.com"
] | ebrianphillips.noreply@github.com |
424186b5d8d9b4d106731635d39a3b166e557429 | 5dcfa89e1c7e2dc79e4f3278003552b15708efbf | /apps/operation/__init__.py | f6fd69999b2ef01c837afdfa9aeba98a02e6551e | [] | no_license | tangchaolizi088/MyProjectOnLine | 10f087e072d61bc0306c85b2364e44ee4ef964f5 | 077dc815905161da09d72e52a98f1571a397a224 | refs/heads/master | 2020-06-17T03:26:24.713940 | 2019-10-23T05:45:11 | 2019-10-23T05:45:11 | 195,780,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py |
default_app_config = 'operation.apps.OperationConfig' | [
"348759948@qq.com"
] | 348759948@qq.com |
8497e80440ba465616edc57f1e1d2c4abc483b4d | 32bbe238d3e561e22a219403e645603f9e3ceafd | /DMOJ/dpc.py | 226d88bdcc72dc0dcf9a6fc971729ce8418fd04e | [] | no_license | KennethRuan/competitive-programming | 02fae63934b943051d7d400d901af2c73b8f5622 | be880387bdf2a14444d9d1520d7ab2dc866b5220 | refs/heads/master | 2021-09-19T16:13:18.904749 | 2021-08-14T02:43:46 | 2021-08-14T02:43:46 | 237,291,590 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | n = int(input())
ac = []
for i in range(n):
ac.append(list(map(int,input().split())))
dp = [[0 for _ in range(3)]for _ in range(n)]
dp[0][0] = ac[0][0]
dp[0][1] = ac[0][1]
dp[0][2] = ac[0][2]
for i in range(1,n):
for j in range(3):
for k in range(3):
if j == k:
continue
... | [
"kennethjruan@gmail.com"
] | kennethjruan@gmail.com |
6a513bb64534472a63a8c186ebbc6b7bbb89b92e | 2b99f1044fc725bdc0e7948b0f2298e6b473baec | /yeezy.py | b96fdb00c59105576341802e1f2f27f9564b83ca | [] | no_license | jrfeibelman/yeezy-scraper | 0fe554b9aeb00fc6e97acd00545db0332a50ee07 | 09266f354a9b1d0acac7e61a85807dfe9d587cf5 | refs/heads/master | 2020-04-01T05:51:04.492162 | 2018-10-14T00:12:06 | 2018-10-14T00:12:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,333 | py | import json, re
from tweepy import Cursor, OAuthHandler, API
from pandas import DataFrame, read_csv
from selenium import webdriver
import numpy, requests
import bs4 as bs
from time import clock
class YeezusBot:
# Load credentials from json file
def __init__(self):
with open("twitter_credentials.json",... | [
"jason.feibelman@gmail.com"
] | jason.feibelman@gmail.com |
b6eb0d89d7d7fb0bdcf5ac7edd86382cb49811e4 | aa2104c52c8bcb0cc9e32073204709fe1c530857 | /Dynamic Programming Agent/w1_env.py | de4dd510b3e29eaa34ea47323345e7a8a12e5d29 | [
"MIT"
] | permissive | yfe3/Intelligent-Systems | a8440c4d881bb0a62772cd60a21b7cdf0ddde48d | 14c22e144e1a7f8625b2ff3f63e9c0545f946f69 | refs/heads/master | 2021-05-05T02:45:33.631883 | 2018-02-01T05:00:31 | 2018-02-01T05:00:31 | 119,784,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,270 | py | #!/usr/bin/env python
"""
Author: Adam White, Mohammad M. Ajallooeian
Purpose: for use of Reinforcement learning course University of Alberta Fall 2017
env *ignores* actions: rewards are all random
modified from thew sample code serve as the environment
now all reward are random based on their expectati... | [
"yfeng3@ualberta.ca"
] | yfeng3@ualberta.ca |
71cddcc5043ec31719e409870918651c5295ecd1 | b284f6abf9b078e80017ccc3e8e84ab76b6c9535 | /UNetExperiments/DrawingWithTensors.py | a7fec70ede6d360c11be8f6d1cb7ac53f55dbb5b | [] | no_license | iCopyPasta/COMP594 | c5473b279943e57457b77e7f0b72afdb645a302c | f7f8c84f4b49fa1b10a626bfeee178bbbab66621 | refs/heads/master | 2020-03-24T19:04:19.701045 | 2018-11-19T19:34:35 | 2018-11-19T19:34:35 | 142,908,097 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,290 | py |
# coding: utf-8
# In[1]:
from PIL import Image
from random import randint
import numpy as np
import pandas as pd
import sys
import torch
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import tensorflow as tf
import torchvision
import warnings
import functools
import os
class datasetFactory(object... | [
"thepabloski@gmail.com"
] | thepabloski@gmail.com |
898d5cbdc6350c88d54b4615b229c5f023e04188 | 2fce94d3b9d2b541480edc7644f9aaf5dc4ea6fc | /apps/operation/models.py | a557f1c36213ec433c37dec23da410c875c9c9b1 | [] | no_license | a0bb/e_learning | 83e0cae553ee31912e28f1c2b0a3a1357a4b4ff4 | c2373b42c08988877531364d56b6138697771615 | refs/heads/master | 2021-06-21T22:23:37.070950 | 2019-07-24T00:56:41 | 2019-07-24T00:56:41 | 188,257,168 | 0 | 0 | null | 2021-02-08T20:35:07 | 2019-05-23T15:07:18 | Python | UTF-8 | Python | false | false | 2,342 | py | # _*_ encoding:utf-8 _*_
from datetime import datetime
from django.db import models
from users.models import UserProfile
from courses.models import Course
# Create your models here.
class UserAsk(models.Model):
name = models.CharField(max_length=20, verbose_name="姓名")
mobile = models.CharField(max_length=11... | [
"wang.shihua@outlook.com"
] | wang.shihua@outlook.com |
5df335a96b2df65d44840127b3d3bd3af9cc0654 | cb8c63aea91220a9272498d5ea6cca0a0738b16a | /bela.py | c1796a03efbc6479c7664779db8914c6446f649f | [] | no_license | akantuni/Kattis | 1265de95bfe507ce7b50451a16f19720b86bef44 | 12f31bb31747096bf157fcf6b1f9242d91654533 | refs/heads/master | 2021-12-14T11:18:27.723045 | 2021-12-11T05:43:37 | 2021-12-11T05:43:37 | 111,472,667 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | s = input()
n = int(s.split()[0])
b = s.split()[1]
total = 0
dominant = {"A": 11, "K": 4, "Q": 3, "J": 20, "T": 10, "9": 14, "8": 0, "7": 0}
not_dominant = {"A": 11, "K": 4, "Q": 3, "J": 2, "T": 10, "9": 0, "8": 0, "7": 0}
for i in range(4 * n):
card = input()
if card[1] == b:
total += dominant.get(ca... | [
"akantuni@gmail.com"
] | akantuni@gmail.com |
19a9f36af3da3007a2f3aac99bed387a29b23c64 | 6d6a935c8281984fc26201a3d505151382cd36a9 | /Introduction to Computer Science and Programming Using Python/Problem Set 5/ps6.py | 723e9041287e1daaba4441a00f34fb5102892a73 | [] | no_license | Sruthisarav/My-computer-science-journey | 56a7663ebc9c45c029c68da943969cdcbc2a88ac | 1af1d33ea7f49c92e9b5b82c9c92b7076a93825a | refs/heads/master | 2020-04-14T16:45:04.805208 | 2020-01-15T02:45:07 | 2020-01-15T02:45:07 | 163,960,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,645 | py | import string
### DO NOT MODIFY THIS FUNCTION ###
def load_words(file_name):
'''
file_name (string): the name of the file containing
the list of words to load
Returns: a list of valid words. Words are strings of lowercase letters.
Depending on the size of the word list, thi... | [
"sruthisarav2@gmail.com"
] | sruthisarav2@gmail.com |
71d99592cc66f6bd7551e9e284c96aae2bbc256b | 2b990eab54cddce466285a52de6340eb47d7705f | /src/generator.py | fcf6dc1e6ea0e56cbd1c3311dc1588d4d6ec0f00 | [] | no_license | VaggelisSpi/Hate-Speech-Detection-Using-Neural-Networks | 4e96ba6f9e7f5362061e8fbc7a5c00028d65f44b | e631f86b012b0837d6bfdaaa0c8bac807fe7ec6d | refs/heads/main | 2023-08-25T05:39:15.042515 | 2021-11-05T18:25:21 | 2021-11-05T18:25:21 | 368,465,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,056 | py | import numpy as np
from nltk import word_tokenize
class KerasBatchGenerator(object):
def __init__(self, data, classes, dataset_size, batch_size, num_classes, vectorizer, vec_size, cycle=True):
"""
Constructor of the class KerasBatchGenerator. This generator is used when we don't
have a wo... | [
"vaggelisspithas@gmail.com"
] | vaggelisspithas@gmail.com |
692a0dd829d67f2880469a5480b4a6a213ce56d6 | 6ce578b5f1bbb0f58fde8333832f7925bf6853ee | /level3/model/commission.py | 8f4403c5c28eb3ece5d19946d23bccc1d5873400 | [] | no_license | ldesuque/python-levels | 22ab34f56896cba87e120f4069712474ea3a70cf | dfc9839e31ba8316433fef8084cd257539586540 | refs/heads/master | 2023-05-14T18:46:53.343297 | 2021-06-07T09:42:13 | 2021-06-07T09:42:13 | 374,608,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | COMMISSION_RATE = 0.3
INSURANCE_COMMISSION_RATE = 0.5
EURO_CENTS_PER_DAY = 100
class Commission():
def __init__(self, rental_price, rental_days):
self._commission = rental_price * COMMISSION_RATE
self._rental_days = rental_days
def _get_total(self):
return self._commission
def _g... | [
"ldesuque@fi.uba.ar"
] | ldesuque@fi.uba.ar |
24a6a3760a022f098d5c9b5e463f6d45b13207f6 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/rhk.py | 1c3dd6df8ac37fc874301af93c2e1637de44ee3e | [] | 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 |
32e2852d7c1f5ec9d1e617ba6259d05590923d37 | acba1a8344b0478888b1393cdabc2cbf7898d9f6 | /presidio-anonymizer/presidio_anonymizer/entities/anonymized_entity.py | c76ebf4dd72918855c5fad191cf4ba51ad0da13a | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"CNRI-Python",
"Unlicense",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | hkarakose/presidio | 0f6cc0343c7fb2bcc9845b1adb7cbdf50a1f0692 | 00431870d0cd3e3a507a86ffb2cdbabf9b18d829 | refs/heads/main | 2023-03-15T01:24:43.582441 | 2021-03-14T20:24:24 | 2021-03-14T20:24:24 | 347,631,861 | 0 | 0 | MIT | 2021-03-14T12:36:10 | 2021-03-14T12:33:37 | null | UTF-8 | Python | false | false | 1,235 | py | class AnonymizedEntity:
"""Information about the anonymized entity."""
def __init__(
self,
anonymizer: str,
entity_type: str,
start: int,
end: int,
anonymized_text: str,
):
"""Create AnonymizerResultItem.
:param anonymizer: name of the anonym... | [
"noreply@github.com"
] | hkarakose.noreply@github.com |
5d50546e42b94a120eee0b809792ebcc1dca11b0 | e84c264eab50df607457f02dc2720a8a3bc2e7a2 | /mptt_project/settings.py | 9e4598def5c5690bf44f62ebdfba7b92712a5ff0 | [] | no_license | smallevilbeast/mptt_example | 6aedc345c66442413ab649c35981018c818069ae | 159f39a7f98fd9fbe2b10d396ff61034d5b0ebaf | refs/heads/master | 2021-05-28T18:46:14.381014 | 2013-07-13T08:19:50 | 2013-07-13T08:19:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,325 | py | # Django settings for mptt_project project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'd... | [
"houshao55@gmail.com"
] | houshao55@gmail.com |
17070c9e131e7da1eaa887ebda61685154eec3d6 | e082e8d3093cd0ef4f648bb152c4f84ac81b9047 | /install/norns/files/crone/wscript | 15301a8f6be44ba37e14716d322ef2fb0044fb31 | [] | no_license | okyeron/fates | cceffea2a370da30e8bc5d153904c470584bd1bb | f7f4cf69a8886f77be943c564b69f925b95d2e88 | refs/heads/master | 2022-06-03T15:43:02.624461 | 2022-05-20T23:45:32 | 2022-05-20T23:45:32 | 183,079,154 | 175 | 29 | null | 2019-10-16T02:20:09 | 2019-04-23T19:04:41 | Shell | UTF-8 | Python | false | false | 1,323 | top = '../..'
def options(opt):
opt.load('compiler_c compiler_cxx')
def configure(conf):
conf.load('compiler_c compiler_cxx')
def build(bld):
crone_sources = [
'src/main.cpp',
'src/BufDiskWorker.cpp',
'src/Commands.cpp',
'src/MixerClient.cpp',
'src/OscInterface.cp... | [
"1909661+okyeron@users.noreply.github.com"
] | 1909661+okyeron@users.noreply.github.com | |
f13072c3ef39008c0a03518d43e06fdf83f1efbc | 6b5ada71c8b86fc9081389e2d2f0ef0518432638 | /krokodeal/local/wsgi.py | d1776ff802b49e77a9b0ff899929d208b9d7a9da | [] | no_license | d00astro/Krokodeal | 0f7132a956e0e8e79c22b7cb1278139c71da5e9c | f0f9a0c6811f7d716b0f75076278e2ad62cb4946 | refs/heads/master | 2021-01-13T01:44:36.668186 | 2015-05-25T11:15:13 | 2015-05-25T11:15:13 | 24,201,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | /home/anders/Projects/Krokodeal/krokodeal/wsgi.py | [
"anders.astrom@gmail.com"
] | anders.astrom@gmail.com |
8b724fe06e2eda5854d33c57a12e69f77e96bb86 | 72a9dd581ec157e362d0f38037f7f24d88ed6e26 | /azure/worker/bindings/http.py | 32c7ee7752a6385e0871ac6c01c1697d1d428667 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | sai306/azure-functions-python-worker | 41b6e8aecc19227adbe8e871261d453a37d0b369 | 905a63d55dee966428609f366083a89757033309 | refs/heads/master | 2021-04-03T01:48:24.469988 | 2018-03-02T22:27:45 | 2018-03-05T17:25:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,775 | py | import json
import types
import typing
from azure.functions import _abc as azf_abc
from azure.functions import _http as azf_http
from . import meta
from .. import protos
class HttpRequest(azf_abc.HttpRequest):
"""An HTTP request object."""
__body_bytes: typing.Optional[bytes]
__body_str: typing.Optiona... | [
"yury@magic.io"
] | yury@magic.io |
966055d11dc5c95dfcd60488739a366479962bdb | 3dfb4ee39555b30e6e0c6fcdbef371864e69f694 | /google-cloud-sdk/lib/googlecloudsdk/core/console/console_io.py | 9b7c9aa24cab3a27f61606aad313b3e11a8054b4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | MD-Anderson-Bioinformatics/NG-CHM_Galaxy | 41d1566d5e60416e13e023182ca4351304381a51 | dcf4886d4ec06b13282143ef795c5f0ff20ffee3 | refs/heads/master | 2021-06-02T21:04:12.194964 | 2021-04-29T14:45:32 | 2021-04-29T14:45:32 | 130,249,632 | 0 | 1 | null | 2020-07-24T18:35:21 | 2018-04-19T17:25:33 | Python | UTF-8 | Python | false | false | 32,372 | py | # Copyright 2013 Google Inc. All Rights Reserved.
#
# 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 ag... | [
"rbrown@insilico.us.com"
] | rbrown@insilico.us.com |
9c3f3d913908182c64a1efd02ea2c979145115ef | 9d5fd8a897ae597425e2182760103eee2bdba514 | /CNC/BiesseWorksBPP120_bA.py | df980b7bb72b3fe1616a48397b5f04cd8e20ac64 | [] | no_license | AlexandrDragunkin/ARLN_PROTO | 29bbdbafa127e65e1de62b382eda0023bf573a4c | e1b0296f91eb6534402691cbd2bfeb784e642620 | refs/heads/master | 2021-08-30T13:59:56.140407 | 2017-12-18T07:09:25 | 2017-12-18T07:09:25 | 114,336,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86,672 | py | # -*- coding: utf-8 -*-
# A3.30 ARLINE
import sys
# commonappdata=k3.mpathexpand("<commonappdata>")+'\\'
dvsyspath=['f:\\Python33\\DLLs',
'f:\\Python33\\Lib',
'f:\\Python33\\Lib\\site-packages',
#'c:\\PKM73\\Bin\\python33.zip'
#'d:\\Python26\\Lib\\site-packages\\openpyxl',
#'d:\\Python26\\Lib\\site-packages\\win32'... | [
"alexandr69@gmail.com"
] | alexandr69@gmail.com |
b76d177d849e9129be32fb01f3a8b580988da26f | 4f956e9ad537a78eb536ff02ee691e7a54563800 | /app/components/MapBuilder.py | d64d3e08c3ae4edd3d4ebd04613edae63a69809f | [] | no_license | aemcgraw/Making_Maps | d311416c96c2cc50d4679a475d82a79e771487e1 | b8f988284a7d165149e281e8e61eb2f32f5d15c9 | refs/heads/master | 2020-09-09T04:39:43.961615 | 2020-03-31T03:36:12 | 2020-03-31T03:36:12 | 221,349,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | from PIL import Image
from app.components.Map import Map
import app.util.util
def generate_random_map():
new_image = Image.new('RGBA', (400, 400), (0, 0, 255, 255))
new_im = Map(new_image)
new_im.flood()
i = 0
while i < 10:
new_im.draw_island(util.get_scaled_log(10000))
i += 1
... | [
"mcgraw4@illinois.edu"
] | mcgraw4@illinois.edu |
80f2756291480b87078a382c9248203b282d775b | 95b5860cfc92d698987617b9f80e431e95c6b612 | /Core/utilities/results/success_result.py | cf4279305dbe32d7111b5fa0b1a92f629551bc5d | [] | no_license | cihatyalman/python_core | fd38a69f6ca6fe1f189d518b1aa2e70220879ebd | 2a22f225c681e1c16bacba1a60bdae058c9034b3 | refs/heads/master | 2023-06-05T05:44:51.886056 | 2021-06-29T20:40:10 | 2021-06-29T20:40:10 | 346,646,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from Core.utilities.results.result import Result
class SuccessResult(Result):
def __init__(self, message="Successful"):
super().__init__(True, message)
| [
"noreply@github.com"
] | cihatyalman.noreply@github.com |
56118820b0c970baddf97586606dcfbf3d312aa4 | 6c17f49123dfd415df395c04478f7f07058d121b | /PySource/Chapter-4/6_membership_operators.py | a06c5cadc5135058ace2c24c9e93054ef6c9fa44 | [] | no_license | BrighterMyanmar/Python-Programming-Online-Course | a8c7a616385b2f82e1ac21c54006d7da5fda1277 | 178866881d8d5ae641cd4f2493c7f61a372c6ae7 | refs/heads/master | 2023-01-23T00:18:55.804031 | 2020-12-06T11:24:07 | 2020-12-06T11:24:07 | 319,015,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | para = "The is a need, there is a way!"
bol = 'need' in para # is 'need' in para variable string
bol = 'is' not in para # if 'is' not in para variable string
print(bol)
| [
"azphyo72@gmail.com"
] | azphyo72@gmail.com |
87e0bc597a20bab6fba49916144cdf8e29b6b3ee | 855b1e8e08ae5799e2de7211e21a623f2f3ca632 | /Python_Pharmacy_project/user.py | 7c74b1185884a7d0a86020e224075e8f03104c67 | [] | no_license | Navanithbs/Pharmacy-Management-system-project | 3f151c1069255cb3406b98c5fd4417d97920a082 | 514012236dba6a6cd0492b26535b3db1f54333a2 | refs/heads/master | 2022-11-24T14:25:10.197966 | 2020-08-02T16:32:03 | 2020-08-02T16:32:03 | 271,997,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,122 | py | import sys
try:
import Tkinter as tk
except ImportError:
import tkinter as tk
try:
import ttk
py3 = False
except ImportError:
import tkinter.ttk as ttk
py3 = True
import user_support
import os.path
from tkinter import messagebox as mb
def vp_start_gui():
'''Starting point when module is ... | [
"navanithbharadwaj@gmail.com"
] | navanithbharadwaj@gmail.com |
7f7f1b8389ee33a45136a0cb2a2310540f960168 | c04f97f87bdab326e33541f6fc24064d46670183 | /Models_Morpheus/Codes/gen_SA_plot_Fig5.py | 837de8b5093fca5516b5f07015b7c78dc74b83cf | [] | no_license | HFooladi/Self_Organization | cf6f1dc3836a0376c63d402d50cf71571ceeba37 | 3514050c142cdb9be85554867874a368eae4d70c | refs/heads/master | 2022-11-13T06:29:29.930918 | 2022-11-05T13:18:11 | 2022-11-05T13:18:11 | 135,709,222 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,699 | py | import numpy as np
from matplotlib import pyplot as plt
import os
sweep_file_names = ['r1', 'r2', 'beta1', 'beta2', 'lambda', 'a1', 'a2', 'n']
sweep_param_range = [
'(0 ~ 0.8)', '(0 ~ 2)', '(10 ~ 30)', '(10 ~ 30)', '(0 ~ 1)', '(0 ~ 1)',
'(0 ~ 1)', '(1 ~ 4)'
]
title_tex = [
r'$r_1$', r'$r_2$', r'$\tilde{\be... | [
"fooladi.hosein@gmail.com"
] | fooladi.hosein@gmail.com |
4b75ff79b24443ddeed62399a83225f95c3e3c06 | 79fd11f27993880d4485b41b58efb063317d1b57 | /cam.py | 90dcb396357d673ba1b8bc0eafa07d5ad35aee17 | [] | no_license | jlcruz2318/one_files | 96421f1e66e979eda51325fc343acce97d2400e7 | f235fffeb5845b33ddfedb97f1bbd889e1468a34 | refs/heads/master | 2021-03-02T20:18:58.038421 | 2020-03-08T23:03:09 | 2020-03-08T23:03:09 | 245,902,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | import cv2
# import imutils # For rotating the frame
# import numpy as numpy
#
# car_cascade = cv2.CascadeClassifier('/home/checkdev/Documents/dev/Environments/open_spot/open_spot/haar_cascade_creation_process/data/cascade.xml')
cap = cv2.VideoCapture(0) #'http://85.237.63.165/mjpg/video.mjpg'
while True:
ret, i... | [
"noreply@github.com"
] | jlcruz2318.noreply@github.com |
1cf3a8923943392ca3536149d1a7031a3a1e27ec | abad1268fa6e080f9e4202a42f13c1204ca32bff | /dict-list/langages.py | f9f626bd77bf5b7ccc980ff90bdbf9e2eae942b9 | [] | no_license | cKouT/pythonCourse | 11c7fd5c440eb1a5b25cbd4fe415fdd9f78fe621 | 6a2ba09e4b529644324418d26b83ff96b6aa5e27 | refs/heads/master | 2020-04-01T05:05:22.807427 | 2019-01-08T05:06:29 | 2019-01-08T05:06:29 | 152,889,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | favorite_languages = {
'jen': ['python', 'ruby'],
'sarah': ['c'],
'edward': ['ruby', 'go'],
'phil': ['python', 'haskell'],
}
for name, langages in favorite_languages.items():
print('\n' + name.title() + ' favorite langages are :')
for langage in langages :
print('\t- ' + langage.title()) | [
"mm@MacBook-Air-de-MM.local"
] | mm@MacBook-Air-de-MM.local |
92574ce1c0c0561b2041e3bb666b9bf94681e71e | 8d45a9919651c57947d1e556100bd04016f5a30e | /nnpacktry1.py | 9d29282ac5ddc32936728c0d31cc2daf2d2cfb12 | [] | no_license | Adhi15/NN_pack_Numpy | 2daff6cbd15d8ad72bcc57b66213507dfadbd42d | 4e4dd87298bd4cd714df7c1d2123e4ead9c7c2da | refs/heads/master | 2021-01-03T00:04:18.863918 | 2020-02-11T17:46:43 | 2020-02-11T17:46:43 | 239,826,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | from Neural import Neural_class
import numpy as np
#x = np.array(([2, 9], [1, 5], [3, 6], [5, 10]), dtype=float) # input data
#y = np.array(([92], [86], [89]), dtype=float) # output
x=np.array(([1,0,1],[0,0,1]), dtype=float)
y=np.array([[1,1]]).T
# scale units
#x = x/np.amax(x, axis=0)
#y = y/100
# ... | [
"noreply@github.com"
] | Adhi15.noreply@github.com |
0ccc2ecbd5e71c2b2e398add5c4b7f3d50bf6a8a | 21d2dd5267345a661d19240c8e45b7d2228ad992 | /imagedist/tools/utils.py | 0ce949c190242a4e23fac993b5eaa2f0906a2385 | [] | no_license | rd37/glintify | cff31b81c2a97d52032345fe288503cd494cb2b0 | 08b11bdffdbea700a89940267f0657d30ba8c6b7 | refs/heads/master | 2016-09-05T15:55:20.933827 | 2015-07-15T21:40:27 | 2015-07-15T21:40:27 | 38,902,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | '''
Created on May 15, 2014
@author: rd
'''
import base64
def encode(string,key):
msg = "%s %s"%(key,string)
return base64.encodestring(msg)
def decode(string,key):
msg = base64.decodestring(string)
return msg.split()[1]
| [
"ron.desmarais@gmail.com"
] | ron.desmarais@gmail.com |
e400441cfd426f16de3ef88f40728258f17a3346 | 044723b6f2968bbe45b2f985ec169ade910782ff | /Redis with Python/1-Shirt-Store/4-shirt-store/main.py | 277424201cb4a73f0319a0aa0b57ea28e7d38069 | [] | no_license | hikarihust/redis | ca9a60289de006ae9842b430c265c9920e328310 | 2e79d8c2dcc23c0818623e98f85bf1545dd0b66a | refs/heads/master | 2023-03-22T18:26:53.959482 | 2021-03-18T16:43:06 | 2021-03-18T16:43:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | import redis
r = redis.Redis()
def scan_keys(pattern, pos: int = 0) -> list:
shirts = []
while True:
pos, val = r.scan(cursor=pos, match=pattern)
shirts = shirts + val
if pos == 0:
break
return shirts
def buy_items(r: redis.Redis, itemid) -> None:
pipe = r.pipel... | [
"vudinhquangk53@gmail.com"
] | vudinhquangk53@gmail.com |
0d3b7ba30d941e178d3f4b5ccff2bae920b29186 | 3a012f9ebb2ce44f163ff257ea7ae6082631ac1c | /Algorithm_basic/venv/bin/pip3 | 1663f6eac26421771ec3ca1f2dca4a87044c5774 | [] | no_license | IMSOYUL/Algorithm | 39a967c1b2153d6a091912053c8651320d1823e8 | 193c03f6ada1f133e22f3e1e03c81c01767ce3ee | refs/heads/master | 2023-03-22T12:41:07.070930 | 2021-03-22T15:27:44 | 2021-03-22T15:27:44 | 347,569,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | #!/Users/soyulim/Documents/Repository/Algorithm/Algorithm/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"soyulim26@naver.com"
] | soyulim26@naver.com | |
1a5ec117ab6068d2068acf95633fa13c7cd79e8d | 6ad61ba6e0ed188ffcda11bff93f94f4f86b2b4f | /values/src/models/python/run_test_doors.py | 458a69b30295163eec02bf3bd296651230d6ab3d | [] | no_license | gestom/metro_models | c9dff150b82d805ab67c5f244952ab9e1820413e | b1a7fbb2bc2a1987551fed6c262009689f9f3995 | refs/heads/master | 2022-08-01T05:49:02.070168 | 2020-05-06T06:56:29 | 2020-05-06T06:56:29 | 261,673,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,045 | py | #!/usr/bin/env python2
import numpy as np
import python_module as pm
#import tested_doors_python_module as pm
import dataset_io as dio
#c = dio.loading_data('../data/training_two_weeks_01.txt')
#c = dio.loading_data('../data/10_weeks_doors.txt')
#c = dio.loading_data('../data/training_data.txt')
c = dio.loading_data... | [
"tomas.krajnik@agents.fel.cvut.cz"
] | tomas.krajnik@agents.fel.cvut.cz |
55f487b60d2251c28e008b922dfcafb4607080cd | 8506f0a22ef4edf03627951ced530b921ff4d383 | /tools/route/vehicle2flow.py | ff7551f7e8f38a076b69a09947de2cfebd87b2c8 | [] | no_license | deepak728/Traffic-Optimization- | fb0ac074fa601e524eb0d79defc7e8b84ab03138 | 85bc54de2e318f36bdcc5bb6f05badde0fb35ffe | refs/heads/master | 2020-03-29T23:29:36.740048 | 2018-11-12T09:19:17 | 2018-11-12T09:19:17 | 150,475,374 | 1 | 1 | null | 2018-11-12T09:19:19 | 2018-09-26T18:57:35 | Java | UTF-8 | Python | false | false | 2,522 | py | #!/usr/bin/env python
"""
@file vehicle2flow.py
@author Michael Behrisch
@date 2012-11-15
@version $Id: vehicle2flow.py 18096 2015-03-17 09:50:59Z behrisch $
This script replaces all vehicle definitions in a route file by
flow definitions, adding an XML ntity for the repeat interval for
easy later modification.... | [
"deepak711998@gmail.com"
] | deepak711998@gmail.com |
dea1826bd3fe548eecfeb6264920558ad7b023ad | d177addc1830153404c71fa115a5584f94a392c3 | /N1021_RemoveOutermostParentheses.py | 56fd46aaf5a5ba63d4953f3d11c86731dafb6c96 | [] | no_license | zerghua/leetcode-python | 38a84452f60a360e991edf90c8156de03a949000 | 02726da394971ef02616a038dadc126c6ff260de | refs/heads/master | 2022-10-25T11:36:22.712564 | 2022-10-02T19:56:52 | 2022-10-02T19:56:52 | 61,502,010 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | #
# Create by Hua on 5/4/22.
#
"""
A valid parentheses string is either empty "", "(" + A + ")", or A + B, where A and B are valid parentheses strings, and + represents string concatenation.
For example, "", "()", "(())()", and "(()(()))" are all valid parentheses strings.
A valid parentheses string s is primiti... | [
"zerghua@gmail.com"
] | zerghua@gmail.com |
c58789f7cc681e3c317353239849905c06561d1d | 637955280b2740f73d4fba5c01f0d6cf740b914b | /makeVideoFull/htmlToImageMulti.py | b19055577178510a27b2d0890087e4c14c5cf452 | [] | no_license | dereklowlind/pythonCreateVideo | 8c908dbd119841cb872a2833718e0b2ab6c6a606 | e147ba302d9cb8bb3f51879f5272e6c850c59eb7 | refs/heads/master | 2022-04-14T13:30:59.095220 | 2020-04-11T18:59:35 | 2020-04-11T18:59:35 | 231,717,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,461 | py | # https://pypi.org/project/imgkit/
import imgkit
import os
import json
import multiprocessing
currentDir = os.getcwd() + "/"
header='<html><body>'
footer='</body></html>'
css='''<link rel="stylesheet" href="''' + currentDir + "htmlToImage.css" + '''">'''
def subHTML(subAuthor, subTitle, subScore):
subHTML = he... | [
"dereklowlind@gmail.com"
] | dereklowlind@gmail.com |
a1b10101485d4c56b605723ab150bbf36fd6426a | ac2e77c80245ec149a313ab8199548004ca8e077 | /ejercicio1/src/ejercicio1.py | d11d0bbfd3d7cce8b462a829ceb71f86998b0027 | [] | no_license | terly18/ejercicio2 | 9e876f722013d9ff4ca619cadb30081af18edc8b | fdd91ed67adf9513675db840406d2cb15b4643d8 | refs/heads/master | 2020-12-31T04:29:20.481756 | 2015-10-07T20:17:29 | 2015-10-07T20:17:29 | 43,841,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
__author__ = "TERLY"
__date__ = "$07/10/2015 03:16:35 PM$"
if __name__ == "__main__":
print "Hello World"
ht = input('Introduzca h... | [
"TERLY@Internet.home"
] | TERLY@Internet.home |
e1281032648d87d9251e40bff75574afcb0cf2a7 | 4bdd93a191923f31f5b6e6a5a58161e36dcb5f5b | /HTTP Web Servers & Clients/8_ParallelServer.py | 5d9f585e048930ebdc61b52e239f61b0db59511b | [] | no_license | starryxy/Full-Stack-Web-Development | 5c9e22eea92326fd57b440126740716714315a02 | ab009740960f36ec0be2fa6668f48eb59e8129a7 | refs/heads/master | 2023-03-08T03:49:06.015043 | 2021-02-25T08:12:43 | 2021-02-25T08:12:43 | 256,141,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | #!/usr/bin/env python3
#
# A web server that demonstrates the number of simultaneous connections (up to 6) your browser opens to a web server.
# Similar to: https://http2.golang.org/gophertiles
#
# Run Parallelometer.py in your terminal, then open http://localhost:8000.
# You should see 16 small frames in the window, e... | [
"starryxy311@gmail.com"
] | starryxy311@gmail.com |
5ba4b13c2b6ab53cfc4147be0638833f789d1d25 | 317f62189c63646f81198d1692bed708d8f18497 | /tools/tests.py | 627914a5e3681894fa1df2afd57d3a6fa2b32ba3 | [
"MIT"
] | permissive | mit-carbon/Graphite-Cycle-Level | 8fb41d5968e0a373fd4adbf0ad400a9aa5c10c90 | db3f1e986ddc10f3e5f3a5d4b68bd6a9885969b3 | refs/heads/master | 2021-01-25T07:08:46.628355 | 2011-11-23T08:53:18 | 2011-11-23T08:53:18 | 1,930,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,190 | py | #!/usr/bin/env python
import sys
import os
sys.path.append("./tools/")
from schedule import *
# job info
machines = [
"cagnode1",
"cagnode1",
"cagnode2",
"cagnode2",
"cagnode3",
"cagnode3",
"cagnode4",
"cagnode4",
"cagnode8",
"cagnode8",
"cagnode9",
"cagnode9"
]
... | [
"gkurian@mit.edu"
] | gkurian@mit.edu |
4be0387bdd3dcbb7b273306ff07ab6ce8ab18706 | c1830dfe57134bb80f249799e68ecb7e549e51ee | /setup.py | 33ae6f9b878789850cc43a3856fdd35606aa1b7b | [
"MIT"
] | permissive | NIRISS/CARBS | e649f977601fe622fbfcfa713bc29e8cac2b8d70 | 3e5dba75057a1a08217f0a5270e8e5becea1f547 | refs/heads/master | 2021-01-03T01:46:37.540664 | 2020-02-24T19:29:46 | 2020-02-24T19:29:46 | 239,862,996 | 3 | 1 | MIT | 2020-02-24T19:29:48 | 2020-02-11T20:57:33 | Python | UTF-8 | Python | false | false | 896 | py | from setuptools import setup
import glob
import os
setup(
name="CARBS",
version="0.0.1",
author="CANUCS team",
author_email="kartheik.iyer@dunlap.utoronto.ca",
url = "https://github.com/NIRISS/CARBS",
packages=["CARBS"],
description="CANUCS Adaptive Resolved Bayesian SED-Fitting",
long_... | [
"iyer@protopotato.dunlap.utoronto.ca"
] | iyer@protopotato.dunlap.utoronto.ca |
238aa80ab45b7cae0526a4d89d3fbf976d2fda9f | 4c0241f2190117ed0738d2edf429ed8bc7a711a7 | /main_app/views.py | 69e34f746f420366a12fe213487c0640402be85c | [] | no_license | MTnes/ResearchSiteAPI | ba3359abb1d2179d8b1fb37b93f02df15df60349 | f6b31cd89d60a95ee8bcc721cbed46997fce89a9 | refs/heads/master | 2023-04-07T23:00:35.038134 | 2021-04-21T03:16:12 | 2021-04-21T03:16:12 | 360,005,831 | 0 | 0 | null | 2021-04-21T02:35:18 | 2021-04-21T02:12:19 | Python | UTF-8 | Python | false | false | 1,086 | py | from django.shortcuts import render
from rest_framework import viewsets
from main_app.models import Research, Member, Contact, Publication, People, Faculty
from main_app.serializers import ResearchSerializer, MemberSerializer, ContactSerializer, PublicationSerializer, PeopleSerializer, FacultySerializer
# Create your... | [
"mayank.nitdgp@gmail.com"
] | mayank.nitdgp@gmail.com |
6e09631d948fcdde8b155374989c53c9c54e3a86 | 16f79ae730b4a25c583d07993c6ee6f7b3b4ff32 | /posthog/models/filters/mixins/session_recordings.py | afa9a359e1d917e309518f2eecfb57f072ba75e7 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dmt3o/posthog | 36c8833fcc996d912a535ba00d2a80192d0a46a1 | b19a6be9a882e784657018c873692805388f65b8 | refs/heads/master | 2023-08-24T00:05:12.773630 | 2021-10-12T10:11:39 | 2021-10-12T10:11:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | import json
from typing import List, Optional
from posthog.constants import PERSON_UUID_FILTER, SESSION_RECORDINGS_FILTER_TYPE_DURATION
from posthog.models.entity import Entity
from posthog.models.filters.mixins.common import BaseParamMixin
from posthog.models.filters.mixins.utils import cached_property
from posthog.m... | [
"noreply@github.com"
] | dmt3o.noreply@github.com |
5e61cef6781fe583d65c2d7c29335a830508df84 | b03ba4b0a41b0fea2b8e7eb7a08a386391c6784a | /data_processing.py | 7cd690a0def911dac07d2ab495c7cf10aa688359 | [] | no_license | twistedmove/speech-music-noise-classification-using-pytorch | 9f599ac5ff5d11dcbddca0ec1ebeb85f840f58e9 | efe4c13991de7539f57447da2ca845ef85365884 | refs/heads/master | 2022-03-27T18:20:11.084188 | 2020-01-10T06:01:48 | 2020-01-10T06:01:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 16 14:27:49 2019
@author: Krishna
"""
import glob
import os
import soundfile as sf
import random
class_id = {'music':0,'speech':1,'noise':2}
test_data=[]
train_data=[]
###
root_data = '/Users/apple/Downloads/musan/'
all_folders = glob.glob(root_... | [
"noreply@github.com"
] | twistedmove.noreply@github.com |
0534dcf3b1418023ed435cd619280991e22fba4a | 83662b44e34e6ea7f6f6b1aefc19376430518eaf | /2017/January/January 2017 Prob 3/2017_January_3_cowtip.py | ef45ee8870fecb2d34ce12091f2efc7b4a975aea | [] | no_license | DaChosens1/usaco | 830d2db9674e1589c5d2e411a4fb68416db9316f | ad757ebbb4c58cfdf15d2d21f7f296860bd1aca1 | refs/heads/master | 2020-06-12T22:15:22.269144 | 2020-04-23T01:16:31 | 2020-04-23T01:16:31 | 194,443,230 | 0 | 1 | null | 2020-03-29T13:29:40 | 2019-06-29T19:51:20 | Python | UTF-8 | Python | false | false | 985 | py | # time = 38 min
def open_file():
fin = open('cowtip.in')
grid = []
count = 1
for line in fin:
line = line.strip()
if count != 1:
grid.append(map(lambda x: int(x), [char for char in line]))
count += 1
fin.close()
return grid
def follow_through(grid):
usag... | [
"48633888+DaChosens1@users.noreply.github.com"
] | 48633888+DaChosens1@users.noreply.github.com |
28c23d84801732864e713cf2e32b5b18fe8b64d5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03263/s797363058.py | 11d76295358e004207ab28a722a47f8e9f184035 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | h,w=map(int,input().split())
a=[list(map(int,input().split()))for i in range(h)]
l=[]
for i in range(h):
for j in range(w):
if a[i][j]%2:
if i+1<h:a[i][j]-=1;a[i+1][j]+=1;l.append((i+1,j+1,i+2,j+1))
elif j+1<w:a[i][j]-=1;a[i][j+1]+=1;l.append((i+1,j+1,i+1,j+2))
print(len(l))
for i in l:print(*i) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8cf5ce892f428e48e3abfb5625ed1b6dd0cb9d3f | d2845579ea6aa51a2e150f0ffe6ccfda85d035ce | /kernel/components/lr/vertlr/sync/paillier_keygen_sync.py | da41304b45aa8e8d503bb7710a61eb00a54f7891 | [
"Apache-2.0"
] | permissive | as23187/WeFe | d8de9ff626f9f3e5d98e0850b0b717a80fd73e72 | ba92871d4b1d2eef6c606c34795f4575e84703bd | refs/heads/main | 2023-08-22T12:01:06.718246 | 2021-10-28T01:54:05 | 2021-10-28T01:54:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | # Copyright 2021 Tianmian Tech. All Rights Reserved.
#
# 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 la... | [
"winter.zou@welab-inc.com"
] | winter.zou@welab-inc.com |
c9a7bef6c5fef4bc8b0f998418d8c79811ff9f88 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1419+081/sdB_PG_1419+081_lc.py | 054636153e0b4714c718289e48573f4b4fcb18da | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[215.409417,7.888806], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_PG_1419+081 /sdB_PG_1419+081_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name_... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
01f0c7fff0e04ce63816a718517b6e29fac55a26 | e1d4aa59acbd920e729cd9ab6c42c522d726593a | /lists.py | e03d67782b8c17a9a8995ad01b9471570604784d | [] | no_license | karinasamohvalova/OneMonth_python | 25ebc34635f2fef73b7128ca5c29deb5a280929c | 0f6eb0e5fbf4b941e96336cc4aa40440d7678f7d | refs/heads/main | 2023-02-24T19:38:28.010057 | 2021-01-25T21:29:07 | 2021-01-25T21:29:07 | 332,419,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | the_count = [1, 2, 3, 4, 5, 6]
the_count.append(7)
the_count.append(8)
the_count.append(9)
the_count.append(10)
# for figure in range(1, 11):
for figure in the_count:
print("this is count", figure * figure)
stocks = ["APPL", "GOOG", "TSLA"]
for stock in stocks:
print("Stock ticker:", stock)
#we c... | [
"noreply@github.com"
] | karinasamohvalova.noreply@github.com |
8e48fe4165aa9ba87947dfc5d2f95c57560f0c2f | 79ef92e78582078ab7c3b262a2040b343f15eaf2 | /cs61a/project/hog/hog.py | 341dca1f11e1c08e6fd48115336490e785a006a6 | [] | no_license | markencoder/CS61A | bac3b07dc94ceffa342181e2ce2db664b9bbad03 | 324f92169cf3bf2f502b77958578dd1c14dcbe62 | refs/heads/master | 2020-04-29T20:38:31.242257 | 2019-03-19T00:14:17 | 2019-03-19T00:16:41 | 176,389,526 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,885 | py | """CS 61A Presents The Game of Hog."""
from dice import six_sided, four_sided, make_test_dice
from ucb import main, trace, interact
GOAL_SCORE = 100 # The goal of Hog is to score 100 points.
######################
# Phase 1: Simulator #
######################
def roll_dice(num_rolls, dice=six_sided):
"""Simul... | [
"sxtythmpf@163.com"
] | sxtythmpf@163.com |
50295750e6b4eae3c26c855ee974282d7bbdf490 | a561edea05246c086297a570f0d411699dfa0cdc | /test_other.py | 1a126618107832bb65f05f5b237832cae3addf82 | [
"MIT"
] | permissive | skeswa/litecast | 7115a88b800d6993fd26548395621e2f70e1948b | c56e2e7ddafb655613055e88b4a61a08f3d76719 | refs/heads/master | 2016-09-06T03:12:59.414174 | 2015-04-19T18:05:21 | 2015-04-19T18:05:21 | 34,179,811 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import socket
import time
from stream import Connection
from message_builder import build_init_message, build_call_message
conn = Connection()
conn.write(build_init_message("Dan Cadden", "shikkic", "+12158723266"))
raw_input("Press Enter to continue...")
| [
"me@sandile.io"
] | me@sandile.io |
319af3de3604e1642f8013f8581ef4a1489e4148 | c1f142c1bf0f5f29e3dc7e4625cada67f3db8e41 | /mGTTs.py | 6a1c79a34150187dbdaecbfdfa7273614bc12e49 | [] | no_license | develwon/Addpushdevice | dd939a036c5ff690e87ed8762eab2d29d9593329 | 03f5e836c223a168f6ac7af0fa258972c0cbc28b | refs/heads/master | 2020-04-02T13:40:20.881785 | 2018-10-24T12:03:02 | 2018-10-24T12:03:02 | 154,491,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from gtts import gTTS
from pygame import mixer
from pygame import time
from tempfile import TemporaryFile
class mGTTs:
def __init__(self):
pass
def run(self, text):
# pygame.init()
mixer.init()
sf =... | [
"noreply@github.com"
] | develwon.noreply@github.com |
0fcb6044cf85be934c79500443249d365652b303 | 0f70b8f37aad845ad53ac8cc3cb76b88ca87882e | /tagifai/eval.py | 84191b35056859400167c5af1b824ccd14ebd059 | [] | no_license | jaswant7/end_to_end_ML | 40f2fc3caeb2e41889522a3d9e064150f558f344 | f542fe7da874711fc23aad00f750c7a0f1539705 | refs/heads/main | 2023-05-20T04:00:41.957301 | 2021-06-11T14:28:14 | 2021-06-11T14:28:14 | 376,011,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,657 | py | # eval.py
# Evaluation components.
import itertools
from typing import Dict, List
import numpy as np
import pandas as pd
import torch
from sklearn.metrics import precision_recall_fscore_support
from snorkel.slicing import PandasSFApplier, slice_dataframe, slicing_function
from tagifai import predict, train
@slicin... | [
"jaswantjassie7@gmail.com"
] | jaswantjassie7@gmail.com |
2f3614f40cfda72df52d769788467fde9d3f5985 | 9489f6ecd75885e1af4bcc35e2df45d4f44fdf38 | /egs/madcat_arabic/v1/local/segment.py | c371ed235d32028f185370df103f0a1b148c807f | [
"Apache-2.0"
] | permissive | adelra/waldo | b87bb17bcb501e280716640b7a9b08b6b8c32c30 | aaa878c655768218fd0a15967b8abdc9a9a1a610 | refs/heads/master | 2020-03-16T16:33:56.895841 | 2018-05-26T04:41:19 | 2018-05-26T04:41:19 | 132,793,784 | 0 | 0 | null | 2018-05-09T17:52:47 | 2018-05-09T17:52:47 | null | UTF-8 | Python | false | false | 4,035 | py | #!/usr/bin/env python3
import torch
import argparse
import os
import sys
import random
import numpy as np
from models.Unet import UNet
from train import sample
from waldo.segmenter import ObjectSegmenter
from waldo.core_config import CoreConfig
#from waldo.data_visualization import visualize_mask
from waldo.data_io im... | [
"dpovey@gmail.com"
] | dpovey@gmail.com |
15857387ce4e8a9fe4f75f9aa63044338cf4941e | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_pragma818.py | 60fcaefd18733cab6288e5987405aed537f785b0 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=28
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
class Opty(cirq.PointOptimizer):
def optimization_at(
... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
3589c1a7752436b724acb8292a0800b27a1f80f5 | 31918d62c8004324a186a98e30b6f192f3c33899 | /nonMainFunctions/pullTifFilesFromHPC.py | c51a798f7ed80ce15a1b60b83a697c9adebd6acf | [] | no_license | JonoSax/3DHistologicalReconstruction | eb7685b01366f519a2c8c1dba67bdf764d3574c2 | d07e0c9a9c866c8a74c4c02c741a202d4093e52a | refs/heads/master | 2023-09-02T06:29:13.227389 | 2021-09-09T06:22:19 | 2021-09-09T06:22:19 | 268,755,112 | 3 | 2 | null | 2021-11-20T04:48:43 | 2020-06-02T09:16:05 | Python | UTF-8 | Python | false | false | 2,632 | py | '''
Little script which pulls files from HPC
'''
from glob import glob
from HelperFunctions.Utilities import nameFromPath, dirMaker
import os
import multiprocessing
from itertools import repeat
import time
import numpy as np
def getFiles(s, size, dataHome):
# copy the tif files from HPC
print("Starting " +... | [
"jono.reshef@gmail.com"
] | jono.reshef@gmail.com |
0d28cea2bb40645e423e6e59f1507f409bf285ff | 6b0fb026e8d8dad8c7653d3026691434f5077fac | /initirl/irl/irl/urls.py | fc72da328b520072de4fabb440f1231cc9be5b71 | [] | no_license | jcpyun/initirl_django_rough | 7f2159d176fa12d7b507a2fd23c94ded19effb7f | a5c12ec50f9b5bdbd7894112981ac137250a567f | refs/heads/master | 2021-01-14T08:50:32.672364 | 2015-07-26T20:02:56 | 2015-07-26T20:02:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | """irl URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based v... | [
"johnchpyun@gmail.com"
] | johnchpyun@gmail.com |
0ecdb03ed89ea22925524a35347d0e0b2bfab8fc | e22b46b0934e0d951371c35523062081012418cc | /cross_validation.py | 8495ad7ff5e410bb2089f08ac37b38c8081ed8c5 | [] | no_license | GoGoGoDoge/learn-python-ml | 4cffb0bde2ba06105758f7936dd3e013b20f1432 | 0cfc4ad5fb62ea85b07e6450126fe206cab2f2cb | refs/heads/master | 2020-12-02T06:21:35.523514 | 2017-11-05T03:57:31 | 2017-11-05T03:57:31 | 96,821,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,135 | py | #!/usr/bin/python
import re
from pyclustering.samples.definitions import SIMPLE_SAMPLES, FCPS_SAMPLES;
# from pyclustering.cluster import cluster_visualizer;
# from kmeans_fgy import kmeans # , splitting_type
from kmeans_marco import kmeans # , splitting_type
from pyclustering.utils import read_sample, timedcall;
impo... | [
"gogogodoge@gmail.com"
] | gogogodoge@gmail.com |
51af854c33c493f2da6d4bec9f504111f37653d6 | 091bbb206ce62120e11d721b7f34743551e7e556 | /dcc_sra/serialize.py | f49d64a3b304a21985dd678bb2c1cd19819130ab | [] | no_license | biobakery/dcc_sra | 6cfa34dbb24d6796f2263ad61ab2b1b38aaf5675 | a359e2087eadcdea2612c2a477c5c76f4d2f2333 | refs/heads/master | 2022-07-17T06:00:03.396972 | 2020-05-21T03:33:30 | 2020-05-21T03:33:30 | 265,746,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,174 | py | from os.path import basename
import xml.etree.ElementTree as ET
from xml.etree.ElementTree import SubElement as sub
from dateutil.parser import parse as dateparse
from . import geo
def prep_subtype(p):
return p._get_raw_doc()['meta']['subtype']
def eld(tagname, attrs={}, text=None, children=[]):
ret = {"ta... | [
"schwager@hsph.harvard.edu"
] | schwager@hsph.harvard.edu |
58e87ea132e7ce1ff005f595e4011a4a692911f8 | 392f3b2181405085095ab2b3ed00b296b0ee6659 | /backend/controllers/__init__.py | 0606d163d193019fee5e73e0a1a2f73a3f30f486 | [
"MIT"
] | permissive | brianchul/SWOOSH | e69346810f2e28d8e260554fb1625a1ad7b7c077 | ce6cc16e83013fbfe594bba0cc69e5b005c40b22 | refs/heads/master | 2023-05-15T06:57:37.792410 | 2021-08-09T08:33:19 | 2021-08-09T08:33:19 | 153,815,261 | 0 | 0 | MIT | 2023-05-01T20:25:40 | 2018-10-19T16:58:36 | JavaScript | UTF-8 | Python | false | false | 116 | py | from sqlalchemy import create_engine, MetaData
from config.DBindex import init_db, engine
metadata=MetaData(engine) | [
"404411711@gms.tku.edu.tw"
] | 404411711@gms.tku.edu.tw |
c2f7e1106bc81458786e2a7da426763804d8d2cf | e67e80bde33c4aaaae013aa77f1d939d961935c7 | /config/hass_sonarr_search_by_voice.py | 7c8609c5741c262080864b2a30cecd556ece484c | [
"Unlicense"
] | permissive | unofficialmatt/home-assistant | 4a457fc9680088704972741a24e3b29c763169b9 | 52d23c103f0de0e348c7b4b24117af7f34e19781 | refs/heads/master | 2023-04-10T01:11:29.469747 | 2021-04-17T17:34:55 | 2021-04-17T17:34:55 | 172,801,406 | 1 | 0 | null | 2021-04-11T21:21:49 | 2019-02-26T22:35:10 | Python | UTF-8 | Python | false | false | 15,876 | py | import datetime
import requests
import json
import sys
import os
import configparser
# ------------------------------------
class ShowDownloader:
'''
Constrctor
:param str show: Title of the tv show or option number if mode 2 is used
:param int mode: 0 | 1 | 2
mode 0 - takes the tv show ... | [
"hello@mattweet.com"
] | hello@mattweet.com |
594c4bc3e795302aee87576ea12bf341eb45bed7 | 954a84ba67245d438a00055b62a5a8d9e0bacc6a | /oa_v1/urls.py | 1234081370b7906d89328a4e6e182f647d7c4aa9 | [] | no_license | disenQF/901oa | c292b6951f455e348c16f131044f5644f46a9a9f | 2ecd607c2edaac4d045cc87bf48ffdf58f7f47bc | refs/heads/master | 2020-06-10T10:01:18.303122 | 2019-07-04T09:18:37 | 2019-07-04T09:18:37 | 193,632,138 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | """oa_v1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"610039018@qq.com"
] | 610039018@qq.com |
ea9c16f95c8c149fefe64f5e6fe092a7816803c5 | bb707a6b345c5505ceaf1d9af43439e14925870b | /train_model/train_gbdtlr_classifer.py | cfb71c92692b26776def562a8178d314bd8520a8 | [] | no_license | xiaolinpeter/TextMatch | e02859e8908b03f6d338ccb86d75bad76e48a293 | 78607c98292a047c1fd15813c3453fb9c58d1bc6 | refs/heads/master | 2022-11-10T15:46:08.082680 | 2020-06-26T02:27:15 | 2020-06-26T02:27:15 | 275,122,996 | 2 | 0 | null | 2020-06-26T09:48:54 | 2020-06-26T09:48:53 | null | UTF-8 | Python | false | false | 2,600 | py | # -*- coding:utf-8 -*-
'''
-------------------------------------------------
Description : DNN trainer
Author : machinelp
Date : 2020-06-06
-------------------------------------------------
'''
import json
import numpy as np
from textmatch.models.text_embedding.model_factory_sklearn import ... | [
"liupeng@qudian.com"
] | liupeng@qudian.com |
1fcbb481ea3790719543ee34ea0da17133e7038c | 77e63ec062ca1902842b58b2024a033e72b44a98 | /users/views.py | aa98ab69dd7529c8241c2d70bd0bf60114654679 | [] | no_license | aziz2719/Book_house | e0daef94ceb9d1067abebca527f7ab7fa79b6868 | ff3a59d53ad46f5c2ab8d2f5815255181bf0aca5 | refs/heads/master | 2023-04-13T19:00:14.665825 | 2021-04-15T14:03:10 | 2021-04-15T14:03:10 | 358,277,402 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | from django.shortcuts import render
from rest_framework.viewsets import ModelViewSet
from rest_framework.views import APIView
from .models import User, FavoriteBook
from .serializers import UserSerializer, FavoriteBookSerializer
from .permissions import IsUserOwnerOrReadOnly
from books.models import Book
class User... | [
"davletovaziz511@gmail.com"
] | davletovaziz511@gmail.com |
0ed003f9b982f9b4613357383628ec5e7651618d | af22b473dfa87642c02bd494340a4eb5c82f9c42 | /OrderTango/wsgi.py | f26a1383116a6dbfd166d022f1878e89efc20434 | [] | no_license | OrderTango/ProjectDRF | fcee4c2525f3ebb7e09e88063f69b2b483217120 | 8fb213849961851e5428a0a6ccbd50f2820884fb | refs/heads/master | 2021-01-05T13:58:42.523693 | 2020-03-11T11:05:10 | 2020-03-11T11:05:10 | 241,040,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | """
WSGI config for OrderTango project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os,sys
from django.core.wsgi import get_wsgi_application
path='/var/www/ordertango'
... | [
"43664603+marimuthuinchennai@users.noreply.github.com"
] | 43664603+marimuthuinchennai@users.noreply.github.com |
a9e4ba1e247f2dbc1572b9401e6dedfd6ae4a75b | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/easy-money_20210129090524.py | 44f43e04000f82d449dec107ef59214db3f8ec15 | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,489 | py | # 东方财富网 首发申报
from datetime import datetime,timedelta
from urllib.parse import urlencode
import pandas as pd
import requests
import re
import time
base_url = 'https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx?'
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like G... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
cda3d756f3b20c93887903067560970a4827e4e6 | 196d70bc1da67be81805f8f302b0a8af5a01b0e9 | /Def/Graph/BoxPlot.py | 4f509a9f9091c1ac3101c852f3c7697767689421 | [] | no_license | Pabloc98/Regresion_Predictiva | 7894e5f798281d20ee53264f6a91449c89b688de | b4ff9dabee86e375fc817e6d707e11bf612a5db9 | refs/heads/main | 2023-05-04T21:30:59.335242 | 2021-05-26T01:17:54 | 2021-05-26T01:17:54 | 370,846,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | import matplotlib.pyplot as plt
import seaborn as sns
def BoxPlot(data, remover = None):
"""Esta función realiza un boxplot por cada variable numerica que contenga el dataset y que no este incluida en la lista remover
Parametros
------------
df: pandas dataframe
Dataframe
remover: lista
Lista qu... | [
"pfcifuentesd@unal.edu.co"
] | pfcifuentesd@unal.edu.co |
45a1aa6c555bcce64959313e9919168a40eec0fe | ba694353a3cb1cfd02a6773b40f693386d0dba39 | /sdk/python/pulumi_google_native/healthcare/v1/get_hl7_v2_store.py | 1abfe0c8835e7629b7050b2ac2f9fa0ed5ff4766 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-google-native | cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b | 124d255e5b7f5440d1ef63c9a71e4cc1d661cd10 | refs/heads/master | 2023-08-25T00:18:00.300230 | 2023-07-20T04:25:48 | 2023-07-20T04:25:48 | 323,680,373 | 69 | 16 | Apache-2.0 | 2023-09-13T00:28:04 | 2020-12-22T16:39:01 | Python | UTF-8 | Python | false | false | 6,311 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _u... | [
"noreply@github.com"
] | pulumi.noreply@github.com |
eacb9972d19a4f022f58229c15cf2f95c755de2e | c67681f332a74ff8287f8a995fa67d6ffdb22ee2 | /transfer/resnet_pre_trained.py | 6c2dfc20b3cf1cac164e4de6f5c8fbe48898982f | [
"MIT"
] | permissive | mingewang/deep_learning_with_keras_from_scratch | 68144bd23e55b147743dbe38e54f9c0fa793f305 | 67fad8d875c789c53979919cd15d492271dfe005 | refs/heads/master | 2021-07-12T02:26:26.757961 | 2020-06-24T04:55:55 | 2020-06-24T04:55:55 | 169,931,438 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | # copy from https://keras.io/applications/#usage-examples-for-image-classification-models
from keras.applications.resnet50 import ResNet50
from keras.preprocessing import image
from keras.applications.resnet50 import preprocess_input, decode_predictions
import numpy as np
import matplotlib.pyplot as plt
# load pre-tra... | [
"mingewang@gmail.com"
] | mingewang@gmail.com |
2cac8f96e274fdc42afb5cb02b0e9bba09365556 | 6fe84d02172d8c5d1ad6701d99adad960911bbb2 | /EIS.py | ddce19bba29fcdffd178201901bfffae22ff703d | [
"WTFPL"
] | permissive | greatwallisme/eis_analysis | fe6e7c7a7bdc6052c8ad028b1c45b8198242639c | fc8c5b2e1155f96313943e3641881dd621b3a118 | refs/heads/master | 2020-04-16T03:39:01.816735 | 2013-06-27T11:19:19 | 2013-06-27T11:19:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,278 | py | import sys
from PyQt4 import QtGui, QtCore
import fra
import os
import proj
class MainWindow(QtGui.QMainWindow):
def __init__(self, parent=None):
QtGui.QMainWindow.__init__(self)
self.resize(500, 200)
self.setWindowTitle('EIS')
self.setWindowIcon(QtGui.QIcon('gui/img/logo.png'))... | [
"moritz370@googlemail.com"
] | moritz370@googlemail.com |
6da10e3d988849e0846a8f5c72f9ec9bdfc4ad8b | c201479b35a950b94376e0e73e9675a6cb837a86 | /input_custom_pyip.py | a0e7eb8e9abe4f86cc6dc07e8e117de92fef77ea | [] | no_license | josephcardillo/boring-stuff | 7527297065e6476450fcc1442bd3a67c84367111 | 4f5ac15ebfa98d77d54c226613df9d6413edde7b | refs/heads/main | 2023-03-20T22:30:33.826295 | 2021-03-08T19:11:13 | 2021-03-08T19:11:13 | 327,089,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | import pyinputplus as pyip
def adds_up_to_ten(numbers):
numbers_list = list(numbers)
for i, digit in enumerate(numbers_list):
numbers_list[i] = int(digit)
if sum(numbers_list) != 10:
raise Exception('The digits must add up to 10, not %s.' % (sum(numbers_list)))
return int(numbers)
res... | [
"joseph.s.cardillo@gmail.com"
] | joseph.s.cardillo@gmail.com |
e3c71b9961f93435dbc2c0a817fb9f89d4d871a1 | d53a176d74e5f75a227cf7857139cca7d62ed644 | /data_uploader/index_component_data_uploader.py | 4e2567f59b731624764605c0ae9beb06da0d4563 | [] | no_license | luoqing222/trading_analysis | 9a089c0aa877156caf74c3490fb77482e9d2e7ad | e44e66250ccf573f0cff57f7664348f311944354 | refs/heads/master | 2021-03-27T14:34:30.037258 | 2018-08-03T04:42:37 | 2018-08-03T04:42:37 | 31,827,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | __author__ = 'Qing'
import MySQLdb
import models
import logging
import os
import datetime
logger = logging.getLogger(__name__)
class IndexComponentDataUploader:
def __init__(self, host, database, user, password):
self.host = host
self.database = database
self.user = user
self.passw... | [
"luoqing222@gmail.com"
] | luoqing222@gmail.com |
f52b56536574c892378a2844bbaf8eb21c558d6d | eb8e00c8ae80e1fd6aca6500a67bda9940f86aa0 | /Solutions/Task2/lab2-1.2/lab2_setupable/lab2_decorator.py | 4c2ece07f313b0338648b398cfa4d1fa965996df | [] | no_license | KseniyaTonko/BSUIR-PYTHON-2020 | 9b9e2e6ebbbaf620f5d7bbf3a22d5cbb78d6a168 | 4a46b5787ecc800620d04763f5dc82c742c8c7ea | refs/heads/master | 2022-11-11T06:49:10.510148 | 2020-06-25T10:18:26 | 2020-06-25T10:18:26 | 256,189,528 | 0 | 0 | null | 2020-04-16T11:02:48 | 2020-04-16T11:02:47 | null | UTF-8 | Python | false | false | 657 | py | class CacheDecorator:
_func_values_ = dict()
def cache(function):
def wrapper(*args, **kwargs):
if CacheDecorator._func_values_.get(function.__name__):
if CacheDecorator._func_values_[function.__name__][0] == args and \
CacheDecorator._func_values_[f... | [
"andrey.karpyza.steam@gmail.com"
] | andrey.karpyza.steam@gmail.com |
a67be5f16d594f2be32e3bd5612b587e152569f6 | 7326c2589e6dc250083415d65e28754ea1e9968e | /11_Container_Loop_1.py | e13b704a088ecc6c305ef84903081890ed4a9cc5 | [] | no_license | nanoyslee/Python_Calulator-Login | 23aa1dd2135dafaa43de5c1d9ce12268e18eab19 | 5a4be881c96dd4495d58160f176d1c07283dd8bb | refs/heads/master | 2020-03-28T12:03:32.493326 | 2018-09-27T22:32:23 | 2018-09-27T22:32:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | members = ['nanoyslee', 'leezche', 'graphittie', 'k8805']
i = 0
while i < len(members):
print(members[i])
i = i + 1
| [
"noreply@github.com"
] | nanoyslee.noreply@github.com |
a86017ca0d8e95b6333457b55604ad6c7d6a39c3 | 4b7c036dd2dbc374e5635c586532f94bed5d3ab9 | /venv/Scripts/easy_install-3.5-script.py | c75e3ca7cd0042abb656472327e80fea7aac2e49 | [] | no_license | JayWu7/Genetic-algorithm-for-TSP-problem | 22b0827d5e0a676036f20e062fe6b3a0742681bf | 4d2db0677d2a7338bb05a19ae3e5cce3daf00920 | refs/heads/master | 2020-04-29T06:59:18.664059 | 2019-03-18T15:02:28 | 2019-03-18T15:02:28 | 175,937,348 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | #!D:\Atm\venv\Scripts\python3.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.5'
__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?|\.exe)?$', '', sys.argv[0])
... | [
"jaywu16@163.com"
] | jaywu16@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.