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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ec67fcd528e10f1d86e9a1a620b455fc3c212ba6 | 10f57edc51f50742625b405f2f7c37cdd4734700 | /app/recipe/urls.py | 034085c433bce22da70cdc48e8a58fb0632aba75 | [
"MIT"
] | permissive | smkempin/recipe-app-api | 5eea18b812bf822c292db8b66499ac1020dd886c | 453223e68616ff092964c8414ede5cccc2e38351 | refs/heads/master | 2021-01-26T05:17:09.742683 | 2020-03-30T13:13:26 | 2020-03-30T13:13:26 | 243,324,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from recipe import views
router = DefaultRouter()
router.register('tags', views.TagViewSet)
router.register('ingredients', views.IngredientViewSet)
router.register('recipes', views.RecipeViewSet)
app_name = 'recipe'
urlpatterns=... | [
"scott@precisionwre.com"
] | scott@precisionwre.com |
2f0cb96aaa337f7309712bd930d65de11673c433 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Pytest/pytest-django/pytest_django/plugin.py | cbfe15f79cb04f0e152ebe02bc8b4d3886108f5f | [
"BSD-3-Clause"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4b9c174912c01ae59fb496601d8c4ecf26765ee33134d079295304c25873875a
size 26008
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
babd1c65ab124645809ec009676a41dc323194be | 935a4ebc2cb54553c9d51e1fcd885d5d5a993218 | /fulfillment/fulfillment.py | 1359858cc480454ef0e9f5eea67947f74b7cce36 | [
"MIT"
] | permissive | ahmetyazar/adj-demo | c03a6a481470c0548294e448a158b370e79cd6a0 | 9f7c48faa65d951c040dcfed9904e2186415221a | refs/heads/master | 2021-01-06T20:34:25.652447 | 2017-08-11T02:45:21 | 2017-08-11T02:45:21 | 99,522,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 30 15:28:00 2017
@author: yazar
"""
import sys
import logging
import rds_config
import pymysql
import datetime
import json
import requests
# rds settings
rds_host = "creditadjudication.cz3lpdttkjpo.us-east-1.rds.amazonaws.com"
name = rds_config.db... | [
"ahmetyazar@yahoo.com"
] | ahmetyazar@yahoo.com |
44b5d7f99598cb32ba93499d8f2d394a484573cf | 49edf974d6502d339095601b101e705911426c07 | /project_files/noah_analysis/ordered_analysis/process_mle_slope_int_soft.py | 9a78dc727874ee47ab3e7cc339e6e3007ae25bdc | [] | no_license | minghao2016/protein_design_and_site_variability | 1ca7b7486464b109cb1b054e8d20fe15af41976a | 605ad641c0061234f841e3ceed9d885dabc0d2ce | refs/heads/master | 2021-05-30T05:32:37.344639 | 2015-06-27T04:50:25 | 2015-06-27T04:50:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | import os, re
import subprocess
from subprocess import Popen
from numpy import *
from scipy.stats import pearsonr as pearson
#list of files that contain L vs RSA data
data = []
#search string to use
searchStr = "^align_data_array_ordered" + "[a-zA-Z0-9_\.\-]*" + "_soft.dat"
x = [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0... | [
"eleishaj@utexas.edu"
] | eleishaj@utexas.edu |
a81b4c8c52d69ca1c7a214f2eef794aea07a5f65 | 8610b91f0f36e0df7f343c55929e5861bf0eb144 | /Smart Reply_02_Apr_2018.py | 9afb0d7cd1992c0664fe01816ecabf33d4ff609d | [] | no_license | abhijitdalavi/SmartReply | 1236aa3e85cee2aeefa1362d7c54f5a9009109fc | a0f2c384550b579fc56b86a28412720793210f8d | refs/heads/master | 2020-11-30T01:06:13.369949 | 2018-04-09T17:28:05 | 2018-04-09T17:28:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,750 | py |
# coding: utf-8
# In[1]:
from keras.models import Model
from keras.layers.recurrent import LSTM
from keras.layers import Dense, Input, Embedding
from keras.preprocessing.sequence import pad_sequences
from keras.callbacks import ModelCheckpoint
from keras.utils.vis_utils import plot_model
from keras.preprocessing.tex... | [
"asksonu.sunil@gmail.com"
] | asksonu.sunil@gmail.com |
1731a6bc44fffbafb6437d4bb39a9bb76acfeb29 | 45c170fb0673deece06f3055979ece25c3210380 | /toontown/coghq/BossbotCountryClubMazeRoom_Battle00.py | 218b80966c9553066709cc1c2f781554cc97b785 | [] | no_license | MTTPAM/PublicRelease | 5a479f5f696cfe9f2d9dcd96f378b5ce160ec93f | 825f562d5021c65d40115d64523bb850feff6a98 | refs/heads/master | 2021-07-24T09:48:32.607518 | 2018-11-13T03:17:53 | 2018-11-13T03:17:53 | 119,129,731 | 2 | 6 | null | 2018-11-07T22:10:10 | 2018-01-27T03:43:39 | Python | UTF-8 | Python | false | false | 2,389 | py | #Embedded file name: toontown.coghq.BossbotCountryClubMazeRoom_Battle00
from toontown.coghq.SpecImports import *
GlobalEntities = {1000: {'type': 'levelMgr',
'name': 'LevelMgr',
'comment': '',
'parentEntId': 0,
'cogLevel': 0,
'farPlaneDistance': 1500,
'modelFilename': 'ph... | [
"linktlh@gmail.com"
] | linktlh@gmail.com |
2339baadffae6ec1d43540f2b5a2f88e5c5dddd0 | 4d74a14506b95289084379d85d09e0da020ba951 | /condet/apps.py | de69d6066b4c6e98a8927d9908d1d593112724ce | [] | no_license | eduardozamudio/unam-tourism-research | 6213e2763010cee57a85c2aa755f6e978cc56efe | 3a307877b610cb250ba142d34933261d657d837a | refs/heads/master | 2022-12-11T16:31:30.005504 | 2017-10-26T11:39:02 | 2017-10-26T11:39:02 | 102,898,354 | 0 | 0 | null | 2022-12-08T00:36:55 | 2017-09-08T19:42:37 | Jupyter Notebook | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class CondetConfig(AppConfig):
name = 'condet'
| [
"eduardozamudio@gmail.com"
] | eduardozamudio@gmail.com |
c5020aa411c33ba9eb808cd247fe814f9c0ece17 | 8f5f92beeaefcd9effc93da87b26acb5ea159274 | /xtorch/modules/seq2seq_encoders/seq2seq_encoder.py | edcdada140696dba36c224bbb20440c20a1c8b5f | [
"MIT"
] | permissive | altescy/xtorch | 15f984bf08654dc00fc1be603cca696676428cc1 | bcbbbe645f4d62c211af5b3555c526cc60792c32 | refs/heads/main | 2023-04-12T15:45:52.192602 | 2021-04-25T11:35:45 | 2021-04-25T11:35:45 | 361,373,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | from typing import Optional
import torch
class Seq2seqEncoder(torch.nn.Module):
def forward(
self,
inputs: torch.Tensor,
mask: Optional[torch.BoolTensor] = None,
) -> torch.Tensor:
"""
Parameters
==========
inputs: `torch.Tensor`
Tensor of s... | [
"altescy@fastmail.com"
] | altescy@fastmail.com |
226b1a82100d5a5ec91accefe4709d3526693183 | 2fe868ab7e641629013445af85f412cfd0fc323d | /04_문자열자료형/문자열생성.py | 11a405fd099d52523f193b556ee27d3ae638f5d2 | [] | no_license | lgy94/pythonOjt | 9e0988a8e9ee005688f1f7e841077d34f403b13c | 8d1eb5ed52527153153d3a2d47f346d0810e2d1a | refs/heads/master | 2021-03-28T21:36:39.095570 | 2020-03-20T07:40:08 | 2020-03-20T07:40:08 | 247,898,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | s = 'Python is great!'
print (s)
s = "Python is great!"
print (s)
s = '''Python is great!'''
print (s)
s = """Python is great!"""
print (s)
sentence = 'Python is the\
most popular programming\
language in these days.'
print (sentence)
a = 'say "hello" to mom'
b = "say 'hello' to mom"
c = '''say 'hello' to "mom"'''
pr... | [
"dudrk94@naver.com"
] | dudrk94@naver.com |
3f0b424620cadbd7007d11df02a06feeb6089c28 | 24c2132b45590c3e1af9b8383fc3d3b4d85afb1f | /20_DNN/scratch/nn/basic/nn_mnist_batch.py | 9a93d20ec7bc9520e769dd3c536b337fc4d8ca68 | [] | no_license | harperfu6/ML_Tips | cbee8029ec8b5ef1a03d0b0e3bb9818e73e56442 | e5776d17102113fc5e3187b1cdfb4d4bafe891f4 | refs/heads/master | 2022-02-27T09:24:42.946713 | 2019-11-28T13:15:48 | 2019-11-28T13:15:48 | 183,880,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | # coding: utf-8
# データセットに対し,まとめて予測するだけ
import sys, os
sys.path.append(os.pardir) # 親ディレクトリのファイルをインポート
import numpy as np
import pickle
from dataset.mnist import load_mnist
from common.functions import sigmoid, softmax
def get_data():
(x_train, t_train), (x_test, t_test) = load_mnist(normalize=True, flatten=True, ... | [
"beharp8a8@gmail.com"
] | beharp8a8@gmail.com |
4c6318615664d63994ac62eccd6557cda896e2a9 | 2476d1dbac904aed784cc51550f74febe3b783c4 | /farmer/config/__init__.py | f5de67a172870543bf9b9c7b151f084a878d6972 | [] | no_license | 9231058/farmer | ccdbae0cc168adfa84bda016d87809ee5797c554 | 83904d86e30ab31622eaa0d4534041a4972bf842 | refs/heads/master | 2022-11-08T04:57:54.166269 | 2020-06-18T21:21:39 | 2020-06-18T21:21:39 | 266,701,420 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | from .config import Config, RequiredSeed, NonrequiredSeed
| [
"parham.alvani@gmail.com"
] | parham.alvani@gmail.com |
5a21f18a39ff0c0dda0b64a7e34fc7fc468fd600 | 330146ad205bb1c21b63c2eeaf11c8a2996e2a4f | /mylab/coursera/timeofday.py | 21979edc23726092bf550c7561ed29d32721bbd8 | [] | no_license | bkrishna2006/system | f3c63c03cbdf817f102a7b84075018a21e9e3c54 | c478c7a001722af2b300fdaca9e10fdbec4d6a04 | refs/heads/master | 2020-04-10T20:01:49.806318 | 2018-01-22T16:34:36 | 2018-01-22T16:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | filename = raw_input("Enter your file name: ")
try:
fd = open(filename)
except:
print "File not found: %s" % filename
quit()
theDict = dict()
for line in fd:
words = line.split()
if len(words) < 1 or words[0] != "From" or words[0][-1] == ":" or len(words) < 6: continue
time = words[5]
time... | [
"luke.nothingness@gmail.com"
] | luke.nothingness@gmail.com |
01cc3441b94a034279d96bc8ad271736ee058bcd | 8a2a76d66a92c91ee07c44e533f8bbc81778ff28 | /rund.py | 76776386f4c4858a96a99032c7460c3953455839 | [] | no_license | Shashant-R/GSCEventMOD | 9941935caf966ca601b1e3c59b05eefd7dc18c67 | 25e85af84b12f725a188f6b872d44010f2f385bc | refs/heads/main | 2023-08-14T00:01:00.469037 | 2021-09-23T12:55:32 | 2021-09-23T12:55:32 | 409,591,561 | 0 | 1 | null | 2021-10-01T18:17:30 | 2021-09-23T12:54:45 | Python | UTF-8 | Python | false | false | 5,774 | py | import os
import matplotlib.pyplot as plt
import random
import h5py
import numpy as np
import warnings
from sklearn.neighbors import kneighbors_graph
from sklearn.cluster import SpectralClustering
from sklearn.cluster import DBSCAN
from sklearn.cluster import MeanShift
from sklearn.metrics import silhouette_s... | [
"noreply@github.com"
] | Shashant-R.noreply@github.com |
16f02a9531c8dbb7c2e6d252e5094a83efbd7217 | a89bcfe5a2fff6727a39a64e36e92a5f5a72644f | /929_unique_email_addresses/solution.py | fa0a932ff6febfdfcffa431123abb50352a9fc0e | [] | no_license | vanshaw2017/leetcode_vanshaw | 6fdde2c012f53470efa9f4b13b0d123f3fef0e89 | 12393cfaf4b1b758e8a0407787a2a8150285678d | refs/heads/master | 2020-04-06T13:59:18.119910 | 2019-02-25T02:10:28 | 2019-02-25T02:10:28 | 157,522,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | class Solution:
def numUniqueEmails(self, emails: 'List[str]') -> 'int':
result = []
for i in emails:
local = i.split("@")[0]
far = i.split("@")[1]
if '+' in local:
local = local.split("+")[0]
if '.' in local:
local = lo... | [
"614664248@qq.com"
] | 614664248@qq.com |
07737492b88c075fe7d11b3f01a276520d1b854b | f7e459e0a9bc5bfa7c635abe6ed9c922bae27339 | /dfvfs/analyzer/luksde_analyzer_helper.py | 465bd7ffdc366edbcf727ae526ca4f4605627966 | [
"Apache-2.0"
] | permissive | sanjaymsh/dfvfs | bcf5153a1743cb4bdc1d9e5bd45e383a2e6e675d | 049c71df15f46ac0ef552f0c6f71f7c61797af87 | refs/heads/master | 2022-12-23T23:25:14.035173 | 2020-09-27T06:06:33 | 2020-09-27T06:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | # -*- coding: utf-8 -*-
"""The LUKSDE format analyzer helper implementation."""
from __future__ import unicode_literals
from dfvfs.analyzer import analyzer
from dfvfs.analyzer import analyzer_helper
from dfvfs.analyzer import specification
from dfvfs.lib import definitions
class LUKSDEAnalyzerHelper(analyzer_helper... | [
"noreply@github.com"
] | sanjaymsh.noreply@github.com |
e32d9ecd5addc70ef1833cfb869c834a230a4f2c | 7f97814acd76ca96aee877fd70d401380f848fae | /7_training/re_start_end.py | e5842c00b391813441ccd2346854697e29805bbb | [] | no_license | tberhanu/all_trainings | 80cc4948868928af3da16cc3c5b8a9ab18377d08 | e4e83d7c71a72e64c6e55096a609cec9091b78fa | refs/heads/master | 2020-04-13T12:12:21.272316 | 2019-03-16T04:22:20 | 2019-03-16T04:22:20 | 163,195,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | """
https://www.hackerrank.com/challenges/re-start-re-end/problem?h_r=next-challenge&h_v=zen
"""
# Enter your code here. Read input from STDIN. Print output to STDOUT
import re
s, k = input(), input()
i = 0
found = False
while i < len(s):
string = s[i:]
match = re.match(r'{}'.format(k), string)
if match ==... | [
"tberhanu@berkeley.edu"
] | tberhanu@berkeley.edu |
be2ea70bbdeaae35443f15931b34646e0979c465 | 489ffb5efea81b6f374037d1e4b5856041f6a5a1 | /main.py | c555233cd622eca6a3b73e8d8fa869339f3abc8f | [] | no_license | petar-tomov/RentACar | c183223e5b8b28dca6fe384904d00d99dbec0de0 | cc9d3d36b72f99f8f4641f9f3d9bba027d1ea394 | refs/heads/main | 2023-03-18T21:06:09.081059 | 2021-03-12T08:31:04 | 2021-03-12T08:31:04 | 345,719,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | from Customer import Customer
pesho = Customer("Pesho")
pesho.check_catalogue()
pesho.rentacar_hours("PB5079TT", 5)
pesho.rentacar_day("CB4078BM")
pesho.rentacar_week("PB9189PC")
pesho.rentacar_hours("PB9189PC", 10) # You can't rent a car which is already rented
pesho.rentacar_day("PB9999AH") # You also can't rent a... | [
"pepyy.tommyy@gmail.com"
] | pepyy.tommyy@gmail.com |
f7e150fe2c2755c2ee7c29b21367a36323defc16 | e8977e740aa31a501e0be51ab9df159e1e9834d7 | /Main.py | da7f5e22c36be88b80fa54d361a9836d5f4eb343 | [] | no_license | bharatkumar7/stuff | 67a06e552aa6839f596e508cf26973df36574ad2 | 99cb02e6926d6465e4773df4c178f278d9bc7fa6 | refs/heads/master | 2021-01-10T14:09:25.814402 | 2016-01-13T11:03:36 | 2016-01-13T11:03:36 | 49,219,047 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,119 | py | '''# -*- coding: utf-8 -*- If you are just trying to use UTF-8 characters or don't care if they are in your code, add this line'''
import numpy as np
import time,os,talib
import matplotlib.pyplot as plt
from matplotlib.finance import candlestick_ohlc, candlestick2_ohlc
from matplotlib import gridspec,colors
... | [
"bharatkumar7@gmail.com"
] | bharatkumar7@gmail.com |
cbefe3934df661d760f6292ce580d43fddcb9dac | 00d809abff2460c051cf3aeaf0f98005bd5f0397 | /API/api_open_subtitles.py | 748d2f77e2667ea0a234b8b7701134410a2497c0 | [
"MIT"
] | permissive | andreibastos/movie-info | e57d821becb8aea820e7858459d71ac34a537a1c | 57da167b4d0ed602b5a9dce8c3f2544f7dfdacd9 | refs/heads/master | 2016-09-01T18:36:47.182014 | 2015-08-15T01:09:20 | 2015-08-15T01:09:20 | 40,301,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,679 | py | # coding: utf-8
import urllib
from lxml import html
import lxml.html as html
from lxml import etree
from lxml.html import fromstring, tostring
import json
url_base = 'http://www.opensubtitles.org'
url_search = 'http://www.opensubtitles.org/pb/search/sublanguageid-pob/imdbid-'
def get_legend(imdbID):
legend = {}
imd... | [
"andreibastos@outlook.com"
] | andreibastos@outlook.com |
c463bc62085e0e254656df795762807e09e2e229 | 949d9ed95d94c2cbce94e76120009c9d6b370fb1 | /app/core/routers/__init__.py | eb3c2c8a4e245e044d5d6ff836de1452a79d69ab | [] | no_license | dexer13/guane-intern-fastapi | d8bc5fb808570c5c584f8fb0f685ed9f47b6a497 | 40f4ee5facf523ec93d974ba6613a959ebadae7c | refs/heads/main | 2023-08-24T18:45:28.938807 | 2021-10-30T15:58:22 | 2021-10-30T15:58:22 | 420,717,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from . import animals
from . import users
from . import security
from . import files
| [
"disidro@campus.udes.edu.co"
] | disidro@campus.udes.edu.co |
f3bf9cff8bd771da7387a3f9128836a954960113 | 661437f8881d9eb5b1d1fd0e28591c27e074326e | /Python/interesting/NOT_SUPPORT/parallel/Process_condition.py | 97a9623051b5c7c0966f9736904a7dccaf913910 | [] | no_license | gnosiop/fromPhone | c16c03bac3a3920a4daaa1f8b41dacfede257de0 | ac427cf125573319c2adcc437b6286ea1da372f8 | refs/heads/master | 2023-08-14T23:46:14.919026 | 2021-09-25T08:11:38 | 2021-09-25T08:11:38 | 404,894,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | import multiprocessing
cv = multiprocessing.Condition()
def produce():
with cv:
for i in range(1, 6):
print(i)
cv.notify()
# как только один поток выполнил операцию
# он уведомил другой и "разбудил" его
def consume():
with cv:
cv.wait(timeout=2)
#... | [
"idoodi@ya.ru"
] | idoodi@ya.ru |
16a9c914cb9d2272c13f251203a93fa646574f5b | 3e2f7ff88aabbf17ee93a30176a40396adfbc7ec | /core/migrations/0003_auto_20171118_0536.py | fdb20ee9327f420442d4608bc28d9fa64520b0bd | [] | no_license | mahima-c/uhvpe | 04cbc519904261b45193dea4450f646b83a4184d | 9dc47d4fae17b6e405d5d9500c75585c45afbf20 | refs/heads/master | 2021-05-25T19:08:21.414764 | 2019-10-15T07:19:13 | 2019-10-15T07:19:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-18 05:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0002_auto_20171117_1726'),
]
operations = [
migrations.CreateModel(... | [
"apoorvapandey365@gmail.com"
] | apoorvapandey365@gmail.com |
eb78517e4f6aebbbb42fb241163e359f5183bcfc | 9feb3d3c59113506cbd5e86aef84f42fb257f165 | /Session04/cross_check.py | 79654247efdbdc93feafa2e1ae9dc9a5d95a1dc6 | [] | no_license | reanimation47/ledoananhquan-fundametal-c4e13 | 112a67bbb3093e62f9c53d9f0e7fc57870384fdd | 6e1e576702c4d68e0aa33a3b21a193b112fa70b6 | refs/heads/master | 2021-09-03T11:03:52.598663 | 2018-01-08T14:33:34 | 2018-01-08T14:33:34 | 108,993,661 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | # l = [0, 1, 2, 3, 4]
n = 4 #0,1,2,3
for i in range(n-1):
for j in range(i + 1, n):
print(i,"vs",j)
| [
"reanimation47@gmail.com"
] | reanimation47@gmail.com |
80ade65f1adcd28e82e85178c589f646d0eb1e6b | d5f518c8f23705396fd8da3317520cff0ab543f7 | /algorithms/team 3/spikefinder/__init__.py | 4413e5d15c8306e460e19e9e225a26b4cc57d8eb | [] | no_license | j-friedrich/spikefinder_analysis | 78322f8ead7579b1b8bfb50769d6467cee66930e | def1f8c2c5268eb71e83f57c265d4b3c102fb5f8 | refs/heads/master | 2021-10-27T17:14:49.134302 | 2018-02-19T11:42:18 | 2018-02-19T11:42:18 | 93,436,281 | 1 | 0 | null | 2017-06-05T18:51:23 | 2017-06-05T18:51:23 | null | UTF-8 | Python | false | false | 50 | py | from .main import load, score
__version__='1.0.0' | [
"noreply@github.com"
] | j-friedrich.noreply@github.com |
e5051b8cb2577762cfa4eefebf5dafbcea28c428 | 56b69a58a8844d09e213dc38aab9aa62422dd58e | /128.py | 9f90303f0eefb77e7f24e3e9b2c106715dc321dc | [] | no_license | dilkas/project-euler | d697daf4087a0b436e2dc7b2840d5e53c2ff07b8 | e637fc34d406de7b05755d9c85b370aef1beb2a7 | refs/heads/master | 2021-05-31T15:46:45.342257 | 2016-05-15T10:29:45 | 2016-05-15T10:29:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | import math
target = 2000
def prime(n):
for k in range(2, math.floor(n ** 0.5) + 1):
if n % k == 0: return False
return True
n = 1
counter = 0
while True:
if prime(6 * n - 1) and prime(6 * n + 1) and prime(12 * n + 5):
counter += 1
if counter == target:
print(3 * n * n - 3 * n... | [
"paulius.dilkas@gmail.com"
] | paulius.dilkas@gmail.com |
edcbbc430b0d1a558d19be8a4a2625b7c762eb20 | 5add80be09ee754fced03e512a9acc214971cddf | /python-code/openvx-learning/helloworld.py | 61352b55542a81f5e56cc66c6767ea1beb6c1d65 | [
"Apache-2.0"
] | permissive | juxiangwu/image-processing | f774a9164de9c57e88742e6185ac3b28320eae69 | c644ef3386973b2b983c6b6b08f15dc8d52cd39f | refs/heads/master | 2021-06-24T15:13:08.900960 | 2019-04-03T10:28:44 | 2019-04-03T10:28:44 | 134,564,878 | 15 | 5 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | from pyvx import vx
context = vx.CreateContext()
images = [
vx.CreateImage(context, 640, 480, vx.DF_IMAGE_UYVY),
vx.CreateImage(context, 640, 480, vx.DF_IMAGE_S16),
vx.CreateImage(context, 640, 480, vx.DF_IMAGE_U8),
]
graph = vx.CreateGraph(context)
virts = [
vx.CreateVirtualImage(graph, 0, 0, vx.DF_IM... | [
"kkoolerter@gmail.com"
] | kkoolerter@gmail.com |
aa122ff357ac2276d0569e9bae610a18e81b9c11 | 45be54f14406418be8bf9c1c9a695e77f2c79d1e | /workflow/rules/quality_control.smk | bcb80c300cab633d395dd1523e96c80286362b8c | [] | no_license | G-Molano-LA/circrna-workflow | 41d48c097a7909c8e843beab5e59685950daddf0 | 2be5e61e0eea5395758819c41f39ff9cac279fa0 | refs/heads/main | 2023-06-11T00:49:36.596498 | 2021-07-02T12:32:38 | 2021-07-02T12:32:38 | 348,354,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,490 | smk | #!/usr/bin/python3
__author__ = "G. Molano, LA (gonmola@hotmail.es)"
__state__ = "ALMOST FINISHED" # requires execution to finish it
################################################################################
# Snakefile to realize a quality control of RNA-seq reads.
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"gonmola@hotmail.es"
] | gonmola@hotmail.es |
6753822442fee034044704f8fce55be9c1448475 | 4128e5c41fabbe2289ea7d7faae3d970d0244514 | /jeffy/sdk/kinesis.py | c8e3b18282e2c439b629b5950a6a35cb64a9d3c2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sinofseven/jeffy-my-extended | d772e6a95e9551de637d5ec70dca1d65f27e60d5 | 036ef14e8be5c93f19af4fd0012cc482a77717bb | refs/heads/master | 2021-01-15T06:07:33.383973 | 2020-02-25T03:37:42 | 2020-02-25T03:37:42 | 242,897,880 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | import boto3
import json
from typing import Any
class Kinesis():
"""
Kinesis Client.
"""
_resource = None
@classmethod
def get_resource(cls) -> boto3.client:
"""
Get boto3 client for Kinesis.
Usage::
>>> from jeffy.sdk.kinesis import Kinesis
>... | [
"info@serverless-operations.com"
] | info@serverless-operations.com |
c38344d14b0ab7fc67752b5c676ed3fb625393cf | 414c0bd290c264a55dc03d0657c5f812914bf050 | /ApnaBazaar/urls.py | 7ae85e3480a521c384db656e40d4b499b0ea12c2 | [] | no_license | sakshamsin09/ApnaBazaar | b8af9aea2538d69f27ef80caeb05df3d10d08993 | 02c2a69e6950d8e81ec0bc51e7247f96c2f3f77a | refs/heads/main | 2023-07-09T14:20:40.971602 | 2021-08-24T10:57:16 | 2021-08-24T10:57:16 | 383,352,840 | 0 | 0 | null | 2021-08-22T13:30:28 | 2021-07-06T05:42:14 | HTML | UTF-8 | Python | false | false | 824 | py | """ApnaBazaar URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-ba... | [
"sakshamsinghal09@gmail.com"
] | sakshamsinghal09@gmail.com |
d92df5cd630581d42b06e50bdc1070c5d414a17c | 9647524c0f4d93fb1c8a992c20fe9f9d2710cde3 | /2-content/Python/intro_programming-master/scripts/remove_input_references.py | 2ab8878b1a362f079adf49a971ef71aa7677a4ea | [
"MIT"
] | permissive | bgoonz/web-dev-notes-resource-site | 16161aa68e8eecafeaba4dc7abeb957aaee864c5 | e7dc9c30393597cb39830c49c3f51c1486b97584 | refs/heads/master | 2023-09-01T14:04:20.867818 | 2021-06-17T07:56:20 | 2021-06-17T07:56:20 | 329,194,347 | 7 | 5 | MIT | 2021-07-05T06:36:49 | 2021-01-13T04:34:20 | JavaScript | UTF-8 | Python | false | false | 1,306 | py | # This script removes the input reference numbers from html pages.
# They play a useful role in scientific notebooks, but they are really
# just visual clutter in this project.
# Could be an nbconvert setting, but it's an easy enough scripting job.
import os
import sys
print("\nStripping input reference numbers fro... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
dd55eae4011f0cb80d47c940385e7a3ff85cd7a3 | 602fa0e4ce194d3073d78230c61f7053281f9f9b | /code/python/src/categories/catutil.py | df03a0027b66f8d76d4265de7c7074d56b487bab | [] | no_license | ziqizhang/wop | 111cfdda1686a874ff1fc11a453a23fb52d43af1 | ea0c37f444de9f2d5303f74b989f6d1a09feb61d | refs/heads/master | 2022-09-14T20:14:11.575021 | 2021-12-10T21:23:24 | 2021-12-10T21:23:24 | 166,239,995 | 2 | 1 | null | 2022-09-01T23:11:13 | 2019-01-17T14:33:51 | Python | UTF-8 | Python | false | false | 2,128 | py | import pandas as pd
from nltk import PorterStemmer, WordNetLemmatizer
import numpy
from categories import cleanCategories as cc
stemmer = PorterStemmer()
lemmatizer = WordNetLemmatizer()
#0=stem; 1=lem; else=nothing
def normalise_categories(in_file_name, col, stem_or_lem):
df = pd.read_csv(in_file_name, header=0,... | [
"ziqizhang.email@gmail.com"
] | ziqizhang.email@gmail.com |
4c7a6ca0278e20ba7b9ba747006fe1ff9e5d0326 | e6c58d75f3cea45639b6dd0f8fe1d1ec6a00bae5 | /weather/views.py | 1a56ce2cef21e16d096be18a5f9308784b69156d | [
"MIT"
] | permissive | cindyjialiu/WeatherApp | 4d2d0ae092b410ad6f35008a00ce938426d81a6c | c91f5928708d4cd79286bcd51a3934cb9d2e3a92 | refs/heads/master | 2020-04-11T19:00:55.616764 | 2018-12-21T15:54:44 | 2018-12-21T15:54:44 | 162,019,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | import os
import datetime
import requests
from django.shortcuts import render
def index(request):
api_key=os.environ['WEATHER_API_KEY']
today = datetime.datetime.today()
response = requests.get(f'http://api.openweathermap.org/data/2.5/weather?q=London,uk&units=metric&appid={api_key}')
# TODO: handle ... | [
"jl7e12@gmail.com"
] | jl7e12@gmail.com |
6b21ff7967cabb367eae29730fcc4d5cd9aee141 | 78adcbb441d703c64553c09f6e08ae01a6d95ad0 | /main.py | c59c9f7a49d137b8ca303ed85c45e90d9e858529 | [] | no_license | victor369basu/MongoDBFlask | 8dfa6fb576a23e6d47f7211fbb2949bbdbfcddbf | c7de5027e655b8768d11f0c4184aeb5bfa9ccd17 | refs/heads/master | 2023-03-04T04:18:31.649237 | 2023-02-21T12:08:39 | 2023-02-21T12:08:39 | 303,291,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,647 | py |
from typing import Optional
import uvicorn
from fastapi import FastAPI, Request
from MongoAPI import MongoAPI
import json
app = FastAPI()
@app.get("/")
async def base():
return {'response':{"Status": "Health Check!"},
'status':200,
'mimetype':'application/json'
}
@app.get('/m... | [
"victor.basu@lumiq.ai"
] | victor.basu@lumiq.ai |
068ea44d67a7cb5384e48561163e2762d5fce31c | 8565e0f12bb11e14096964eeef3e34535c513d7f | /LunarisBot.py | 029724af17fd46a914baa8e334a908ee3611a044 | [] | no_license | No17Namsan/NightSkyK | 2be02740cd3520bf8216abe6069721a39ee0ad4b | 73aa3890780814726f5dc23bfe4416f75df200cb | refs/heads/main | 2023-07-18T04:41:12.381368 | 2021-09-06T11:21:00 | 2021-09-06T11:21:00 | 403,484,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,855 | py | import asyncio
import discord
import random
import re
import urllib.request
import urllib.parse
from urllib.parse import quote
import json
from datetime import datetime, timedelta
client = discord.Client()
# 봇이 구동되었을 때 동작되는 코드입니다.
@client.event
async def on_ready():
print("Logged in as ") # 화면에 ... | [
"noreply@github.com"
] | No17Namsan.noreply@github.com |
2033b58ac5c7b829f095eafefba8e88a252ab286 | 5cb6907c93b4d8d4efdc318ccb44bc7dd2f7789f | /factors.py | 3eddb30138797bc77b43b0c51a24523dd64128b6 | [] | no_license | malempati0/malempati00 | d4ab09cad24ee9cfe5b4b8c20c7ba8fc414bd31c | b951bd215cb79a04305bdc5039d6b7597725d3ee | refs/heads/master | 2020-04-07T07:11:13.201614 | 2018-11-26T04:45:58 | 2018-11-26T04:45:58 | 158,167,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | def print_factors(x):
for i in range(1, x + 1):
if x % i == 0:
print(i)
num = 6
print_factors(num)
| [
"noreply@github.com"
] | malempati0.noreply@github.com |
d384f24b5c0b0b257f66b1db1a63854c59b95395 | 3e4c69317323bca865b025503b60bf83d3ae65f8 | /tests/server/blueprints/variants/test_variant_views_variant.py | c1fd7fe078f8967099df90b24cb215c5a79a60ac | [
"BSD-3-Clause"
] | permissive | tapaswenipathak/scout | f59beaa997a45487ac96c3b3e560b5e5aa9b30ae | c9b3ec14f5105abe6066337110145a263320b4c5 | refs/heads/master | 2020-05-30T11:13:25.662300 | 2019-05-28T09:26:25 | 2019-05-28T09:26:25 | 189,694,812 | 1 | 0 | BSD-3-Clause | 2019-06-01T05:36:35 | 2019-06-01T05:36:34 | null | UTF-8 | Python | false | false | 1,207 | py | # -*- coding: utf-8 -*-
import logging
from flask import url_for
log = logging.getLogger(__name__)
def test_server_variant(app, real_adapter):
# GIVEN an initialized app
# GIVEN a valid user, institute, case and variant
adapter = real_adapter
variant_obj = adapter.variant_collection.find_one()
... | [
"rasi.chiara@gmail.com"
] | rasi.chiara@gmail.com |
d0a3f8fea955cd6b7239c30eb4bde72572683e27 | f2f88a578165a764d2ebb4a022d19e2ea4cc9946 | /pyvisdk/do/guest_authentication.py | f16ac39d82372db0665b605fca27476d5d281d82 | [
"MIT"
] | permissive | pombredanne/pyvisdk | 1ecc68a1bf264095f72f274c776e5868fb302673 | de24eb4426eb76233dc2e57640d3274ffd304eb3 | refs/heads/master | 2021-01-21T16:18:39.233611 | 2014-07-28T19:50:38 | 2014-07-28T19:50:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def GuestAuthentication(vim, *args, **kwargs):
'''GuestAuthentication is an abstract base... | [
"guy@rzn.co.il"
] | guy@rzn.co.il |
dd42b52d712e69767f647a33a975f897d68b913f | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/OssDirectoryDetail.py | 7b7aed746981c86b4885e7159246c6f7d6a7017c | [
"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,270 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class OssDirectoryDetail(object):
def __init__(self):
self._acl = None
self._file_id = None
self._file_name = None
self._last_modified = None
@property
def acl(... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
93013a6c44645ef61cb45e633030c20663c3fde6 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/classification/torchvision/pytorch/train.py | 1c16c81bc51ace035a2653350c088a3888b0904f | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 15,577 | py | # Copyright (c) 2022 Iluvatar CoreX. All rights reserved.
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import warnings
warnings.filterwarnings('ignore')
import datetime
import os
import logging
import time
import torch
import torch.utils.data
try:
from apex import amp as apex_amp
excep... | [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
dfc0cc855a774de8fa89bf5d0af2e7761c1399da | cf0ab8503d4d704045070deea1e2125375711e86 | /apps/apikeys/v1/urls.py | 1a8b15c264dc105260d2432da2775b98a3fb3a99 | [] | no_license | faierbol/syncano-platform | c3c6468600115752fd9fa5e46a0ad59f75f6bc9c | 879111874d1ef70418b4890cf970720b0a2be4d8 | refs/heads/master | 2023-07-20T10:13:40.066127 | 2021-02-08T15:01:13 | 2021-02-08T15:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | # coding=UTF8
from rest_framework.routers import SimpleRouter
from apps.apikeys.v1 import views
router = SimpleRouter()
router.register('api_keys', views.ApiKeyViewSet)
urlpatterns = router.urls
| [
"rk@23doors.com"
] | rk@23doors.com |
8a438d371dcd47d1c7a958b870491293517d1a86 | cf39aeabaae2fc0a16ddf4b458308d5ebde10a33 | /modules/grindhold_plainhtml/__init__.py | a969ecaf93e1343f741158687ed33350effc5806 | [] | no_license | joker234/skarphed | 03dbb774a7605d6523926d082009a24f29455fd7 | a7dc2bd758bf24cf8819d36e67633e68e87cf008 | refs/heads/master | 2021-01-18T06:36:20.996757 | 2013-09-06T02:20:25 | 2013-09-06T02:20:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | #!/usr/bin/python
#-*- coding: utf-8 -*-
###########################################################
# © 2011 Daniel 'grindhold' Brendle and Team
#
# This file is part of Skarphed.
#
# Skarphed is free software: you can redistribute it and/or
# modify it under the terms of the GNU Affero General Public License
# as ... | [
"grindhold@gmx.net"
] | grindhold@gmx.net |
bd8a2b6e104c59c4b57a5cac5db23d29db1db3ec | 908e60d308ca9458b89980be1095f58a07fce0bb | /playNFS.py | 7b26a28595bb3a090c047db2100d5e011b07db5b | [] | no_license | KartikPatelOfficial/Ai-Nfs | f6220d2f1cf479ce613aa206a9150c4dd88602a5 | 00e39a9d3ab4bec6d26987c6849799587f3d02cc | refs/heads/master | 2021-07-19T14:57:30.108037 | 2017-10-28T16:07:32 | 2017-10-28T16:07:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | import numpy as np
from PIL import ImageGrab
import cv2
import pyautogui
import time
from directKeys import ReleaseKey, PressKey, W, A, S, D
def drawLines(img, lines):
try:
for line in lines:
coords = line[0]
cv2.line(img, (coords[0],coords[1]), (coords[2],coords[3]), [255,255,255], 3)
except:
pass
def ro... | [
"patelkartik1910@gmail.com"
] | patelkartik1910@gmail.com |
eab0841d48237a5fda2b01c56721707bb39a40fb | 156cac8bf5192a3d0b93a105539f4e6d5108fa1c | /ciyunapi/ciyunapi/asgi.py | b9e43c8bfd8ab576339ef2ba6040afa333af0c34 | [] | no_license | yutu-75/ciyun | 220de2c4e4c6365145c16d3bf634838ecb9921ca | c25b2555ac527097d4d27380ae75a47670f42687 | refs/heads/main | 2023-05-07T08:46:18.285524 | 2021-05-31T13:22:49 | 2021-05-31T13:22:49 | 365,187,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
ASGI config for ciyunapi project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault... | [
"xiao3952@foxmail.com"
] | xiao3952@foxmail.com |
30fd9ea784dffc56bf761d1938ac9c00617ccab4 | 8467f6026afd620aa7efc6bf8d5db7970a25460e | /calc.py | ad775e41cdf051c726c1954980c2cd0e20f73396 | [] | no_license | alisebruevich/Graphing-Calculator | 848563a89d1e28c7dcf760a35034bcd2c5a24bad | 06c3ae99f46408d475bd31f715cf4bc448922af5 | refs/heads/master | 2020-08-19T14:08:55.178307 | 2019-10-18T02:40:19 | 2019-10-18T02:40:19 | 215,926,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,595 | py | #newest, latest, freshest
#fix derivatives with masking and unmasking arrays for x and y: Bonnie
#presentation (what we did, learned; 3-5 slides): Alise
#code block diagram: Bonnie
#test to see if exponential functions will work: Alise -> IT DOESN'T CRY
#make labels for what different colors/symbols mean on the graph: ... | [
"noreply@github.com"
] | alisebruevich.noreply@github.com |
cab5f90d462f2fc8397fd3e49936dc077c525358 | b37601e91fc9e6d4ad7dab19880747bca82f2e50 | /General_Practice/listdictionary_practice.py | 3d78becc649383215c0f2fd6cabe3711c437197e | [] | no_license | sarahannali/pythoncourse | d26389cd3fda830af3778051d7205021d5e150b3 | b9ab543c19511e00a7b3e174b817c5eb0706a49a | refs/heads/master | 2020-08-29T05:53:21.388641 | 2019-12-05T22:47:56 | 2019-12-05T22:47:56 | 217,947,564 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | # #List Comprehension Practice
a = input("List 5 numbers less than 10, separated by a space: ")
b = input("List 5 more numbers less than 10: ")
a = a.replace(" ", "")
answer = [item for item in a and b if item in a and b] #Shared in both
inputOne = input("What is your name? ")
inputTwo = input("What is your pet's na... | [
"asarahali00@gmail.com"
] | asarahali00@gmail.com |
13a0070714639e0e12858309ad4019cba7a00079 | b0d91025a0c188b8ecc4c328a38e3d0c158309a3 | /mysite/settings.py | 96b107a7f1405ad0f5f26aafebb1e9461262af79 | [] | no_license | sdumi/dj_tut | 26e9c742e2d72f5ccb0ae08e4a65bbacabf25192 | fb7c0c979372da9de0ed30068fc12fe891ab6d12 | refs/heads/master | 2020-12-24T16:06:15.022099 | 2010-11-23T12:04:14 | 2010-11-23T12:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,241 | py | # Django settings for mysite project.
import os.path
DEBUG = True
#DEBUG = False
TEMPLATE_DEBUG = DEBUG
PROJECT_DIR = os.path.dirname(__file__)
ADMINS = (
('Dumi', 'dumitru.sipos@gmail.com'),
('Dumitru Sipos', 'dumitru.sipos@alcatel-lucent.com')
)
EMAIL_HOST='smtp.tm.alcatel.ro'
EMAIL_PORT=25
MANAGERS = ADMIN... | [
"dumitru.sipos@gmail.com"
] | dumitru.sipos@gmail.com |
01e5eebcd277d1c73463b5afec695c16d394fa57 | b5aea34ce585e4462775a838c27135f92c5a852d | /portfolio/migrations/0001_initial.py | 152480a5681f5374338900b09a932854832e0688 | [] | no_license | theethaj/portfolio-project | 80851eaf4ed61eec8861a98398d0bbcad5223eb7 | a954d3b1d7f1ec17eefb8c8e67e7ce801dc5f201 | refs/heads/main | 2023-02-25T12:16:45.619964 | 2021-01-31T10:59:04 | 2021-01-31T10:59:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | # Generated by Django 3.1.5 on 2021-01-30 13:15
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', models.AutoField(... | [
"ding533@hotmail.com"
] | ding533@hotmail.com |
c207cd4f3194bfde257b57a18093edeb474a8c31 | 9a5fa4f1fcd2d335347dda8b6672ff0392003823 | /backend/exprgram/migrations/0006_auto_20180724_0331.py | 6f9ef516992a157f06519ae48738df51e0240ff7 | [] | no_license | kyungjejo/exprgram-evaluation | ea9db3defc215f0f7ff4fde878267dcb7618e6c7 | d0a549fbe3072bfc5aa20d645e3e4cfb0ba60f06 | refs/heads/master | 2023-01-13T03:09:26.063495 | 2018-09-10T11:16:08 | 2018-09-10T11:16:08 | 146,848,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # Generated by Django 2.0.6 on 2018-07-24 03:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('exprgram', '0005_auto_20180719_1659'),
]
operations = [
migrations.AlterField(
model_name='emotionlables',
name='cou... | [
"kyungjejo@gmail.com"
] | kyungjejo@gmail.com |
3e993a5460ef71cfd268ce842d87012816743b71 | f2656962b7bb2b0bb120718feb4b9f124b7ecc6c | /AssociationRuleMining/utils.py | 27d5abd683c4cf625a574825a63f41d1380be05a | [] | no_license | Fasgort/AIA-Recomendacion | 24c42634953efaef2b650320f83a7a17c8a5bc06 | 2340b6196552083c8b9ef75c2be245881e1bd9d1 | refs/heads/master | 2021-01-17T23:21:09.207808 | 2017-03-15T11:27:51 | 2017-03-15T11:27:51 | 84,218,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | # -*- coding: utf-8 -*-
# !/usr/bin/env python3
import logging
from tabulate import tabulate
from association_rule_tools import get_conviction, get_lift, get_confidence, get_support
def load_transaction_db(path, limit=0):
logging.debug("Start loading transactions database")
transaction_db = list()
loade... | [
"valentin.sallop@gmail.com"
] | valentin.sallop@gmail.com |
40ccefb509a8910430c7b9e7396fe596022f0fdf | 3de6b4bbaf86afe1ff87b0d829bcba014a8a9696 | /.history/home/models_20200512135208.py | 77a219ab1076ce6b855a9fb57b4f9eeb54707ffb | [] | no_license | codermythbuster/bs | f0b758ab396e50f744aa29c7ecd58354b7df06df | 3687302da8f9fe5a8f75d52ba429f14e2f09c67e | refs/heads/master | 2022-08-04T22:27:59.987215 | 2020-05-26T11:24:01 | 2020-05-26T11:24:01 | 263,302,705 | 0 | 0 | null | 2020-05-26T09:58:03 | 2020-05-12T10:16:30 | HTML | UTF-8 | Python | false | false | 1,225 | py | from django.db import models
from django.contrib.auth.models import User
# book keeping record model
class Book(models.Model):
book_id = models.IntegerField(primary_key=True,verbose_name="BOOK ID")
book_name = models.TextField(verbose_name="BOOK NAME")
book_category = models.CharField(max_length=100,verbos... | [
"namdev373@gmail.com"
] | namdev373@gmail.com |
8d70adcda10da24ef6cac3a8733ad6a6cd20df78 | d53e9e90cb085046a3419be05966d3f0eef5b8e9 | /v2/ovn_ovs.py | 1e5a00c5a57e5b064d6629554e7a3c337619e2ff | [] | no_license | e2e-win/k8s-ovn-ovs | 99ba544485e726919b2aa1cfe83865c5152cd0a8 | ed21beeb2ddf30fc94555ba99745a2f8c9963de2 | refs/heads/master | 2020-03-28T23:56:20.237212 | 2020-01-03T10:19:59 | 2020-01-03T10:19:59 | 149,316,665 | 0 | 10 | null | 2020-01-03T10:20:01 | 2018-09-18T16:08:41 | Python | UTF-8 | Python | false | false | 16,023 | py | import ci
import configargparse
import openstack_wrap as openstack
import log
import utils
import os
import time
import shutil
import constants
import yaml
p = configargparse.get_argument_parser()
p.add("--linuxVMs", action="append", help="Name for linux VMS. List.")
p.add("--linuxUserData", help="Linux VMS user-data... | [
"atuvenie@cloudbasesolutions.com"
] | atuvenie@cloudbasesolutions.com |
90eb5fd3f16495104732f25945188ffbca0336ac | 95d7484f512f2ef0b62a0da1feb900e436214c8b | /models/contact_template.py | 1bcc94bd095d43236881fd97e45402ddc616740d | [] | no_license | Sundaya-Indo/product_test | d3b090384284b3efe449952b63f7face735a0ccf | e1d7a6dd40b224024df9955e67e50c0a09cf7b8b | refs/heads/master | 2021-07-31T14:00:13.001861 | 2021-07-22T08:42:57 | 2021-07-22T08:42:57 | 248,193,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | from odoo import models, fields, api, _
from odoo.exceptions import UserError
class Partners(models.Model):
_inherit = 'res.partner'
file_datasheet_partner = fields.Many2many(
comodel_name="ir.attachment",
relation="m2m_ir_file_datasheet_partner",
column1="m2m_id",
co... | [
"agis@sundaya.com"
] | agis@sundaya.com |
42bdb6a885ac58d51bad36beea8877307f7902a5 | eda9187adfd53c03f55207ad05d09d2d118baa4f | /algo/Transfer_Learning/Transfer_learning.py | 725a6e82bceb8aa1d09e9cb263fc2fdf9da6aea1 | [] | no_license | HuiZhaozh/python_tutorials | 168761c9d21ad127a604512d7c6c6b38b4faa3c7 | bde4245741081656875bcba2e4e4fcb6b711a3d9 | refs/heads/master | 2023-07-07T20:36:20.137647 | 2020-04-24T07:18:25 | 2020-04-24T07:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,586 | py | # -*- coding:utf-8 -*-
# /usr/bin/python
'''
-------------------------------------------------
File Name : Transfer_learning
Description : 迁移学习
Envs : pytorch
Author : yanerrol
Date : 2020/2/17 09:58
-------------------------------------------------
Change Activity:
... | [
"2681506@gmail.com"
] | 2681506@gmail.com |
57bfefceefd25252047dcd608dff497f0c347b82 | 988dd821269be12c2f56f62b0c35546fd3050537 | /python/quaternions/rotations.py | 852c8839c1435519fcbc0675bd055c4d8af732b7 | [] | no_license | gdiazh/adcs_models | fb19f541eeb9b01ae49ec98719c508d084e4fd7a | 51d0829cc777d2e345e4fabe406ec7f54e661117 | refs/heads/master | 2020-03-28T13:04:56.174852 | 2018-09-28T22:08:25 | 2018-09-28T22:08:25 | 148,364,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,050 | py | #!/usr/bin/python
__author__ = 'gdiaz'
import matplotlib as mpl
from plotVectors import PlotVectors
import numpy as np
class Rotation(object):
def __init__(self):
self.vectors = PlotVectors()
self.a = [0, 0, 0]
def rotate_z(self, a, yaw):
Az = np.matrix([[np.cos(yaw), -np.sin(yaw), 0... | [
"g.hernan.diaz@gmail.com"
] | g.hernan.diaz@gmail.com |
120ee9bc839ff0a3903105aacf109d63e4c539be | 7774f3549007ea06046ff06abe85efb6433062b9 | /textapp/forms.py | fe60215b1bf50eafe9943fed60819425e3743837 | [] | no_license | rikuriku1999/textbook | 92be520f064c74986c62437fe585db0d39216a61 | 49814eac2ed318c13882966a35bec60760084a2b | refs/heads/master | 2021-01-01T12:39:22.769329 | 2020-03-15T13:18:42 | 2020-03-15T13:18:42 | 239,282,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,025 | py | from django import forms
from . import models
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import (
AuthenticationForm, UserCreationForm
)
User=get_user_model()
COLLEGE_CHOICES = (
('慶應義塾大学','慶應義塾大学'),
('早稲田大学','早稲田大学'),
('青山学院大学','青山学院大学'))
GENDER_CHOICES = (
('男... | [
"kalashnikova1120@gmail.com"
] | kalashnikova1120@gmail.com |
f281fed287dbd357fea0ab3bb3bd35efc0794cf4 | 51d65cbed3df1e9e3a0d51f79590ee12f88291d1 | /object_detection/inference_over_image.py | 0bbbdb9954ca69ffd0cf92de7a7cbb7577cf8043 | [
"MIT"
] | permissive | apacha/Mensural-Detector | f9332c23854263c6a3f89e8b92f3f666f8377ed8 | 05c91204cf268feaae84cd079dbe7a1852fba216 | refs/heads/master | 2022-09-23T21:20:53.376367 | 2022-08-31T08:36:35 | 2022-08-31T08:36:35 | 137,372,669 | 12 | 6 | null | null | null | null | UTF-8 | Python | false | false | 6,444 | py | import numpy as np
import tensorflow as tf
import argparse
from PIL import Image
from object_detection.utils import ops as utils_ops, label_map_util, visualization_utils as vis_util
if tf.__version__ < '1.4.0':
raise ImportError('Please upgrade your tensorflow installation to v1.4.* or later!')
def load_image_i... | [
"alexander.pacha@gmail.com"
] | alexander.pacha@gmail.com |
480449f9654885b91bebc78cabcb012d20f26abb | 6d0d27377707b4ac36d5d7858a590869e4eeff7c | /src/backend/utils/upload.py | ba670386065fdb7720aee57d3337ffee6efe620b | [] | no_license | Hiraishi-Ryota/mediado-hack-2021-a | 6ce03f63a3b254c80e615248e85834df2af8718a | 1c570a2d807c4531949639846220cbde15beada9 | refs/heads/main | 2023-08-06T21:10:57.354095 | 2021-09-15T05:50:54 | 2021-09-15T05:50:54 | 404,998,912 | 0 | 0 | null | 2021-09-15T05:50:55 | 2021-09-10T07:45:52 | Python | UTF-8 | Python | false | false | 559 | py | import os
from pathlib import Path
import shutil
import sys
from tempfile import NamedTemporaryFile, SpooledTemporaryFile
BASE_DIR = os.getcwd()
def upload(filename: str, file: SpooledTemporaryFile, dir: str):
"""e_pub_fileをstaticに保存し、そのBASEDIR下のパスを返す"""
try:
with NamedTemporaryFile(delete=False, suf... | [
"leonard.t1028@gmail.com"
] | leonard.t1028@gmail.com |
f0f4aaf831a274f5022dbc1d1fa68fe08e28c63e | a2fd9491d11d9982d1ce82765b6dbed7653a954d | /Adpy/Lesson 1.5/Lesson 1.5.py | cefec4862090dd0924ccf7bd7ccd0636ff58ea19 | [] | no_license | nikolaydmukha/Netology | bc3dc541c1de9329671daeacca385de3b55d9c48 | b3577a4d414e76876412de01c2120e81ba82c697 | refs/heads/master | 2022-12-11T04:34:27.270476 | 2019-06-30T09:04:02 | 2019-06-30T09:04:02 | 167,036,184 | 1 | 0 | null | 2022-11-22T03:15:02 | 2019-01-22T17:23:40 | Python | UTF-8 | Python | false | false | 1,943 | py | import email
import smtplib
import imaplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
class Email:
def __init__(self, sender, password, subject, recipients, message, header=None):
self.sender = sender
self.password = password
self.subject = subject
... | [
"45710335+nikolaydmukha@users.noreply.github.com"
] | 45710335+nikolaydmukha@users.noreply.github.com |
5f064814d535825806233dee2469180a93dec6bb | 7df7eb32424b40fa98378af298716759ae39d198 | /Laboratorios/Lab8/Lab8Ejercicio1.py | 3a0679cfc04af8dd79cbb5820216ec63516cbcbc | [] | no_license | tratohecho3/Algoritmos-1 | 289b2ee990da943d7a1622af04d815839882937a | b009a780de7e56dccf4d7832010b06d0254a35c1 | refs/heads/master | 2021-01-12T00:48:36.848983 | 2017-01-07T20:19:24 | 2017-01-07T20:19:24 | 78,298,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,170 | py |
"""Autores: Cesar Colina 13-10299
Francisco Marquez 12-11163
Lab8Ejercicio.py
Descripcion: Programa que lee una matriz en un archivo .txt y devuelve en otro
archivo .txt una serie de datos de interes.
"""
#CALCULOS
import pygame,sys, os.path
from pygame.locals import *
pygame.init()
while True:
tiempo = p... | [
"noreply@github.com"
] | tratohecho3.noreply@github.com |
a717e726db9b4dae2b92ba552163a7eb6f742c6f | 711ebd8c54be73934154d3f3b325bbc2a13a5fde | /weather app.py | 6dc4cd8ffc05b6af1499c0d481df5b6bdd07ec51 | [] | no_license | Balajiigor/python | 3b5ed72c57002eec7d2eebc8a1f1f84277eb5da8 | 3e6817b2447c5b0265147870758d00e30dbbc238 | refs/heads/using-json-in-python | 2023-07-08T19:08:40.490641 | 2021-08-16T02:32:03 | 2021-08-16T02:32:03 | 382,550,766 | 0 | 0 | null | 2021-08-16T02:34:18 | 2021-07-03T07:11:36 | Python | UTF-8 | Python | false | false | 3,192 | py | import requests
from bs4 import BeautifulSoup
from tkinter import Tk
from tkinter import Label
from PIL import ImageTk, Image
Tamil_nadu = "https://weather.com/en-IN/weather/today/l/4a5f6abb61cf684f3b18578ada1c5647346a0c273b8d5cd86c1eb48842d572e5"
Seattle = "https://weather.com/en-IN/weather/today/l/ced0de18c1d771856e... | [
"noreply@github.com"
] | Balajiigor.noreply@github.com |
57cbb17eae32ce8daed7bf554a568c0f8d9328db | 36e13e0219419b6a0c9d913b99b9330c7894f32a | /LifelongMixture_64_Dirichlet.py | 5c20b33432794fcd54c1b387c2aa5778c3182873 | [] | no_license | WN1695173791/LifelongMixtureVAEs | 4ef6f5c62f3a9480bd010fabce249020cca71b5b | b1f858cae35f8f0b91981f398ec431d9a8afb061 | refs/heads/main | 2023-06-15T10:09:31.087605 | 2021-07-09T15:11:53 | 2021-07-09T15:11:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,976 | py | import tensorflow as tf
import mnist_data
import tensorflow.contrib.slim as slim
import time
import seaborn as sns
from Assign_Dataset import *
from tensorflow.examples.tutorials.mnist import input_data
from keras.datasets import mnist
from Support import *
from Mnist_DataHandle import *
from HSICSupport im... | [
"noreply@github.com"
] | WN1695173791.noreply@github.com |
e173a1acb6f004419a36a21a69349963e12720f5 | 1f1de940fd030db12ece5a4037fc1b9291f884cf | /src/main/python/config.py | d14218a38f34ce6ddfe81273e18ef2c5b271faf0 | [] | no_license | psy2013GitHub/sklearn-utils | 1ea747827f7a36332a049388b4abc03c43501d94 | acea4bf3423883dd8e6782741234c6493648c820 | refs/heads/master | 2020-06-12T10:52:47.160022 | 2016-12-05T06:42:12 | 2016-12-05T06:42:12 | 75,586,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | __author__ = 'flappy'
| [
"deng.zhou@immomo.com"
] | deng.zhou@immomo.com |
da41b6d51ae8d2de2dd7a45e0120555d35750c8d | f0187406babf1be73626fa2a4fbeb790e177dd7a | /assignment2/assignment2_2015004120.py | 708e78808230d9427a30fe1383f4dfb056f5b6ec | [] | no_license | CameliaOvO/CSE4007 | bc150084f00f3ab484a8194002022cc96d169414 | 89929cb6f5c61b9f89de06f14a2a03f2a43e5378 | refs/heads/master | 2020-03-19T03:32:53.572535 | 2018-05-29T04:38:28 | 2018-05-29T04:38:28 | 135,737,859 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,084 | py | from bisect import bisect_left
from collections import Counter
from math import log2
def complete_link_clustering(sim_name):
sim = cosine_similarity if sim_name == 'c' else euclidean_distance
most = min if sim == euclidean_distance else max
levels, clusters = [], [[x] for x in range(num_of_words)]
pro... | [
"camelia0858@gmail.com"
] | camelia0858@gmail.com |
c9800b7561104d8aa6fcc841bb12aac744f3d879 | 4ee74237ad3230147674546223a0ff9644adf944 | /quickstart/migrations/0024_poresizedistribution.py | 8f479c54adbb664e1cb109894b3673f45dc70ec9 | [] | no_license | PMEAL/porespy-backend | d5641c8b1ae1930b5dd9185c43f74036d5e95f94 | bb76cae9e752a95e428ec417bf1524f90b110790 | refs/heads/master | 2023-03-31T05:35:48.043698 | 2021-04-11T01:21:34 | 2021-04-11T01:21:34 | 323,444,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | # Generated by Django 3.1.3 on 2021-03-16 20:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quickstart', '0023_auto_20210314_2350'),
]
operations = [
migrations.CreateModel(
name='PoreSizeDistribution',
field... | [
"espitiaandres123@gmail.com"
] | espitiaandres123@gmail.com |
524db47926d6c1b18a65735cec61aad5f9e91b97 | d2c163f246d28b8519f8c89de23556e43be91684 | /www/ad_board/urls.py | 9309b9dfb201f43c13a2ec3d393148de00aea612 | [] | no_license | boogiiieee/Iskcon | d7a2b8bdc3002ef3306fc5e7ddc577504d8533c9 | b672dbafee06af3ee6d646c75f442d97133f5ec9 | refs/heads/master | 2021-09-04T03:11:06.770094 | 2018-01-15T04:21:36 | 2018-01-15T04:21:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, include, url
urlpatterns = patterns('ad_board.views',
url(r'^$', 'full', name='ad_board_url'),
url(r'^category/(?P<id>[0-9]+)/$', 'category', name='category_ad_board_url'),
url(r'^(?P<id>[0-9]+)/$', 'item', name='ad_board_item_url'),
url(r'... | [
"shalyapinalexander@gmail.com"
] | shalyapinalexander@gmail.com |
198442838c9414d3f62f9b0af071a325589a66ae | 8840b69e4341f4ed030c8b33151db205b8db3640 | /flask_minijax.py | a5036e1c916ae910ed2af7e28ecdc01b86534110 | [
"MIT"
] | permissive | FidgetYou/proj3-anagrams | b5fe7ccc333bca0895c12590142b9f0e30f10b83 | 86923a696794b7098940023d57aaef679a52b3ac | refs/heads/master | 2021-01-11T01:03:32.507679 | 2016-10-18T01:58:25 | 2016-10-18T01:58:25 | 70,846,302 | 0 | 0 | null | 2016-10-13T20:39:51 | 2016-10-13T20:39:50 | null | UTF-8 | Python | false | false | 1,317 | py | """
Tiny demo of Ajax interaction
"""
import flask
from flask import request # Data from a submitted form
from flask import url_for
from flask import jsonify # For AJAX transactions
import json
import logging
import argparse # For the vocabulary list
import sys
###
# Globals
###
app = flask.Flask(__name__)
import ... | [
"michal.young@gmail.com"
] | michal.young@gmail.com |
6d346848a2eed9d5be67fdb017a17285227f874a | bd5a3b59a5ca9f0c0394c8bf90e818c3967778d9 | /vre/apps/xauth/urls.py | 2ba5dfc62bf27aafa163e3cf36365c4b0ea01be0 | [] | no_license | BlickLabs/vre | 85f377c04406c163464f7ddade7eafb579f1dfb1 | 6f3644fb9295f6355057cfa64a1156a329b4b4b8 | refs/heads/develop | 2020-05-22T04:28:31.913667 | 2018-07-06T21:12:14 | 2018-07-06T21:12:14 | 62,763,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls import url
from . import views
urlpatterns = [
url(regex=r'^login/$',
view=views.LoginView.as_view(),
name='login'),
url(regex=r'^logout/$',
view=views.logout_view,
name='logout'),
]
| [
"mauriciodinki@gmail.com"
] | mauriciodinki@gmail.com |
24f57a7e04375267f91a3c4ad24656b5ee311e60 | ae0feb6bf0c3851ea1fcb57476a4012cdd09f0c9 | /listMap.py | 2fa46e48fd3ee50e5766208659d71aa385432771 | [] | no_license | beyondzhou/algorithms | f79e4832c53c528d972475aba5ab48bd33feefbb | a0f30d9a8efb51af7f58ad75b8a9f1ebb084d99f | refs/heads/master | 2021-01-10T14:12:12.322067 | 2015-11-08T22:40:44 | 2015-11-08T22:40:44 | 44,276,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | class MyMap:
# init
def __init__(self):
self._entryList = list()
# length
def __len__(self):
return len(self._entryList)
# Contain
def __contains__(self, key):
ndx = self._findPosition(key)
return ndx is not None
# Add
def add(self, key, value):
... | [
"guaguastd@gmail.com"
] | guaguastd@gmail.com |
35b57a408d049fe970e3d7bb1fcf28c9e89d7f4c | faa3c49ce63590c298ffcd5ecc4c4b1808efb5db | /docker-images/docker-madminer-all/code/configurate.py | d540ebcfa111bf9b88f45e96d77090405b44974c | [
"MIT"
] | permissive | johannbrehmer/workflow-madminer | bf4063e3793db2f0340ed4c0fe4e13052d7f6d06 | bb648503bc5b6df301dea7708cc05fb567a4be57 | refs/heads/master | 2020-04-28T12:11:37.970977 | 2020-04-09T19:13:04 | 2020-04-09T19:13:04 | 175,268,087 | 0 | 0 | MIT | 2019-03-12T17:52:33 | 2019-03-12T17:52:33 | null | UTF-8 | Python | false | false | 2,821 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import numpy as np
#import matplotlib
#from matplotlib import pyplot as plt
#%matplotlib inline
import sys
import yaml
import inspect
from madminer.core import MadMiner
from madminer.plotting import plot_2d_morphing_basis
from madminer... | [
"iem244@nyu.edu"
] | iem244@nyu.edu |
3ea0abb3bd098265da02a905ab08ccb1c2b9a663 | aa8ca649dfe718398bc57ec00133e67df71ea407 | /cbz_notes/wsgi.py | 438f30169f7ec9e8bbed857bf5de8f73f7d5f0c9 | [] | no_license | habelash/cbz-notes | 516a148f030b99a33445a06b1933b518a81d3667 | d1f6ab75dde56f28fd421e4dcf77d69e7d491e54 | refs/heads/master | 2022-11-09T08:49:32.274230 | 2020-06-17T18:55:16 | 2020-06-17T18:55:16 | 271,054,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for cbz_notes 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"habelash@gmail.com"
] | habelash@gmail.com |
a79f0d2f37b1ef05ad04d86eb3a3f170aa616237 | 482ee9f8972bb01b0de68c921cddb27aa9470a8c | /raspi_server/servomot.py | f31c565c0db7dbe0c901a91e0bb113b35791e157 | [] | no_license | bhavika022/Multi-Terrain-Robot | 1a793ad5ac7f6f0ddd20cbca4b9a035efe2f8ed9 | d2aa39f4b471d126e928d4bc51bb88096f4c2cc3 | refs/heads/master | 2023-08-18T22:07:18.188112 | 2021-10-15T16:20:32 | 2021-10-15T16:20:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import RPi.GPIO as GPIO
import time
def setup():
GPIO.setmode(GPIO.BOARD)
GPIO.setup(11, GPIO.OUT)
global p
p=GPIO.PWM(11, 50)
p.start(0)
p.ChangeDutyCycle(0)
def setangle_up():
global duty
duty=(90/18)+2
GPIO.output(11, True)
p.ChangeDutyCycle(duty)
time.sleep(0.5)
GPIO.outp... | [
"ameya.k.kale@gmail.com"
] | ameya.k.kale@gmail.com |
de57cedbc86dec255b93ebc77daf153a873f5256 | 1422a57e98aba02321b772d72f8f0ada6d8b8cba | /friday/friday-vendor/vendor-scripts/test-resources/scripts/pylib/hue_turn_on_light.py | 152b15f1a6ee7c7306946bab089ea4f1578d9421 | [
"MIT"
] | permissive | JonasRSV/Friday | e1908a411aa133bc5bd2f383b0a995f7e028092d | f959eff95ba7b11525f97099c8f5ea0e325face7 | refs/heads/main | 2023-05-15T03:33:21.542621 | 2021-06-12T10:34:50 | 2021-06-12T10:34:50 | 315,309,991 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | import phue
import sys
if __name__ == "__main__":
b = phue.Bridge(config_file_path="credentials.json")
b.set_light(int(sys.argv[1]), parameter={"on": True, "bri": 200}, transitiontime=5)
| [
"jonas@valfridsson.net"
] | jonas@valfridsson.net |
ec02d70df62b2b0336e9a3155848509a1793fc6c | d31432d77d775bde32fe51e7584d68cfc465808a | /Tema_6_3_Patrones_organizacion_datos/jerarquico.py | e8eec174864fe48b3867697cc2ba65fad1b241e7 | [] | no_license | surtich/TFG_Manuel_R | ac8d4685afeb7180d8beb3169372a1e27e484eea | ec1fda88695dd95d1add70d4869ea1e6e623313e | refs/heads/main | 2023-07-02T06:45:19.506802 | 2021-08-03T16:55:32 | 2021-08-03T16:55:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | #!/usr/bin/env python
#Usamos el archivo foros.csv
from mrjob.job import MRJob
from mrjob.protocol import RawValueProtocol
import xmlify
class jerarquico(MRJob):
OUTPUT_PROTOCOL = RawValueProtocol
def mapper(self,_, line):
linea=line.split(";")
mensaje=linea[4] # Recogemos ... | [
"mrodrigue212@alumno.uned.es"
] | mrodrigue212@alumno.uned.es |
1a94d4955bc1347ae86d5992a523abcfbfb17267 | 5da2c116d3d0dc4f3811cec144c9f8b5a74afede | /lncrawl/assets/user_agents.py | fbec17aabe02c7b79f52106cf5ee397fca225e17 | [
"Apache-2.0"
] | permissive | NNTin/lightnovel-crawler | a08bd252f2e72f41f931f0b2165f906b64d33692 | 451e816ab03c8466be90f6f0b3eaa52d799140ce | refs/heads/master | 2021-06-23T12:07:43.668329 | 2021-04-25T01:51:26 | 2021-04-25T01:51:26 | 361,695,538 | 2 | 0 | Apache-2.0 | 2021-04-26T16:48:21 | 2021-04-26T09:40:46 | null | UTF-8 | Python | false | false | 6,302 | py | # -*- coding: utf-8 -*-
user_agents = [
# "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0",
# "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1",
# "Mozilla/5.0 (X11; CrOS x86_64 8172.45.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.6... | [
"dipu.sudipta@gmail.com"
] | dipu.sudipta@gmail.com |
4679f028fe213a090bbd604db9707043887751db | 8459dc3a3edebdd27b5589e9aa7215a55a42055b | /report/Lib/site-packages/wx/lib/mixins/listctrl.py | 95ac8fbe9a65036e7334cd84fbfa901f88e58e2e | [] | no_license | lyj21803/ReportsTest | adb5ef9c057d0bd0669ed9807eccc7edb77655d7 | 37df534d61f7d1f781dd91299ffa99fba4ba0e49 | refs/heads/master | 2022-12-02T08:59:27.587331 | 2020-07-24T07:29:50 | 2020-07-24T07:29:50 | 278,009,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,250 | py | #----------------------------------------------------------------------------
# Name: wx.lib.mixins.listctrl
# Purpose: Helpful mix-in classes for wxListCtrl
#
# Author: Robin Dunn
#
# Created: 15-May-2001
# Copyright: (c) 2001-2020 by Total Control Software
# Licence: wxWindows license
# Tags... | [
"lyj218@qq.com"
] | lyj218@qq.com |
f3e768e706777c6ba9fb873bf9632cbe6fddb951 | ebb4fcf4b95e9143136f78aa3cba426829b1b2ff | /urls.py | be6411b662095da3d336edc4302660a233c3f043 | [] | no_license | brasky/scheduler | 26881e1056753d26f2deecbb5920d40f3642b628 | 4adbd99a629d4b9eab0d56fc8b8e5ef14b366354 | refs/heads/master | 2021-01-20T17:33:49.134819 | 2013-11-13T18:35:05 | 2013-11-13T18:35:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
url(r'^$','scheduler.views.home_view'),
url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'scheduler/login.html'}),
url(r'^accounts/logout/$','scheduler.views.logout_view'),
... | [
"redx47@gmail.com"
] | redx47@gmail.com |
1466dcdda5a60e77319ce48fd9043140a50877ca | 1c6d58e5b2bbce4a457350302fa9845f43f076a2 | /Python Programming/EXC 030 - 7-0-0.py | 28a0e6b50ec8b2ba0c20dba9c68e67ff8b2174f4 | [] | no_license | Daviswww/Toys | fa8b481bf5106a0f984c6bfd5260f3ec55ccee1d | 680c260ebb8d385a3dbcdd985a447fd5d2b74f3b | refs/heads/master | 2022-07-21T03:35:41.590248 | 2020-01-11T11:04:02 | 2020-01-11T11:04:02 | 144,127,014 | 0 | 0 | null | 2022-06-22T00:05:19 | 2018-08-09T08:57:15 | Python | UTF-8 | Python | false | false | 1,693 | py |
A = [89, 56, 92 ,79, 51]
B = [70, 86, 77, 83, '缺考']
C = [0, 0, 0, 0, 0]
D = [0, 0, 0, 0, 0]
print('期中考缺考: ')
for i in range(5):
if(A[i] =='缺考'):
print(i,'號缺考')
print('\n期末考缺考: ')
for i in range(5):
if(B[i] =='缺考'):
print(i,'號缺考')
print('\n平均分數: ')
for i in range(5):
... | [
"noreply@github.com"
] | Daviswww.noreply@github.com |
753b5b2ec561ad28d7410e49144c4be4fac47627 | 28f52b0e9c8f7fe15a008127f2a76c8854efaa7e | /pkgs/clean-pkg/src/genie/libs/clean/stages/nxos/aci/image_handler.py | 2c5fe6e13db35982ecd8d592e92175249ab32a43 | [
"Apache-2.0"
] | permissive | dthangap/genielibs | cb5098e675c51f2c2c46a929faf630cbad6aa7b3 | 778edb3b310bac960f507dae55e82ac027d8c6c8 | refs/heads/master | 2023-02-01T05:18:04.575913 | 2020-12-16T12:55:54 | 2020-12-16T12:55:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,399 | py | """ NXOS ACI: Image Handler Class """
import yaml
from genie.libs.clean.stages.image_handler import BaseImageHandler
from pyats.utils.schemaengine import Schema, ListOf, Optional
class ImageLoader(object):
EXPECTED_IMAGE_STRUCTURE_MSG = """\
Expected one of the following structures for 'images' in the clean y... | [
"tahigash@cisco.com"
] | tahigash@cisco.com |
c43501f1134f44d9e0c3c38a8ce719ea17e5bbcb | 3253da5603971958d69df0ed442e3341a8d3bff4 | /1-Iniciante/1914.py | 67fa34c039b20ad33bd528808a4ce2d4016000af | [] | no_license | CleitonSilvaT/URI_Python | 1c73ec0852ae87c6138baa148ad8c2cb56bb723e | a8510bab2fa8f680b54058fafebff3a2727617d9 | refs/heads/master | 2021-06-20T08:18:50.104839 | 2021-05-20T08:59:19 | 2021-05-20T08:59:19 | 213,665,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | # -*- coding: utf-8 -*-
if __name__ == '__main__':
# Entrada
casos_teste = int(input())
while(casos_teste > 0):
# Entrada
dados = input()
escolha = dados.split(' ')
# nomepessoa1 - escolha[0]
# escolhapessoa1 - escolha[1]
# nomepessoa2 - escolha[2]
#... | [
"cleitonsilvatavares@gmail.com"
] | cleitonsilvatavares@gmail.com |
ebb1c1e58b95234c46d4cd1a13b51cec064b0756 | 620a79597511cecd55cef6cdc9ac09062c1fe12b | /valid/valid/urls.py | 85db8c10cd4cafc533bdf30a4ba59925b253b97f | [] | no_license | ashfan6339/myfristproject | 6e4a0d76a3232022e94c8706342f97e9ae6c65ff | 535864d1179521144c2b518feddbbc9a43836f50 | refs/heads/master | 2021-04-20T22:29:03.952907 | 2020-05-21T10:51:57 | 2020-05-21T10:51:57 | 249,721,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | """valid URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-based v... | [
"shaikashfan3@gmail.com"
] | shaikashfan3@gmail.com |
80c0bbc4b4f1a69547dbd865963783e862ce8f3d | 09941ea4600314ed0381e123ffb9f851e34bade8 | /HackerEarth/Basic Programming/split_houses.py | bd54aa3276fa411e001cffc2729abbb4624dca4e | [] | no_license | piyushkumar102/Competitive-Programming | 208d2f59ab097e68e627d8cdb74189c4efa618a8 | 31025da6a055036d66c289d4a6f64ab756fcf1c6 | refs/heads/master | 2023-03-24T23:43:28.198318 | 2021-03-25T15:39:26 | 2021-03-25T15:39:26 | 351,489,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | n = int(input())
grid = input()
grid = grid.replace('.', 'B')
if'HH' in grid:
print('NO')
else:
print('YES')
print(grid)
| [
"piyush.kumarmaloo@gmail.com"
] | piyush.kumarmaloo@gmail.com |
b672c87e3458490ceb0e8b3852355a8c15a2c399 | d1fadc514274711a7986a6b3caaaee7e8d48b4a6 | /plot_scripts/scratch29.py | 9b454212d7485e7e1237f495490e6b1a3e2c0169 | [
"MIT"
] | permissive | lbaiao/sys-simulator-2 | 24d940db6423070818c23b6ffefbc5da4a1030a0 | 94f00d43309fe7b56dac5099bd4024695ba317b6 | refs/heads/master | 2021-08-20T08:30:06.864473 | 2021-06-30T10:37:26 | 2021-06-30T10:37:26 | 230,333,523 | 1 | 0 | null | 2021-06-30T10:37:27 | 2019-12-26T22:02:59 | Jupyter Notebook | UTF-8 | Python | false | false | 1,688 | py | import pickle
import matplotlib.pyplot as plt
import numpy as np
filepath = 'D:/Dev/sys-simulator-2/data/scratch29.pickle'
file = open(filepath, 'rb')
data = pickle.load(file)
aux_range = [10,15,20]
action_counts_total = data['action_counts_total']
d2d_spectral_effs = data['d2d_speffs_avg_total']
mue_success_rate = ... | [
"lucasbaiao@gmail.com"
] | lucasbaiao@gmail.com |
fbda68e6b6f7e3ff700522a92abb1b10d67623cd | 3c7f640afd9dde53ea0616c7d8a03186a80401a9 | /online_shop/main/migrations/0003_auto_20201129_2211.py | c30164ed8cf8d56a9c97a02fe815711a8bf4a521 | [] | no_license | meg97/django_projects | 12caeb81dab0b7bd9c5ce5f6180fd89d7b83b6d8 | f0a67588a3685ece28d6d1cdde63c590d08468aa | refs/heads/master | 2023-01-21T04:43:15.188741 | 2020-12-06T21:00:36 | 2020-12-06T21:00:36 | 310,807,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # Generated by Django 3.1.3 on 2020-11-29 18:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0002_auto_20201129_2158'),
]
operations = [
migrations.AlterField(
model_name='item',
name='item_image',
... | [
"maneyeganyan@yahoo.com"
] | maneyeganyan@yahoo.com |
c0a4368dee98e726b28341c966b671e8d8ecab94 | 6295d1d4b48cafe702a08efd270aea47f6122722 | /setup.py | dfc7e472398df49c5e01ff63b45c36ce99e0a948 | [
"MIT"
] | permissive | bipbopbot/radforest | 84736a16dd6df45723c9da373004b801e153c7a8 | fbccf2e13c58a320a7bf81bb72ad86963e0785bc | refs/heads/master | 2020-08-19T01:29:30.739011 | 2019-10-17T20:27:26 | 2019-10-17T20:27:26 | 215,858,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | import setuptools
setuptools.setup(
name='radforest', # package name on PyPI
version='0.1.0',
description='A library of radiance forests.',
url='https://github.com/bipbopbot/radforest',
author='Loren Adams',
author_email='bipbopbot@gmail.com',
license='MIT',
packages=['radforest',]
)
| [
"bipbopbot@users.noreply.github.com"
] | bipbopbot@users.noreply.github.com |
5835bb5009219c382f7cf2d57f0cd5d74a3e5abd | 9d16bc0ff4d4554f6bd51718f145ab3d82467877 | /BubbleBuster.py | d933ffa7e70212cee0186be0dbbdd30678e3e69d | [] | no_license | Arisan39/BubbleBuster | 32a5475012cb7ddede272c662e00142a134cdf7c | 7b870c4be16f04efeee1a9c2de07a7385111b03b | refs/heads/master | 2020-12-15T21:23:33.158294 | 2020-01-21T04:51:07 | 2020-01-21T04:51:07 | 235,257,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,752 | py | import pygame
import sys
from pygame.locals import *
from Bubble import Bubble
from Player import Player
pygame.init()
screen= pygame.display.set_mode((640, 460))# add a screen & screen size
screen.fill((255, 255, 255))#this change the background's color
pygame.display.set_caption('Bubble Buster!')#add capt... | [
"noreply@github.com"
] | Arisan39.noreply@github.com |
36cfad3cd196894fc61a19c79f88a05598a87dd2 | 207d7f6d16a19bc78e27881841d7088b3eabc3c2 | /day5/homework-ATM/modules/repay.py | ab498edd2effcf53edd276c143455289193ea672 | [] | no_license | pangguoping/python-study | b0c00f73177ec86148d06f780556a4340c45e1a8 | 769e828d41403b89d101c2ff915699bba91390cd | refs/heads/master | 2021-01-20T19:33:52.601637 | 2017-03-07T23:34:04 | 2017-03-07T23:34:04 | 63,377,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Auther: pangguoping
import json
import os
from conf import setting
from modules.write_log import write_record
#还款函数
def repay(card_num,**userinfo):
qiankuan = userinfo['credit'] - userinfo['balance']
print('现在还欠:',qiankuan)
fee = int(input("请输入还款金额:"))
if f... | [
"work2312@163.com"
] | work2312@163.com |
61105c7f5cc1fb8567c89d5cb17133852f50a7de | cbd33720c80ee2f7f0c846f966d00890a511728d | /User/migrations/0003_auto_20180518_1144.py | a9001f9602354a498d05276295e713df62cc1062 | [] | no_license | KyalSmith/Django_Auth_Project | a21f09965a47298b09e7f34c33b2c98f1a32114f | cdc209698c1260fba412c17d063dd9413352701b | refs/heads/master | 2020-03-12T17:34:19.926894 | 2018-05-22T18:17:52 | 2018-05-22T18:17:52 | 130,739,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # Generated by Django 2.0.5 on 2018-05-18 11:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('User', '0002_auto_20180517_1659'),
]
operations = [
migrations.RemoveField... | [
"kyal.smith@gmail.com"
] | kyal.smith@gmail.com |
30297a7a22cfaf814fcfd2898ec4e7c856b4fb52 | 90ae2d02ff9a4dc01fd50f5c5db64acab27529ea | /research.py | a2ada317de2e86aeec5aa8f66a7e4af06e829736 | [] | no_license | hearable-labs/v2prototype | 0fd28dafc92de036a7747c38ffbcca26a5ee1fb2 | 3b91b27397222a2b7695b3adaf591199de5d5391 | refs/heads/master | 2020-04-21T01:38:42.736345 | 2019-05-27T07:51:52 | 2019-05-27T07:51:52 | 169,229,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,895 | py | import fileinput
counter = 0
number_from = 0
def setVariableNull():
global counter
global number_from
counter = 0
number_from = 0
#replace the filepath by the corresponding path to the gain_live.cfg
def replace_gain(number_to):
global counter
global number_from
if... | [
"noreply@github.com"
] | hearable-labs.noreply@github.com |
3a7cd410882b4da4bea9fbdc498e9b1fb105d1e0 | 6548ed03a7c8f3110aabda75f0c725cecb0a03da | /Ex087-Matriz2.py | 3825344333684fe3f9daf2f47a35dda5874aa12d | [] | no_license | MurilloFagundesAS/Exercicios-Resolvidos-Curso-em-Video | ac328a7cdca4ff262ddc6c29342816afd93478a2 | d8ab260a8de62a975f9113877437cab785fa23db | refs/heads/master | 2023-01-21T11:14:21.597135 | 2020-12-04T19:51:25 | 2020-12-04T19:51:25 | 318,572,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | lista = []
parte = []
par = 0
coluna3 = 0
count = 0
maior = 0
for i in range(0,3):
for j in range(0,3):
x = int(input(f'Digite um número da posição [{i},{j}]: '))
if x % 2 ==0:
par += x
if j == 2:
coluna3 += x
parte.append(x)
if count == 0:
maior ... | [
"mll-fag@hotmail.com"
] | mll-fag@hotmail.com |
0b09fac1656f2a6cd2b578afb6640cc93695b34a | 76776170a8fe1c065bce42b314e77018d7a127cb | /home/migrations/0001_initial.py | 65fda3fe9f85c2042cdae21d990004521914c034 | [] | no_license | himanshu98/sample-Django | d942e282d3ba16baeaad2e2eb54f594a4619c877 | f8556860d7de97685da303d7da35c000e2513b31 | refs/heads/master | 2022-11-28T12:59:37.885537 | 2020-08-13T19:20:22 | 2020-08-13T19:20:22 | 287,359,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | # Generated by Django 3.1 on 2020-08-12 22:52
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', models.AutoField(au... | [
"tomarhimanshu98@gmail.com"
] | tomarhimanshu98@gmail.com |
ddd05ad17c156557bab875374be46009351bf83e | 560567db6f9805ee2bb715f550c88cfc6e4187cf | /CueCreator.py | 0d5ae722078ae4a15fe9aa8e38c0c4b6b031618f | [] | no_license | freerainx/CueCreator | a9007329d5e6b0125872541bb115c03c409e71fe | cfa6326052ac61fca3aafbc3c995829009b6aeb8 | refs/heads/main | 2023-04-09T06:21:19.013391 | 2021-04-25T17:41:38 | 2021-04-25T17:41:38 | 361,485,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,685 | py | import sys
from PyQt5 import QtWidgets, QtGui, QtCore
import PyQt5.sip
from PyQt5.QtWidgets import QApplication, QWidget, QLineEdit, QMessageBox, QGridLayout, QLabel, QPushButton, QFrame
from MainUI import Ui_Dialog
from Cue import cueFile
class mainWindow (QtWidgets.QWidget, Ui_Dialog):
CueDir ='F:\\Music\\Colle... | [
"freejxt@126"
] | freejxt@126 |
430a6533bd2d8961d48c25a18e940c170945ce5d | 5284385c49a2601655f08e7110f122f93c00c99b | /article/migrations/0009_alter_post_image.py | 268745fc6dc035b842c7a6336a2ab3d31b8774c4 | [] | no_license | riadelimemmedov/Sade-Sosial-media | 50964d3efc7e82b061882af1428a2a69930826a0 | a379c0a753c95d480e00ee0f6124f9f14547706b | refs/heads/master | 2023-08-14T02:26:50.828195 | 2021-09-21T04:17:01 | 2021-09-21T04:17:01 | 408,682,275 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # Generated by Django 3.2.4 on 2021-09-02 14:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('article', '0008_alter_post_image'),
]
operations = [
migrations.AlterField(
model_name='post',
name='image',
... | [
"riad.elimemmedov@mail.ru"
] | riad.elimemmedov@mail.ru |
e422554deab94dc0b4cbd8259b19d2efddecfe2b | bfc5eb03084f329755f40d54ebe2ce415c43ac88 | /Tk多窗口/myWindow.py | d7c4bb7fa545cfa61432cffa1de259cfddb9d7c6 | [] | no_license | KronosOceanus/python | 301d75ff161abd060faa552e48a08960eba22b51 | ff6c378a2327dc0b3e6cba7ec0bca25cd52010cd | refs/heads/master | 2023-03-04T02:48:46.286712 | 2021-02-15T11:10:43 | 2021-02-15T11:10:43 | 255,289,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | # 窗口类
import tkinter as tk
from tkinter import messagebox
class myWindow:
def __init__(self,root,myTitle,flag):
# 创建窗口
self.top=tk.Toplevel(root,width=300,height=200)
# 设置窗口标题
self.top.title(myTitle)
# 顶端显示
self.top.attributes('-topmost',1)
# 根据不同... | [
"704690152@qq.com"
] | 704690152@qq.com |
3b34003880bed4318fd90ace0533ced787c31225 | cc9405d9b7233b103e66660054db1f640ca6147a | /core/urls.py | 719d616cdf74716ca76d53fcf6f2864b82983328 | [] | no_license | devjass/WebPlayGround | d6f5f1704fffacfe6c2a683a533b24b20d07aaff | 8e8600078895d9e91847bcf5bb71f4bbc98ca082 | refs/heads/master | 2023-05-15T19:25:48.091753 | 2021-06-12T05:50:20 | 2021-06-12T05:50:20 | 376,207,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from django.urls import path
from .views import HomePageView,SamplePageView
urlpatterns = [
path('', HomePageView.as_view(), name="home"),
path('sample/', SamplePageView.as_view(), name="sample"),
] | [
"development.jass@gmail.com"
] | development.jass@gmail.com |
ee99cd3db0efef6feba5b3f967b69c3244f87446 | f6284c82a06e6a6037d7d6eb488337ce099f7566 | /geektrust_challenges/make_space/utils/constants.py | 8cbd4a9dde7f9d79cf613a0f6dcf7227c08aa1c0 | [] | no_license | kartiky9/machine_coding | 3677805c8836a6f8d32a7b2af283f3fa8ce090a5 | 30045db300a36564f6d27f002438059f329cb2e0 | refs/heads/main | 2023-07-27T08:03:56.576660 | 2021-09-09T07:27:32 | 2021-09-09T07:27:32 | 404,340,789 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | class InputType:
BOOK = 'BOOK'
VACANCY = 'VACANCY'
class Output:
INCORRECT_INPUT = 'INCORRECT_INPUT'
NO_VACANT_ROOM = 'NO_VACANT_ROOM'
MINUTE_INTERVALS = 15
| [
"13693180+kartiky9@users.noreply.github.com"
] | 13693180+kartiky9@users.noreply.github.com |
d8ee391707950c00d257afd550aa1669106703ba | 66aecca0128d9823fd18e8840b8f341d028e7052 | /account/migrations/0003_auto_20181225_1816.py | 1f24da8d2a809860fa0d86bad72c5702b3e147ca | [] | no_license | maksimes/my-first-blog | a23b3db3f789273c58c91a9cdf9a36adc5749b1b | c57863490e1582fa840e66dfb0ce0b17dce4fcbb | refs/heads/master | 2020-04-05T12:14:31.286179 | 2019-04-03T19:46:36 | 2019-04-03T19:46:36 | 156,261,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-12-25 15:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0002_auto_20181225_0044'),
]
operations = [
migrations.AddField... | [
"maksimes@mail.ru"
] | maksimes@mail.ru |
0ec404b9b92a1950ead916d9356841cf3bb18eb4 | d7bf691c35d7bf2a5707e47d7aca98b509e02eb9 | /pddlstream/algorithms/algorithm.py | 7a29c0eba6f399ea3752c4684788b164a65873f9 | [
"MIT"
] | permissive | himanshisyadav/pddlstream | 7d43c16da903504a0232408a7d8077fd4da95d87 | 1038e702f1d4625791f1da7867d6226b02af8c3a | refs/heads/master | 2020-04-11T11:48:19.324553 | 2018-11-14T18:28:27 | 2018-11-14T18:28:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,291 | py | import time
from collections import OrderedDict, deque, namedtuple, Counter
from pddlstream.algorithms.downward import parse_domain, get_problem, task_from_domain_problem, \
parse_lisp, sas_from_pddl, parse_goal
from pddlstream.algorithms.search import abstrips_solve_from_task
from pddlstream.language.constants im... | [
"caelan@mit.edu"
] | caelan@mit.edu |
9eaf1ce6cbbbcedac5832c605917bc09ed334036 | da154bed336f6806b3c916ba1c969099b55fcc2e | /Samples and Demos(For review)/basic_transmit.py | ab8674cd84e2272e5c8ccbb7bfc48916b4adaf02 | [] | no_license | utadahikaru/Self-CV-Practice | e3b7b3bda5f99335eb8f8dcf6e891a654e593ccb | ffc4ef3f9980f037ffb5344004752c7d43c1f13c | refs/heads/master | 2020-03-29T01:07:42.988699 | 2018-11-26T10:35:15 | 2018-11-26T10:35:15 | 149,372,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py | # coding:utf-8
# 0导入模块,生成模拟数据集。
import tensorflow as tf
import numpy as np
BATCH_SIZE = 8
SEED = 23455
# 基于seed产生随机数
rdm = np.random.RandomState(SEED)
# 随机数返回32行2列的矩阵 表示32组 体积和重量 作为输入数据集
X = rdm.rand(32, 2)
# 从X这个32行2列的矩阵中 取出一行 判断如果和小于1 给Y赋值1 如果和不小于1 给Y赋值0
# 作为输入数据集的标签(正确答案)
Y_ = [[int(x0 + x1 < 1)] for (x0, x1) in X... | [
"kanaliushijun@gmail.com"
] | kanaliushijun@gmail.com |
2445240430a4f61b9f76afca22102c4397f33bd7 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/gkioxari_RstarCNN/RstarCNN-master/lib/datasets/attr_bpad.py | 1d8c0fb80696afdd175613117b34dc6d6c4573fd | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 10,478 | py | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) Microsoft. All rights reserved.
# Written by Ross Girshick, 2015.
# Licensed under the BSD 2-clause "Simplified" license.
# See LICENSE in the project root for license information.
# -------------------------------------------------... | [
"659338505@qq.com"
] | 659338505@qq.com |
89043c094193f8acc281258306eb8f8f0765498e | 31766af2b2e0957e58078095d8822ffc760189ba | /baekjoon/Python/q1717.py | 562d7e9d57778af114df55ce84c6238c37ac3f20 | [] | no_license | ha-yujin/algorithm | 618d0c7c55dfee0a9b4f0ff15018feceb5f4d07f | 3318b5d7c703f5c3cb4a6475e04b2f0aaa7e7432 | refs/heads/master | 2023-01-18T16:30:28.628344 | 2020-11-30T14:14:56 | 2020-11-30T14:14:56 | 279,265,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | # 집합의 표현 - Union Find
def find_parent(x):
if parent[x]==x:
return x
else:
parent[x]=find_parent(parent[x])
return parent[x]
def union(x,y):
r1 = find_parent(x)
r2=find_parent(y)
if r1 > r2:
parent[r1]=r2
else:
parent[r2]=r1
def check(x,y):
r1= fi... | [
"hoj2887@dongguk.edu"
] | hoj2887@dongguk.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.