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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4ad57e5623a534930577b2344a2f132f793c8bb5 | 7dc295d045982180f89e2bca204148c715dcdd8c | /using_context/using_redirection.py | b3b04bf12790a109758b99bd39c6bd769572946a | [] | no_license | onionmccabbage/AdvancedPythonMay2021 | 0c582e2502672c5d0974a46da1f689ac44c41728 | 5194fb191f8d01521d54d6867084ae6845a3726c | refs/heads/main | 2023-04-20T07:32:29.119310 | 2021-05-13T14:53:01 | 2021-05-13T14:53:01 | 366,090,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | # we can write a class to redirect the context (simple solution)
import sys # sys is in control of inputs and outputs
class Redirect:
'''
Provide an easy way to redirect the standard output
(which defaults to printing to the console)
'''
def __init__(self, new_stdout):
self.new_std... | [
"noreply@github.com"
] | onionmccabbage.noreply@github.com |
72873dffd27f14fc20be6c3a6a335451b79762f1 | 960cf810b9544128bc7eb32f25adafb7d668499e | /dd_using_vgg16.py | 5b1465fd407d653301d98efc80cdeb1aeb2cb39b | [] | no_license | janvi08/Distracted-driver-detection-system | 324c76296cdd584435144fe3a68afd23df3702c4 | 027a63b4d86efbd1efdf4b878b4f206694d1d9e3 | refs/heads/master | 2023-08-15T05:38:31.763741 | 2021-10-04T12:18:48 | 2021-10-04T12:18:48 | 413,400,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,398 | py | # -*- coding: utf-8 -*-
"""DD using VGG16.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1Elg597sYw5uSq8rGiDeoDOkORsZrbLVy
"""
from google.colab import drive
drive.mount('/content/gdrive')
import pandas as pd
df=pd.read_csv('gdrive/My Drive/i... | [
"janviphadtare9@gmail.com"
] | janviphadtare9@gmail.com |
2f7161e1462efe4a1f7d4281499acae7de884531 | b7e9c505f3634f1ab0a28d4468fd7adb1d6cbf92 | /simple_linear_regression.py | 5a19f7618038446a71e18bd10034f3bc7fa36577 | [] | no_license | devarajnadiger/LinearRegression | a9cac70f606c27adc4e5a4f4a5baef1b8b6fd340 | b9a6c033e84b2ac4435f5e861db6b0f57f26a7b6 | refs/heads/master | 2020-04-23T06:49:31.640253 | 2019-02-23T04:52:05 | 2019-02-23T04:52:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | '''
----------------------------------------------------------------------------------
simple linear regression python code without using pandas and scikit library
with only one feature that is x
output is y
hypothesis function(predicted/model function) is h
parameters/coefficients theta0 and theta1
------------... | [
"noreply@github.com"
] | devarajnadiger.noreply@github.com |
997c692b5f8aa3a1df50e49dd5f625b4b2a76106 | 636a45b40f0a31a0f01487ebd0270a01c350a7e8 | /my_functions.py | 635661302dedc84d7478dc67c755a48733c0de5b | [] | no_license | Marley-C-Robinson-99/Windows-Test | 4afad46810f08c5b0bd0d0303310fb6eb02954f8 | 3fc1240126c07de01836032ab2e9241b6bbf25a8 | refs/heads/main | 2023-06-16T21:23:48.591193 | 2021-07-14T17:26:27 | 2021-07-14T17:26:27 | 380,139,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,198 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def is_two(num):
return num == 2 or num == '2'
def is_vowel(strng):
return strng in ('aeiouAEIOU')
def is_consonant(l):
return is_vowel(l) == False
def cap(word):
if word[0] != ('aeiouAEIOU'):
return word.title() #Used ttitlecase to capitalize ... | [
"marleycrobinson99@gmail.com"
] | marleycrobinson99@gmail.com |
b327b6904a68a6fac9133923566f52491e3e7255 | 96db160b6075e49101686eb4947fefb2e0909985 | /Store/views.py | 3cba59847230429be847c64618fcdb291698a251 | [] | no_license | hdforoozan/Restaurant | 7c43b1c89e8edc504a27dac2515313b979069c88 | d9420dc5dcd42bcb6c5952474ef996845ec4381c | refs/heads/master | 2022-12-09T13:38:57.970747 | 2019-09-29T20:45:10 | 2019-09-29T20:45:10 | 208,814,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,784 | py | from datetime import datetime
from django.shortcuts import render
from .models import Store, Employee, Manager
from Food.models import Food
from django.urls import reverse_lazy
from django.views.generic import TemplateView,DetailView,ListView, CreateView,DeleteView,UpdateView
from django.contrib.auth.mixins import Logi... | [
"hdforoozan@gmail.com"
] | hdforoozan@gmail.com |
9517457d7e8d2371a55f8d478f0d120d0d465c5c | c92035d0192a9cc65d0319c454beca8974808f42 | /app/map/urls.py | 6a59b642c1e4fc612b5998ecf62122d1d139ae33 | [] | no_license | ueue511/django-celery | 0fd710e1326e0ac636a843d742b961971724b562 | 3422ba995adcba5561f14350c7dc3fcd4d9a6e1c | refs/heads/master | 2023-07-04T08:39:28.993106 | 2021-08-12T11:56:57 | 2021-08-12T11:56:57 | 395,297,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | from django.urls import path
from . import views
urlpatterns = [
path('map/', views.Make_Map.as_view(), name='make_map'),
path('make_map/', views.make_map_post, name='make_map_post'),
]
| [
"nexnex07@yahoo.co.jp"
] | nexnex07@yahoo.co.jp |
3585d6a65316de2774692932e0998c9bca0ae3af | ac53ed07a534db727e57714f5fdd07950d22c170 | /Python学习/day04/匿名函数.py | b55019111525f8b8a8cb09de9d5e4c6a19f97327 | [
"MIT"
] | permissive | taoyan/python | b8847911068083481e34567716710abaf5bbe4be | 3fbb1e534ec91b33cd2ac690966d7253c2f5d757 | refs/heads/master | 2022-12-11T17:15:59.411554 | 2019-10-28T03:50:31 | 2019-10-28T03:50:31 | 147,048,609 | 1 | 0 | MIT | 2022-12-10T14:53:29 | 2018-09-02T02:39:40 | Python | UTF-8 | Python | false | false | 839 | py | #匿名函数
#lambda修饰
result = (lambda x,y:x+y)(1,2)
print(result)
#使用场景:简化代码
#匿名函数的调用
func = lambda x,y:x*y
result = func(1,2)
print(result)
#判断是否是偶数
def is_os(num):
if num % 2 == 0:
return True
else:
return False
print(is_os(1))
#使用匿名函数判断
new_func = lambda num:True if num % 2 == 0 else False
pri... | [
"1136523628@qq.com"
] | 1136523628@qq.com |
97b645a76edb21baf3e7d7f565b58fdb42d9e961 | 48cbfd4c3634a45da8cd4616013d775ff00a39e5 | /20201001_1/task1.py | f27c17eeda5565a43f27ef096abd00126d5520e9 | [] | no_license | hakenlaken/pythonprac | c3393f0eb1d8a569c6ee853cf6da9fe959bbedf8 | 2b5fe81b728ac10e3fd25b7223f9df25b0155752 | refs/heads/master | 2023-06-05T22:32:36.248486 | 2021-06-25T08:16:10 | 2021-06-25T08:16:10 | 297,048,545 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | # Задача_1: написать функцию вычитания двух объектов
def fun(a, b):
if type(a) is str:
res = ""
for d in [c for c in a if c not in b]:
res += d
return res
elif hasattr(a, "__sub__"):
return a - b
else:
return type(a)(c for c in a if c not in b)
inp = eva... | [
"lav@MacBook-LAV.local"
] | lav@MacBook-LAV.local |
90a27c3b480f0cc80ed8ee801bdadd35c64a12c3 | 1a356165035504853ea8c6b721c547d2cea0c18d | /Player/greatest.py | c3d077633cbd75d104f4ac68e6d4f83944d47d7c | [] | no_license | Anjali1409/Python-Programming | 93f128c7b724486505a47e55bc71bdd9872b4a3e | 7af4bb946f17cb7f0ef1bb1c21fc149dc3af8285 | refs/heads/master | 2021-04-28T04:05:36.276091 | 2018-06-10T09:46:20 | 2018-06-10T09:46:20 | 122,153,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | i=int(input())
j=int(input())
k=int(input())
if(i>j and i>k):
print(i)
elif(j>i and j>k):
print(j)
else:
print(k)
| [
"noreply@github.com"
] | Anjali1409.noreply@github.com |
26b18e37eff8d9418bc37752e4f8fe2f947df0b1 | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/tensorflow/contrib/predictor/contrib_estimator_predictor.py | afeb0cc8d0fc8739a534d1ebdf77758c20ae8948 | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:f616a461aa1df558fae47ff2bc5c7d16ceb00620172d2724deccf893b3da6f46
size 3152
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
6786a568c54a17e0b7e59fcb7c9bc5425a1874be | 1eccb884bb72a07b7d5417c523fa082c13933984 | /backend/backend/settings.py | cd9d385829fbfeb6b9aa667d5a22266fca66aeff | [] | no_license | sajal09/rainbow- | 5c3bc744c406f30a6516ce3c5449579f4ca3a1aa | 963ccaa446c642cd9fde5ccc262d4a54a9b80561 | refs/heads/master | 2023-01-24T02:14:58.470392 | 2020-07-15T13:10:57 | 2020-07-15T13:10:57 | 124,750,812 | 0 | 0 | null | 2023-01-05T22:27:00 | 2018-03-11T11:44:50 | JavaScript | UTF-8 | Python | false | false | 3,222 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"sajalchaurasia09@gmail.com"
] | sajalchaurasia09@gmail.com |
014b7ef0141fa10bec4ed60ff73f77ca036a6182 | b354c139723db370b69083071a7799052408fc24 | /lab4/mlutils.py | 45db00d5d60efdd882ef5d571fafa434b465448c | [] | no_license | kristijanbartol/Machine-Learning | b985ac070f0da7323931597c9bec8fc4d549cfb6 | da4df84b969900de7439a373e1962882cd9b44bf | refs/heads/master | 2021-09-23T20:22:04.572582 | 2018-09-27T11:52:07 | 2018-09-27T11:52:07 | 108,148,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,994 | py | import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.datasets import make_classification
from sklearn.neighbors import KNeighborsClassifier
def plot_2d_clf_problem(X, y, h=None):
'''
Plots a two-dimensional labeled dataset (X,y) and, if function ... | [
"kristijan.bartol@gmail.com"
] | kristijan.bartol@gmail.com |
007455755e4df954816604e5b84ea3665446662f | bc900ac54e870c5150f1cf64a1196037c54835ce | /Main.py | 9d440ad2e8b1d45884e8a288feb45b10fddf7d26 | [] | no_license | ZeCanelha/AED_PROJECTO1 | 2065c12beb5047e80025f710c05e58b5dac53985 | 051991e4b2779d816139f520d4798d34ca94ff27 | refs/heads/master | 2021-01-19T21:15:05.700968 | 2017-03-26T22:14:48 | 2017-03-26T22:14:48 | 82,474,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | import csv
import DoubleNode as DoubleNode
import DoubleLinkedList as DLList
import Functions as F
import re as split
#TODO Criar um dicionario com os pares de Pais / Sigla
_par_sigla_pais = {};
def create_ddlist(data):
DList = DLList.DoubleLinkedList()
Function = F.Functions(1,DList,_par_sigla_pais)
""... | [
"josemc@student.dei.uc.pt"
] | josemc@student.dei.uc.pt |
f8880d12b3954bf1f29a84e2fa0adf8ba9e779d6 | 52a4d869976a97498bdf56a8d0ff92cac138a136 | /Bioinformatics Textbook Track/Chapter 2/rosalind_ba2d.py | 238db719734990db59ec3be92ca629ff672af9ea | [] | no_license | aakibinesar/Rosalind | d726369a787d848cc378976b886189978a60a3a5 | 375bbdbfb16bf11b2f980701bbd0ba74a1605cdb | refs/heads/master | 2022-08-18T09:36:00.941080 | 2020-05-24T18:49:38 | 2020-05-24T18:49:38 | 264,722,651 | 0 | 0 | null | 2020-05-17T17:51:03 | 2020-05-17T17:40:59 | null | UTF-8 | Python | false | false | 1,561 | py | def greedymotifsearch(dna,k,t):
best = [s[:k] for s in dna]
for i in range(len(dna[0])-k+1):
tempbest = [dna[0][i:i+k]]
for m in range(1,t):
matrix = motifsToProfile(tempbest)
tempbest.append(profileMostProbablekmer(dna[m],k,matrix))
if score(tempbest) < score(bes... | [
"noreply@github.com"
] | aakibinesar.noreply@github.com |
3fa74ef1b8d7691e99faafe2a76a31346ce5aa33 | 35747e9ab6b1b70720ec90efcfce3e72e792b28c | /DQNAgent.py | 48dbd05199dcdda8e32e0a2152f104462b4ac961 | [] | no_license | nayansinghal/Deep-Q-Learning | aa568ff2f0400247f10ed4acd9732e693092b6d1 | 95b706500fd9539b5818ca7b147f79a44472c210 | refs/heads/master | 2021-08-27T19:54:52.692100 | 2017-11-04T21:03:45 | 2017-11-04T21:03:45 | 108,695,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | import numpy as np
from collections import deque
import random
from ModelBuilder import ModelBuilder
from AtariModel import AtariModel
from Processor import AtariProcessor
from Memory import Memory
class DQNAgent:
def __init__(self, processor, state_size, action_size, lr=0.001, epsilon=1.0, model_path=None):
self.p... | [
"singhalnayan91@gmail.com"
] | singhalnayan91@gmail.com |
7a65e54865e002c36b16fb0dc338699d283732c9 | 80b489a53f7f211a09920affa5998a0724d83e71 | /webapp/venv/lib/python2.7/site-packages/alembic/ddl/mysql.py | 96f42f382d97e602f22fcb1113185859ced6fda1 | [
"MIT"
] | permissive | mustafatasdemir/apkinspector | d9ec9d85da5e0014edaf0d98119561bf3f87dffc | 1bd0d044b7daef4efda21c985393f8d73722a074 | refs/heads/master | 2016-09-06T03:25:49.212735 | 2014-12-12T03:52:56 | 2014-12-12T03:52:56 | 24,392,752 | 3 | 0 | null | 2014-10-28T03:57:43 | 2014-09-23T23:10:55 | Java | UTF-8 | Python | false | false | 8,123 | py | from sqlalchemy.ext.compiler import compiles
from sqlalchemy import types as sqltypes
from sqlalchemy import schema
from ..compat import string_types
from .. import util
from .impl import DefaultImpl
from .base import ColumnNullable, ColumnName, ColumnDefault, \
ColumnType, AlterColumn, format_column_name,... | [
"mustafa.tasdemir@hotmail.com.tr"
] | mustafa.tasdemir@hotmail.com.tr |
ca1b7ba1ced0801086175a3a04c5cadc63f7bb52 | c190336a28dc3a2a20e0448551ffcb3a24ebd08b | /app1.py | fb7ba06b7592d75084c4b15736d944ecdc8a5a84 | [] | no_license | ThomsonRen/flying-dog-beers | bf3af72f7e70f09b23a73ccb7fc18e6eb5048621 | dce2d96fb9fe8ffe8aec319fb8a37a146fb86685 | refs/heads/master | 2021-05-18T16:05:26.204152 | 2020-04-17T12:18:36 | 2020-04-17T12:18:36 | 251,309,362 | 0 | 0 | null | 2020-03-30T13:14:11 | 2020-03-30T13:14:11 | null | UTF-8 | Python | false | false | 2,620 | py | # -*- coding: utf-8 -*-
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import pandas as pd
import plotly.express as px
# df = px.data.gapminder()
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
# df = df[df['cont... | [
"rentongxin@sjtu.edu.cn"
] | rentongxin@sjtu.edu.cn |
86438607b68f0230a38d395d4d3e9ad3da451323 | d68c6fd11a0a034348b5ec4cfd3304048a01e0a8 | /python/docop-hello-world/main.py | c44270d657fe9c00768af56e3c9630cd0e9279c6 | [] | no_license | wfelipe3/KnowBag | 043570ea1fad101d416b49bca04f621661ed159b | 0cf10e8a57076b68dc3ce9327869496027285c96 | refs/heads/master | 2021-01-24T08:15:30.437703 | 2018-02-12T03:32:49 | 2018-02-12T03:32:49 | 26,071,840 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | """Naval Fate.
Usage:
naval_fate.py ship new <name>...
naval_fate.py ship <name> move <x> <y> [--speed=<kn>]
naval_fate.py ship shoot <x> <y>
naval_fate.py mine (set|remove) <x> <y> [--moored | --drifting]
naval_fate.py (-h | --help)
naval_fate.py --version
Options:
-h --help Show this screen.
--v... | [
"feliperojas@iMac-de-Felipe.local"
] | feliperojas@iMac-de-Felipe.local |
08e27a11dfdd901859ea13372fe5cc91ccfe4f91 | 19a55c290de75ef32f790b96091eeb7a96703ec7 | /tasks/urls.py | 288e95106c5a36f4b38c17b300077d10576d3c58 | [] | no_license | vyshak-sukumaran/ToDo_Project | 49e7603d938d0401fc2d6c6caff8bd6bcf1f4ac1 | 7d368322d59793e42bcf5c00484d36fbf12240d0 | refs/heads/master | 2023-06-28T23:07:13.783844 | 2021-07-31T07:43:58 | 2021-07-31T07:43:58 | 391,287,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from django.urls import path, include
from . import views
urlpatterns = [
path('', views.index, name="index"),
path('update/<str:pk>/', views.update, name='update'),
path('delete/<str:pk>/', views.delete, name='delete'),
]
| [
"vyshakvyshu791@gmail.com"
] | vyshakvyshu791@gmail.com |
930242a46d4d476e465877f556f7744c09983f6b | bc1746f9e0ee46a40a8620420155a92cfc613a6d | /django_pythonic_menu/menu.py | 4fa8e62d5c6d59c509d8ba2449d2ae03abbb83f9 | [
"MIT"
] | permissive | YuriMalinov/django-pythonic-menu | 2861c5c448f290fa6d692cb6b7c0330159b8ad29 | 3b82a1bd60f32eee8e5c57fb2c71321ed0b9cda8 | refs/heads/master | 2021-01-17T17:14:47.160297 | 2016-11-13T15:17:09 | 2016-11-13T15:17:09 | 62,589,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,966 | py | import re
from collections import OrderedDict
from importlib import import_module
import six
from django.core.urlresolvers import reverse
from django.utils.six import wraps
class MenuItem:
_counter = 0
def __init__(self, route=None, visibility=None, title=None, **kwargs):
self.title = title
... | [
"yurik.m@gmail.com"
] | yurik.m@gmail.com |
a4d9cd67be8d8087ca60582c8e2dacbdbc3aac6e | 54e0c677471942aa35386e810e7fa54753bbecce | /Assignment 3 submission/preprocess.py | 23b0a97ab08a87dcc6522ff1fa19a31f8c302d1f | [] | no_license | itsuncheng/COMP4901I_Assignments | b27dd86d4e5a438c54c1298478bcc07efe2ea879 | 3bbe115056900515a4fa8fee1973219f9efdf334 | refs/heads/master | 2021-05-16T21:39:59.170470 | 2020-03-27T08:43:26 | 2020-03-27T08:43:26 | 250,479,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,657 | py | import pandas as pd
import re
import numpy as np
import pickle
from collections import Counter
import torch
import torch.utils.data as data
PAD_INDEX = 0
UNK_INDEX = 1
def clean(sent):
# clean the data
############################################################
# TO DO
###############################... | [
"itsuncheng2000@gmail.com"
] | itsuncheng2000@gmail.com |
077b5d30d14d285cab485c2c132910e626e14fc2 | dac8ec1bca7b390dac4aaedf94be0445cec03b66 | /lab04/run_NB.py | 53834b60d91845a6d924d88d71b14cd56d826d5d | [] | no_license | ldakir/Machine-Learning | 49333f641f745bcc523d6842fdc5e1c5db449d16 | 033a38459cac0d0c212f88a84ddcc6b772ec13dc | refs/heads/master | 2020-09-02T12:10:02.310934 | 2019-11-02T21:50:19 | 2019-11-02T21:50:19 | 219,218,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | """
Top level comment: be sure to include the purpose/contents of this file
as well as the author(s)
"""
import util
from Partition import *
from NaiveBayes import *
import numpy as np
def main():
opts = util.parse_args()
train_partition = util.read_arff(opts.train_filename)
test_partition = util.read_ar... | [
"39743074+ldakir@users.noreply.github.com"
] | 39743074+ldakir@users.noreply.github.com |
23b612e9499c69a6a90e61eb101c7b66f1b8f63d | 627bb6e86d174e1929439cb8326862cdf261201b | /node-1-srte-bsid-90001-to-node-4.py | c803851e231f71a6af8b264f79a35c83dba4a889 | [] | no_license | chrissembiring/sr-bootcamp | 2e7b24c4222b1cfef85a2e6b19a520e7ff0bfe9d | dfc198fadf1b0e1bb99089ee25feec35a3b056a0 | refs/heads/master | 2021-10-21T22:33:30.838919 | 2019-03-07T01:00:19 | 2019-03-07T01:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | import getpass
import sys
import telnetlib
HOST = "198.18.1.41"
user = raw_input("Enter your telnet username: ")
password = getpass.getpass()
tn = telnetlib.Telnet(HOST)
tn.read_until("Username: ")
tn.write(user + "\n")
if password:
tn.read_until("Password: ")
tn.write(password + "\n")
tn.wr... | [
"noreply@github.com"
] | chrissembiring.noreply@github.com |
7942307b39359f8d6f113c7197dbd8984a6e6eab | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/service_endpoint/policy/_list.py | 89e3a49e6bdaa393add44d973ce1ee228c59f2ef | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 102,260 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
b1e1f5704c991a7ae0995afbf5c7841193d0579b | 104252de9f8ac93aa4c052a955773cfadd55d481 | /PYTHON_PART_TWO/Part6_Modules_and_Packages/Part6_module_third_C_way_my.py | 60d4cc80716d44d96cdd3e7b39c43cbc37da5bcc | [] | no_license | TomaszPrysak/Full_Stack_Developer_PYTHON_PART | a03bf808f5012736dc46810cc049615d52b08622 | 31cf0888cdfd285b4d29416683aa7243a9778fdd | refs/heads/master | 2022-06-18T01:18:12.753292 | 2022-05-29T11:11:20 | 2022-05-29T11:11:20 | 166,885,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Plik funkcji, klas bądź innych obiektów jako moduł bądź pakiet z którego będziemy importować całą zawartośc bądź poszczególne funkcje, klasy bądź inne obiekty.
def trzeciSposobIC(): # funkcja zdefiniowania w pliku będącym modułem importowanym, funkcja ta będzie wykonywa... | [
"prysak.tomasz@gmail.com"
] | prysak.tomasz@gmail.com |
8d1dcda3139a9d6e5d1dcd75a2e85017e18a0a4a | 78c3082e9082b5b50435805723ae00a58ca88e30 | /03.AI알고리즘 소스코드/venv/Lib/site-packages/caffe2/python/operator_test/flatten_op_test.py | ba5fce81296a516900f9cabf049c0c697338ce54 | [] | no_license | jinStar-kimmy/algorithm | 26c1bc456d5319578110f3d56f8bd19122356603 | 59ae8afd8d133f59a6b8d8cee76790fd9dfe1ff7 | refs/heads/master | 2023-08-28T13:16:45.690232 | 2021-10-20T08:23:46 | 2021-10-20T08:23:46 | 419,217,105 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 960 | py |
from hypothesis import given
import numpy as np
from caffe2.python import core
import caffe2.python.hypothesis_test_util as hu
class TestFlatten(hu.HypothesisTestCase):
@given(X=hu.tensor(min_dim=2, max_dim=4),
**hu.gcs)
def test_flatten(self, X, gc, dc):
for axis in r... | [
"gudwls3126@gmail.com"
] | gudwls3126@gmail.com |
82f8969ed3e1b7093084a9af42e14ad369a4af19 | 6809cda579a7c1c88872f566d65f665c2dff20bb | /research-v10/verify-kb-2.py | e729c90888e8431c8193a7409ef0df0f2a33dcfb | [] | no_license | hellojixian/stock-dummy | edb3e7447e26ec3e0481c938fcf8f72063d6c850 | 06b352ba3d78ac419e7672b0e6ec630f6f461ae8 | refs/heads/master | 2020-06-15T09:11:33.401689 | 2019-11-05T15:46:43 | 2019-11-05T15:46:43 | 195,256,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | #!/usr/bin/env python3
import datetime
import pandas as pd
import math, sys, os
from lib.jqdata import *
from lib.func import *
filename = 'data/dataset-labeled-min.csv'
np.random.seed(0)
dataset = pd.read_csv(filename,index_col=0)
trading_dates = dataset['security'].groupby(dataset.index).count().index.tolist()
prin... | [
"hellojixian@gmail.com"
] | hellojixian@gmail.com |
7c9e10c88fe57e659271b8670b20e26f8d2ecefe | 911e7c7ba3ff999eb58275595d934dee968d8f80 | /trunk/agent/src/main/python/ambari_agent/ZooKeeperCommunicator.py | 576a4a4b458c22c4da1e845e50d351cc59c69c8a | [
"Apache-2.0"
] | permissive | sreev/ambari | 1bce266ed0d318af3ebe50a7bd6b378083612330 | 48b92a5aa58debe7824f4337a97dfa8a8bb07f71 | refs/heads/master | 2021-01-10T21:44:10.844859 | 2012-04-19T19:20:28 | 2012-04-19T19:20:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,890 | py | #!/usr/bin/env python2.6
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"Licens... | [
"sree_at_chess@yahoo.com"
] | sree_at_chess@yahoo.com |
b6a695509f4c932fce5594d2924313a6581f08bd | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_ORGS/NPM/node/deps/v8/tools/release/test_scripts.py | 7cf5d141301c575c3186e2488597b510374b586d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"SunPro"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 34,860 | py | #!/usr/bin/env python
# Copyright 2013 the V8 project authors. 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... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
466c8bce8b26bf008d0bbd460978c463b959cc2e | d7dad757bd7e0d8447fe2e9d5b7efc1ace39385a | /Rod/handmodelling_ciss17/skeleton/SkeletonPolar.py | e4163320b29411b156293bbdfa203d4183546b31 | [] | no_license | eth-ait/ComputationalInteraction17 | cc28e523fd672f2851451ac3d80d5f44b28d6252 | eb34454007b8eefc1992cb1a2d94d6623e5863eb | refs/heads/master | 2021-12-14T18:34:52.388135 | 2017-06-16T14:45:56 | 2017-06-16T14:45:56 | 91,554,497 | 25 | 18 | null | null | null | null | UTF-8 | Python | false | false | 2,721 | py | import numpy as np
import Skeleton
class SkeletonPolar(Skeleton.Skeleton):
class SkeletonNode:
def __init__(self, label, v1, v2, v3, isOrigin):
self.v1 = v1
self.v2 = v2
self.v3 = v3
self.label = label
self.isOrigin = isOrigin
... | [
"seon.wook@swook.net"
] | seon.wook@swook.net |
c3535fbb041dc439a9b9f5b1c995eecdee0e1942 | bc82de9237a6aa28fd7623a27b35c02ae8416702 | /allennlp/semparse/type_declarations/type_declaration.py | 47683656260ae90fc79dfd7e462348f8ee762724 | [
"Apache-2.0"
] | permissive | Snnzhao/GrailQA | 78190a8a5bae934c07f4035786f658ef4764c510 | e89e66380402e51bac56f59c7d24d4400bcd11b6 | refs/heads/main | 2023-04-26T19:49:21.683922 | 2021-04-11T09:40:34 | 2021-04-11T09:40:34 | 370,937,323 | 1 | 0 | Apache-2.0 | 2021-05-26T07:00:21 | 2021-05-26T07:00:20 | null | UTF-8 | Python | false | false | 36,337 | py | """
This module defines some classes that are generally useful for defining a type system for a new
domain. We inherit the type logic in ``nltk.sem.logic`` and add some functionality on top of it
here. There are two main improvements:
1) Firstly, we allow defining multiple basic types with their own names (see ``NamedB... | [
"gu.826@cse-cnc196739s.coeit.osu.edu"
] | gu.826@cse-cnc196739s.coeit.osu.edu |
fed2ff0bff98961ef7a53472b2ccc62403a7594b | 34f5db6ceda8719b22e45feba790ab97574fef39 | /书评主题分析/lianxi.py | 8bcc0ff94fb1e54d8a8e1f534dfa5b2947a335e3 | [] | no_license | Limjumy/sanguozhi-python | 15c4783e9477bc5ee20ca816d6d4a8083e851aaf | 2995e9c8851420338ad2ab6b48266216b157dddc | refs/heads/master | 2020-12-02T05:24:59.365261 | 2017-07-11T14:28:36 | 2017-07-11T14:28:36 | 96,902,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | #!/usr/bin/python
# encoding:utf-8
list=[[]]
filename = "E:\\python_project\\爬虫\\长评论\\1025998.txt"
fopen = open(filename, 'r') # r 代表read
for eachLine in fopen:
list[-1].append(eachLine) # 返回列表
| [
"ju@lingju.ac.cn"
] | ju@lingju.ac.cn |
0ad9c543040c66b73a4c0063a4834e93bf347cb7 | 19bcb4784f2ddda66d5ccf9eb268c45baf1f122c | /python/nn/results/get_results_aggr.py | 21dc15f59a6a51107391466207eeb449a8b19102 | [
"MIT"
] | permissive | PeterJackNaylor/AutomaticWSI | bb76f9983479b1a1a6d7ad089eb9bb098da91136 | a26f3d8efff005dcf2d1a14705785579ce5484c8 | refs/heads/master | 2023-09-04T09:12:48.946814 | 2023-08-30T09:24:17 | 2023-08-30T09:24:17 | 226,664,370 | 1 | 1 | MIT | 2020-03-19T10:49:47 | 2019-12-08T12:30:52 | Python | UTF-8 | Python | false | false | 1,695 | py |
import os
from glob import glob
import pandas as pd
def get_options():
import argparse
parser = argparse.ArgumentParser(
description='takes a folder with ')
parser.add_argument('--path', required=True,
metavar="str", type=str,
help='folder where the... | [
"peter.naylor@mines-paristech.fr"
] | peter.naylor@mines-paristech.fr |
17fef6c5d241acb0b7bb102fad34566c88da3eff | ce5ce3764e75774c0b7eab47893987b9f311b1b9 | /.history/moments/views_20210527215915.py | aeb3ce256b14aff202e4f75fe445d9d3152b2c1b | [] | no_license | iSecloud/django-wechat | 410fb8a23b50dc2343c2f0167bbae560bf6e9694 | faaff9bb7f9454a63b2f8411d3577169b470baad | refs/heads/main | 2023-05-15T06:53:16.252422 | 2021-06-07T14:00:35 | 2021-06-07T14:00:35 | 374,685,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from django.shortcuts import render
# Create your views here.
def home(request):
return render(request, 'homepage.html') | [
"869820505@qq.com"
] | 869820505@qq.com |
544802223d9e7154436d2675abc13fe6d6e844ec | fbeecc935e05bcd47fc23f96a3bc8fc94f676f6c | /webGatherer/yahoo/wc.py | ffdc0f2eaea589aefcaa7fe127d14ea6a3d55899 | [] | no_license | eox03y/works | 097b98241dc07843870cbab9b7fc3d640e6a6627 | 8bedbb7eedb57f91cde068454116d3aae1b71f8e | refs/heads/master | 2021-01-24T05:16:27.770666 | 2013-08-24T06:29:28 | 2013-08-24T06:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | if __name__ == "__main__":
import sys
if len(sys.argv) < 2:
sys.exit()
f = open(sys.argv[1])
cnt = 0
for line in f:
cnt += 1
print "%d lines" % (cnt)
| [
"handol@gmail.com"
] | handol@gmail.com |
a161fd86ce0916197d8943f40b551acd0ba600bc | 50f0d33b12778f911fe16a4e18d0659936b9086b | /0x05-python-exceptions/4-list_division.py | e67e5211367f6871f31a26fa72ddb8ede0d0caa0 | [] | no_license | monicajoa/holbertonschool-higher_level_programming | 4f4eaa7aa2cad1642e7aed54663cb30eb92e1b4f | 451d20174144ad96fa726a4389c7aae72abf2495 | refs/heads/master | 2022-12-18T00:35:00.682624 | 2020-09-25T05:14:57 | 2020-09-25T05:14:57 | 259,479,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | #!/usr/bin/python3
def list_division(my_list_1, my_list_2, list_length):
list_new = []
result = 0
for i in range(list_length):
try:
result = my_list_1[i] / my_list_2[i]
except ZeroDivisionError:
result = 0
print("division by 0")
except IndexError:
... | [
"mnortiz.ortiz@gmail.com"
] | mnortiz.ortiz@gmail.com |
d52160813890769641b5c2e79dc927b2df2bd54d | 4366b6223a4d54a3a85c9d3689fb223d157b4220 | /models/mv2_cpm.py | a6b043d14986ed85b879f44c36ac8e4f074ac930 | [
"Apache-2.0"
] | permissive | BetaPundit/tf2-mobile-pose-estimation | 9dc41f343d2bbdf45522b363509a331ec208498c | e60f877f6a8e292e9587a3074010e5c274787318 | refs/heads/master | 2022-11-24T03:47:51.329925 | 2020-08-06T13:48:10 | 2020-08-06T13:48:10 | 285,281,864 | 1 | 0 | Apache-2.0 | 2020-08-05T12:29:51 | 2020-08-05T12:29:50 | null | UTF-8 | Python | false | false | 9,200 | py | # Copyright 2019 Doyoung Gwak (tucan.dev@gmail.com)
# 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 ... | [
"tucan.dev@gmail.com"
] | tucan.dev@gmail.com |
3433c235216a86e3fa5e9cfba839c2bfad220340 | 5bf4dddf4ec67115a604b42bb43691bcb8853106 | /tga/ugc/management/commands/bot.py | 21a945ab3f41fcd0156dacc5f097bc9bd88a6601 | [] | no_license | xislam/bot-werca | e6f4f829442c01700b0f44142749192dd6232bf6 | d826944460c1449e425f54373fe90927d575d832 | refs/heads/main | 2023-01-05T10:55:58.667394 | 2020-10-06T14:14:55 | 2020-10-06T14:14:55 | 301,629,851 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,653 | py | from abc import ABC
from aiogram.utils import executor
from django.core.management.base import BaseCommand
from ugc.management.commands.text import text1, text2, text3, text5, text7, text6, text8, text9, text10, text11, \
text12, text13, text14, \
text15, text16, text17, text18, text19, text20, text21, text2... | [
"nurdinovislam4@gmail.com"
] | nurdinovislam4@gmail.com |
2432a572bd371ad31357a644beb118c7a6652907 | 9c3584757cda097128e6916a5490056263d038a1 | /cv/urls.py | b4a4aa8a59791c0d56489205762ada1f5cf5f7b1 | [] | no_license | jackcorsi/bridging-coursework | 0921a5e2b7dbba304895022e95707475d176fb36 | a1e5e2e42b3cdcc241356fefc2a53d47320c7e04 | refs/heads/master | 2022-12-12T11:35:28.713567 | 2020-08-31T22:06:28 | 2020-08-31T22:06:28 | 290,881,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.cv, name='cv'),
] | [
"jackcorsiwarren@gmail.com"
] | jackcorsiwarren@gmail.com |
a95b8d425b5111a57fc1dd383f4c49c52955e818 | 91b32d0bbc563055751185221ef5f62a894944fa | /main.py | 129c12381a9ffe445aa865f192c3f7644fb201c9 | [] | no_license | frugs/allin-bnetprofile | 122a5bf87007d3b693a19c855a71f8aaedd8569e | 4563a582deb0f00df91ed96b15674653fe23ceb5 | refs/heads/master | 2020-03-29T23:22:38.065581 | 2018-09-26T18:08:48 | 2018-09-26T18:08:48 | 150,469,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from werkzeug.serving import run_simple
from bnetprofile import app
def main():
run_simple("localhost", 5001, app, threaded=True, ssl_context='adhoc')
if __name__ == "__main__":
main()
| [
"hugowainwright@fb.com"
] | hugowainwright@fb.com |
16dac5684e2692e62c1899cf8f289c0eefbf87d6 | a707cedea077872dbf5af48c1a5b1886e667732f | /src/wn-geoip/src/urllib3/contrib/socks.py | 8219ff104c80d8e5bb7e7c6e51a5dc6a10cf691f | [
"CC-BY-4.0"
] | permissive | osg-cat/virtual-school-2021 | 373850043c10f66f002df1e241110f3a5b2c91e2 | 403450fd6668aae609e4b85a4814a4f7f94677b3 | refs/heads/main | 2023-07-11T13:52:53.609399 | 2021-08-13T17:11:54 | 2021-08-13T17:11:54 | 357,324,855 | 0 | 0 | CC-BY-4.0 | 2021-04-12T20:06:17 | 2021-04-12T20:06:16 | null | UTF-8 | Python | false | false | 7,028 | py | # -*- coding: utf-8 -*-
"""
This module contains provisional support for SOCKS proxies from within
urllib3. This module supports SOCKS4, SOCKS4A (an extension of SOCKS4), and
SOCKS5. To enable its functionality, either install PySocks or install this
module with the ``socks`` extra.
The SOCKS implementation supports t... | [
"clock@wisc.edu"
] | clock@wisc.edu |
e866fc987d259075f3a82088c41e177dd80b1e7a | c5e3c87b73a3d8473eb1f184f7f85cbda9281a94 | /Client/runner.py | aaad71c2c21616a751be16f3c3a2b8335f416c0a | [] | no_license | itaybou/SHA1-Cracker-Server-Client-Python3 | 8c752db249baa546104648d4fa6dae472c60c279 | 47c48a64f2e81105f48ec6ca94a7ff1ff409dc53 | refs/heads/master | 2020-12-07T07:28:37.552890 | 2020-01-08T22:26:44 | 2020-01-08T22:26:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | import udp_client as client
def main():
udp_client = client.UDPClient()
udp_client.start()
return
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
print("Exited")
| [
"noreply@github.com"
] | itaybou.noreply@github.com |
9ae75ffc5555390fa040f606e7a4f857ff2fd1fd | bff7a1feb29c339ae93ae56865928f8b53e16c41 | /spotify-playlist-generator.py | fca5248f25c07db041605fab030c8c25845fe0e5 | [] | no_license | imanishbarnwal/mlh-local-hack-day | c8c036582b9e09b0e69c07302b38594161cf2301 | 606a9b578ed0d768c78c0220b1c05e2bf2e18d0b | refs/heads/main | 2023-02-19T16:51:49.824763 | 2021-01-18T07:01:37 | 2021-01-18T07:01:37 | 328,614,282 | 2 | 2 | null | 2021-01-13T05:25:13 | 2021-01-11T09:37:21 | Jupyter Notebook | UTF-8 | Python | false | false | 4,237 | py | import base64
import datetime
from urllib.parse import urlencode
import requests
class SpotifyAPI(object):
access_token = None
access_token_expires = datetime.datetime.now()
access_token_did_expire = True
client_id = None
client_secret = None
token_url = "https://accounts.spotify.com/api/token... | [
"noreply@github.com"
] | imanishbarnwal.noreply@github.com |
d888ad9e63f68a9365129a57f809de089621a5e0 | 63aec28ae387493c049978a429b837f3d835e711 | /learn_python_asyncio/coroutines/example09.py | 24cee8a3263927285bd4888e296462d02aa15559 | [
"MIT"
] | permissive | erictapia/devstacklab | 83c538813c3d0c18509eba98601536b3d8c465ea | 2997a620c3f4d29c3a526d561ec0cfb4ba0cd6b4 | refs/heads/master | 2023-04-14T22:13:15.722186 | 2021-04-26T15:28:45 | 2021-04-26T15:28:45 | 335,650,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | import asyncio
import time
from typing import Callable, Coroutine
import httpx
addr = "https://langa.pl/crawl"
todo = set()
# Removed recursive call and instead creates a task
async def crawl2(prefix: str, url: str = "") -> None:
url = url or prefix
client = httpx.AsyncClient()
try:
response ... | [
"erictapia1@gmail.com"
] | erictapia1@gmail.com |
b0db839d40c84990671e88503e7afe1b8d93b056 | d3022ceb672f2ef0d2985fbb31f2f086aef4d40f | /Principal.py | 2589448f2f1fcfd2236624337292088eba6bc226 | [] | no_license | BorjaMSLS/PFCRepo | 434b53a59239651113898e37022216e02ce4ae01 | 6d9b68847100dfe35d7f967580e36cacab43a953 | refs/heads/master | 2020-06-03T13:48:00.748486 | 2017-06-12T20:04:34 | 2017-06-12T20:04:34 | 94,132,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | import sys, os
def main(argv=None):
fname = "Orden.txt"
try:
if os.path.isfile(os.path.join(os.getcwd(),fname)):
print "fichero existe. Vamos a parsear"
else:
print "fichero noexiste"
sys.exit()
except Exception, e:
print "An exceptio... | [
"borjams85@gmail.com"
] | borjams85@gmail.com |
ec8c9468d457da5877f08cb25edc9fc0c224c492 | b8ceebeebfeed12b653e1b4d526e85973faecbb5 | /scheduler/factories.py | 893e9c1891f514133481027f2526eea7065cba97 | [
"MIT"
] | permissive | a3r0d7n4m1k/YACS | 2678589c4a07eb9f17d80e60d543226ab570428d | 6bdb2299905f6321be5de788f16a9464a70a4206 | refs/heads/master | 2020-06-23T12:40:39.823658 | 2015-11-09T01:26:17 | 2015-11-09T01:26:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | import factory
from scheduler import models
class SavedSelectionFactory(factory.Factory):
FACTORY_FOR = models.SavedSelection
internal_section_ids = []
internal_blocked_times = []
| [
"jeff@jeffhui.net"
] | jeff@jeffhui.net |
7e7f5a718ac8033167bc5a225a645a38c8c3650a | e5dd21ac1305257fe163995f951cbbfbf3051fd7 | /Cracking_the_Coding_Interview/8-6.py | c8c86de2f9e0015f6f18220cf9120789b84d7d12 | [] | no_license | QI1002/exampool | d3d3cdad040e4a861b934122ef12e059f7d6cd01 | 08800f78482f9fd9d6641c3eabc5880e69782f42 | refs/heads/master | 2021-01-02T09:35:15.283632 | 2020-10-13T14:54:25 | 2020-10-13T14:54:25 | 99,178,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py |
def paintBox(point, box):
x = point[0]
y = point[1]
if (x < 0 or x >= len(box[0])):
return
if (y < 0 or y >= len(box)):
return
if (box[y][x] == 1):
return
box[y][x] = 1
paintBox((x-1,y), box)
paintBox((x+1,y... | [
"alanchang544@gmail.com"
] | alanchang544@gmail.com |
32b8393a60a17cb8d5d3a614d581aae9fcb466f1 | a7f16c95f973905e880ad4dc277fbba890486654 | /wildlifecompliance/migrations/0283_auto_20190814_1036.py | dcfe076119285e3560ffaf749bd7547dd1ce0fd5 | [
"Apache-2.0"
] | permissive | dbca-wa/wildlifecompliance | 9e98e9c093aeb25dbb7ff8d107be47e29bcd05e1 | cb12ad9ea1171f10b5297cdb7e1eb6ea484e633d | refs/heads/master | 2023-08-08T14:37:05.824428 | 2023-07-31T02:57:23 | 2023-07-31T02:57:23 | 232,276,030 | 1 | 17 | NOASSERTION | 2023-07-31T02:57:24 | 2020-01-07T08:12:53 | Python | UTF-8 | Python | false | false | 772 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-08-14 02:36
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wildlifecompliance', '0282_auto_20190813_1820'),
]
... | [
"brendan.blackford@dbca.wa.gov.au"
] | brendan.blackford@dbca.wa.gov.au |
7415de76e89f8f4dfe95d6ebb44104381c925582 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/enums/types/operating_system_version_operator_type.py | 9b61e85a5eec3edf7a897381b9d6f3c4f647b52d | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
6458e807ae35ddfbbbd23abd2b56fca869e9cf33 | 04aefaaaefde30ba596fe69ae6391fd2635de994 | /CaC Python/EjerciciosPy1/Ej3.py | 06eeb5be5e90ff23d9baa3e08a736cc35a867f4d | [] | no_license | 35sebastian/Proyecto_Python_1 | 6a7256bdda5e8df2c78a4cf5bc08c6d211c5deae | 07cc7ec5d08eb5064b8ab084cec4121575d0ddab | refs/heads/master | 2023-02-07T13:27:38.962597 | 2023-01-29T13:02:53 | 2023-01-29T13:02:53 | 242,755,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | nombre = input("Ingrese su nombre: ")
edad = int(input("Ingrese su edad: "))
print("Nombre: ", nombre,"\nEdad: ", edad) | [
"vegaa.sebastian@gmail.com"
] | vegaa.sebastian@gmail.com |
aa8a4755acbc4c4f51caf1502ace59a767713b17 | 4c5f84772962f0c9c89b990df9e1933f7ff8d406 | /prospb/urls.py | 98621bd76cf441fb249aa4a11805297c5d143aa2 | [] | no_license | lucazartu/prospb | 0fe2804da812371006256b4c4c7dd4671536b39c | 645c30fe23643ec598047678535871e2e5d327a8 | refs/heads/master | 2020-07-20T18:56:25.244621 | 2016-08-22T22:52:35 | 2016-08-22T22:52:35 | 66,313,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | """prospb URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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-bas... | [
"laqcs@cin.ufpe.br"
] | laqcs@cin.ufpe.br |
0b29e0bdb53c18affd0a1891b1bdceb44d34336b | 1139234b2bb7f868c15310719125e693cfcde718 | /cricket_portal/cricket_portal/urls.py | 60c91c224c76b57fd914eeb5c7ac3e31c563ed19 | [] | no_license | pfirefly/cricket-portal | 6d7ff31deb00dcf47b84757e6339a26d4b15e087 | b52238fdcc05fe37ddfa4f921998542544d31f9e | refs/heads/master | 2020-04-23T11:10:19.891578 | 2019-02-17T13:57:22 | 2019-02-17T13:57:22 | 171,127,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | """cricket_portal 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')
C... | [
"noreply@github.com"
] | pfirefly.noreply@github.com |
af9a0a783f94d08519d1f0e3125f060e8ec4cb96 | 8761902ce8b75afcf116c84615216fab4e009f5d | /setup.py | 658c8e26333eeffd1e44427b3e7a8d2364e1ef90 | [] | no_license | phanhongan/scheduler | 5796978d17761d87bbce635b077c5a6bca4c0b83 | f2f23ea6bb4ebdda3458e6c4b1718411a4dd9af4 | refs/heads/master | 2020-03-18T21:21:59.551883 | 2018-05-29T10:04:46 | 2018-05-29T10:04:46 | 135,276,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from setuptools import setup
setup(name='scheduler',
version='0.1',
description='Scheduler with timezone support',
url='http://github.com/phanhongan/scheduler',
author='Phan Hong An',
license='MIT',
packages=['scheduler'],
keywords=[
'scheduler', 'schedule', 'schedul... | [
"phanhongan@gmail.com"
] | phanhongan@gmail.com |
7ac63f93b0f13c2433e4559bcd2a6ac18cc46ebd | f22b9fbf2daf735390d46e60246335ded34306ee | /Getting started With Python 3._/poss2.py | fb4245063aff4e2745e418c031614fafc75ae835 | [] | no_license | gfobiyatechnical/2k19-With-Python- | 38497aa7bf111baec696817274e60c670df21868 | c2310d0b918525d48b84e77ec5b31d16fa95e213 | refs/heads/master | 2020-04-15T03:10:51.102486 | 2019-04-29T07:48:56 | 2019-04-29T07:48:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | name = input("enter your name")
print(name + str(sharma))
| [
"noreply@github.com"
] | gfobiyatechnical.noreply@github.com |
37dccfd79428f9a1109efb012e45f8792f7bc5f1 | 441a3063db206ce6dc5691d3722cfa2e7f498b35 | /panel/api/user/urls.py | fece51a925f601e2564100329aa08ce90eee80e1 | [
"MIT"
] | permissive | rrosajp/vigilio | 5014b7e07f6c2f0a886596e27a8758a55075b6b6 | d21bf4f9d39e5dcde5d7c21476d8650e914c3c66 | refs/heads/master | 2023-04-23T19:12:06.413788 | 2021-05-04T12:54:57 | 2021-05-04T12:54:57 | 352,330,016 | 1 | 0 | MIT | 2021-05-04T17:55:58 | 2021-03-28T12:59:37 | Python | UTF-8 | Python | false | false | 193 | py | from django.urls import path
from . import views
urlpatterns = [
path(
"change-password",
views.ChangePasswordEndpoint.as_view(),
name="change_password",
),
]
| [
"zortoporto@gmail.com"
] | zortoporto@gmail.com |
6f51f3f9e059212cd21614b13cb96e4fca3ba3ce | 135ccc63bf78ba89f3bab1373414b8be66b5218d | /utdallasiia/wsgi.py | 0e31743ee5952db87c5477d92fdc49e225841e7d | [] | no_license | oddrationale/utdallasiia.com | 0b58d9ead02e50fa8899b4b045585557c67f34b7 | 9ce35fbdb4fee39b72ccc9daa528f5bff25df418 | refs/heads/master | 2016-09-05T20:44:33.843578 | 2013-05-03T17:48:53 | 2013-05-03T17:48:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | """
WSGI config for utdallasiia project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATIO... | [
"oddrationale@gmail.com"
] | oddrationale@gmail.com |
b771ea29dec1c4fcd94859238ac6f6fb1411b4ff | b6b866f60297eef3d9fc67dbb547502d5603e896 | /lab/StructuredCode/ids/IO.py | 8bc7d4bb1df0e541c72305d1c4eef363f1efd366 | [] | no_license | RKDSOne/ids | a4ffa823fb7ffa795127cfff4402cbd6a3c4b32f | f509d75c3ced1b3d2bfe306358787f9e748c3e91 | refs/heads/master | 2021-06-01T02:21:18.024383 | 2016-06-29T02:24:30 | 2016-06-29T02:24:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | import json
import numpy as np
import pandas as pd
import os
class DataReader:
"""A cache for reading data"""
def __init__(s, confpath="conf.json"):
s.conf = json.load(open(confpath))
def read(s, dataset, sep_label=True):
def filepath(dname):
if dname.find('-') != -1:
... | [
"tianfu.d.he@gmail.com"
] | tianfu.d.he@gmail.com |
5b1037113dd6a8d2a100c6474c1598111cef66cd | be8c339e7ea80aaf5e28c31d7fbcc42e160dc2dd | /examples/lotka-volterra.py | 1b5afdfd88ade35c955ef60f2fd2730bd38e7cd3 | [] | no_license | carterian8/timediffeq | aea765fab8458fc65e4b77bf253a39fab53f56cb | de72ed5c3031a56b5c2f04436958217080b0c18b | refs/heads/master | 2020-05-18T15:46:59.345102 | 2019-05-13T01:57:45 | 2019-05-13T01:57:45 | 184,507,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,683 | py | import numpy as np
import numpy.random as npr
import matplotlib.pyplot as plt
from scipy import integrate
import tensorflow as tf
import timediffeq
def lotka_volterra(X, t=0, a = 1., b = 0.1, c = 1.5, d = 0.75):
""" Return the growth rate of fox and rabbit populations. """
return np.array([a*X[0] - b*X[0]*X... | [
"carterian8@gmail.com"
] | carterian8@gmail.com |
4f8360cb9656c65b9ab0af1060d4f523bca4959f | 6a95b330e1beec08b917ff45eccfd6be3fd4629f | /kubernetes/client/models/v1_namespace_status.py | 523e7e43d3f44960d90c934e8371361de7fc1cc0 | [
"Apache-2.0"
] | permissive | TokkoLabs/client-python | f4a83d6540e64861b59e322c951380a670578d7f | f1ad9c6889105d8510472606c98f8d3807f82020 | refs/heads/master | 2023-07-14T01:36:46.152341 | 2017-12-21T21:32:11 | 2017-12-21T21:32:11 | 115,042,671 | 0 | 0 | Apache-2.0 | 2021-08-06T03:29:17 | 2017-12-21T20:05:15 | Python | UTF-8 | Python | false | false | 3,306 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"mehdy@google.com"
] | mehdy@google.com |
1f2b03d1b4506d5cf644d64178ff55f7ec29716a | 97e1c6bf888cf701dd64b03b7667ff96e1ca9d46 | /Docker-Django/app/env/lib/python3.8/site-packages/ode_composer/dictionary_builder.py | 00441add9ede35f9373f45e95539b8e611716942 | [] | no_license | samumartinf/docker-django-ode | 4bd8093926e69fb33fe8b8a59e00216baf0478fd | 3dd4ee2a23c0cccadf3c355788b8ecc1c8145412 | refs/heads/main | 2023-01-22T10:16:17.124097 | 2020-12-03T20:59:44 | 2020-12-03T20:59:44 | 314,359,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,555 | py | import numpy as np
from typing import List, Dict
from .util import MultiVariableFunction
from itertools import combinations_with_replacement
from sympy import latex
class DictionaryBuilder(object):
def __init__(self, dict_fcns: List[str]):
self.dict_fcns: List[MultiVariableFunction] = list()
self.... | [
"samumartinfrias@gmail.com"
] | samumartinfrias@gmail.com |
f7c7c421831b9eeb7c1aeb2c8bd83ab719ec2177 | 7c0fa2655c7a6010e5d8b797273a8bc6b88ef1de | /apps/goods/urls.py | 5daca772e8c367b7ae30f74a8dadce6decbfa481 | [] | no_license | chenxiaoyu2/OrderMall | 54ee02e40dff9fafcf96e6742e2158537f004f18 | e7a2595c1074d545f1f17016f71312f5da03c2cc | refs/heads/master | 2022-12-11T14:41:12.834239 | 2019-04-16T12:03:17 | 2019-04-16T12:03:17 | 179,245,447 | 2 | 0 | null | 2022-12-08T04:59:26 | 2019-04-03T08:29:31 | HTML | UTF-8 | Python | false | false | 388 | py | from django.conf.urls import url
from apps.goods.views import IndexView, DetailView, ListView
urlpatterns = [
url(r'^index$', IndexView.as_view(), name='index'), # 首页
url(r'^goods/(?P<goods_id>\d+)$', DetailView.as_view(), name='detail'), # 详情页
url(r'^list/(?P<type_id>\d+)/(?P<page... | [
"1480456073@qq.com"
] | 1480456073@qq.com |
983c6da847e1914aa65d3aba6a6534f774a4e39f | 615855e8218fa182cd8f14480695de51c3eb0cb4 | /ga/app/knapsackproblem/deapCustomize/algorithms.py | 348ca66dafe1803d6ec1157480f9b9ca9d7d28a2 | [] | no_license | sandy230207/GA-for-Knapsack-Problem | 586b6a8391bb8bbb520e960e4efadc1de8eafd7f | 31ff14be848a405faf63a6c12b88809f886b0924 | refs/heads/master | 2022-10-20T01:55:37.404787 | 2020-01-07T16:56:44 | 2020-01-07T16:56:44 | 232,328,678 | 0 | 1 | null | 2022-10-01T09:08:53 | 2020-01-07T13:18:48 | Python | UTF-8 | Python | false | false | 23,153 | py | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | [
"sandy230207@gmail.com"
] | sandy230207@gmail.com |
d558ad7aff4e520653b7da7b5f2cf5eb3c8f7089 | f98c12b0fa1449ede5c53d4fa11ad14274a0390c | /homework_2/question4.py | c13cc75d006a8ab6e27e77a78128073a81805b12 | [] | no_license | doodles526/CS344 | 49cc20551c89a948336eb15a87208dc58b5df8ce | 02f2b37bbcc7d42d70a611b1e74557c566c2f6f6 | refs/heads/master | 2021-01-19T18:29:49.880665 | 2014-09-01T06:45:49 | 2014-09-01T06:45:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | # Josh Deare
# dearej@onid.orst.edu
# CS311-400
# Homework 2
import math
import sys
COMPOSITE = 3
def primes_to_n(scan_to):
"""
Returns number of primes and list of primes between 0 and scan_to
Return value is a tuple, as (num_primes, primes[])
"""
# initialize the lists
num_list = [None... | [
"dearej@onid.orst.edu"
] | dearej@onid.orst.edu |
0ffe4bc3ddbf2d4c37f626ced16302e1c0753d97 | d00aec723a30e5dff05218fceeecf14e986131c3 | /src/bot/output/offense_output.py | 8f2eba13f3997491bc5eb7754f846c9d1efeb96c | [
"MIT"
] | permissive | xKynn/discord-pob | 422e2c1f42035ba292ee303cf9957f48fd47adfb | 8c1175974fa69de4a4a143487dab3ca94ce8ceed | refs/heads/master | 2020-03-25T04:19:50.908268 | 2018-07-14T09:54:09 | 2018-07-14T09:54:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | from src.bot.consts.thresholds import OutputThresholds
from src.bot.util import build_checker
from src.models import Skill
def calc_max(comparison_dps: []):
"""
Get the max value out of all values in the list when they are set.
:param comparison_dps:
:return:
"""
max = 0
for dps in compari... | [
"fabian.widmann@uni-ulm.de"
] | fabian.widmann@uni-ulm.de |
9f9a31f2fd7bdf297ce237c0e0bd5ca5475fafae | 60ff143cf313c0d134a17f1a20847d201caa28dc | /use_dictionary_to_count_word.py | 4762da5f7a3b4079b2d7deb8cfe27eb91629bb8e | [] | no_license | jensonhupython/reviews-analytics | db5afd829b70aed6fc68697f28bf3fd39da66ef6 | b0a933f316bba82205994740ab58fffd01f57446 | refs/heads/master | 2023-05-24T14:15:32.835160 | 2021-06-20T14:57:44 | 2021-06-20T14:57:44 | 295,876,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | # 利用 dictionary 做一個功能
# 功能: 可以計數某個字出現在整個留言中, 可以讓使用者輸入
import time
data = []
count = 0
with open('reviews.txt', 'r') as f:
for line in f:
data.append(line)
count += 1
if count % 1000 == 0:
print(len(data))
#print('檔案讀取完畢, 總共有', len(data), '筆資料')
print(data[0])
start_time = time.... | [
"jenson7899@gmail.com"
] | jenson7899@gmail.com |
3fb98eb68b61ad9968065ebf555fe75c62f98c16 | bdc6edf8d54623f0afe6d1fe6770ef7bd029d315 | /karatsuba_log int multi.py | 5f11af077cdfccaaf5782b4405900f82c669ae8f | [] | no_license | KeyurAsodariya111/Python | 8a79124677b37cfc89d0b8d25b87275d13efd2f3 | a795014f82995d9b5f07d37ba3c9d45b541199b4 | refs/heads/main | 2023-05-31T16:32:13.846214 | 2021-07-10T08:39:23 | 2021-07-10T08:39:23 | 384,649,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 3 10:09:13 2021
@author: Keyur Asodariya
Time com:- O(n^1.585)
"""
X=int(input("Enter number 1 :"))
Y=int(input("Enter number 2 :"))
def karatsuba(X,Y):
#base condition
if X<10 or Y<10:
return X*Y
m=max(len(str(X)),len(str(Y)))
... | [
"noreply@github.com"
] | KeyurAsodariya111.noreply@github.com |
ebfaa95f77f169b9ea0772633ca3dcff5322622b | 82f9100372c224f9e23acb38082d05c41f5cee66 | /front_end/chq_form.py | 81d1c1939610896c91ed0fded8104e6901e4c65b | [] | no_license | johnstembridge/DT | 207ed86ebc87e89fea84637cb0321d8beb78bd58 | 4516725d41728f7f27a1f06211eba980830c77ee | refs/heads/master | 2023-06-22T12:16:52.765924 | 2023-06-14T13:26:27 | 2023-06-14T13:26:27 | 187,260,532 | 0 | 0 | null | 2023-02-15T21:24:26 | 2019-05-17T18:02:28 | Python | UTF-8 | Python | false | false | 832 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from front_end.form_helpers import ReadOnlyWidget
from back_end.interface import get_member
class RenewalChequeForm(FlaskForm):
dt_number = StringField(label='DT number')
amount = StringField(label='Renewal amount')
description ... | [
"john.stembridge@gmail.com"
] | john.stembridge@gmail.com |
897cf0c437285e8773f49a6e7cb7f12530950287 | 491f9ca49bbb275c99248134c604da9fb43ee9fe | /MD_analysis/process_radius_of_gyration.py | 2d4077af75475dccee4e3c7ab1dad1d1e233f511 | [] | no_license | KineOdegardHanssen/PhD-subprojects | 9ef0facf7da4b2a80b4bea9c890aa04f0ddcfd1a | c275539689b53b94cbb85c0fdb3cea5885fc40e9 | refs/heads/Windows | 2023-06-08T13:32:15.179813 | 2023-06-05T08:40:10 | 2023-06-05T08:40:10 | 195,783,664 | 2 | 0 | null | 2020-08-18T14:42:21 | 2019-07-08T09:49:14 | Python | UTF-8 | Python | false | false | 6,058 | py | import matplotlib.pyplot as plt # To plot
from scipy.optimize import curve_fit
import numpy as np
import random
import math
import time
start_time = time.process_time()
M = 9
N = 101
kangle = 20
kbond = 200
Kangle = kangle
Kbond = kbond
#factors = [0.1... | [
"noreply@github.com"
] | KineOdegardHanssen.noreply@github.com |
2bdca8a8bf20ae934daa0612cf186baca66bacb7 | c37e6d0770c31a78f315bd4a46c96158ccc13485 | /IDE/AsmIDE/migrations/0010_alter_tests_starting_time.py | 1ddd6c8774b2e16f7f2c9990f9a48f9dc32845f5 | [] | no_license | Scorpion197/8086-IDE | 22f8b3ae0831bc5ecd8ff5643564eb8b970855cc | 165eb2f9ff60ae17f61c077a637a0c123f52e718 | refs/heads/main | 2023-05-21T00:09:53.426535 | 2021-06-15T01:42:54 | 2021-06-15T01:42:54 | 355,016,027 | 2 | 0 | null | 2021-04-24T20:14:04 | 2021-04-06T01:03:57 | JavaScript | UTF-8 | Python | false | false | 509 | py | # Generated by Django 3.2 on 2021-04-24 01:07
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('AsmIDE', '0009_alter_tests_starting_time'),
]
operations = [
migrations.AlterField(
... | [
"doudou.gaw@gmail.com"
] | doudou.gaw@gmail.com |
1d49ed1332e56d7a4116b959a1697f345d699931 | 31704accb3f1d49fbe3092c35ea054fa6c0bdf37 | /Models/Baselines/baselines.py | be4fd70b9c22b786da492e1aa6a93712a433fe1e | [] | no_license | tommasoc80/germeval-rug | eaf21e6882b419e2ef5222c50b7e049b827ff15c | 125ff4eb4f421fbd7b5e6ab1d91eac36d61fd2b0 | refs/heads/master | 2020-03-27T03:13:00.904594 | 2018-10-11T14:14:15 | 2018-10-11T14:14:15 | 145,846,700 | 1 | 1 | null | 2018-10-11T14:14:16 | 2018-08-23T11:52:28 | Python | UTF-8 | Python | false | false | 3,463 | py | '''
Baseline systems for Germeval 2018 Shared Task
1) Most freq. class
2) Tfidf-weighted (word) unigram + linear SVM
Input corpus file as command-line argument
'''
import argparse
import statistics as stats
from sklearn.dummy import DummyClassifier
from sklearn.feature_extraction.text import CountVectorizer, TfidfVec... | [
"xiaoyubai2002@yahoo.de"
] | xiaoyubai2002@yahoo.de |
5ce998a8d321fbb8c92ffc3515a595137019c013 | 222d525f50f0c955ba6e8af0b41a9bd9c04d99a9 | /venv/Lib/site-packages/pandas/_version.py | 560c9c69332156b1bd4362ce45c1cffa515f362a | [] | no_license | Sakthi-zebra/Rest_RCI | 943c4652a239808b71d0d2ba5c28acca7435cf68 | 9a716860986a3d1fafee70f0c6339810fce152f2 | refs/heads/master | 2021-01-05T16:44:41.126142 | 2020-02-17T10:22:16 | 2020-02-17T10:22:16 | 241,074,751 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | # This file was generated by 'versioneer.py' (0.15) from
# revision-control system data, or from the parent directory name of an
# unpacked source archive. Distribution tarballs contain a pre-generated copy
# of this file.
from warnings import catch_warnings
with catch_warnings(record=True):
import json
import sy... | [
"sm1279@zebra.com"
] | sm1279@zebra.com |
2b6fd7d1a8889319ee9306ac006162dc199fd10e | aae970b6020f1ae416d3b1c8ad581027c1389d2c | /venv/Scripts/easy_install-3.7-script.py | 62f792f8fa9e0418d04dba7e62fdf69a75208c29 | [] | no_license | saffist3r/DecryptXOR | 3f5b5a37c3f84cf44fea87e3b19688680dfcc8a1 | e417acfd3d8eec42bb0c5ba1feb1b879a9dc6558 | refs/heads/master | 2022-11-20T13:45:06.369448 | 2020-07-26T17:32:11 | 2020-07-26T17:32:11 | 282,700,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | #!"C:\Users\Safwen Ladhari\PycharmProjects\PythonTests\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(... | [
"axelsaff@gmail.com"
] | axelsaff@gmail.com |
8c1958a090bf6f112c785c4943e5b48ff31e4d78 | e278302c3faf1ef0686de771313e1a16256791ff | /csdn_blog_data/x.py | 19e0d1c92320434369e63498b95bd092c3c184a6 | [] | no_license | rflin/python-spider | 45ea56b70251589daf157ad3f37b2485150f6321 | 61aa27423e457340169ed337cc47777131f1300f | refs/heads/master | 2021-09-04T16:19:19.785711 | 2018-01-20T07:46:52 | 2018-01-20T07:46:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import urllib.request
import re,os
import time
import matplotlib.pyplot as plt
name = 'gl486546'
CSDN_blog_url = 'http://blog.csdn.net/' + name
def get_maxlistNum():
rps = urllib.request.urlopen(CSDN_blog_url)
html = rps.read().decode('utf-8')
x = re.findall(r'/article/list/([0-9]+)">尾页</a>',html)
if x:
retur... | [
"noreply@github.com"
] | rflin.noreply@github.com |
fbe5bcce893c65d0de9fbe54faebde4410ae5695 | 5ac726f23d0490d3d43819578cca590b62d0ff02 | /wise_intern/Interviews/admin.py | 259b7df34ca5d091e9f4021328f27e7c247f6b8f | [] | no_license | youssriaboelseod/Software-HumanResources | 52ab324bf43479d8bea20690f71690615c68ef25 | 821fdf195915af3f6b6ec16ef2fb6d9f70d986f7 | refs/heads/master | 2022-12-28T01:29:52.310176 | 2020-10-10T05:05:22 | 2020-10-10T05:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from django.contrib import admin
from .models import Interview
# Register your models here.
admin.site.register(Interview) | [
"bhatnagar.aman1998@gmail.com"
] | bhatnagar.aman1998@gmail.com |
290cccac3244c8f49b7fe30dc928990ec75a0610 | b7ba02a29b10c449a8e405063c5eede32c36f0c8 | /doc/conf.py | 31ed7b46162d1b1b5bd2fbd7c00247768fd3b1bc | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Paebbels/pyHTTPRequestRouter | 96e32756ef4ef0e538f8990cef99719eac5dad0d | 10592ecdd9fd57bc04d218a7cdbb050d7ae38cc5 | refs/heads/master | 2021-06-22T14:25:37.250642 | 2020-01-02T00:57:08 | 2020-01-02T00:57:08 | 214,282,531 | 0 | 0 | NOASSERTION | 2021-04-28T22:09:05 | 2019-10-10T20:46:33 | Python | UTF-8 | Python | false | false | 4,408 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"Patrick.Lehmann@plc2.de"
] | Patrick.Lehmann@plc2.de |
99510d519de2a5ec319d4e7e6655ff6fd749a0c3 | 9b6f26c9ce7771bdfd23e02850824ba0d609e0d1 | /src/deprecated/restore_relative_word_freq.py | 13056f409b303ec34705009bbdaa5d461eb59ed9 | [] | no_license | ReinaKousaka/core | adb182daf04399e946551422ccf1b91d97352b26 | 33a3fa38ad4dcdd54ff583da15dcd67c99ad9701 | refs/heads/master | 2023-04-14T02:39:42.038400 | 2021-04-27T13:54:35 | 2021-04-27T13:54:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,200 | py | import os
from twitterDownloader import TwitterTweetDownloader, TwitterFriendsDownloader
import pymongo
import datetime
from word_frequency import WordFrequency, daterange
from pymongo import MongoClient
from collections import Counter
ds_location = 'mongodb://localhost:27017'
word_frequency = WordFrequency(os.getcw... | [
"kailong.huang@mail.utoronto.ca"
] | kailong.huang@mail.utoronto.ca |
062f297cae347ab07eaa95341a3d6d4e5870644e | 161e7693f8e0dccdaff940fc5b3fcde3b2a54b7c | /lesson5_inheritance.py | 988de798d20db2f1a884dca8ce585e96d5d92f4c | [] | no_license | tanweer123/Python | 4d759e8b07057fe2248d087c822e88a874238d05 | af7d736484dccb3a72f17cbb56e6da87a78ba3e2 | refs/heads/master | 2020-04-16T19:59:09.910136 | 2019-03-10T11:20:35 | 2019-03-10T11:20:35 | 165,881,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | class Parent:
def __init__(self):
print("This is parent class")
def parentfunc(self):
print("This is parent method")
def func(self):
print("calling from parent class")
p = Parent()
class Child(Parent):
def __init__(self):
print("This is child class")
def child... | [
"alam.tanweer153@gmail.com"
] | alam.tanweer153@gmail.com |
efddcc33bba411d8e270ab601367317c336c97a1 | 3e0a928b4e92ddd51421970de0bab7e787780e24 | /assignments/assignment3/number1.py | 785851163c4b6449eca436a87b6ff613344953ff | [] | no_license | mjohn239/530-390-13 | cc7ac27a7d449954cf8739de21fc23c0daddf894 | 78171c55fbc5092556fa7af3918bd9b222d80572 | refs/heads/master | 2021-01-18T17:14:39.108564 | 2016-01-22T04:15:53 | 2016-01-22T04:15:53 | 49,161,182 | 0 | 0 | null | 2016-01-06T20:58:30 | 2016-01-06T20:58:30 | null | UTF-8 | Python | false | false | 1,261 | py | #!/usr/bin/env python
import numpy as np
import random
import time
# selection sort
def selectionsort(A, n):
for i in range(n):
m = A[i]
mj = i
for j in range(i,n):
if A[j] < m:
m = A[j]
mj = j
A[mj] = A[i]
A[i] = m
# merge sort (entry point)
def mergesort(A,n):
if n > 1... | [
"mjohn239@jhu.edu"
] | mjohn239@jhu.edu |
1cae0928c21b5d35d8bbd79dddccb421f2bc0d15 | 58d8b2b9a1ece8cc06a2997f731a17f22edacbf0 | /cipher/plugins/hearing/routes.py | ce25307ce4abb5ebe981279cecefcdb2f641aba0 | [] | no_license | valorun/CIPHER | 2c67a7b6eee1f8a593c07cb594dd922f805a468e | e7d1aef66470477d5788c2dc11c7370284a6bdf4 | refs/heads/master | 2023-07-24T04:05:54.000846 | 2022-07-24T09:36:37 | 2022-07-24T09:36:37 | 137,410,300 | 0 | 0 | null | 2023-07-18T21:53:21 | 2018-06-14T21:15:53 | Python | UTF-8 | Python | false | false | 2,705 | py | import json
import re
import threading
from flask import Flask, session, request, jsonify
from . import hearing
from .model import Intent, chat_queue
from cipher.model import Sequence, db, resources
from cipher.security import login_required
from cipher.core.actions import CUSTOM_ACTIONS
@hearing.route('/hearing')
@lo... | [
"ronan@collier-famille.fr"
] | ronan@collier-famille.fr |
2f03740dce263ba7d322d9175165a19213c55b8e | e5859e6766bc9a76e84312adad7c10d575e735c9 | /SOURCE/Current-Development-Code/swift/swift/oracle_plus/utility.py | 4afc222fbdfa28a77d2e6ebdcb6714b1bcc67c3f | [
"Apache-2.0"
] | permissive | gayana06/Thesis | 8e142d8c6697c18c5c5f99a27fafbc6dfd2b0f96 | e287fdf6b963e113c23e09fc6564e64aa9dad45a | refs/heads/master | 2021-01-10T11:21:17.700390 | 2015-05-23T21:38:34 | 2015-05-23T21:38:34 | 36,142,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,769 | py | __author__ = 'Gayana'
from datetime import datetime
from swift.oracle_plus.config import is_adaptive_mode,log_path,PERFORMANCE_PATH,QUORUM_MAP_PATH,CASE_ID,PROCESSED_LOG_PATH,SENT_LOG_PATH,ENABLE_LOGS
def Is_Adaptive_Mode():
return is_adaptive_mode
def get_current_datetime():
return str(datetime.now())
def... | [
"gayanachandrasekara@gmail.com"
] | gayanachandrasekara@gmail.com |
6ba2eaaf0441bd9cbe54bd95bd0f0810f655a902 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02999/s283934284.py | 6cd487c30f50e638f9be2239e26427ad2bcd0a27 | [] | 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 | 85 | py | x,a = list(map(int,input().strip().split()))
s = (0)
if x >= a:
s = (10)
print(s) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
41e2743e524fdd8b6b96c7526e848d2add4d2802 | 854181e839968c7e9fbc350a880b0c9d1f70dc3a | /search_online.py | 0a2b569e865e2d8782c1a0bed052f5bc2c00c789 | [] | no_license | JiangChSo/2020-Huya-Program-Technical-Challenge | 479f3dec0020e412c088ae322cfe0359cec3db5f | 4b99ac05c405c10b924e429cde631d94a2f0debe | refs/heads/master | 2023-05-23T23:27:15.454882 | 2021-06-13T03:17:28 | 2021-06-13T03:17:28 | 287,489,597 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | import requests
from bs4 import BeautifulSoup
import random
import time
import csv
import jieba.analyse
import jieba
import pypinyin
# 不带声调的(style=pypinyin.NORMAL)
def pinyin(word):
s = ''
for i in pypinyin.pinyin(word, style=pypinyin.NORMAL):
s += ''.join(i)
return s
list_content = []
list_t = []... | [
"954237332@qq.com"
] | 954237332@qq.com |
61d46884b1498f13a9058ea7eb7389bdad18882e | 0626d664ac306066b3f97914a407cdc618afcce7 | /Setup.py | 1b1932c39f2727c7f08c8ddbd1c5672b81d6ff5c | [
"MIT"
] | permissive | kobejn/Roland-GP-8 | 5b9e5e6c5c2868db11bd1354c6381128da91c929 | 558d1cb547b99b44beb517371f1fc171017e1b31 | refs/heads/main | 2023-09-04T23:26:56.069456 | 2021-10-18T13:45:58 | 2021-10-18T13:45:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | #!/usr/bin/env python
from distutils.core import setup
setup(name='Roland-Gp-8',
version='1.0',
description='Library for inspecting and modifying Roland Gp-8 sysex dump format.',
author='F.G. Robertson',
author_email='me@grantrobertson.com',
url='https://www.github.com/grobertson/Roland-GP... | [
"me@grantrobertson.com"
] | me@grantrobertson.com |
ca6d3a98f3998152b7b9dda41f3a1cd0d6f4985b | cab2cae48f1dee4a9b8c6b3cdb2d5406ebc5e72f | /dbConfig.py | 92fef633530172299a0a6f48fc0668d49ddf4111 | [] | no_license | CMUChimpsLab/python_static_analyzer | 4961fcb92150bbe390b7aca4ace8a2dc4e9df7b7 | 7c562f62a39a3392814467f8d7d20bee6ea5883b | refs/heads/master | 2021-01-20T13:48:58.447211 | 2018-06-12T14:52:07 | 2018-06-12T14:52:07 | 15,215,146 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | #Do not commit login info to github !!
#There is security risk to leak the ip address of our mongodb server
HOSTNAME = "xxx.xxx.xxx.xxx"
USERNAME = "xxxxx"
PASSWORD = "xxxxxxxxx"
| [
"lsupperx@gmail.com"
] | lsupperx@gmail.com |
57c06678cfe9cd58a767af3192995b70794be68a | 63ddf960d66b380933b9294c7993d3bfba158b5d | /flask_website/__init__.py | b0394be6e60d9c69c0194d5f1a70ee23dd5decaf | [] | no_license | ujansen/Flask-Blog | 1b1a0e8c5588b8bfaa90c812d1501d75474b1cc7 | 7389416e714790b32289766aa776516017b29109 | refs/heads/main | 2023-01-11T17:29:34.793206 | 2020-11-18T13:13:11 | 2020-11-18T13:13:11 | 313,937,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from flask_mail import Mail
from flask_website.config import Config
db = SQLAlchemy()
bcrypt = Bcrypt()
login_manager = LoginManager()
login_manager.login_view = 'users.login'
... | [
"noreply@github.com"
] | ujansen.noreply@github.com |
36fbcc1dbeea8d7452334d443e9dcc52f980366a | bf0d62460cbfb9291dffda76825ec06bfdbe8c98 | /higher_moments/test_update.py | 50d0312f13a0d76e26c31a5a14cd7c85496b2a17 | [] | no_license | contagon/deepfilters | 5cdabc9f7cddbb5f8750553d0040701b6e78b14a | 97be59d0896d7dfa0a618f9649ae634b455d3e63 | refs/heads/master | 2023-02-19T02:10:07.519107 | 2021-01-12T02:09:54 | 2021-01-12T02:09:54 | 307,907,212 | 1 | 0 | null | 2020-12-16T19:35:26 | 2020-10-28T04:34:17 | Python | UTF-8 | Python | false | false | 1,296 | py | import torch
import numpy as np
import matplotlib.pyplot as plt
from scipy.io import loadmat
from networks import *
import sys
# load data
n = 9400
data = OdometryData("exact_data_4.pkl", split=8000)
all = slice(None,None)
# make models
n_m = 3+6+10+15
pnn = Network(n_m, n_m-3, 64, 12, *data.train_predict(all)).cuda... | [
"contagon6@gmail.com"
] | contagon6@gmail.com |
f101d81ec1eb6d47cd3d9ad9f6b421ad77b7f6ee | 7195f0cc2615c094d1a9c187a67948dfb2bbff25 | /accounts/urls.py | 23fa5bf31a145f3988094db9c90fdf78e848c77b | [] | no_license | dhirajkumar2020/makemytrip | 7ceae2c60175efc5e78d4ffe309d71eeeb36e31a | 7ef571b65117a57215d2d30d9f9c13420fa185e0 | refs/heads/master | 2020-09-17T00:09:04.716126 | 2019-11-26T08:08:31 | 2019-11-26T08:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path("register", views.register,name="register"),
path("login", views.login,name="login"),
path("logout", views.logout,name="logout"),
]
| [
"dhiraj.kumar@nescode.com"
] | dhiraj.kumar@nescode.com |
0afd72284979030a577a6afb50f3516967bc088b | 7e8ea701c075f06025fcdf2df39a7ac81e2d35f6 | /consulting/models/inventory.py | d5316ce419257e89e0670fa0d21212a5383cad55 | [] | no_license | goryfigment/consulting | 945dde852624f855d8bc5a4098182cb6eca3a043 | d084b205ea1d0bc184e3f49dc2abab245964e9a7 | refs/heads/master | 2021-06-23T06:13:24.454143 | 2019-12-12T01:35:27 | 2019-12-12T01:35:27 | 225,676,883 | 0 | 0 | null | 2021-06-10T22:21:21 | 2019-12-03T17:21:13 | CSS | UTF-8 | Python | false | false | 7,075 | py | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey has `on_delete` set to the desired behavior.
# * Remove `managed = False` lines if ... | [
"goryfigment@gmail.com"
] | goryfigment@gmail.com |
bca46c19a4f931e51af14f0a270d2dabae403505 | 1f24127dd3647976bc713efa68cdfcacdb8f84d1 | /products.py | 9146a23f0558d92338cc8845681f31f0c2a00643 | [] | no_license | rexlinster/PYLN | f38a792eb82ddfb76a1003c58327f6ea4d8056b6 | cb74507eed0277fdd91a45d1d5cd24530c4c5f26 | refs/heads/main | 2023-03-01T08:29:04.358222 | 2021-02-09T07:15:21 | 2021-02-09T07:15:21 | 325,210,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | products = []
product = ''
while product != 'q' :
product = input("你要買啥? ")
if product == "q" :
break
price = float(input("價格是? "))
amount = float(input("數量是? "))
total = str(price * amount)
products.append([product,total])
with open("product.csv","w") as f :
f.write('產品,價格\n')
... | [
"rexlinster@gmail.com"
] | rexlinster@gmail.com |
e6fc546651d2205d4808a4a327045054eda8451d | 7db0883137d119565540f2d071638c4016f39213 | /Note/Project_Play/BaiduBaike/SpiderMan.py | eb7543c12a969940ffb61d81059fa69f378fe5f0 | [] | no_license | PhilHuang-d/python--- | cf22a4cc00d4beaaf75ef7ca87a4c5d31a9d5efe | 152c18f51838ce652b79a0cd24765b1a1c237eee | refs/heads/master | 2021-09-13T05:32:53.754865 | 2018-04-25T13:36:40 | 2018-04-25T13:36:40 | 108,812,447 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | #coding:utf-8
import DataOutput
import HTMLDownloader
import URLManger
import HtmlParser
class SpiderMan(object):
def __init__(self):
self.manager = URLManger.UrlManager()
self.downloader = HTMLDownloader.HtmlDownloader()
self.parser = HtmlParser.HhmlParser()
self.output = DataOutp... | [
"32259595+PhilHuang-d@users.noreply.github.com"
] | 32259595+PhilHuang-d@users.noreply.github.com |
af952cafe9b7c8cd011f7a54506bc85501ad2fe1 | 933bf4d1915983ec36589a75635ecbf5b153a943 | /Chapter 03/FileCode.py | b1717c5c10884b47cb7587622b2e0fa8fbb7b4a7 | [
"MIT"
] | permissive | smartdong/PythonPractise | f3ccaf709dbf0f7c93710842e6d494563fdac558 | e1fe421b24d7ec8b26d5e34f70f2692ce825e967 | refs/heads/master | 2021-01-18T22:13:06.703189 | 2016-11-12T02:54:22 | 2016-11-12T02:54:22 | 69,237,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | #file = open("data2.text", "w")
#file.write("Hello Python\n")
#file.write("This is a line\n")
#file.close()
#
#text_lines = [
# "Chapter 3\n",
# "Sample text data file\n",
# "This is the third line of text\n",
# "The fourth line looks like this\n",
# "Edit the file with any text editor\n" ]
#
#file = open("data.txt", "... | [
"yangxudongsmart@gmail.com"
] | yangxudongsmart@gmail.com |
c72280c1eeaae1f109b80dd090e27597795b4d21 | 8b4fa99b046341d13c1522853fe7a4961043b2b4 | /nutr/migrations/0008_auto_20170603_2037.py | b5d1bf2559667dc720700c6858374a1813100d3e | [] | no_license | mesas998/epa7658577 | 228c3229ab0900942c7b36f47409c159b4017bd8 | 6e3ede9866e8ece5cc9972b73b9e17163c09ef48 | refs/heads/master | 2021-01-25T07:48:43.715268 | 2017-06-12T16:48:18 | 2017-06-12T16:48:18 | 93,660,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-03 20:37
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nutr', '0007_auto_20170603_2023'),
]
operations = ... | [
"michael.sweeney303@gmail.com"
] | michael.sweeney303@gmail.com |
9652f01eca6829045b4e09504f32936418c55ce6 | 51a80d87fd9f009d8b97573288d6ebd0b420b995 | /blahblah/scribble.py | a02548edc7528ac110dd0856d04c0b764824e178 | [] | no_license | kim-ellen821/mycoding | 02858509c9bf0892d81d73f01e838c762644c3cf | 20c03c529d07f0a776fd909a60cabaca3a8fcc34 | refs/heads/master | 2023-08-15T08:06:50.872463 | 2021-04-01T09:19:43 | 2021-10-13T13:02:25 | 353,621,725 | 0 | 0 | null | 2021-04-01T09:19:44 | 2021-04-01T08:00:52 | Python | UTF-8 | Python | false | false | 1,099 | py | # #2
# h ,w = 4, 4
# blocks = [[0,0], [3,1], [1,0], [0,0], [2,2], [2,3], [3,1]]
# map = [0] * 100001
# answer = []
# def solution(h, w, blocks):
# check = dict()
# for i in range(len(blocks)):
# s = str(blocks[i][0]) + str(blocks[i][1])
# print(s)
# if s not in check:
# map[... | [
"ellenkim821@gmail.com"
] | ellenkim821@gmail.com |
22788a768aeb91f8b074cef2f964bf056ddc7185 | b27d0135accc27594a7f60efc824960fd53a8fe1 | /check-application.py | 26db8f9b732b2ee2ac4bd28ac40d669a33d9141f | [] | no_license | hendrasaputra8/belajar-py | 61dd89842d24ec955e6b4be86793d36392c289a9 | 1cac8e82a579acdec55fa015df7eefcde6563c0c | refs/heads/master | 2020-04-15T09:44:04.636663 | 2019-01-21T04:37:28 | 2019-01-21T04:37:28 | 164,563,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | import subprocess
rc = subprocess.call(['which', 'htop'])
if rc == 0:
print 'htop installed!'
else:
print 'htop missing in path!'
subprocess.call('/root/scripts/install.sh') # --> path bash bisa taro dimana pun
| [
"hendrasaputra@hendrasaputra.local"
] | hendrasaputra@hendrasaputra.local |
3d6e47d4efb78b657a60852b6505cf0266099e8e | 1369e6a623b0c8d2fcd9ced21756ea0b79373adf | /blog/admin.py | 703ff05eedd523f7a1feac63c1dab7edd8d5227e | [] | no_license | sunshane6726/Practice-App | ed3be2b85272bb3a1d701c9a9b902130c411220a | a6f0763d643be2dbb33f400a0b3f356b6c63f5eb | refs/heads/master | 2023-04-27T01:34:30.809318 | 2019-07-05T12:04:32 | 2019-07-05T12:04:32 | 193,915,683 | 0 | 0 | null | 2022-04-22T21:40:15 | 2019-06-26T13:59:31 | JavaScript | UTF-8 | Python | false | false | 171 | py | from django.contrib import admin
from .models import Blog
# Register your models here.
admin.site.register(Blog)
# 실제로 내가 작성을 해봐야 실력이 는다. | [
"sunshane6726@gmail.com"
] | sunshane6726@gmail.com |
ae9733baa5acdbba8e89173c3ab1ad64124800fc | 5213322410b843325d2e50576d397695b2aea2f7 | /proxy/pay.py | 4bceec220a74add591984a66d1c4f8a5dd6b2d0b | [] | no_license | cash2one/Python-In-Action | 854be36627031cc4da3b65e37c7f0e52069af2e0 | bbf5cb090e07e22245089ed3df1284e13c11115a | refs/heads/master | 2020-03-10T21:26:46.534010 | 2018-01-19T13:51:57 | 2018-01-19T13:51:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | import requests
import pymongo
import time
client = pymongo.MongoClient('localhost', 27017)
proxy = client['proxy']
pay = proxy['pay']
while True:
time.sleep(0.5)
wb_date = requests.get('http://api.ip.data5u.com/dynamic/get.html?order=59f3d1290512f231f0acd124242fe932&sep=2')
pay.insert_one({'ip': wb_date.t... | [
"2808581543@qq.com"
] | 2808581543@qq.com |
c8e16252fb1427ba3ea9dd2778e24d30b756a85c | 738806f165e448b6ca0b7f6324da60a5bceea294 | /pset6.2/caesar.py | 3560e5f8c277a213b3af61e3a4df072c7137d89f | [] | no_license | rajdeep-biswas/allofc50-iguess | fa704968f21c79e5d0e7163a924090954f47e6d2 | 0285fdf59a82348895246dcd37e607634d7281a6 | refs/heads/master | 2022-12-13T02:05:04.720441 | 2020-09-07T14:39:35 | 2020-09-07T14:39:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | from sys import argv
if len(argv) != 2:
exit("invalid input")
key = int(argv[1])
arr = input("plaintext: ")
print("ciphertext: ", end="")
for i in range(len(arr)):
if ord(arr[i]) >= ord('a') and ord(arr[i]) <= ord('z'):
print(chr(97 + ((ord(arr[i]) - 97 + key) % 26)), end="");
elif ord(arr[i]) >=... | [
"rajdeep.biswas@sap.com"
] | rajdeep.biswas@sap.com |
6cdd33b225194a437ad5ed9ae0a18e40503fdc34 | f98e5eae4a8edea219949e58b94f41e20ca93cae | /schools/cert_issuer/models.py | 13dbb60b8ca4be33c5d64f82abea11ac94b12393 | [] | no_license | BlockCerts-Swust/block_certs_back_end | ec6117060a83f7f9eea0c5f8506bda9d89c27b53 | 7c518666c497cf885ab7eaa18ef387dd166692c4 | refs/heads/master | 2022-12-22T07:16:23.434977 | 2020-05-29T05:32:16 | 2020-05-29T05:32:16 | 244,879,049 | 1 | 0 | null | 2022-12-08T04:00:51 | 2020-03-04T11:06:33 | Python | UTF-8 | Python | false | false | 2,658 | py | from abc import abstractmethod
from schools.cert_issuer.config import ESTIMATE_NUM_INPUTS
class BatchHandler(object):
def __init__(self, secret_manager, certificate_handler, merkle_tree):
self.certificate_handler = certificate_handler
self.secret_manager = secret_manager
self.merkle_tree =... | [
"2482003411@qq.com"
] | 2482003411@qq.com |
7132a6efe79998e97391fede2615e22427a1242a | 5ffed81ced523b6e417b4e48d20380b6f16f8f42 | /pre_exam/vacantion.py | 10a4829eea56d31166c28138daf1f4126ed1418f | [] | no_license | Nikoletazl/Basics-Python | 0f3f095bd51f9546c681e3cdd268232de88749ab | 17aef1b95814f13a02053681aae3e617e56f2fe6 | refs/heads/main | 2023-08-14T15:48:48.450249 | 2021-10-08T15:02:35 | 2021-10-08T15:02:35 | 415,027,622 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | count_people = int(input())
count_nights = int(input())
count_cards = int(input())
count_tickets = int(input())
sum_one_person = count_nights * 20
sum_cards = count_cards * 1.60
tickets = count_tickets * 6
total_sum_one = sum_one_person + sum_cards + tickets
group_sum = total_sum_one * count_people
end_sum = g... | [
"noreply@github.com"
] | Nikoletazl.noreply@github.com |
916ef8e5c0cb8e838afb8b7fd007599ff40dee2b | 8b0593977cf5162ec511229199f9cd024e874f46 | /mysite/settings.py | b738ff7cd86bd272d53d2c1fa3bc0c8cc4085a92 | [] | no_license | anaismarquina/my-first-blog | 292eae55709031850657a49c550b949fc522f523 | 0c6c3b6f92635343b0e3dbd00c397946191bf2fd | refs/heads/master | 2020-04-08T12:50:09.599853 | 2018-12-01T22:45:17 | 2018-12-01T22:45:17 | 139,491,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,217 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.16.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"anaismarquinar@gmail.com"
] | anaismarquinar@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.