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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e56ce9c71bd9dc955427805035ddc283b94e8211 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_267/ch85_2020_04_29_12_14_54_819750.py | 1ab78a8ff779b99ecb2dcb2b151354b83bdb4f79 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | with open('macacos-me-mordam.txt', 'r') as arquivo:
conteudo = arquivo.read()
lista = conteudo.split()
contador = 0
for i in range(len(lista)):
if lista[i] == 'banana' or lista[i] == 'Banana' or lista[i] == 'BaNaNa' lista[i] == 'BANANA'
contador += 1
print(contador)
| [
"you@example.com"
] | you@example.com |
ce7a2a937ce01cf33f5c9586c6521a548bedf3b3 | 158a84b7419c494b077bf9a3820e46757258865b | /emojifier/settings.py | e1cd2d2a1844d3ad77d3c4f87891ac2ce46fc764 | [
"MIT"
] | permissive | shivambhat45/Emojifier-Integrated-with-django | 6ff2d549bd818c620c11004ac6def5007930ca95 | 8194227203feda7addbab09d45b51fd1c4a2b720 | refs/heads/main | 2023-05-09T08:26:31.741863 | 2021-05-30T09:29:24 | 2021-05-30T09:29:24 | 372,063,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,238 | py | """
Django settings for emojifier project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"shivambhat45@gmail.com"
] | shivambhat45@gmail.com |
98bf26dea29031908a03ac901fb0cace10a7fff3 | 5472dfcdd14184c5d046be01d9c764973dfc4f50 | /A4/latex-files/src/3.fetchBoilerpipeForMementos.py | a2db28d8db565b344777c8530dcb097e012c0363 | [
"MIT"
] | permissive | r0hitl/cs851-s15 | 623a4b650593fd8a5687831ce638fd37743f21f5 | 29716c2935d73d5bd47065ee46d71c6d67391013 | refs/heads/master | 2021-01-15T18:40:29.569514 | 2015-05-03T07:42:20 | 2015-05-03T07:42:20 | 30,781,438 | 0 | 0 | null | 2015-02-13T23:55:19 | 2015-02-13T23:55:19 | null | UTF-8 | Python | false | false | 3,192 | py | import json
import os
from boilerpipe.extract import Extractor
from nltk.util import ngrams
import urllib2
INPUT_PATH = '3.selected-timemaps/'
OUTPUT_PATH = 'mementos/'
OUTPUT_FILE = 'mementoCount.txt'
def removePunctuation(paragraph):
paragraph = re.sub('[\",():;?\\[\\].{}#$&_*+=%!<>~0-9]', '', paragraph)
r... | [
"rlambi@cs.odu.edu"
] | rlambi@cs.odu.edu |
f8bfdfb8b63786a8c027e69eb622f8272df8b0f4 | c4a0d5574f02d8c8ee3a979304a0c1746e533dcb | /app/migrations/0001_initial.py | 3f7952b629f4bf7e1e0a60616d3a191306a77417 | [] | no_license | mmllyy/XinPianChang_project | 3b7c8f329b1189b727b030b5034c55ca599f11de | 9a8d568af22f8ae527e3ced2f1e8459d04cdb77d | refs/heads/master | 2020-03-22T00:08:14.456244 | 2018-06-30T06:51:45 | 2018-06-30T06:51:45 | 139,226,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | # Generated by Django 2.0.6 on 2018-06-26 13:24
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | [
"38482318+mmllyy@users.noreply.github.com"
] | 38482318+mmllyy@users.noreply.github.com |
850e1aaddc7ea61e606783d01bc7fc4a402846e1 | cdd14180f7600918822a9357c88bbcb6651a398f | /mpas_analysis/sea_ice/climatology_map_sea_ice_thick.py | 063e6b5dbceae188d8445dcad1d4c3f2afd20e9a | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause"
] | permissive | kevinrosa/MPAS-Analysis | 43e0272ed05300ba71eb8a478cf6fcc18954e784 | b2799099b49cc678734771fdc721bc8e81eb86a8 | refs/heads/eke_plots | 2020-03-20T10:30:50.446658 | 2018-07-26T21:54:46 | 2018-07-26T21:54:46 | 137,374,333 | 0 | 0 | null | 2018-07-09T21:39:12 | 2018-06-14T15:08:38 | Python | UTF-8 | Python | false | false | 8,282 | py | # Copyright (c) 2017, Los Alamos National Security, LLC (LANS)
# and the University Corporation for Atmospheric Research (UCAR).
#
# Unless noted otherwise source code is licensed under the BSD license.
# Additional copyright and license information can be found in the LICENSE file
# distributed with this code, or at ... | [
"xylarstorm@gmail.com"
] | xylarstorm@gmail.com |
dc338b94720902b803cdd21ce58507f59ae51d26 | f20f7dac823855d837eb1a921f06a0ecdd7b3b99 | /response_functions/get_time_response.py | 8b4b7758869ea72ed8379264e86ddc53cab67cc8 | [] | no_license | GustavoAngulo/cmu-dining-assistant | 4eecfd904c854c89423f85a274d3c620eb5c4eab | f1926122678925287f403abb5cf7cdb5bdac8c25 | refs/heads/master | 2021-01-13T02:54:07.589269 | 2017-02-03T20:15:16 | 2017-02-03T20:15:16 | 77,093,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,799 | py | from datetime import date
def get_time_response(req, CMU_dining_dict):
result = req.get("result")
parameters = result.get("parameters")
location = parameters.get("location")
location_status = parameters.get("location-status")
##############
## get date ##
##############
# reqDate =... | [
"gangulo@andrew.cmu.edu"
] | gangulo@andrew.cmu.edu |
ae8e57f12c53f000ecf4cd7f28a45489546661e1 | 76658996d34eb37505b1165a9c1a9d103e9f68e9 | /Project/human-emotion-generation-with-gan-encoder/load_csv.py | 1e1d2ddf1852c2ef6ae36bd15d8a2fae0964a4d2 | [] | no_license | wewan/DD2424 | 9efe1d4abd7f11f209cda42c09a0cedbae990b3f | ea7f8aa43d71cb8717cafcd003d2cc7de62aad30 | refs/heads/master | 2020-03-18T04:53:46.872524 | 2018-10-16T13:42:38 | 2018-10-16T13:42:38 | 107,393,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | import csv
import numpy as np
def load_csv():
L=35887 #length of data
y_dim=7
labels=np.zeros(L)
images_reshape=np.zeros((L,2304))
with open("./data/fer2013/fer2013.csv","rb") as csvfile:
reader = csv.DictReader(csvfile)
count=0
for row in reader:
labels[count]=r... | [
"wewang@kth.se"
] | wewang@kth.se |
01ceda39e559358a92eb24f5146bd52812bbf8e2 | aa743e124d5fc3fae7f16aa4e4760b670273089d | /serialInput.py | ac12e356255644f3feb4694096661e67560a5b6c | [] | no_license | ljdixon/fabio | 6fa1ba2d5151b13bcb31cfa5189e1e91de84f96e | fb61d47f3f11a67f854bf5581fea166d9416e417 | refs/heads/master | 2022-06-30T22:51:08.767338 | 2020-05-12T19:16:36 | 2020-05-12T19:16:36 | 262,373,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | import serial, string, time
ser = serial.Serial('\\\\.\\CNCB0', 9600, 8, 'N', 1, timeout=3)
fs = open('nellcor.txt', 'r')
count = 0
while True:
# Get next line from file
line = fs.readline()
# if line is empty
# end of file is reached
if line.strip() == "":
continue
elif n... | [
"ldixon@compunetix.com"
] | ldixon@compunetix.com |
a065696021e76bedc5755d43faab10c00e47aff6 | 75c6be6b0bd8cf52b183092d497d3cd558fa866f | /main.py | 0f33d8e9207d8e96b6b111717f45554db367cdce | [] | no_license | wuyanxin/gitbranch-d | f4baee37013826c3c96dfb259b272961e657ef22 | 7d1437cd72382b636c437f7760978299b4924ac0 | refs/heads/master | 2023-02-03T23:05:27.776577 | 2020-12-21T02:21:04 | 2020-12-21T02:26:40 | 323,207,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py |
from programs import interative, except_master
programList = [
interative.delete,
except_master.delete,
]
# programNo = input("\n 1. 交互式删除 \n 2. 只保留master \n 3. 输入保留分支,其它都删除 \n 请输入编号选择(默认0):")
programNo = input("\n 1. interative delete (recommanded) \n 2. keep master, delete others \n input number for chosing p... | [
"wyx.ethan@gmail.com"
] | wyx.ethan@gmail.com |
bfb17d35888656bd42a1319500ff40815aed2e4e | 3218dcf8fb0796394f82e81f258e7c0e8280bdd4 | /block/admin.py | a7f998ab5627586365b07ad9c337d07d085ea6e1 | [] | no_license | Ansagan-Kabdolla/New_visit | 8f9afaa84a2cef68c00456389efceccb525180a2 | fae95abf0bc24588a11cc087b9313b9828101560 | refs/heads/master | 2022-11-25T12:02:16.128112 | 2020-07-21T08:26:08 | 2020-07-21T08:26:08 | 281,340,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from django.contrib import admin
from .models import Zakaz
@admin.register(Zakaz)
class ZakazAdmin(admin.ModelAdmin):
list_display = ('name','organization','date')
| [
"ansagankabdolla4@gmail.com"
] | ansagankabdolla4@gmail.com |
65ed37ceef3043ad22a98d2e443a593540968d79 | adc3d3a91012e6f7e6fdde346108fb75dec70c66 | /mark/migrations/0001_initial.py | a7bb1beab324e5c586be6a084c4438a00c821e30 | [] | no_license | ynggny/ei | 1eeb0b53df30238d0fe316620d007fca60c29f8a | 4a9d222e7621fbd29c02f6d3e2a7cf65d821c147 | refs/heads/master | 2020-05-24T06:43:00.319761 | 2019-05-20T10:16:26 | 2019-05-20T10:16:26 | 187,144,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | # Generated by Django 2.2 on 2019-05-13 02:23
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Stu',
fields=[
('id', models.AutoField(auto_c... | [
"yudai1151judo@ryuuyuudai-no-MacBook-Air.local"
] | yudai1151judo@ryuuyuudai-no-MacBook-Air.local |
a74bc85180ea2a3bfd589b48c649c92b1ee80199 | f985153c6c41db10270601a58d7d062010792b4c | /Character.py | 91db5277e93a8b6a2660ad3b8ce3f707b84283e1 | [] | no_license | Zebra385/P3_JeuMcGyver | dd67d4056d82c9cd13d2e7c39c84c6556720c194 | 10c27e76704ec387090dcac8149e485e793d7bed | refs/heads/master | 2020-09-05T01:15:45.631476 | 2019-11-23T10:33:00 | 2019-11-23T10:33:00 | 219,942,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py | """
Create a class Character with attribute
a position: x_position for index of line
and y_position for index of column
"""
class Character:
def __init__(self, character, x_position, y_position):
self.character = character
self.x_position = x_position
self.y_position = y_position
"""
Cre... | [
"houcheserge@gmail.com"
] | houcheserge@gmail.com |
3475e4ec6fd3df25b207dd2cb8b7ab2305e435c1 | 6d39d9724fe7ca1696d8096b7fb751de01cc4883 | /inference.py | 78521d23e3206b4a444738a41b12e0b037e162ff | [] | no_license | achillesheel02/ksl-repo | 687d834ba209b6a46b44c920c45dfa04465cd91a | f4a00f568a3e02bb3527124daee1b0b7076333e1 | refs/heads/master | 2022-12-10T05:01:48.711087 | 2020-08-24T16:48:49 | 2020-08-24T16:48:49 | 287,957,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | import numpy as np
import glob
import utils
from keras.models import load_model
from collections import deque
import cv2
from tqdm import tqdm
import ffmpeg
TEST_VIDEO_PATH = 'test_videos/'
test_videos_paths = glob.glob(TEST_VIDEO_PATH + '*.mov')
MODEL_PATH = 'models/model.h5'
model = load_model(MODEL_PATH)
classes = ... | [
"bachillah@gmail.com"
] | bachillah@gmail.com |
6e14502757b800020040de7b5767e50940006584 | 5644f2e0d8ca8f4394ef5368cc5ef2830a8a9c8c | /auctions/urls.py | e89799a09a2a6b1f2d7b2941e2220e7f029d1541 | [] | no_license | Mebar-prog/online-bidding-system | 684f9d1cb679569a23f08e0114f5c7cbc358d9e8 | 736e7b3b9c1b9781e910e975445c360172441148 | refs/heads/master | 2023-09-05T22:47:22.464316 | 2021-11-19T13:40:04 | 2021-11-19T13:40:04 | 429,808,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | from django.urls import path
from . import views
app_name = "auctions"
urlpatterns = [
path("", views.index, name="index"),
path("login/", views.login_view, name="login"),
path("logout/", views.logout_view, name="logout"),
path("register/", views.register, name="register"),
path("cards/", views.c... | [
"sherabwangchuk@Sherabs-MacBook-Air.local"
] | sherabwangchuk@Sherabs-MacBook-Air.local |
619bd9403b8527dc7aa9af1d1db0c477eb2b5103 | 68cdbb632cb4ad1798efb68b324b39ef2665c5ea | /scripts/makeQ2.py | 2ac00bfff915794553bb0c82d6730b2613e5e366 | [
"MIT"
] | permissive | Zwerd/oldzwerd.github.io | c376bfeaabf0e2f127fef2599f2b44063e386d6e | f7f4e06f6bb5a2bbc7cc67b35f05798d3b040f46 | refs/heads/master | 2021-09-14T12:04:49.073216 | 2018-05-13T09:50:48 | 2018-05-13T09:50:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | from shutil import copyfile
import shutil
shutil.copy('../_posts/2018-04-23-javascript-tutorial.md', './jsPost.md')
jsOldPost = open('./jsPost.md','r')
count = len(jsOldPost.readlines())
jsOldPost.close()
jsNewPost = open('./jsNewPost.md', 'w')
jsOldPost = open('./jsPost.md', 'r')
for i in range(count):
jsNewPos... | [
"guy.zwerdling@gmail.com"
] | guy.zwerdling@gmail.com |
54f07d34db1492f4ee7dc5264d05d386b5d245f4 | 1954c351980f8f1829beaf8f2d2f88032dc81849 | /apps/screen-lock/gen_gradient.py | dbc425e6cb0c8cc573767f38c649b351eb81b07e | [
"Apache-2.0"
] | permissive | VincentWei/cell-phone-ux-demo | e219913d9032b20b4b2f221ddf8c55f05701191c | 1085ba798dafe4c32ca4cf8eb65f348c762c224e | refs/heads/master | 2023-01-09T16:56:42.756418 | 2022-09-15T03:17:54 | 2022-09-15T03:17:54 | 112,908,546 | 14 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | #! /usr/bin/env python
import sys
import os
def handle_line(line, transparent):
line = line.replace('#', '')
L = line.split()
if (len(L) < 2): return None
pos = int(L[0])
#color = int(L[1], 16)
color = L[1]
return "\t{ %0.2ff, %s%s, },\n" % ((100-pos)/100.0, transparent, color)
#return... | [
"vincent@minigui.org"
] | vincent@minigui.org |
c2ddc57ff92cf54eda387010664a3029ee50e35a | 0c6ac3b70c9e04f91265461c0782984732fb6156 | /polyglot/managers.py | fb5a0250f15a93a054de9892897fed68028850cf | [] | no_license | fgallina/django-polyglot | 71aa05359ff64df39344e2a268dac85cfb329ad3 | 37991d67eb38aac90eac6c3a721931b3217fce2c | refs/heads/master | 2016-09-15T16:15:54.017218 | 2009-09-04T17:46:47 | 2009-09-04T17:46:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | from django.utils import translation
from django.db import models
from django.db.models import Q
from polyglot import defaults
from polyglot import helpers
class LanguageFieldManager(models.Manager):
"""Returns elements of the current language."""
def lall(self):
lang = translation.get_language()[:2]
... | [
"fgallina@cuca.(none)"
] | fgallina@cuca.(none) |
bcdcdf1fc18c8ea9916c786987ef64ce2de7fd7d | 038e9356a9c41541d3eb8f457ce2b651fafaa159 | /TRBlog/blog/migrations/0002_auto_20201029_2139.py | 8bf1fd5b3f8de15a074e68c59ed567ddad01e331 | [] | no_license | VipinDodke/TRB | 0ed6c64757ab9d2850c8e6c8ccc553d7a910ac28 | 9ce7c7cb1548df6b18160688be50dfc99684cd19 | refs/heads/master | 2023-02-22T12:58:01.738082 | 2021-01-25T19:44:48 | 2021-01-25T19:44:48 | 314,181,723 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # Generated by Django 3.1.2 on 2020-10-30 04:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='page',
name='image',
field=mod... | [
"vipin830525@gmail.com"
] | vipin830525@gmail.com |
cb8e3b9ba3c52a1ab5dc80b848533e056101ac52 | 4a038fdb8acd8c25822630f1e18316ab694baa02 | /sibs_parch2.py | faf72c6664eed209b7b99d96a0a8549ef054d88c | [] | no_license | soumoks/Titanic-Kaggle-Competition | c8ab104e655ddfa86d2d706859ba49cf29b04cb2 | c6f838740da8caf641ef6f71311574ba47572ce3 | refs/heads/master | 2021-04-07T04:06:54.981926 | 2020-04-01T02:38:30 | 2020-04-01T02:38:30 | 248,644,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,349 | py | # %%
# Import libraries
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
import seaborn as sns
from sklearn import tree
# %%
# Load data from csv
df = pd.read_csv('train.csv', index_col='PassengerId')
# %%
# Add a feature called Family Size
for id, attributes in df.iterrows()... | [
"yuelin8879@gmail.com"
] | yuelin8879@gmail.com |
3aa97bc0dd6c3d3c3ce765409fb7ccd121a10ff0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_reforested.py | 2264bbdb8609e7079f50a2202870980d6e5df0a0 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py |
#calss header
class _REFORESTED():
def __init__(self,):
self.name = "REFORESTED"
self.definitions = reforest
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['reforest']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5d047e167ece1fb4fc981b472c5603b58b1c13ca | 6c3d274858d062894ac4ff8aed2e4962f3a0d1fb | /tests/infra/utils.py | b91f51d357547a71c52fccdf43ef208630567ed4 | [
"Apache-2.0"
] | permissive | eddyashton/CCF | eab68ba7afb05a3cc4460aacae2c52fbe7c6171f | de7329a31d57774bc135c41bc60c0fd4888fb107 | refs/heads/main | 2023-08-19T08:53:19.594030 | 2022-08-02T14:10:12 | 2022-08-02T14:10:12 | 184,758,106 | 0 | 1 | Apache-2.0 | 2023-03-20T14:59:57 | 2019-05-03T13:15:33 | C++ | UTF-8 | Python | false | false | 784 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache 2.0 License.
import infra.path
import hashlib
import os
import subprocess
def get_code_id(enclave_type, oe_binary_dir, package, library_dir="."):
lib_path = infra.path.build_lib_path(package, enclave_type, library_dir)
if... | [
"noreply@github.com"
] | eddyashton.noreply@github.com |
e42dea08bf272369445f8bf0a9c1bf8981c56105 | 0e83d1463adf0d6d4ca27e5d48bbc3d091f60bcd | /packages/core/src/RPA/core/notebook.py | dc2da2dcef2d43f3950fe923059cfe966ff622d9 | [
"Apache-2.0"
] | permissive | krehl/rpaframework | 8e6a2df5072412315339317f333a37d0ecc95450 | 86a8e33fafe65dcc092a12e2e75774463d33d358 | refs/heads/master | 2022-12-03T07:36:36.902265 | 2020-08-24T19:49:36 | 2020-08-24T19:49:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,785 | py | from functools import wraps
from importlib import util
import inspect
import os
from typing import Any
IPYTHON_AVAILABLE = False
ipython_module = util.find_spec("IPython")
if ipython_module:
# pylint: disable=C0415
from IPython.display import ( # noqa
Audio,
display,
FileLink,
... | [
"mika@robocorp.com"
] | mika@robocorp.com |
31ed7465cf76aea2045bb913368d9bcac7f71b8b | 3295631ed075b6e69ea586d7339fd6ad7fa2e78e | /hayalet.py | 56a4f233ec18c77c0e180e277070bb0f9b4c4642 | [] | no_license | siberhayalet/Hayalet-DDOS | 609b99d284cef7238121840d272bea97f0b5d618 | c4fde885dd987512dc449c814f2d0ac16c563193 | refs/heads/master | 2021-05-18T02:50:45.943289 | 2020-03-29T16:02:15 | 2020-03-29T16:02:15 | 251,072,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,959 | py | !/usr/bin/python3
-*- coding: utf-8 -*-
python 3.3.2+ Hammer Dos Script v.1
by Can Yalçın
only for legal purpose
from queue import Queue
from optparse import OptionParser
import time,sys,socket,threading,logging,urllib.request,random
def user_agent():
global uagent
uage... | [
"noreply@github.com"
] | siberhayalet.noreply@github.com |
2d73c0b4136544ae41233e0c4dddb23db861355c | e53baa85a296b89abce5bccbf89d7d71cf59c7dd | /SyntaxAnalyzer.py | 8d4c931641597fca203abd48de384223b54a9037 | [] | no_license | NagariaHussain/JackCompiler | bb93b861b5bad3b6444a7332e1b10678c65716d3 | 319599caba15c6541d3b0fc7373dcf3e49cf0308 | refs/heads/master | 2023-01-20T03:50:30.797052 | 2020-11-22T11:11:02 | 2020-11-22T11:11:02 | 299,852,411 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | # For accessing command line args
from sys import argv
# For handling file/dir paths
from pathlib import Path
# Import Analyzer components
from compilation_engine import CompilationEngine
from jack_tokenizer import JackTokenizer
# Get input path
in_path = Path(argv[1])
if in_path.is_file():
# Path points to a f... | [
"hussainbhaitech@gmail.com"
] | hussainbhaitech@gmail.com |
4e3c5f132dfc414b615aaa2c224ea9a0c52c998a | 749ece8be5d38fbda341d86101ccf1b3661195ad | /week-3/python-syntax/test.py | cb937196beec01933f9a4d819534e047e452ab60 | [] | no_license | NicolasGuerrero/react-custom-hooks | e00dd8168a454db59e95955a45080dd034bbd0f4 | 63df6053c510c5d4e3210baf3ab5d09abba0cf17 | refs/heads/master | 2022-12-25T19:39:46.325300 | 2020-02-29T01:12:21 | 2020-02-29T01:12:21 | 243,882,996 | 0 | 0 | null | 2022-12-12T03:02:45 | 2020-02-29T01:11:49 | JavaScript | UTF-8 | Python | false | false | 109 | py | def my_function(nums):
for num in nums:
print(num)
my_nums = [1, 2, 10]
my_function(my_nums)
| [
"saynaysurf@gmail.com"
] | saynaysurf@gmail.com |
de06cf8c6463a615ed1808701fc0072c86973115 | 5ab4dfce4aa368855708880e27f9b0032fa5c7aa | /replay_component/scripts/config.py | a8ba12a0e00a78808d9233019f3bd2ca2ee41a87 | [] | no_license | itzranjeet/replay_component | d11e720142d349818fbed1aa82eda738282cd103 | bc4cb17bb9182d8f8e08961bf4f4d15ae2577c5a | refs/heads/master | 2022-12-31T13:29:48.105507 | 2020-10-20T07:40:37 | 2020-10-20T07:40:37 | 305,627,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | import json
config_file_path = '/home/jesmij/ros_ws/src/replay_component/config/config.json'
with open(config_file_path) as config_file:
config = json.load(config_file)
class Config:
BENCH_DATA_DIRECTORY = config.get("BENCH_DATA_DIRECTORY")
SQLALCHEMY_TRACK_MODIFICATIONS = False
SERVICES = [
... | [
"ranjeet.patil@kpit.com"
] | ranjeet.patil@kpit.com |
e191e24a90476161be215f639c498635ef7d140c | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/arg/perspectives/gen_runner/run_ngram_collector_subword_train.py | 9bde1ee31a94937ac3d4bd71f06730c26fa0a7ee | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 487 | py | from arg.perspectives.n_gram_feature_collector_subword import PCNgramSubwordWorker
from data_generator.job_runner import JobRunner, sydney_working_dir
if __name__ == "__main__":
def worker_factory(out_dir):
return PCNgramSubwordWorker(
input_job_name="rel_score_to_para_train",
max_... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
b2d8c460e3695b8e62944fbd80126bdd465de832 | 901c62fda0c629843ec5077e34d5d4da387e3455 | /model/common.py | 8fde25a1829ff205c919fe7f788c6ce425bfee51 | [] | no_license | mikeizbicki/ccTLD | 99a1a442216763bf417e2d441a87b22f77eebcee | f461d87f70ef7da7ca91bbc451859c9cbc5a10ae | refs/heads/master | 2020-05-01T12:48:52.492075 | 2019-05-09T06:15:48 | 2019-05-09T06:15:48 | 177,475,383 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | countries={
'ar':'Argentina',
'bo':'Bolivia',
'cl':'Chile',
'co':'Colombia',
'cr':'Costa Rica',
'cu':'Cuba',
'do':'Dominican Republic',
'ec':'Ecuador',
'sv':'El Salvador',
'gt':'Guatemala',
'hn':'Honduras',
'mx':'Mexico',
'ni':'Nicaragua',
'pa':'Panama',
'py':... | [
"mike@izbicki.me"
] | mike@izbicki.me |
f180557feef9db0d6538d1491c772a735dc9d47a | b2f256c584aa071a58d8905c3628d4a4df25a506 | /utils/python/python/fanalyse.py | a2d9cd1089ec72aac1282dd4331b2a44fbb8b3d5 | [
"MIT"
] | permissive | maximebenoitgagne/wintertime | 6865fa4aff5fb51d50ea883b2e4aa883366227d8 | 129758e29cb3b85635c878dadf95e8d0b55ffce7 | refs/heads/main | 2023-04-16T22:08:24.256745 | 2023-01-10T20:15:33 | 2023-01-10T20:15:33 | 585,290,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,126 | py | '''find all write access to variables in fortran files.
First direct assignments, then indirect writes through subroutine calls.
'''
import sys
import os
import re
import glob
import shlex
import json
import string
import cgi
from pyparsing import nestedExpr, ParseException
SRPATT = re.compile(r'^ .... *(program|subr... | [
"maxime.benoit-gagne@takuvik.ulaval.ca"
] | maxime.benoit-gagne@takuvik.ulaval.ca |
edf81931238add46f55efc612d3815bd32e466ee | b5da4e77d400b5c293390bf071ac710bbbeec90f | /lesson2/s2_decorators.py | 5c8648727355c5f14940500d5ac4b5ddde04e8af | [] | no_license | HLevering/python_lectures | 7f2a06a62b1931c24e1a000122c9dbc905438355 | 2e626c218892f50d48648ffbfa4856618eccaa61 | refs/heads/master | 2022-11-16T11:17:18.649464 | 2020-07-09T17:58:37 | 2020-07-09T17:58:37 | 276,714,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,824 | py | # we already learned, that functions are first class objects in Python and we
# learned that functions can accept other functions as parameters and return
# functions
# let's assume, we have the following function
def add(a, b):
return a + b
# let's assume, that we want to write some html
def tagged(message):
... | [
"12120186+HLevering@users.noreply.github.com"
] | 12120186+HLevering@users.noreply.github.com |
676b046bc41775722da817f6d75afe50bed5a6a4 | dab3dde990e2eb9cb94bfd441ac60513480d84d0 | /Titanic/lasso.py | d17b81a6f8952aadc7768051302d1b14233e838e | [] | no_license | TommyCpp/KagglePlayground | 2829d69ccebe7a0113badea9bafca113ec6aee66 | 857ef3b4c3c0638d09394895fcd502110640ab6a | refs/heads/master | 2021-09-04T19:09:11.049711 | 2018-01-21T13:43:13 | 2018-01-21T13:43:13 | 115,982,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | from sklearn import preprocessing, linear_model, metrics
from Titanic.io import *
TEST_FEATURE = ['Pclass', 'Sex', 'Age', 'Fare']
def _preprocessing(x):
return preprocessing.scale(x)
def train_Lasso():
data, raw_data = read_data("./train.csv",)
data = feature_engineer(data, raw_data)
test_data = d... | [
"a444529216@hotmail.com"
] | a444529216@hotmail.com |
2a262987febcb198d0d3d8bcd2fee42aebf137ba | e688f87faf74abbe66e0bcec9e5da2e3b5b8127f | /eqnsolve/eqn4.py | 49c7432156017373091cd6b935070a187547e569 | [
"MIT"
] | permissive | TeamC-AAD/Library | 50d27fc3531eba7d1b4b2795535346c283b1a013 | e44296799dcfc06356873942c72ee81da185a07e | refs/heads/main | 2023-02-07T12:47:00.886584 | 2021-01-01T09:31:27 | 2021-01-01T09:31:27 | 302,106,738 | 3 | 5 | MIT | 2021-01-01T09:31:28 | 2020-10-07T17:10:58 | HTML | UTF-8 | Python | false | false | 455 | py | import numpy as np
var = 6
def eqnfit(chromosome):
'''
Equation 1: x^53 + y^42 - z^76 + a^106 + b^25 - c^46 = 0
'''
eqn = chromosome[0]**53 + chromosome[1]**42 - chromosome[2]**76 + chromosome[3]**106 + chromosome[4]**25 - chromosome[5]**46
val = 226
return (1/(eqn-val))
def value(chromosom... | [
"karthik.viswanathan@research.iiit.ac.in"
] | karthik.viswanathan@research.iiit.ac.in |
1c9e15d5133c1d93fd343e6858a4ddb2e831bc3f | 1257ccf0f2e5585714988c54478e1c10385f6585 | /1_linear_regression.py | 92688e57d5c3b2b9e578cf06b2d274ebcfcd212e | [
"MIT"
] | permissive | domluna/cgt_tutorials | ee3685d7cba60b46333e1ab2217c862e02255f4e | 67672a0b4ed8b30d5e5e1bc552c52d8d7f46b09f | refs/heads/master | 2018-12-29T21:26:46.981711 | 2015-09-17T23:39:03 | 2015-09-17T23:39:03 | 42,020,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,669 | py | from __future__ import print_function
import cgt
import numpy as np
from cgt import nn
from sklearn import datasets
from sklearn.cross_validation import train_test_split
boston = datasets.load_boston()
data = boston.data
targets = boston.target
nfeats = data.shape[1]
# scale data
# scaler = StandardScaler().fit(data... | [
"dluna132@gmail.com"
] | dluna132@gmail.com |
b64604c9b648998ed3bbfa759b42faad81c34425 | cb363afddfd74df579eb93810b90a21574d4907c | /58 mylist.py | 1239c64cae4975ebb29349e946f1ca6bedd4df7e | [] | no_license | Mohit130422/python-code | ca0580c1f057070d11c154cca6ea8891e7c6672d | 6fb04b5b3456136a139a16ace636dfcc5df31912 | refs/heads/master | 2022-11-21T03:29:16.726081 | 2020-07-26T18:33:52 | 2020-07-26T18:33:52 | 282,705,039 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | #mylist- in python list an object which cna be crated by placing out element inside[].Seprated by(,) it can be of any No. and any types.
mylist1=[]#empty
mylist2=[1,2,3,4,5]#same type element
mylist3=[1,2,"mohit",45.78]#mixed type element
print(type(mylist1),' ',type(mylist2),' ',type(mylist3))
print(mylist1)
pri... | [
"noreply@github.com"
] | Mohit130422.noreply@github.com |
ad1bc8a97b26cb2986ff7b6d88f73c5c06e513f4 | 08b9515df99b5d2fa6a3957fdf7d09156f9f37ac | /Seq2SeqWithAttn/Attn.py | 2ffb084d796638245d30e3e348e62cc46abab5da | [] | no_license | AlexYMH/NN_models_pytorch | 1cc849e00d0b333f879960343cf0c838c030986a | 4d2cbd3429984517de27c35eaf49f203a1cd9d9b | refs/heads/master | 2020-04-12T13:51:48.089779 | 2018-12-20T12:12:46 | 2018-12-20T12:12:46 | 162,534,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | # Luong attention layer
class Attn(torch.nn.Module):
def __init__(self, method, hidden_size):
super(Attn, self).__init__()
self.method = method
if self.method not in ['dot', 'general', 'concat']:
raise ValueError(self.method, "is not an appropriate attention method.")
sel... | [
"noreply@github.com"
] | AlexYMH.noreply@github.com |
a51a800fa3cbcdbdabc508f2cfbcbe3ad8d165cc | 3bc44aaf9cd96cf0a93512cdfe0c45cf372cb275 | /run_service.py | 39d5b344816e449f260b60c62bb8ee4a84a0b444 | [
"MIT",
"GPL-1.0-or-later"
] | permissive | singnet/semantic-segmentation-aerial | 7e731cda8f3a7c1dbb68a3fb0cf4e1561a424381 | 1fe9b63bdeafd9f81ec95a846b5a1510f32578f0 | refs/heads/master | 2020-05-02T05:35:28.314835 | 2019-04-09T11:04:13 | 2019-04-09T11:04:13 | 177,775,037 | 0 | 1 | MIT | 2019-04-09T11:04:14 | 2019-03-26T11:30:38 | Python | UTF-8 | Python | false | false | 3,770 | py | import argparse
import glob
import json
import logging
import os
import pathlib
import signal
import subprocess
import sys
import time
from service import registry
logging.basicConfig(level=10, format="%(asctime)s - [%(levelname)8s] - %(name)s - %(message)s")
log = logging.getLogger("run_semantic_segmentation_aerial_... | [
"ramongduraes@gmail.com"
] | ramongduraes@gmail.com |
6f4a22497ae14ada89eb32132e17f7bec24251cb | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.11.16/7/1569573907.py | cbf009c8a9c9a1fa8778de699f7b2208205bfaab | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def divisors(n: int) -> list:
start_lst = list(range(1, n+1))
teiler = []
for i, k in start_lst:
if i % k == 0:
teiler.append(k)
return teiler
###################################... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
26f2d1bab1848a901cb0659bbcd4ef8252ac6ddb | 3625ad889a461e0893e5ff6a87cddb8ee15d9d7d | /Hackerrank/Algorithms/Problem_Solving/cut_the_sticks.py | 00533de8fcb2ff76200c7aed329ded4117085698 | [] | no_license | prateekiiest/Competitive-Programming-Algo-DS | dec8cdb2f0b7989264476dc82e460a6a3f11b9df | 50eca64d2346d6664de0cb510874081962a425fe | refs/heads/master | 2020-05-03T22:49:06.909307 | 2020-01-19T03:34:17 | 2020-01-19T03:34:17 | 178,850,703 | 7 | 1 | null | 2020-01-14T17:29:05 | 2019-04-01T11:40:54 | Python | UTF-8 | Python | false | false | 359 | py | # Problem Statement : https://www.hackerrank.com/challenges/cut-the-sticks
#!/bin/python
import sys
n = int(raw_input().strip())
arr = map(int,raw_input().strip().split(' '))
while(arr !=[]):
print(len(arr))
m = min(arr)
for j in range(len(arr)):
arr[j] -= m
while(0 in arr):
arr.rem... | [
"noreply@github.com"
] | prateekiiest.noreply@github.com |
f8d0c5c753ad7ccabf9e7c86bcfbb6185ec5457b | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /number/problem_and_work/long_person_or_year.py | b73e563cf6e130a4db95d764f909eae8a01b9de5 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py |
#! /usr/bin/env python
def great_part(str_arg):
long_eye(str_arg)
print('own_week_and_old_eye')
def long_eye(str_arg):
print(str_arg)
if __name__ == '__main__':
great_part('feel_woman')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
365c627fb4954fed4a73f6275d7644a764b3efc2 | d8c46a4e541bbc181831b85a32cc49038a2f5b17 | /tests/test_data_utils/test_du_wide.py | c5005b252c71007760a53338f1f8b9fc5627a806 | [
"MIT"
] | permissive | awesome-archive/pytorch-widedeep | d2146aafa215e25718721ea7f5a027cd6264ae3a | abb74df8cef8564d13743c309c9e158aacbcdb75 | refs/heads/master | 2023-08-09T21:32:27.149152 | 2019-11-14T22:46:52 | 2019-11-14T22:46:52 | 223,354,477 | 0 | 0 | MIT | 2020-01-13T04:36:56 | 2019-11-22T08:08:50 | null | UTF-8 | Python | false | false | 2,189 | py | import numpy as np
import pandas as pd
import pytest
from pytorch_widedeep.preprocessing import WidePreprocessor
def create_test_dataset(input_type, with_crossed=True):
df = pd.DataFrame()
col1 = list(np.random.choice(input_type, 3))
col2 = list(np.random.choice(input_type, 3))
df['col1'], df['col2'] = col1, col... | [
"jrzaurin@gmail.com"
] | jrzaurin@gmail.com |
98d1cd1a9fb72344f4f3f4e437cf774c5b51a588 | 4a7ede06edbe66f9d1eb485261f94cc3251a914b | /test/pyaz/security/setting/__init__.py | eed74dfb019fcaa8df05a7d249e7140a118338a0 | [
"MIT"
] | permissive | bigdatamoore/py-az-cli | a9e924ec58f3a3067b655f242ca1b675b77fa1d5 | 54383a4ee7cc77556f6183e74e992eec95b28e01 | refs/heads/main | 2023-08-14T08:21:51.004926 | 2021-09-19T12:17:31 | 2021-09-19T12:17:31 | 360,809,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | import json, subprocess
from ... pyaz_utils import get_cli_name, get_params
def list():
params = get_params(locals())
command = "az security setting list " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdou... | [
"“bigdatamoore@users.noreply.github.com”"
] | “bigdatamoore@users.noreply.github.com” |
1c30ba72a4d9693963319dac4acfa0264cfd3719 | 1f154f3ab10c1ea12f830026d5449e87a29b5c42 | /PE17.py | 00ea313c8e90592969d68fd94ccf784ad19b22a4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Cyborn13x/PE | e0e17f2142dea12ffc36a4b00c3089ad5312c10e | 8e09bc67e863f597807d7adc08c7686b6234a9c4 | refs/heads/master | 2020-04-05T23:39:07.147492 | 2012-12-19T21:14:14 | 2012-12-19T21:14:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,993 | py | __docformat__ = "restructuredtext en"
import re
_NUMBER_NAMES = {1: "one", 2: "two", 3: "three", 4: "four", 5: "five",
6: "six", 7: "seven", 8: "eight", 9: "nine", 10: "ten",
11: "eleven", 12: "twelve", 13: "thirteen", 14: "fourteen",
15: "fifteen", 16: "sixteen", 17: "... | [
"zobayer1@gmail.com"
] | zobayer1@gmail.com |
8939079c53a08d34a569651cdfae036e60ac4efe | b755c8897aef34b2ce71b0ee00215207c29a50a5 | /src/zukebox/tests/__init__.py | 0ace4cc0bc80741bac4fa7a8fb097ddfe3c4a71f | [
"MIT"
] | permissive | zanalaci/zukebox | d705eb082659a71cb87d48ddf9395a0bc348aab2 | ed1694eba91be3053063fa553aa4139a90228c8a | refs/heads/master | 2020-04-05T18:32:20.625164 | 2016-01-18T13:26:44 | 2016-01-18T13:26:44 | 49,878,392 | 0 | 1 | null | 2016-01-18T13:24:45 | 2016-01-18T13:24:45 | null | UTF-8 | Python | false | false | 192 | py | '''
zukebox: tests module.
Meant for use with py.test.
Organize tests into files, each named xxx_test.py
Read more here: http://pytest.org/
Copyright 2015, Tamas Domok
Licensed under MIT
''' | [
"domoktams@gmail.com"
] | domoktams@gmail.com |
0b88f173868acd1d12a5be49bf9fa636bdcb0795 | baa41ceeb7778900eeaed0ce9b64c16cc02727c6 | /学习/mnist(4).py | 2c47e86ca9561ac96bcddd86aac4aa0d318d8638 | [] | no_license | FaskyCC/tensorflow | aea4ad11a889b8b60f8beed3a80aabbd9b34cc0a | 1485293ded88b43bdae55d741cb92b7f49639c87 | refs/heads/master | 2020-04-06T11:13:42.164859 | 2019-03-18T01:28:59 | 2019-03-18T01:28:59 | 157,408,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,807 | py | import tensorflow as tf
# 导入MNIST
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/",one_hot = True)
# 定义输入层、隐含层、输出层的神经元个数
input = 784
hidden1 = 300
output = 10
epoch_size = 50
batch_size = 1000
batch_num = int(mnist.train.num_examples/batch_size)
dropout = 1
d... | [
"1791853817@qq.com"
] | 1791853817@qq.com |
0ad6cc77e8705f974a1a89318b81f90fa9e1a6a2 | 24cf6d01fc9485c2e5578523bce6313aab47a30e | /Callbacks/snapshot.py | ed17d03d6c29c383cb9934faf19472a25dbe1a5e | [] | no_license | sahahn/GenDiagFramework | 352212b2c540a6db73e810e416a9d3d4fa84f95a | 29498d3667d644d5b3a8fd0f0e277cbdd14027ba | refs/heads/master | 2020-04-14T06:10:10.609366 | 2019-06-18T20:22:31 | 2019-06-18T20:22:31 | 163,678,894 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,037 | py | import numpy as np
import os
import keras.callbacks as callbacks
from keras.callbacks import Callback
class SnapshotModelCheckpoint(Callback):
"""Callback that saves the snapshot weights of the model.
Saves the model weights on certain epochs (which can be considered the
snapshot of the model at that epoc... | [
"sahahn@uvm.edu"
] | sahahn@uvm.edu |
0a1d1c3822ccedbd1f4744673b22edeea3b3e6ee | 86b20a173952d1975e8cedd252f79da8bb1e44ce | /source/models.py | 3a7f418d144769f749a9e9d3801468d4d37c4e48 | [] | no_license | olegtropinin/gaia_data_api | 8975e7580ce63a5156452afad356a6dab76336dd | b4e5db2401e7a80cf5e85407813ca2cf9e150adf | refs/heads/master | 2022-12-06T16:08:10.212944 | 2020-08-24T06:12:35 | 2020-08-24T06:12:35 | 289,843,826 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,837 | py | from django.db import models
# Create your models here.
class GaiaSource(models.Model):
# TODO: Go over all fields to do models.Choices or models.IntegerChoices. For example priam_flags.
solution_id = models.PositiveBigIntegerField(help_text='1635721458409799680')
designation = models.CharField(max_lengt... | [
"oleg@iptech.kz"
] | oleg@iptech.kz |
3ff2599f16e8ef4b6964f06e4b62bec8ec230c2c | 739f6d736ae008b13ffdc71e163c4a6b20baf50c | /inhan/점프투파이썬/chapter02/Inhan/1.py | c2eb2482f9efddce3269a17d820b6f5b6ed7be5f | [] | no_license | ingithub777/Guri | 7862c606f731401d30ffaf6f1500c92ff1335625 | 5737146c1d0d0b76edc88db0e77a89791f29a9b5 | refs/heads/master | 2021-09-09T12:45:08.587169 | 2018-03-16T07:31:00 | 2018-03-16T07:31:00 | 111,864,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | 정수형
a=123
a=-178
a=0
실수형
a=1.2
a=-3.45
지수표현방식
a=4.24E10
a=4.24e-10
8진수와 16진수
a=0o177
a=0x8ff
a=0xabc
복소수
a=1+2j
b=3-4j
복소수.real
a=1+2j
a.real
1.0
복소수.imag
a=1+2j
a.imag
2.0
복소수.conjugate()
a=1+2j
a.conjugate()
(1-2j)
abs복소수
a=1+2j
abs(a)
2.2360679774997898
사칙연산
a=3
b=4
a+b
7
a*b
12
a/b
0.75
x의 y제곱을 나타내는 ** 연산... | [
"rladlsgks4@naver.com"
] | rladlsgks4@naver.com |
cc5e8dc5903e1d0352fb1da8f5664b9b528c2fd8 | 08d256c60ac584185781ddb303c4eca90ced6cdb | /generate_datasets.py | e39f54aee59767d95edfc40b7cf04497e4a43eb8 | [] | no_license | bootphon/phonrulemodel | b8c191b59c18d46353245917ea52d5b9612c3dd2 | dadf444a90ce7200a430bca8754bd6c742975a1a | refs/heads/master | 2021-01-10T14:18:02.212832 | 2015-05-29T10:14:24 | 2015-05-29T10:14:24 | 36,012,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,888 | py | """
generate datasets
"""
from __future__ import division
from collections import defaultdict
from itertools import chain, product
import cPickle as pickle
import numpy as np
from scipy.stats import multivariate_normal
from util import verb_print
import csv
import glob
import os.path as path
import pandas as pd
d... | [
"ingeborg.roete@gmail.com"
] | ingeborg.roete@gmail.com |
c73c084c3cb10cd9b273a4f306578ad0d671c470 | 6c016f5c52613039764b3cecdd0b786a6da08955 | /gui/main_window.py | b13994e9c3f56eff77253ed4f836f00381e1f8a8 | [] | no_license | spinny/ggscraper | d77ec39a24fc2fd9c92166b7af2c08c2662afe33 | ff024ea97e0b57817f8ad1b0edfc19f2692068d3 | refs/heads/master | 2021-01-19T20:16:18.495353 | 2013-08-13T21:18:59 | 2013-08-13T21:18:59 | 2,508,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,163 | py | #!/usr/bin/env python
## -*- coding: UTF -*-
import gtk
import google
from tabs.scrape import ScrapeTab
from tabs.domains import DomainsTab
from tabs.filetypes import FiletypesTab
from tabs.files import FilesTab
from tabs.all import AllTab
class MainNotebook(gtk.Notebook):
def __init__(self):
super(Ma... | [
"spinny666@gmail.com"
] | spinny666@gmail.com |
65448ca89f8d0e2ac0da8300625a2441110c79ab | 82d5744e038f914c7832775989dd8b25224d6e91 | /_41.py | efc538881b2e8fdb652e312dd8e58febc0bf7c9f | [] | no_license | ProgrammAbelSchool/Programming-Challenges | 1743f19c88f360931823df9e8066a7e82978ff09 | d72a19f79e3892ce1f9be9c83b397c18de8e0234 | refs/heads/master | 2023-02-26T03:18:52.086242 | 2021-02-03T14:33:01 | 2021-02-03T14:33:01 | 315,135,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | name = input("enter your name: ")
number = int(input("enter a number: "))
if number < 10:
for i in range(number):
print(name)
else:
for i in range(3):
print("Too high") | [
"binoop-a17@boswells-school.com"
] | binoop-a17@boswells-school.com |
546c7504739979a6fadddacfd941a5bee6fc2d0e | c617129d66a8728601794e6069b71259e58c86b2 | /test/test_hash_table_separate_chaning.py | 0ae1a92dc336074aac5b1c2b6ee9e45ef00929d5 | [] | no_license | tcongg/data-structures-and-algorithms | de5fd13a8c1a05bb7813f9d00c76f6226d8285a0 | 6b3ef0b8ccc39a2633a03a8feaeccd0c425f4a92 | refs/heads/master | 2020-04-22T20:32:16.634974 | 2019-03-05T12:52:52 | 2019-03-05T12:52:52 | 170,486,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | import unittest
from hash_table_separate_chaning import HashTable
class TestHashTable(unittest.TestCase):
def test_add(self):
table = HashTable(7)
table.add(1, 1)
self.assertEqual(table.get(1), 1)
table.add(2, 2)
table.add(3, 3)
self.assertEqual(table.get(2), 2)
... | [
"noreply@github.com"
] | tcongg.noreply@github.com |
fd26a03d00d4f842d49979c205418dd51a5c755a | 274211f77fc9699b19ed70c8d3deca5017c76889 | /navec/train/ctl/quantize.py | 02052beb23dc2421402266e48b0bf5764b05d162 | [] | no_license | EruditePanda/navec | 347bf3f6b47caa534a855bffd38cefa2868f4bf0 | 92985269f58d8cd18ebb6ccf71234349fcc3690f | refs/heads/master | 2020-06-03T19:34:56.800023 | 2019-06-12T09:31:20 | 2019-06-12T09:31:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py |
from navec.pq import quantize as quantize__
from navec.vocab import Vocab
from navec import Navec
from ..glove import parse_glove_emb
from ..log import log_info
def quantize(args):
quantize_(args.emb, args.output, args.subdim, args.sample, args.iterations)
def quantize_(emb, output, subdim, sample, iterations... | [
"alex@alexkuk.ru"
] | alex@alexkuk.ru |
2ba1670f3851c924b251dfce026d182554ea1dfd | e3524ac37416d723901c41d1df873df1fda93d3d | /books/migrations/0001_initial.py | 7504204e860a161a78266f9511c63c390ef9087f | [] | no_license | rwajon/python-graphql | 82e942bc5dc809e0251be93ab41ca7a49b62e9a8 | 87ecfd71493dc2edaf549fb7c3efe94e323a745e | refs/heads/develop | 2022-05-10T16:03:31.850669 | 2019-10-09T15:51:38 | 2019-10-09T15:51:38 | 213,409,049 | 1 | 0 | null | 2022-04-22T22:25:56 | 2019-10-07T14:42:29 | Python | UTF-8 | Python | false | false | 873 | py | # Generated by Django 2.2.6 on 2019-10-07 15:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('authors', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='B... | [
"jonathanrwabahizi@gmai.com"
] | jonathanrwabahizi@gmai.com |
42b69a10939d1b711c024f3cd5df47f4c4840fee | af4abf0a22db1cebae466c56b45da2f36f02f323 | /parser/team07/Proyecto/clasesAbstractas/select_query.py | 93f098d149c2b574891d5d6f72d450da3592e61d | [
"MIT"
] | permissive | joorgej/tytus | 0c29408c09a021781bd3087f419420a62194d726 | 004efe1d73b58b4b8168f32e01b17d7d8a333a69 | refs/heads/main | 2023-02-17T14:00:00.571200 | 2021-01-09T00:48:47 | 2021-01-09T00:48:47 | 322,429,634 | 3 | 0 | MIT | 2021-01-09T00:40:50 | 2020-12-17T22:40:05 | Python | UTF-8 | Python | false | false | 604 | py | from .instruccionAbstracta import InstruccionAbstracta
class select_query(InstruccionAbstracta):
'''Esta es la instruccion general de un query que puede unir varios select
esta tiene los 2 querys que se unen y el tipo de union'''
def __init__(self, query1, query2, tipoUnion):
self.query1 = query1... | [
"carloscante@gmail.com"
] | carloscante@gmail.com |
472cc265eb8efba7a97821c1b47be51224d34724 | 94cb9dcbac4c35a30b684de3338ac31ed9fd5165 | /backend/healthiswealth_28409/settings.py | 623002b24c290293a28f4cbf5f527f04ed9f2eab | [] | no_license | crowdbotics-apps/healthiswealth-28409 | 64b410d10e6faf5540402b7b59897d583cd8201d | abe1e12bb5f06ea6f2dddcdf73a1d08115b073f9 | refs/heads/master | 2023-06-14T10:30:40.144603 | 2021-07-03T09:57:58 | 2021-07-03T09:57:58 | 382,580,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,244 | py | """
Django settings for healthiswealth_28409 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
67c9080a7f9ac9b40d314c9bcf57e801dc181277 | df917d838b85ec6cd7b6fda56176a0403fa88f3d | /e2e_test/app/components/event/event_handler.py | 2773e8feff3e1f3c826964ffa03d687cf58adcab | [
"MIT"
] | permissive | jivago-python/jivago | ea3b50dad3eab7cebaffff2b2e9d9a911ee31bc0 | 8c8c72e179899357f80b91ae7454f638a0225d1c | refs/heads/master | 2021-07-04T07:33:46.836249 | 2019-11-18T17:00:09 | 2019-11-18T17:00:09 | 173,117,930 | 0 | 0 | null | 2019-02-28T13:33:45 | 2019-02-28T13:33:44 | null | UTF-8 | Python | false | false | 950 | py | import anachronos
from anachronos import Anachronos
from e2e_test.testing_messages import RUNNABLE_EVENT_HANDLER, INSTANTIATED_EVENT_HANDLER, FUNCTION_EVENT_HANDLER
from jivago.event.config.annotations import EventHandler, EventHandlerClass
from jivago.lang.annotations import Override, Inject
from jivago.lang.runnable... | [
"kento.lauzon@ligature.ca"
] | kento.lauzon@ligature.ca |
f3e0a1ee0c51c30c907d6fbca3bac49e77f2e626 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2969/60796/287884.py | 5d7f6824025a8984ecb4a4c0e69f947082fe52de | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | s=input()
result=[]
for i in range(1,len(s)):
if s[i]<=s[i-1]:
result.append(i)
result.append(len(s))
for i in range(len(result)):
print(result[i],end=' ')
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
4baeb8c8d4d436eae9f7b82b7561636213a44f9c | 6c040af1e37fa45735e0704d779425f36ab9cba3 | /usr_dir/grid_decoders.py | 8945a004f3ec0f021f69a72fb33216370225c9b2 | [] | no_license | SegwangKim/neural-seq2grid-module | 86eadf836663c2f654153c8036bbcfa2dad33776 | 6d2f34824af901850ede61a5c86f3da8a8fd990f | refs/heads/main | 2023-02-16T15:53:24.190202 | 2021-01-15T08:40:40 | 2021-01-15T08:40:40 | 323,207,737 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,899 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from tensor2tensor.layers import common_layers
from tensor2tensor.models import resnet
def dot_product_local_atten_2d(grid_structured, weight_q, weight_k, weight_v, rel_pos_embs):
_... | [
"ksk5693@snu.ac.kr"
] | ksk5693@snu.ac.kr |
fee16caa3dd2f6b61d0a0ef336efadf80ff70336 | 0e9726bced390513f6d8076c240b09e0a1a8961c | /manage.py | 0c0a3050bcd1374a05682c49f5f1587ed72908db | [] | no_license | EwdAger/mailAlarm | dbfe8ba03bfede1dfbb670f707a88bc5bd6d144c | fae43b0c2b33bab0c8a894e50602c983d7f58577 | refs/heads/master | 2022-12-10T01:41:57.412145 | 2020-03-31T01:57:18 | 2020-03-31T01:57:18 | 249,985,604 | 1 | 0 | null | 2022-12-08T03:53:40 | 2020-03-25T13:27:19 | Python | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mailAlarm.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"ningwenjie@getech.cn"
] | ningwenjie@getech.cn |
8399ada2cac36ef84801fd128ad5754773477d68 | 32a65b2bfcb3d3e85bb64bf1bc0e829a634c23cd | /lab2/src/emulation.py | a8f8c295cd65ac911179c76867f34e7b8bbf8499 | [] | no_license | dpalii/db_sem2 | 99b8c07268d4233464e0d4e749b0324ddad1268e | 05e933feb74aaecf311b85899eb7da8559a49a52 | refs/heads/main | 2023-05-07T12:17:21.584093 | 2021-05-29T21:27:09 | 2021-05-29T21:27:09 | 343,198,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | import random
from threading import Thread
import user
from faker import Faker
import redis
import atexit
class User(Thread):
def __init__(self, connection, username, users_list, users_count):
Thread.__init__(self)
self.connection = connection
self.users_list = users_list
self.user... | [
"dpalii.study@gmail.com"
] | dpalii.study@gmail.com |
d82c14428e5db53afc6e67f452fca67e343550bd | 9f299a8ac1bb9fb5bb8a93067f9f09ce46812c5e | /meta.py | 8f53c1ee54690b97372c826c367504f73d93238d | [] | no_license | hlycharles/WarfarinDoseRL | 2ba831c93a6de5929531dacd7bfc70e7e82d89e7 | f67650b8bcc176d6e5efee846e25797d4533c195 | refs/heads/master | 2020-04-26T00:59:31.315566 | 2019-04-04T22:17:39 | 2019-04-04T22:17:39 | 173,193,170 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | # feature names
GENDER = 1
RACE = 2
ETHNICITY = 3
AGE = 4
HEIGHT = 5
WEIGHT = 6
INDICATION = 7
COMORBIDITIES = 8
DIABETES = 9
CONG_HEART = 10
VALVE = 11
MEDICATIONS = 12
ASPIRIN = 13
TYLENOL = 14
WAS_TYLENOL = 15
SIMVASTATIN = 16
ATORVASTATIN = 17
FLUVASTATIN = 18
LOVASTATIN = 19
PARAVASTATIN = 20
ROSUVASTATIN = 21
CER... | [
"hly.charles@gmail.com"
] | hly.charles@gmail.com |
15d8e4e96406fa345ca1a8f85f263bd230c55691 | c91b284acf6bdca5683f080dd4ba77fd394451ae | /Easy Problems/RemoveLinkedListElements.py | 052f5750fff77a57aeb20a942affee8938a60f03 | [] | no_license | darpanmehra/Leetcode | f523ac5ea4f9ba0e0ccaaeab259212c1ee188de8 | 18335b9a6d3da305c968acb90f9cf86cd6c40692 | refs/heads/master | 2020-05-28T09:47:41.175070 | 2019-05-29T12:30:51 | 2019-05-29T12:30:51 | 188,960,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | #203. Remove Linked List Elements
#Problem Link: https://leetcode.com/problems/remove-linked-list-elements/
#Remove all elements from a linked list of integers that have value val.
#Example:
#Input: 1->2->6->3->4->5->6, val = 6
#Output: 1->2->3->4->5
# Definition for singly-linked list.
# class ListNode(object):
# ... | [
"darpan.mehra10@gmail.com"
] | darpan.mehra10@gmail.com |
1000b8d48680faa5d595c54a4a316f790e37b492 | 7381c70b78a1841e3a14fd6d6b933e9de503bbea | /semana5/horno_alternativo.py | 8d8d697a0257fb6531f514191b749181d4f7e571 | [] | no_license | mundostr/adimra_introprog21_raf | c594a958f77797b67b9925671341ffe8ae4899ea | d529daae684268b6e8548e53dfdba7092bf83081 | refs/heads/master | 2023-07-17T15:06:23.775878 | 2021-08-27T23:17:12 | 2021-08-27T23:17:12 | 370,476,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | # LIBRERIAS
import random
# DEFINICIONES
TEMP_MIN = 100
TEMP_MAX = 200
TEMP_TOL = 2
TEMP_OBJ = 150
TEMP_PRUEBA = 145
# FUNCIONES
def generarArchivoRandomSensor():
# r = read (lectura)
# w = write (escritura sobreescrita)
# a = append (escritura agregada)
archivo = open("lecturas_horno.txt", "w")
for x in range... | [
"idux.net@gmail.com"
] | idux.net@gmail.com |
63ee8feb4bb7423ab04b8f7cb28741718b479ce5 | 6f178111463bcdbdd285c7480938c826c0a422e5 | /python/find_n.py | 3dd58d322f43b1fd048eb2aa08dea349e1822d26 | [] | no_license | ivanliu/fun | a77c37f651d87907c39e2ebc671f12b696e9b746 | ad986f8ffdf3d5e06e5ac31c77c1442f6e48042e | refs/heads/master | 2021-01-13T04:31:00.944989 | 2020-03-22T15:09:51 | 2020-03-22T15:09:51 | 9,335,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py |
def find_n(A, B, n):
'''
find the n-th largest item in two sorted arrays
'''
if __name__ == '__main__':
A = [100, 98, 89, 77, 66, 55,44]
B = [101, 94, 67, 50, 20,3]
print "Array A: ", A
print "Array B: ", B
print "The 5th largest number: ", find_n(A, B, 5)
| [
"kailiu@yahoo-inc.com"
] | kailiu@yahoo-inc.com |
fe3b3cdb958b9b7d1dc73d3f854f5f3811da9d6c | f94d9cf5ed8b90a4406b38d3ba223eab8778a6d9 | /app.py | d5475d39ff05e614a8cf80ea68b65c8e023e2d24 | [] | no_license | alexaapetrei/flask-helloworld | e646c4baaa939a15ed1c567c0074ff4c2b6fd4f3 | ccb0a0f76dbe9a2cc58d645f3c1f52ac292927be | refs/heads/master | 2020-03-15T12:01:47.303237 | 2018-10-08T09:03:11 | 2018-10-08T09:03:11 | 132,135,016 | 0 | 0 | null | 2018-05-04T12:04:54 | 2018-05-04T12:04:54 | null | UTF-8 | Python | false | false | 118 | py | import os
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello from Python!"
| [
"craig.kerstiens@gmail.com"
] | craig.kerstiens@gmail.com |
4bb368bc464136b85a108a937fac5d39a43dfd85 | b43db176243e768771e24ceb637206803e044272 | /setup_control/setup.py | a7e8058a6981d24cc94797c568637be2242783c0 | [] | no_license | jc-roth/Microwave-Transmission-Experiment | 3cf886383d4be079167207c61361b373be0ca2d5 | bb287726f422e17ee9692e3edd8b314a968067cc | refs/heads/master | 2021-06-24T08:03:50.701185 | 2017-08-19T00:10:26 | 2017-08-19T00:10:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from setuptools import setup
setup(name='setup_control',
version=1.0,
description='For use controling the microwave transmission setup',
url='https://github.com/catsandcode/Microwave-Transmission-Experiment',
packages=['setup_control'],
install_requires=['numpy', 'pyserial'],
zip_sa... | [
"jc.roth73@gmail.com"
] | jc.roth73@gmail.com |
be724e65f91b25edf4c500268e61aaea8fe67371 | c6fb8ed0717859364999b45daa43e4288be2e928 | /Assignment4/Q4/ocr/linear/linear.py | c43b591b1608b844afdca530db4d755e0c7b3062 | [] | no_license | aditya3513/Machine-Learning-using-Numpy-and-Pandas | d74777cbe314ea1cc438f9afe527aebb3e1ca2ba | eb6ed9dda9534490bfe100b5d4bcb0cac30a9c62 | refs/heads/master | 2020-04-14T14:17:41.127609 | 2019-01-02T21:40:17 | 2019-01-02T21:40:17 | 163,892,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,923 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.model_selection import KFold
from sklearn.preprocessing import StandardScaler
from sklearn.svm import SVC
from sklearn.metrics import accuracy_score
from sklearn.metrics import recall_score
from sklearn.metrics import precision_score
fr... | [
"aditya413sharma@gmail.com"
] | aditya413sharma@gmail.com |
2a6f0478aedfaa1dd0ee1c606fd33b53ae3cd21c | 18e2acae29b5fabf3e0286a863d4266eb03478c7 | /regressionMetrics.py | b52ceaf0ccad5ce230f19043af2a3f3accfc6592 | [] | no_license | moone009/wec_python | b0cbae0082e9fa7e0b8c5279693bca74780332ef | 2f1942de0548a22880720a0cba548352468cb4ce | refs/heads/master | 2020-07-02T06:20:24.870695 | 2016-09-01T20:11:29 | 2016-09-01T20:11:29 | 66,573,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py |
## from regressionMetrics import *
## performancemetrics.regression_metrics(predictions,Y_train)
import math
import pandas as pd
class performancemetrics:
def __init__(self, predictions,test_var):
self.predictions = predictions
self.test_var = test_var
def regression_metrics(predictions,te... | [
"mooneychristopher1@gmail.com"
] | mooneychristopher1@gmail.com |
40311c7c994be4510606c7f9f288c52cf5295113 | a882b5aa0af27fe29a0a76f2e555409a1f1b766a | /Python Projects/Script/wifi_script.py | 5396155ad1e73275ccce1132f99ed4c21d96cd5b | [] | no_license | Kunvuthi/pythonlearningprojects | d75394378641cedf85994ef78451e7ef3cc57712 | c86d04e1520c3d8d05505bd383533d0f1caf85c4 | refs/heads/master | 2023-04-03T10:01:39.299732 | 2021-04-05T09:38:50 | 2021-04-05T09:38:50 | 281,588,497 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | import sys
import os
import subprocess
from decouple import config
IP_NETWORK = config("IP_NETWORK")
IP_DEVICE = config("IP_DEVICE")
proc = subprocess.Popen(['ping', IP_NETWORK], stdout=subprocess.PIPE)
while True:
line = proc.stdout.readline()
if not line:
break
connected_ip = line.decode('utf-... | [
"43140224+Kunvuthi@users.noreply.github.com"
] | 43140224+Kunvuthi@users.noreply.github.com |
524eda43cc3d3cacbdb8b9cbb191765a11acb289 | cb6461bfae8b0935b7885697dad0df60670da457 | /pychron/envisage/tasks/tip_view.py | 1efc181187008c5bcdf0132eeb50734615cd992f | [
"Apache-2.0"
] | permissive | USGSMenloPychron/pychron | 00e11910511ca053e8b18a13314da334c362695a | 172993793f25a82ad986e20e53e979324936876d | refs/heads/develop | 2021-01-12T14:09:18.983658 | 2018-02-06T14:25:05 | 2018-02-06T14:25:05 | 69,751,244 | 0 | 0 | null | 2016-10-01T16:59:46 | 2016-10-01T16:59:46 | null | UTF-8 | Python | false | false | 1,706 | py | # ===============================================================================
# Copyright 2015 Jake Ross
#
# 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... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
f713f430a98ab0141570b2c3c365da0b4c1344c1 | 55ceefc747e19cdf853e329dba06723a44a42623 | /_CodeTopics/LeetCode_contest/weekly/weekly2022/277/277_1.py | 7ac9d39d8d60e1bb49d3f1b90acd2e1e7d3db2db | [] | no_license | BIAOXYZ/variousCodes | 6c04f3e257dbf87cbe73c98c72aaa384fc033690 | ee59b82125f100970c842d5e1245287c484d6649 | refs/heads/master | 2023-09-04T10:01:31.998311 | 2023-08-26T19:44:39 | 2023-08-26T19:44:39 | 152,967,312 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | class Solution(object):
def countElements(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
nums.sort()
n = len(nums)
if len(set(nums)) <= 2:
return 0
i = 0
while i < n and nums[i] == nums[0]:
i +=... | [
"noreply@github.com"
] | BIAOXYZ.noreply@github.com |
52a294d4e7dcf0184eef8ccdef0e45ee6835ba3f | c17d2622df1979c853fb2bdf5637daaabafa34df | /src/pyroxy/repositories.py | 70b1e547ba0ddcfd56bc530398883b171d8aa817 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | amcfague/pyroxy | a24d066dd7925e6618b55c4828ee310e84b49901 | 362c84335e1ca62c2edc5056b3732ad36d99240a | refs/heads/master | 2021-01-22T20:08:47.453313 | 2012-04-27T04:39:45 | 2012-04-27T04:39:45 | 2,990,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,180 | py | import os.path
import urllib2
from pyroxy.exceptions import SecurityException
__all__ = ["BaseRepository", "LocalPypiRepository", "RemotePypiRepository"]
DEFAULT_PYPI_URL = "http://pypi.python.org"
def urljoin(*segments):
return "/".join(segments)
class BaseRepository(object):
def get_index(self, pac... | [
"redmumba@gmail.com"
] | redmumba@gmail.com |
64c731c3350074e539343ad99aedc0166911d7f9 | 8f887b19f25328c0a844b7e251e297af58ec72f8 | /src/orderdetails/admin.py | 79bde7c4836651890d713424f9d265c82620cd1a | [] | no_license | rushabh2390/shoppingwebsites | cdc22db4e00a770653168e5115f0e18af6151d51 | 946e3c1e33653fd8f8e39bd22d627322b63021b6 | refs/heads/main | 2023-08-24T19:33:23.724485 | 2021-09-10T06:18:13 | 2021-09-10T06:18:13 | 404,971,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.contrib import admin
# Register your models here.
from .models import OrderDetail
admin.register(OrderDetail) | [
"er.rushabhdoshi@gmail.com"
] | er.rushabhdoshi@gmail.com |
d46605a963cc8f769dbe759ad483fc416defb7bd | d5d189fff2e027f7aa38ecde58952bcb4b636d47 | /include/ocr/train/backend/gen_sample.py | c27926b5f86b197603348478fb379288bd02955d | [] | no_license | wyc2015fq/cstd | 5979a3c26d5c7f00aadda440b04176dcf043e7dc | 664bcb4680a32811767f5541a8aae1551d621598 | refs/heads/master | 2020-05-15T20:22:19.209717 | 2019-04-20T16:08:03 | 2019-04-20T16:08:03 | null | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 6,014 | py |
import sys
import cv2 as cv
import numpy as np
import random
import matplotlib.pyplot as plt
#draw circle
def randint(min_int,max_int):
return int(min_int + (max_int-min_int)*random.random())
def randi(min_int,max_int):
lis = []
for i in range(len(max_int)):
lis.append(randint(min_int[i], max_i... | [
"31720406@qq.com"
] | 31720406@qq.com |
e635cfe5a94a774b7cab354764b2bf54d830b1eb | 4ad37c3a80265f9bf4fadaa796382057fd6334bd | /Heroku-Confessions-master/app.py | 1261ae25d357201e6ff68ff679f32cbc9c9c17da | [] | no_license | gauravsingh13091990/web-app | 919354292286c0e9ee52ae4d9be3273e4aea21c3 | c40e38c3f868e063e4a20fb2263526fb46ebd5bd | refs/heads/master | 2020-04-08T07:36:15.837614 | 2018-11-26T09:39:58 | 2018-11-26T09:39:58 | 159,144,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,941 | py | import os
import sqlite3
from flask import *
from flask_sqlalchemy import *
from datetime import datetime
from flask import send_from_directory
from werkzeug.utils import secure_filename
from sqlalchemy import update
from sqlalchemy import desc
app = Flask(__name__) # create the application instance :)
app.config.fro... | [
"noreply@github.com"
] | gauravsingh13091990.noreply@github.com |
bd7d1f6c3c40c8a80f51858712aabba6fcefb304 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/storage/v20210401/list_storage_account_service_sas.py | 7afff96cc0049e93f01fbcf87cda9dfb98dc0d89 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,290 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
04eeebd05c2dbf3ebe636925fd43e2f9fc5dcfbe | 15a9f47c159e9eb3be8b885022479aa23853ffc7 | /bluefruit/Control Code/raspberryPi/connect.py | 0d71a243d2740d699d2a2116cf4c166c00e60e7d | [] | no_license | faron323/Robot_App_V0_1 | 557578e52d6f0650c5b5b1073caebafa7b0ad075 | 25d1455069fd8059ced6dcc02afa3b8863ac63db | refs/heads/master | 2020-04-12T10:12:56.027122 | 2019-08-08T01:25:13 | 2019-08-08T01:25:13 | 162,422,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | import serial
from serial.tools import list_ports
import struct
class Arduino(object):
def __repr__(self):
return self.name
def __init__(self, name='Arduino', port='/dev/ttyACM0', baud=115200):
self.name = name
self.baudrate = baud
ser_port = port
try:
self... | [
"47199407+phillipili@users.noreply.github.com"
] | 47199407+phillipili@users.noreply.github.com |
74df9aba0e946cddf8c5deb57ab76399969b9081 | ea2015881c18583a4295122f2e2c1d2dbd3e32f9 | /_pipeline_scripts/NameChangers/Obsolete/1_3_2_reformFastaAt.py | bd85a8e86462822dee810d4e64c861fa8a9be8aa | [] | no_license | panchyni/PseudogenePipeline | ad0b210d943bfdc83da1eeb63c0d7dec2a8719ae | 44a5bfd034dfd9b21808b6e6c5b789f141912c33 | refs/heads/master | 2021-01-11T15:54:57.514872 | 2017-04-17T21:13:16 | 2017-04-17T21:13:16 | 79,955,253 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | #this script is designed to remove the decimals from At names in a fasta file
#Created by: David E. Hufnagel on 5-7-2012
import sys
inp = open(sys.argv[1]) #input file
out = open(sys.argv[2], "w") #output file
#print the unix command line that called this script
out.write('#python %s\n'%(' '.join(sys.argv)))
... | [
"panchyni.msu.edu"
] | panchyni.msu.edu |
a1f83f8c8d3f544bcb99b66c3c2ff5c842e97bcd | 76d941f2ea57882581f9b3c1b6049e60b72f64a3 | /Snakefile | 7ad9a868d35b93b3ef5f7a187eec25fd38b15925 | [] | no_license | ACStoneLab/MitoPipe | c347a40104e899fcad2ff3e238f046d63f5cd903 | 59a316e9fc045549e66b37116ccd4a517b747691 | refs/heads/main | 2023-07-17T16:05:29.006776 | 2021-08-26T23:24:33 | 2021-08-26T23:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,285 | import os.path
import subprocess
import json
import csv
configfile: "SampleList.test"
current_dir = os.getcwd() + "/"
sequence_fasta = current_dir+ "path/to/reference.fasta"
# Enable or disable individual rules.
run_rmdup_bams = True
run_fastqc_original_samples = True
run_fastqc_rmdup_bams = True
run_mapdamage = Tru... | [
"noreply@github.com"
] | ACStoneLab.noreply@github.com | |
4956ab547a3325427872b4a0ef50190a420e012b | a119b2a9d6532cd4fd8e824786913eecd539bb95 | /PvP/Die at once/1.1.3 KRBT.py | 1e29189e03ea299169a9194e6b962531a95c2521 | [] | no_license | EEExphon/Simple_Text_Games_ | 622ab792136bd93a8eeb54e9a9a0f9ae30f77476 | 59e03bf054698c02dc988697c5d9f3e55d41006a | refs/heads/master | 2022-09-13T02:32:10.510201 | 2020-06-03T08:58:14 | 2020-06-03T08:58:14 | 269,037,860 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,136 | py | print(" Welcome to VAN (PvP) by Richard.")
print(" 1.2.3")
input(" WE HAVE THREE HEROS:(press enter to continue)")
print(" YOU CAN USE 3 AFTER THE 4TH ROUND AND 4ROUNDS AFTER.")
print(" BRUCE : |HP=150|a_10|1_强化a或2|2_+20... | [
"66343319+EEExphon@users.noreply.github.com"
] | 66343319+EEExphon@users.noreply.github.com |
a84ac936437258717daeea9c08499dcb1c33ff47 | 3c5e6b918166ad716010521fc97511d92a459297 | /tech_academy/forms.py | fdc814cfff959a4e0d59424f276b561b077e05e5 | [] | no_license | akenz1901/Tech_Academy | 53bbd60825e2e9c50300d9e74f8182f67dfe8746 | 59a7679fe603edab8413a97654c20038a059c382 | refs/heads/main | 2023-08-01T01:57:41.829603 | 2021-09-29T18:39:35 | 2021-09-29T18:39:35 | 408,521,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from django import forms
from .models import Cohort, Native
class CohortForm(forms.ModelForm):
class Meta:
model = Cohort
fields = ('name', 'description')
class NativeForm(forms.ModelForm):
class Meta:
model = Native
fields = ('first_name', 'last_name', 'image', 'cohort')
| [
"michael_aka1@icloud.com"
] | michael_aka1@icloud.com |
12ed10992acff4d7f93ed92ce7a5f1479b3bbcd2 | 360009e71b07da5cd99660c0cd14bfb0b989fa98 | /views.py | eea045eda30457221cc8d17c3baa2ac8665ffe1a | [] | no_license | xml-star/dangdang | 4438b7e2be3eaf3d428f60b173a5305635b2953c | 6360350cede21f0b33506fe8004eb4981f76e73b | refs/heads/master | 2022-12-29T16:43:09.940206 | 2020-10-19T13:51:45 | 2020-10-19T13:51:45 | 305,377,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | this is my first view
this is my second view
this is my third view
this is my fifth view
this is my sixth view
this is my 7 view
this is my 8 views
| [
"xml@qq.com"
] | xml@qq.com |
b4220ae436274742cb4a64b35868e2a7c4a956f0 | fd1dba8223ad1938916369b5eb721305ef197b30 | /AtCoder/AGC/agc027/agc027d.py | b8ef2fee8aa0ffdd70bf993f73acf5770998734c | [] | no_license | genkinanodesu/competitive | a3befd2f4127e2d41736655c8d0acfa9dc99c150 | 47003d545bcea848b409d60443655edb543d6ebb | refs/heads/master | 2020-03-30T07:41:08.803867 | 2019-06-10T05:22:17 | 2019-06-10T05:22:17 | 150,958,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | N = int(input())
if N == 2:
print(4, 7)
print(23, 10)
exit()
a= [[0] * N for _ in range(N)]
def sieve(n):
'''
:param n:
:return: n以下の素数のリストを返す
エラトステネスの篩→O(n log log n)
'''
prime = []
is_prime = [True] * (n + 1) #is_prime[i] = Trueならiは素数
is_prime[0] = False... | [
"s.genki0605@gmail.com"
] | s.genki0605@gmail.com |
ef2c699870744ffa06c10e14205661496f9ab442 | 545afb3cfe89f82b558faa5b5b28c28b8e3effce | /venv/Lib/site-packages/google/protobuf/internal/message_factory_test.py | 3a2cbdeb8bedd3ae240aa5b38eca968c61e35421 | [
"MIT"
] | permissive | parthpankajtiwary/keras-groundup | 24ad45a4b872e6d77fff8a6f4a3a6d60124a0628 | 0df0844e7d9dca741fad0965761a12f72ee51f07 | refs/heads/master | 2022-11-09T22:34:35.716466 | 2019-10-01T11:01:59 | 2019-10-01T11:01:59 | 210,914,101 | 0 | 1 | MIT | 2022-10-25T06:47:55 | 2019-09-25T18:31:49 | Python | UTF-8 | Python | false | false | 9,896 | py | #! /usr/bin/env python
#
# Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# https://developers.google.com/protocol-buffers/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following cond... | [
"parthpankajtiwary@gmail.com"
] | parthpankajtiwary@gmail.com |
08a9f916a169cc7477429191108a198d7dbcfc99 | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /toontown/minigame/MinigameRulesPanel.py | e895a9cd4459e40afe609b5becb4e06f92614d2b | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 2,924 | py | # File: t (Python 2.4)
from direct.task import Task
from direct.fsm import StateData
from toontown.toonbase.ToontownGlobals import *
from direct.gui.DirectGui import *
from pandac.PandaModules import *
from toontown.toonbase import ToontownTimer
from toontown.toonbase import TTLocalizer
import MinigameGlobals
class M... | [
"fr1tzanatore@aol.com"
] | fr1tzanatore@aol.com |
c94905a59ff5189af34e689384643c0f2425d9aa | ed566ffe316fd54aaf4945ce18bb1d9d95597a1b | /www/webframe.py | 190d96d36c6b29dc91e2344608fcd8cf59e66120 | [] | no_license | wbjxxzx/aiohttp_blog | b63f7339c0d081a1525d12223ee8d882e2f80273 | af4ac2c7deffd40ac31f9a92cb37277e33f1de0a | refs/heads/master | 2020-03-27T00:51:20.493394 | 2018-09-12T10:59:33 | 2018-09-12T10:59:33 | 145,662,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,715 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
'''
__author__ = wbjxxzx
'''
import asyncio
import os
import inspect
import functools
from urllib import parse
from aiohttp import web
from apis import APIError
from mylogger import logger
def get(path):
"""
define decorator @get('/path')
"""
def decorator... | [
"wbjxxzx@163.com"
] | wbjxxzx@163.com |
d9574ccc9abb854423191f325895d1951e3af024 | 1c0b48565e0e5f8815a271b8ece4c7f0dac450b7 | /problems/ps1/code/pmfig.py | 1beb83f86e1792d2099b23b3b59b0a698969122f | [] | no_license | dfm/biophysics | bbe450e8290268a13200e83c456e28c8f42237a7 | 188de89fed355ea00ebc7004c5e1ff792bcd1d28 | refs/heads/master | 2023-08-30T01:50:59.960527 | 2014-11-03T16:09:27 | 2014-11-03T16:09:27 | 24,002,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import matplotlib.pyplot as pl
pl.figure(figsize=(10, 4))
bg = dict(color="b", alpha=0.5, lw=0, edgecolor="none")
scat = dict(color="r", alpha=0.5, lw=0, edgecolor="none")
pl.fill_between([4.333, 5, 8], [0.05, 0.6, 0], [-0.05, -0.6... | [
"danfm@nyu.edu"
] | danfm@nyu.edu |
2f3e2bb3b574fb3c194fea01a846219c31977b6d | 94a71148eab47c3a1ec544908e7e6b412566df68 | /vouchers/admin.py | 8bf8a0dc7e17ddda25d0431f17922ba9a813ee90 | [] | no_license | hawkson-lemuel/shuttleapi | 6d01a11d6a0dbdb12b7c49861aa48a5d89151c07 | d55922f3cdb2d4346c5ba63465d2870308646942 | refs/heads/master | 2021-06-16T03:49:00.764031 | 2017-05-18T12:01:05 | 2017-05-18T12:01:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | from django.contrib import admin
from .models import Voucher
admin.site.register(Voucher) | [
"digiwebguy@gmail.com"
] | digiwebguy@gmail.com |
5789908bf068c65a3e6da973128bbb0c6705d196 | cdd90e6d02b93b7ee73feadc99625440b64853d4 | /tallerAjax/tallerAjax/wsgi.py | ed97529410f17c96544e40b26656c1736f6a5d75 | [] | no_license | alvaromartinez986/tallerAjax | f8f741ffde4c2d2e4b68dccb73528c993a894681 | e62c73c5ecc15b878458f54c4f62a5741bb96e62 | refs/heads/master | 2021-05-30T07:27:53.940582 | 2015-09-18T06:22:23 | 2015-09-18T06:22:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for tallerAjax 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/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tallerAjax.settings")
from django.... | [
"martinez.alvaro@correounivalle.edu.co"
] | martinez.alvaro@correounivalle.edu.co |
a5e8d26bef7222b0c8b18c4ab01d38a4f6dd7c5c | c3592ad2229ef0b99b611765339ae86221931804 | /DAY1/translation_word.py | 1e5bb18823224b38a75207f8df8bc747690dba45 | [] | no_license | asd307769162/Python-Learning | 5073eb71977418e317bc6467295be775eea28708 | 2be768ec8fddb594edcd386e22201ae18aa1928f | refs/heads/master | 2021-05-18T16:41:11.114222 | 2018-04-14T03:24:51 | 2018-04-14T03:24:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | import urllib.request
import urllib.parse
import json
translation=input('请输入要翻译的内容:')
url= 'http://fy.iciba.com/ajax.php?a=fy'
data={}
data['f']='auto'
data['t']='auto'
data['w']=translation
data=urllib.parse.urlencode(data).encode('utf-8')
response =urllib.request.urlopen(url,data)
html=response.read().decode('... | [
"admin@busby.com.cn"
] | admin@busby.com.cn |
c05db998bdb2296022feab4c528a8fe046e2d833 | b365e0a65ce204708b52959f08da0ae7605e69c2 | /python/modules/kivydd/app/CAppThread.py | ede2bbfdf9ee5dbb311218d6648158e7f5179c71 | [
"MIT"
] | permissive | darwinbeing/deepdriving-tensorflow | af500f2caf6ffb9cc1f019fbdb79878e6a468a96 | 036a83871f3515b2c041bc3cd5e845f6d8f7b3b7 | refs/heads/master | 2021-06-26T15:41:18.031684 | 2017-08-23T13:11:37 | 2017-08-23T13:11:37 | 103,213,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,751 | py | # The MIT license:
#
# Copyright 2017 Andre Netzeband
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modi... | [
"andre.netzeband@hm.edu"
] | andre.netzeband@hm.edu |
e72d43a85c51a829ebef00ad4403ee76822eabb5 | 9fa429bcb1750317b962c1c0ed8d0be689ed1137 | /gitview/gitview/gitview/product_settings.py | 13783213241fec5109d7ff7e59c2a55fd517e21c | [] | no_license | dfguan/gitview | 4f870d9977133a4a70e11438a58cc8edd62f1b41 | 1594f29fd52d43d6483da5b8f023f934369b45f4 | refs/heads/master | 2021-05-27T03:36:20.768224 | 2014-02-25T03:04:07 | 2014-02-25T03:04:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | import os
from gitview.settings import *
DEBUG = False
TEMPLATE_DEBUG = DEBUG
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'gitview',
'USER': 'root',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
# Following settings must be changed f... | [
"zyang@redhat.com"
] | zyang@redhat.com |
7b06a1a4ee0ccd926b9d516d17e90b5f44961331 | 7f4b902c164249f231acc53320b5cce6650abaed | /tests/helpers.py | a09a6ff493cc2a48076566955c7dae8879b9eaed | [
"MIT"
] | permissive | flacerdk/smoke-signal | 2322ce0b59278004c8665d6754e0317b6b58ed82 | f6cf85dba87348f97d94e3e464e1eb552c1ea72e | refs/heads/master | 2020-04-05T23:03:30.229076 | 2017-02-25T11:20:50 | 2017-02-25T11:20:50 | 32,870,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py | import codecs
import json
from urllib.parse import urlparse
from utils.generate_feed import SampleFeed
def get_json(response):
return json.loads(codecs.decode(response.get_data(), "utf-8"))
def create_mock_rss(title, feed_path, num_entries):
feed = SampleFeed(title, num_entries)
feed.write_to_file(feed... | [
"fegolac@gmail.com"
] | fegolac@gmail.com |
cb883f0edecad79859e6b0bf8405b1f641e8f013 | 049500afdada566385fc4d80f3040a5b22b3f753 | /Beatles.py | 14c7f75af67fc2b1ab1808ade94d7a69e9eaa010 | [] | no_license | wyattm14/Song-Lyric-Generation | 7db29b7ea4e2a52539fe1ba65baa66b2a64b08f6 | 4eaa297e9d4545cda946d2a9d4402256d8deb005 | refs/heads/master | 2022-04-21T19:12:04.063364 | 2020-04-26T00:32:52 | 2020-04-26T00:32:52 | 258,903,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | with open("test.txt", "r") as file:
lines = file.read().splitlines()
uniques = set()
for line in lines:
line.lower()
uniques |= set(line.split())
# print(f"Unique words: {len(uniques)}")
# print(uniques)
print(lines.count())
list = []
for w in uniques:
print(w)
... | [
"wyattmiller@Wyatts-MBP.hsd1.co.comcast.net"
] | wyattmiller@Wyatts-MBP.hsd1.co.comcast.net |
9e2a5e831ec60facce6748b8c74c0304230be665 | a5d211cc00e481482c2f7185e4bbb081c53f1be2 | /src/LocalSaliencyModel/model.py | 9326f9a0b58e0a88e54cd8106c2c338a8e67fda8 | [
"MIT"
] | permissive | noashin/local_global_attention_model | ca51b7a2fb71e3a4c61b429aa82cee3f4413793b | 531e6a4cc1dc364a6a4168de1b9f972727a8aeb1 | refs/heads/master | 2022-12-05T23:15:43.564526 | 2020-08-26T14:56:27 | 2020-08-26T14:56:27 | 290,518,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,510 | py | import sys
import pickle
import numpy as np
sys.path.append('./../')
sys.path.append('./../../')
from src.LocalGlobalAttentionModel.model import Model as parent_model
from .vel_param import VelParam as vel_param
from src.HMC.hmc import HMC
class Model(parent_model):
"""
This class describes a model where fi... | [
"noa.shinitski@gmail.com"
] | noa.shinitski@gmail.com |
6536b5bcc05825f3f3292d35495e36d9918b7ebb | f1c840c4f3bdb0fc5d97eba16f6718c1bca2ae50 | /handlers/library/read_unread.py | c420dec74e27dd714ce31c620d05c037c9c7186c | [] | no_license | dpvazquez20/ComicLib | 01be35bb674f37240d131d912c2239fcafd17f6c | b7dfbd6d2c05b251e6bf08f7c93d691fa263eda9 | refs/heads/master | 2020-06-10T00:24:55.579127 | 2019-06-27T14:33:10 | 2019-06-27T14:33:10 | 193,528,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,094 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import webapp2
import time
import copy
from webapp2_extras import jinja2
from google.appengine.ext import ndb
from handlers.elements.sessions import BaseHandler
from handlers.lang.spa import lang as spa
from handlers.lang.eng import lang as eng
from models.db ... | [
"noreply@github.com"
] | dpvazquez20.noreply@github.com |
8640d72e0036ff5b463c83ed75490757728cf6e7 | 243770b01999a2d2854207da6032c9ea420a8e20 | /moldyn/dumpPlotProjections.py | 472c6ed174b9523933b201ce347e106677bb071f | [] | no_license | acadien/matcalc | 54a9b9d5a944f9b4a27f3e0dc905c40391da9c07 | 037d7080c07856877d7a3f5f9dcbb2dec5f38dd1 | refs/heads/master | 2016-09-11T08:28:07.310789 | 2015-05-19T18:14:56 | 2015-05-19T18:14:56 | 3,674,764 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | #!/usr/bin/python
import plotRemote as pr #mine
import sys
import pylab as pl
def usage():
print "%s <dump file with atomic coordinates>"%sys.argv[0].split("/")[-1]
if len(sys.argv)!=2:
usage()
exit(0)
#Prepare data
fname=sys.argv[1]
fraw = open(fname,"r").readlines()
#Prepare plotting
mxc=20
iline=0... | [
"adamcadien@gmail.com"
] | adamcadien@gmail.com |
8195edf8895623ef20cce4da3bd20701b61e13b8 | 57235522083cb011ca26aae8fdda96ee71805593 | /UdemyPrograms/UserInputExcer/user_input.py | d7e4badfc059ad32cb638abf18d3e9e5c2b7428c | [] | no_license | mrparmer/Python | 2fef63ecc936692ec5d99e72ac66bb931f2242c2 | 5d3b6b447889721481176708d4be87c86e024655 | refs/heads/master | 2020-03-29T01:23:42.001973 | 2018-10-07T02:41:51 | 2018-10-07T02:41:51 | 149,386,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | user_input= input("Enter a number: ")
print(int(user_input)**2)
| [
"37225891+mrparmer@users.noreply.github.com"
] | 37225891+mrparmer@users.noreply.github.com |
35ac0b974d2e672a37a882191546ee8fa07e7d3d | 0cc138aa5d5316cdc35cb7ba703df30a5a981cdf | /stockcode_update.py | a1ae9af3bbe0108df8095ebcb7627e9f0f73b2ac | [] | no_license | tyronedong/AnalystReportResearch | d47e0f1199b0562fc6534e34b5fcf7c768296b6c | ab3259ba4b169a104574725036f068d93f5e16bb | refs/heads/master | 2021-06-14T16:12:30.277223 | 2017-03-28T12:53:04 | 2017-03-28T12:53:04 | 72,734,477 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # -*- coding: utf-8 -*-
from pymongo import *
client = MongoClient('localhost', 27017)
db = client.AnalystReport
collection1 = db.Reports
insert_coll = db.Report
table_file = open('./data/id_code_table.txt')
lines = table_file.readlines()
dict = {}
for line in lines:
if(line == '\n'):
continue
tokens... | [
"noreply@github.com"
] | tyronedong.noreply@github.com |
4a3ff9a8e88e8868aec89209334ea37fbf3fb0d3 | a462a24ff937e151e8151f3a1bdc9c3714b12c0e | /2021EJOR/scripts/meprcw/meprcw_8_2001.py | 293656891fc70f001ebe66c6ec8d211cdbdef93c | [] | no_license | noeliarico/kemeny | b4cbcac57203237769252de2c50ce959aa4ca50e | 50819f8bf0d19fb29a0b5c6d2ee031e8a811497d | refs/heads/main | 2023-03-29T14:36:37.931286 | 2023-03-16T09:04:12 | 2023-03-16T09:04:12 | 330,797,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171,087 | py |
import numpy as np
import pandas as pd
import time
from kemeny import algorithms as alg
rep = 1
results = np.zeros(0).reshape(0,7+rep)
##############################################################
om = np.array([
[0,1006,965,883,1004,920,1012,963],
[995,0,1001,982,1028,960,932,979],
[1036,1000,0,924,978,987,1013,96... | [
"noeliarico@uniovi.es"
] | noeliarico@uniovi.es |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.