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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ef117315fbae27e86f664529875bec41ec46cc64 | 08a2fe9ecfdcdc4207a33031be22c7acd1bf3205 | /moviediff.py | bf14a59e462a6e5044a0dc73d3c986ecac9addef | [] | no_license | srajeevteaching/lab-9-willterrylab9 | 34bac1e8664aa0c9144aefbc223b3b3b5e596895 | e6b477aa0d26e171bb8d9e44a6a7817c850d3e5d | refs/heads/main | 2023-09-06T00:04:14.851083 | 2021-11-18T06:38:35 | 2021-11-18T06:38:35 | 429,313,616 | 0 | 0 | null | 2021-11-18T05:56:45 | 2021-11-18T05:56:40 | null | UTF-8 | Python | false | false | 1,119 | py | def read_file(filename):
data_list=[]
file=open(filename,"r")
for line in file:
data_list.append(line.split(","))
file.close()
return data_list
def fixlast(l):
for x in l:
x[-1] = x[-1].strip()
return l
def addprofit(l):
for x in l:
x.append(float(x[3])-float(x[2]... | [
"noreply@github.com"
] | srajeevteaching.noreply@github.com |
acd4675c6c81884f1de0a87ecd5223ba47ec7418 | 293ca4b8309bc632e7b9cab3899621aa7b8daa50 | /device_db.py | 19914cef19809e5d7047ceb1c926dbe64fb58cdd | [] | no_license | khoapham/device_db | 877d8246db3284538f5478bcbc6ceda72316f464 | cb6f090c35d5e26dacae50f57b8141ffeb3972c8 | refs/heads/master | 2021-01-20T00:04:01.110755 | 2017-04-22T14:30:47 | 2017-04-22T14:30:47 | 89,073,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!/usr/bin/env python3
import csv
import sys
def main(argv):
filename = argv[0]
DeviceID = argv[1]
print filename
f = open(filename, 'r+')
reader = csv.reader(f)
for row in reader:
# print row
# print row[0]
# print row[1]
if DeviceID == row[0]:
print... | [
"khoa002@e.ntu.edu.sg"
] | khoa002@e.ntu.edu.sg |
352bab04b5f300ec488b2c2277b3fcce8aa5430d | 0fd92b7d882a1edb5542f6600bb177dcad67ed50 | /powerful104/2476.py | 59884bdebe88950cc45e5841b1b8de057f17569f | [] | no_license | alpha-kwhn/Baekjun | bce71fdfbbc8302ec254db5901109087168801ed | f8b4136130995dab78f34e84dfa18736e95c8b55 | refs/heads/main | 2023-08-02T11:11:19.482020 | 2021-03-09T05:34:01 | 2021-03-09T05:34:01 | 358,347,708 | 0 | 0 | null | 2021-04-15T17:56:14 | 2021-04-15T17:56:13 | null | UTF-8 | Python | false | false | 317 | py | ans=0
for _ in range(int(input())):
a, b, c= map(int, input().split())
prize=0
if a==b==c:
prize=10000+a*1000
elif a==b or a==c:
prize=1000+a*100
elif b==c:
prize=1000+b*100
else:
prize=max(a,b,c)*100
if ans<prize:
ans=prize
print(ans) | [
"noreply@github.com"
] | alpha-kwhn.noreply@github.com |
f2635347110c452a2d60ced4e5326758ef7f8b40 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03359/s972946578.py | 710fd6d1cfa4dd159230bf87a4c4b7c3ef86d7e3 | [] | 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 | 95 | py | a,b=(int(x) for x in input().split())
if a <= b:
count = a
else:
count = a - 1
print(count) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
423a29699136b5f23a5fdc1c95a9e415a53b06d0 | 72ec8319850ef77e11fde0dd98feadb90410160e | /consumers/alexandria/consumer.dbwriter.py | ae0cd5002b1cbd3bf98ff472564c494539b701ae | [] | no_license | hiepnv89/karlnet | a99827783c81e884011933bfc6ac721bd51d5c17 | ee5f8dc5e877a0a4632d1cdd9a7d7cfa62ff7c22 | refs/heads/master | 2020-12-25T08:49:55.240661 | 2011-02-28T18:48:33 | 2011-02-28T18:48:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | # Karl Palsson, Dec 2010
# Uses the Library of Alexandria to save records into a db...
import alexandria
import logging
logging.basicConfig(level=logging.DEBUG, format="%(asctime)s %(levelname)s %(name)s - %(message)s"
,filename="/var/log/karlnet_alexandria.log"
)
log = logging.getLogger("main")
if __name__ == "_... | [
"github@tweak.net.au"
] | github@tweak.net.au |
0c68a59a1cb0e62dc2a892a08db6738e66662659 | 9d78cc3a9af07dab8af8d5d6f117710f461119f1 | /wheater_project/wheater_project/urls.py | 0da1f6704c9a8182e12c22124431602d048571c8 | [] | no_license | metealp/weather_app | c341d939d91b825adff50e771e6fd95530bad00b | ef99f5502f267f8a80ef63c7d5e3eea52463754e | refs/heads/master | 2022-07-03T10:26:47.114166 | 2020-05-10T21:01:20 | 2020-05-10T21:01:20 | 262,874,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | """wheater_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"kizilcaymetealp@gmail.com"
] | kizilcaymetealp@gmail.com |
56ef0b92f7e707ab22328cec6352563406a642e8 | 5e0f4f2b5011c312364859893d9ffeca41cc6997 | /blog/migrations/0004_remove_post_likes.py | 52a329daf2506fc3effbf363630158fdd135cac7 | [] | no_license | AshishBhoj/Django-dCoder-Blog | a09672302498fbb039ce94224ad6443f1599c328 | 4875da265a11fce696c6ca39070a30331603e94d | refs/heads/main | 2023-02-07T01:16:58.300316 | 2020-12-26T12:22:59 | 2020-12-26T12:22:59 | 324,508,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | # Generated by Django 3.1.2 on 2020-12-08 13:15
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_post_likes'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='likes',
),
]
| [
"bhojashish30@gmail.com"
] | bhojashish30@gmail.com |
e358e020b0dd01cb1f401a59c6dc293c3929cbad | 6ea69f9a4431837a36b04ab926ac9c565b8a5eb6 | /pydemic_ui/i18n.py | 53f5ca158c862fef6e82e4716ab8fbbb4df02fcd | [
"MIT"
] | permissive | WillAllmeida/pydemic-ui | e9fad4845c428f3e2f0e7a65913391c3216083b3 | f7c05d97489918736b0c7b1da4b0992bd77ed9a1 | refs/heads/master | 2023-01-24T13:49:27.219863 | 2020-10-07T18:11:02 | 2020-10-07T18:11:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | from gettext import gettext
from pathlib import Path
import sidekick as sk
LOCALEDIR = Path(__file__).parent / "locale"
def set_i18n(lang, language=None):
"""
Set locale and translations.
Examples:
set_i18n('pt_BR.UTF-8') -> set locale to pt_BR.UTF-8 and language to pt_BR.
"""
import ge... | [
"fabiomacedomendes@gmail.com"
] | fabiomacedomendes@gmail.com |
f720f762f3caed3f21ca10a9c8d47e0a0899d07f | 1a72a2b45174a909863f116941dc0abe3721ddbc | /python-api-develop/main.py | 373ce3870e611cbcc7ce958b15e2fc761a99a466 | [
"MIT"
] | permissive | yuhyeonkim/Scratch-Server | 9d5392b1a52b6d1a6708397c192646dfa345edfa | 967bd7ba66f4f1890b2bce679c11ed998d84973d | refs/heads/master | 2020-03-27T04:58:00.573320 | 2018-08-23T16:41:16 | 2018-08-23T16:41:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from modi import *
import time
import sys
m = modi.MODI()
time.sleep(1)
while True:
try:
command = sys.stdin.readline()
excute = compile(command,'<string>','exec')
exec(excute)
time.sleep(0.01)
sys.stdout.flush()
sys.stdin.flush()
except:
print()
... | [
"lsy920519@naver.com"
] | lsy920519@naver.com |
c02b9a839ebe2ebfa56fa8215cb5027047063541 | 2cc09013859f37c16d00c1c9c1d5bb945d640760 | /musicAPP/forms.py | 7f7b4c2fcda74161f0a765ebc0ac2a3c10a286eb | [] | no_license | alexgg94/SITW_project | f0ccaaf7a557f1a43262a00bd1199e11be40cc1b | ec8658550908a834edc187425ff0c65cc570042c | refs/heads/master | 2021-01-17T15:24:44.270072 | 2016-06-09T13:47:06 | 2016-06-09T13:47:06 | 54,984,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from django.forms import ModelForm
from models import *
class ArtistForm(ModelForm):
class Meta:
model = Artist
exclude = ('user',)
class AlbumForm(ModelForm):
class Meta:
model = Album
exclude = ('user',)
class TrackForm(ModelForm):
class Meta:
model = Track
... | [
"alexgg94@hotmail.com"
] | alexgg94@hotmail.com |
3805b858af97f483100ebd52d7cdb7dc8bc0086e | 70355e601df30a11d77314a1871634dbeb1ad586 | /pyspat.py | 1e09345fcb5a414bd1c70c0816f839023ec565c1 | [] | no_license | agaidus/pyspat | 98cfa39d02803e4a7e4e021552e3c3e71797e4f3 | 30b6e4a9664e52657daa7e6db88730657b4c353f | refs/heads/master | 2021-01-20T19:13:15.223361 | 2016-07-29T22:19:03 | 2016-07-29T22:19:03 | 62,422,379 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | import pandas as pd
def read_coda(index, chain_1, chain_2, thin_factor=None, use_vars=None):
index_df=pd.read_csv(index,sep='\t',header=None,names=['var','start','end']).set_index('var')
if use_vars:
index_df=index_df.loc[use_vars]
posteriors=pd.DataFrame()
for num,codafile in enumerate([chain_... | [
"andrew.gaidus@gmail.com"
] | andrew.gaidus@gmail.com |
ef186d94dcb5ef11e08299758536793beafef58b | 9f118daa08b763a55c361997a24d43281665a92e | /project3assessment/manage.py | e10a78aa5a80f314fc4ffdaacfbb5bc24809ba29 | [] | no_license | pdccheung/project3-assessment | 92c6d8181f8ea9ec16fb5bcd545e40b9009a79f7 | 035a28a181c22df3331ed5db777da793333fd6dc | refs/heads/main | 2023-03-30T22:56:39.503849 | 2021-04-09T21:56:21 | 2021-04-09T21:56:21 | 356,375,389 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project3assessment.settings')
try:
from django.core.management import execute_from_command_line
... | [
"pdccheung@gmail.com"
] | pdccheung@gmail.com |
023444e674366b02773251fd9bf68c86b21e7927 | 4da937474505923797032a13bb19d61092ccfc47 | /bertopic/plotting/_hierarchy.py | e4f1f9008c25109b9718e69eb7e04c467d1ffb65 | [
"MIT"
] | permissive | MaartenGr/BERTopic | 8e4c533b2fb5524b4f10510b25f82f570c684f56 | 951b97645acdf55e184889c761a83d2e1d73812f | refs/heads/master | 2023-09-01T20:46:35.921196 | 2023-08-30T09:16:41 | 2023-08-30T09:16:41 | 297,672,263 | 4,587 | 623 | MIT | 2023-09-12T10:14:14 | 2020-09-22T14:19:29 | Python | UTF-8 | Python | false | false | 14,483 | py | import numpy as np
import pandas as pd
from typing import Callable, List, Union
from scipy.sparse import csr_matrix
from scipy.cluster import hierarchy as sch
from scipy.spatial.distance import squareform
from sklearn.metrics.pairwise import cosine_similarity
import plotly.graph_objects as go
import plotly.figure_fact... | [
"noreply@github.com"
] | MaartenGr.noreply@github.com |
b3a89023ea3508c3e11a114dd212533d8cafa3d2 | c7f43c4cc0ee84a5fe246b67f51e30b8d726ebd5 | /ml/m30_pca2_5_diabetes_RF.py | cf6c7c7cf6d4e1510dfd2fa544ccd37999038961 | [] | no_license | 89Mansions/AI_STUDY | d9f8bdf206f14ba41845a082e731ea844d3d9007 | d87c93355c949c462f96e85e8d0e186b0ce49c76 | refs/heads/master | 2023-07-21T19:11:23.539693 | 2021-08-30T08:18:59 | 2021-08-30T08:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | # PCA : 차원축소, 컬럼 재구성
# RandomForest로 모델링
import numpy as np
from sklearn.datasets import load_diabetes
from sklearn.decomposition import PCA
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler
from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor
fro... | [
"hwangkei0212@gmail.com"
] | hwangkei0212@gmail.com |
5e6329d36bfac2c9dcfcca257afb2638cd213e39 | 1270babbb46005fb538762dde50531a4e403bb8c | /Pesticide/wsgi.py | faf96b04774c21a220a8e4dcbb90169d77573cd0 | [
"MIT"
] | permissive | huiyichanmian/Pesticide | c9348f1cb131f762635f7688ca442507937e9cf7 | 0ef60059a49a3ffd463ad6a9cbffce63fd550824 | refs/heads/master | 2021-06-18T13:20:17.713401 | 2021-03-01T12:44:47 | 2021-03-01T12:44:47 | 179,020,520 | 1 | 0 | null | 2021-03-01T12:42:41 | 2019-04-02T07:15:43 | Python | UTF-8 | Python | false | false | 411 | py | """
WSGI config for Pesticide project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"huiyichanmian@yeah.net"
] | huiyichanmian@yeah.net |
a344bfbfba2175a962b94b0450d79418dd1cd225 | 8246e9fbdecdb37651e0d09497fd9428e434f33c | /ServiceCatagory/urls.py | e17e6184bb33e3ef9d66c52d6ec20aae7d197828 | [] | no_license | rajeev1234/Landing-Page | 479995026ab01fc504a1e9502e7763dc04266009 | 4bfd22a6a1776907ba78b3dc9037064c820b049e | refs/heads/master | 2020-03-08T13:37:20.253252 | 2018-04-05T06:33:26 | 2018-04-05T06:33:26 | 128,162,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py |
from django.urls import path
from . import views
urlpatterns = [
# Path to list view of ServiceCatagory : ServiceCatagory_list
path('', views.ServiceCatagoryListView.as_view(), name='ServiceCatagory_list'),
# Path to create new ServiceCatagory : ServiceCatagory_new
path('new/', views.ServiceCata... | [
"ccrcian.rajeev1@gmail.com"
] | ccrcian.rajeev1@gmail.com |
3e1af95de411a092930b8bd63bd882b86d77f207 | 34c46c67f7142b3b9d6e9d6ff2b13e5e7588f6be | /success_institute/api/migrations/0005_student_group_active.py | a3ae6257c4240f15934b240a0fc82b954ca8630d | [] | no_license | cedenoparedes/susccess_institute1 | 6109ca825d0a63e2c356b054f2ee4f6e7259b083 | 63fda0f333920c7692004962bea2afdcba1087fc | refs/heads/master | 2020-04-25T19:16:24.364943 | 2019-03-21T00:18:36 | 2019-03-21T00:18:36 | 173,013,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # Generated by Django 2.1.7 on 2019-03-07 02:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0004_auto_20190306_2240'),
]
operations = [
migrations.AddField(
model_name='student_group',
name='active',
... | [
"cedenoparedes04@gmail.com"
] | cedenoparedes04@gmail.com |
957ef080741335e228ce85e1f65803d1ab617bff | eec3beefc8b2ff2ff2bc01718b0fccc6b1cecc2f | /python/hashmap_repeated_word/hashmap_repeated_word/linked_list.py | aa5e3213d737176661f9eccd17d5c57681fd1309 | [
"MIT"
] | permissive | RoaaMustafa/data-structures-and-algorithms | c879bab9b9d9544d00fc83c53c0385a4707b9021 | 3a756dd5b3feae338eaac28e9229bc37ad6013e2 | refs/heads/main | 2023-07-31T18:05:38.115203 | 2021-09-13T15:44:43 | 2021-09-13T15:44:43 | 373,881,387 | 1 | 1 | MIT | 2021-09-14T19:35:02 | 2021-06-04T15:16:03 | JavaScript | UTF-8 | Python | false | false | 1,080 | py | class Node:
''''
THis the class is responsiple to create the Nodes
'''
def __init__(self, value=""):
self.value = value
self.next = None
def __add__(self, other):
return Node(self.value + other.value)
def __str__(self):
return str(self.value)
class LinkedList():
'''
This Class Respo... | [
"labushanab14@gmail.com"
] | labushanab14@gmail.com |
5c9802a52b5a56698daf46fcadcb8d7266869336 | e70d0bcc547d63b338ff51c253aa95d78ea99992 | /xdl-algorithm-solution/GwEN/script/utils.py | be7aeb17b7c738b95f77cbbfa27b6cad7269fa3c | [
"Apache-2.0"
] | permissive | niumeng07/x-deeplearning | 2513f7ba823521c40e0346284f5dd0aca5562e40 | 6d3bc3ad4996ab8938c56d8a834af07a04dc2f67 | refs/heads/master | 2020-04-12T23:06:24.447833 | 2019-07-06T16:06:16 | 2019-07-06T16:06:16 | 162,808,758 | 2 | 0 | Apache-2.0 | 2018-12-22T12:18:01 | 2018-12-22T12:17:59 | null | UTF-8 | Python | false | false | 19,552 | py | # Copyright (C) 2016-2018 Alibaba Group Holding Limited
#
# 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... | [
"zhougr1993@163.com"
] | zhougr1993@163.com |
571ad1ed92f668725894fda736f6a256d49267df | c4f01eec090833762b884c2078161df087d09b0d | /Design of software systems/Лаба 6/Scrapyard_Python/main.py | 0f4823e7f1f4c5f38b15f88f0869b4765e3609a9 | [] | no_license | areyykarthik/Zhukouski_Pavel_BSU_Projects | 47a30144c5614b10af521a78fba538a0e9184efa | 3540979e680732d38e25a6b39f09338985de6743 | refs/heads/master | 2023-08-07T02:49:34.736155 | 2021-10-05T21:57:03 | 2021-10-05T21:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,386 | py | from tkinter import *
from tkinter import messagebox
import sqlite3
CurrentID = 1
CurrentName = ""
CurrentPrice = 0.0
CurrentAmount = 0
CurrentGood = [0, "", 0.0, 0]
CurrentOrder = []
Window_SignIn = Tk()
Window_SignIn.withdraw()
Window_SignUp = Toplevel(Window_SignIn)
Window_SignUp.withdraw()
Window_OnlineShop =... | [
"shist.pupust@mail.ru"
] | shist.pupust@mail.ru |
57d3e05c6371efd1ecd4ec25c529364cb665d6be | 804f74c2428a300a7c3216767e941ae41023a273 | /Python/Book/scipybook2/codes/traitsuidemo/Dynamic_Forms/enabled_when.py | f03bb539868319b0e854b4d675141caf64133ac7 | [
"BSD-3-Clause"
] | permissive | leeweizhe1993/Individual_project | 594b8cd2058ffd8cff459bbd2093547480a37465 | 95479cd0c298de4c18718b0477baada3384bcad2 | refs/heads/master | 2022-08-08T20:23:03.957022 | 2022-08-05T10:04:10 | 2022-08-05T10:04:10 | 132,337,352 | 2 | 0 | null | 2020-02-20T06:49:04 | 2018-05-06T12:42:40 | Jupyter Notebook | UTF-8 | Python | false | false | 3,031 | py | """
Dynamic enabling parts of a user interface using 'enabled_when'
How to dynamically enable or disable components of a Traits UI view, depending
on the value of another trait.
The demo class "Person" has a set of attributes that apply to all instances
('first_name', 'last_name', 'age'), a set of attributes that app... | [
"lee_excited@usddeiMac.local"
] | lee_excited@usddeiMac.local |
9db9821260783c8ab2205fe0109af946caaa20e8 | 3806db5b4bb7a638f30c818a29ccaf2b0ddb2836 | /test_141.py | 47edc016610b2369996717a30fdc8799c917f569 | [] | no_license | EomAA/fenics-qa | d0a687a7b84c51417e96eeeef9855c0d4ba27dea | c37a36a14450d0e7f6432c4726c5d96e0d6c4e96 | refs/heads/master | 2021-12-15T12:07:10.316478 | 2017-08-18T09:16:01 | 2017-08-18T09:16:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | import dolfin
mesh = dolfin.UnitSquareMesh(1,1)
dX = dolfin.dx(mesh)
fe = dolfin.FiniteElement(
family="Quadrature",
cell=mesh.ufl_cell(),
degree=1,
quad_scheme="default")
cppExprCode='''
namespace dolfin
{
class CppExpr : public Expression
{
public:
CppExpr(): Expression(0)
{
}
vo... | [
"miroslav.kuchta@gmail.com"
] | miroslav.kuchta@gmail.com |
4eddae4f2f417e45124f27b06c7bfe812d0c2e2a | 2d9af2a47345a20e997a59848b4486560488ca87 | /middleware/reuters_pre_process.py | f395f6fddfa24669b54cdf54af9d3ca6c1d40609 | [] | no_license | OmarAlmo/beam | 6e32c05821050b8a85f639a1529ba391bf961691 | e47de34140d868a35ca9eacc5c2d01bdb0898385 | refs/heads/master | 2020-12-19T07:29:17.274530 | 2020-04-22T14:26:45 | 2020-04-22T14:26:45 | 235,664,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,770 | py | if __name__ == "__main__" and __package__ is None:
from sys import path
from os.path import dirname as dir
path.append(dir(path[0]))
__package__ = "middleware"
from bs4 import BeautifulSoup
import csv
import pandas as pd
from dotenv import load_dotenv
import sys, os, glob
import middleware.utils as ut... | [
"omar.almoallim@gmail.com"
] | omar.almoallim@gmail.com |
789536d6d72131bf24cdf2d202d23df8aae58dc5 | 9cef005a0846f2cc5eb803207accd66b4634a9ba | /tiebaJieyan2/items.py | 69369749b5803b6b989f02a99482c7e843a42a49 | [] | no_license | lingyunGH/tiebaJieyan_postCrawl | f22075ac113db34d7eef03de1b34589eba00eb1f | ad38de6e70b9e7752bbaa9796bada116e2b6dc56 | refs/heads/master | 2021-01-13T12:58:45.930907 | 2017-01-14T03:12:47 | 2017-01-14T03:12:47 | 78,738,047 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from scrapy import Item,Field
class postsItem(Item):
#主题id
thread_id = Field()
#不同楼层帖子id
post_id = Field()
#楼层发帖内容
content = Field()
#不同楼层... | [
"lingyunligl@gmail.com"
] | lingyunligl@gmail.com |
1e28f71e74ae3df6a1a85b9250ee1de63dc104f7 | b3231cce195c6fe641945b9136f1f284ad420091 | /hw4/tree.py | 799356123a7170872f159c490fc7215e50b0a72e | [] | no_license | blackdoor-specialteams/Data-Mining | 11d48eb1a1112fb414472c02032ebe606896ba1e | a6efc65c4557ff59dc5cdd41168e032438ae78bd | refs/heads/master | 2020-12-11T06:06:36.254686 | 2014-11-01T04:42:17 | 2014-11-01T04:42:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py |
class Tree:
def __init__(self, node_label, node_value):
self.node_label = node_label
self.node_value = node_value
self.subtrees = []
def append(self, subtree):
self.subtrees.append(subtree)
def __str__(self):
result = '(Node '
result += '<... | [
"cjburesch@gmail.com"
] | cjburesch@gmail.com |
c66d9db14f93620465679c094af51dd5a7168ce2 | 074e49a7b1f4b51fa0295f351404e77c1bbd2458 | /unit43-spider/random_data.py | 37b022279f4b0527f8fa4b8c719a19236e0fff35 | [
"Apache-2.0"
] | permissive | guancgsuccess/python_spider | cd5a3d93ea15039e71561302c1bfb0ef7bcc1c19 | f4b95312f0ffd0e3e768868e363b9511ed6ea3c2 | refs/heads/master | 2020-04-11T21:14:59.330111 | 2018-12-20T09:47:50 | 2018-12-20T09:47:50 | 162,099,644 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | #!/usr/bin/python
# #coding=utf-8
from faker import Faker
#import happybase
#import pymysql
import sys
x = "w"
sys.stdout.write(x+'/n')
# connection = happybase.Connection('localhost')
# print(connection.tables())
# table = connection.table('test')
# for key, value in table.scan():
# print(key, bytes(value))... | [
"849962874@qq.com"
] | 849962874@qq.com |
3555916bb6591945ca3f9a04cff58a0410f83a12 | b3c2ff6ce970c660c037eb68175cf013b7a150d0 | /ontology_learning/utils/persistance.py | 752ed8ecd3ade4bedc6ce65abec058e6244288c1 | [
"MIT"
] | permissive | jromero132/bachelor_thesis_code | 816a05b36fe8c682364e997aa90c3e2bfb2481f3 | 1eea2876abdece9628d6fdec115e93bbf2722e99 | refs/heads/master | 2023-08-23T09:24:31.400964 | 2021-10-22T04:25:32 | 2021-10-22T04:25:32 | 293,628,084 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | # built-in packages
from pathlib import Path
# own modules
from ontology_learning.data_type.medline.medline_article.medline_article import MedlineArticle
def save_medline_article(
medline_article: MedlineArticle,
folder_path: Path,
*,
filename: str = None,
split_by_sentences = True
) -> None:
absolute_folder_p... | [
"josea132.romero@gmail.com"
] | josea132.romero@gmail.com |
a6874a5c4dcf1b7e585ac8ed93ad66aa8f9b6d15 | 317fba3da5a319c8e49d4e8bd2950be338caa9ed | /base_python/video/video_input.py | 528d34b360b5e24eddd431e3a1011f1c68ff27f7 | [] | no_license | daozun/Python | f1120a489807145c9047ef83c600641f3adf65d2 | 0ede0190ed2162b87065b884c8b825680cf94b32 | refs/heads/master | 2021-01-15T22:51:36.965466 | 2017-12-19T12:06:37 | 2017-12-19T12:06:37 | 99,919,439 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | #coding=utf-8
name = input('请输入你的姓名')
print(name)
print('我的名字是%s'%name) # %s和%x这个是表示字符串的
age = 18
print('年龄是%d'%age) # %d和%x这个只能表示数字类型的,不能是其他类型
# python2和python3的input是不一样的
# 在python2中input里面的内容被当做表达式进行解析,如:
number = input('请输入姓名:')
print(number) # 在Python2中打印出来的结果会报错
number = input(4+5)
print(number) # 这次打印出来的就是正确的值... | [
"18341275071@163.com"
] | 18341275071@163.com |
0e535165547e2b25ce06072821dc32d3a608475f | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/sieve-244.py | 29dca34d6015fcd1da12c7a36d7a12abcdf185e5 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,581 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
fbd544d77c141d8e89b46303f1e874f884bf2628 | 6ef6837af1efb4a4ed8a890a9a98d132153ec673 | /1 june/Dummy.py | af20155c30487b06632bdb277a00947283f8ce16 | [] | no_license | japneet644/Random-codes | 8cfd76f4607b261bce75e3cc407eb83c189772af | 7b799707070ff0988745efe9973a2c704cbd8a68 | refs/heads/master | 2020-04-11T16:07:56.343529 | 2019-08-12T05:55:31 | 2019-08-12T05:55:31 | 161,913,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # import data_loader
# training_data = data_loader.load_data_wrapper()
###########################################
#=========================================
# import vae_github
# VAE = vae_github.VariantionalAutoencoder()
# VAE.run_single_step()
#===========================================
##########################... | [
"noreply@github.com"
] | japneet644.noreply@github.com |
45b79d614941f552a97832052bd808a50045e26d | e7fd5a13db9738f89e51be8905d2cb7102efa07a | /utilities.py | a5a901da452c1951764ddea2c2084b45f6e33ac9 | [] | no_license | leakey1905/chordRecog | 8397f85ba9c54fb384232ff377935291fc33caec | 5d5b51e03e4ffeb3c8d7bf736e9142d75c2bb84c | refs/heads/master | 2021-01-12T06:23:17.198364 | 2012-04-29T17:30:33 | 2012-04-29T17:30:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | import numpy as np
def logsumexp(lnX, axis=0):
'''
Calculates the sum of the matrix lnX along the specified axis
assuming X is in the log domain. The returned sum is still in
the log domain. Minimizes possibility of underflow/overflow
by normalizing with respect to the max value along the summation... | [
"gregory.burlet@mail.mcgill.ca"
] | gregory.burlet@mail.mcgill.ca |
c3343898a867e0bfe937e35ada2aa817d78531ba | 57a53409b01bdac3650cd46991e35185cd381926 | /old_practice_problems/arcade/intro-problems/easy/alphabeticShift.py | 59c2e46393dff7d333c49d98f42f1a3c4dc65bce | [] | no_license | LPRowe/coding-interview-practice | b72afc2792bcb24a7d9d1ad6554929aea78174c6 | 100b7d6ea5422322e0009959bef2627712cb7551 | refs/heads/master | 2021-07-12T11:46:39.219737 | 2021-02-23T00:56:17 | 2021-02-23T00:56:17 | 238,816,425 | 8 | 6 | null | 2021-02-26T22:25:56 | 2020-02-07T00:57:00 | Python | UTF-8 | Python | false | false | 1,030 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 10 22:23:31 2020
@author: Logan Rowe
Given a string, your task is to replace each of its characters by the next
one in the English alphabet; i.e. replace a with b, replace b with c, etc
(z would be replaced by a).
Example
For inputString = "crazy", the output should ... | [
"rowe1227@gmail.com"
] | rowe1227@gmail.com |
c2fac942a09ddd318f09ea8418e11b39a3348cbc | ebbababc0cb98b41c8afbea52bcb32c92e26b698 | /text/symbols.py | 3c8088a734fd8deb42bc62cdae150a6aea3570ac | [
"MIT"
] | permissive | LuckerYi/Fastspeech | 073e629a3c8169af39df0f45e4bddc821d849853 | c4cc7b855eeaeeb7829d29d9c89443f00f6ab13a | refs/heads/master | 2023-04-06T23:42:15.320650 | 2020-11-25T12:11:56 | 2020-11-25T12:11:56 | 315,915,091 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | """ from https://github.com/keithito/tacotron """
'''
Defines the set of symbols used in text input to the model.
The default is a set of ASCII characters that works well for English or text that has been run through Unidecode. For other data, you can modify _characters. See TRAINING_DATA.md for details. '''
from tex... | [
"yiyh@mail.ustc.edu.cn"
] | yiyh@mail.ustc.edu.cn |
e1c63b146d5b4b6fe8f024fe9888897c3a36377b | 9b580da551bf0e77e377688ace45fc4a3d9e6c02 | /src/replicated/player_public.py | 3f2a55282be5258e8012d9298f6bca791ff9eced | [
"MIT"
] | permissive | andreamicheli/cunegonda-online | 1e8b2c3198ed5cfa29fab27fd562916ec55dca50 | b4d7ec6c4c182dfea1adabc6777ad90b33c7731e | refs/heads/master | 2022-04-22T18:39:53.559251 | 2020-04-17T22:56:16 | 2020-04-17T22:56:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,634 | py | # mette insieme le variabili di uno stesso giocatore usate dal game_state
from card import *
from comunication import *
class PlayerPublic:
def __init__(self, game_state, index):
self.game_state = game_state
self.index = index
self.username = ''
self.punteggio_tot = 0
vuot... | [
"37435103+Tommimon@users.noreply.github.com"
] | 37435103+Tommimon@users.noreply.github.com |
638e247ec434e028a691ed5e3ef433f2d2463d02 | aeb596ae68b3fd81eec23bc9dad0ce9a5d0fc3a2 | /drive.py | 2ca40754f480678bfaf5e20cdfdea2c29841aa4c | [] | no_license | chrismarth/CarND-Behavioral-Cloning-P3 | 0fea538e14f34bba133386d8d0157aff3ffe4853 | 3936257d0b7703bc7408798755b17ef5d9a1a472 | refs/heads/master | 2021-01-18T23:23:48.737991 | 2017-04-17T12:53:50 | 2017-04-17T12:53:50 | 87,107,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,930 | py | import argparse
import base64
from datetime import datetime
import os
import shutil
import numpy as np
import socketio
import eventlet
import eventlet.wsgi
from PIL import Image
from flask import Flask
from io import BytesIO
from keras.models import load_model
import h5py
from keras import __version__ as keras_versio... | [
"chrismarth@gmail.com"
] | chrismarth@gmail.com |
939cb859046ccc7b666772c0bc8e0e5b6a589cac | 2e1669a89e3bd4bcd52c0e5372f96a52d8b490de | /tests/test_analyses/test_exergy_analysis.py | dbfb97c669735e7f02499351546c340c972b9109 | [
"MIT"
] | permissive | aalfaizz/tespy | f62603dc07633bd58cdb09541966742d15d32f9a | 6284ad125e24c6ae43cb736056ffb8587ca9d821 | refs/heads/master | 2023-03-02T17:37:09.126226 | 2021-01-27T10:43:19 | 2021-01-27T10:43:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,934 | py | # -*- coding: utf-8
"""Module for testing network properties.
This file is part of project TESPy (github.com/oemof/tespy). It's copyrighted
by the contributors recorded in the version control history of the file,
available from its original location
tests/test_networks/test_exergy_and_entropy_analysis.py
SPDX-Licens... | [
"francesco.witte@hs-flensburg.de"
] | francesco.witte@hs-flensburg.de |
84e64eadf5b76578b8362df9ad4ae1f9b1b4c253 | 67a602f5cad90472ad988a2f8e5f51399fabc0a9 | /10.Replace all negative values in a data frame with a 0.py | ec14177bc36ed86510f481b90626ccc22d74fde1 | [] | no_license | Surajkumarsaw1/practial2021 | 25778508c780384fe675618124197a0b138e9df1 | 6148199b3558cedbfddd4ba56dc2818b79180978 | refs/heads/main | 2023-03-18T05:27:24.928299 | 2021-02-22T12:56:28 | 2021-02-22T12:56:28 | 322,231,204 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | import pandas as pd
data_dict = {'A':[1,-5,3,-7],
'B':[-5,8,-7,2],
'C':[5,-4,-4,2],
'D':[-6,5,7,-4]}
df = pd.DataFrame(data_dict)
print(df)
df[df<0]=0
print(df) | [
"surajkumarofraj005@gmail.com"
] | surajkumarofraj005@gmail.com |
876cee9c1af48a27869b2a57592e96bcf6ced67e | b5c026206b817802442d036b538dd289b7b991a3 | /detector.py | a55fb4318655247f7eb674ab91424280889009fd | [] | no_license | SimranSingh2611/Spam-Classifier-using-Naive-Bayes | ef343f39ce33c03802a7f4fb384e7fcdb4ed4bfe | 26ec9792f9a4659cc08253e8bd82a5d036af0df1 | refs/heads/master | 2020-03-22T15:58:21.183452 | 2019-01-02T01:46:01 | 2019-01-02T01:46:01 | 140,293,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | import _pickle as cPickel
import os
from sklearn import *
from sklearn.externals import joblib
from collections import Counter
def load(clf_file):
with open(clf_file) as fp:
clf=c.load(fp)
return clf
def make_dict():
direc= "enrov/emails/"
files = os.listdir(direc)
emails = [direc + email ... | [
"36740189+SimranSingh2611@users.noreply.github.com"
] | 36740189+SimranSingh2611@users.noreply.github.com |
f43f6463acdc39d10f02ae51fc4af4a2230dae62 | ad53cf4e7e78f1be018d67c431795cfccd2650c1 | /conf.py | 7260cd2f3487cd43d3fee1c26e330e03191bfbca | [] | no_license | SenseTecnic/wotkit-py | ca8b3b4b65595a754dd8c0ca0e4e20e26adf87c7 | 653c29a4a5da5a7dfe890b2afb6da44a6a502db5 | refs/heads/master | 2021-01-20T10:42:27.526911 | 2013-11-26T19:55:15 | 2013-11-26T19:55:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,682 | py | # -*- coding: utf-8 -*-
#
# wotkitpy documentation build configuration file, created by
# sphinx-quickstart on Thu Aug 15 11:31:01 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | [
"mduppes@gmail.com"
] | mduppes@gmail.com |
e5cc28d0fc13ff599b9914b76c1307cf1ea66e79 | c644d0214aae1fd330b070d73cf737b64982403a | /reports/views.py | a84703eebffcd603ac7cc9194f203cbdcbac5abe | [
"MIT"
] | permissive | TrendingTechnology/miridam | 9ce55a079859b421c7a095d7fc59053d1e90fa74 | 92dd53503eedd4d1ecec695c2d180db67c5d9a77 | refs/heads/main | 2023-07-19T11:11:51.275483 | 2021-09-15T00:54:04 | 2021-09-15T00:54:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from django.shortcuts import render
from django.views import generic
def reports(request):
template_name = 'reports.html'
return render(request, template_name)
| [
"wesleysousukee@Gmail.com"
] | wesleysousukee@Gmail.com |
9841f27509f354d298bb749aa7dcd399fe42e670 | 640285977cca357f18a30d4ead128276aabda807 | /ecom/apps/store/migrations/0008_productimage.py | b0454c926f1a81190ef1de737b794ecd5219739b | [] | no_license | manos-mark/django-vue-ecom | 71bb413505615ab4972805cae0830dfeb37cc8a5 | 074365b8da9d0202a8ea89c668a8d85de8728410 | refs/heads/master | 2023-03-13T08:44:14.722177 | 2021-02-09T11:13:23 | 2021-02-09T11:13:23 | 331,655,560 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | # Generated by Django 3.1.4 on 2021-01-23 23:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('store', '0007_auto_20210123_2019'),
]
operations = [
migrations.CreateModel(
name='ProductImage... | [
"manos.mark@gmail.com"
] | manos.mark@gmail.com |
b87ef96b5687615997f9f0dcbc5f4460ab11a435 | 35d7ce514ac257cb7828bb1293a2c6c9b131519a | /mahalanobis.py | 5490ec14d495aed6cda7ea0ffda00f555f7aea43 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | maria-pedroto/gpsresilience | f1c6aa50e4d5e78f53949aee59905fd96f217858 | 7f7774baa9c47618cc72a815af96fb324b554fda | refs/heads/master | 2020-12-25T00:06:48.041456 | 2015-03-10T17:26:45 | 2015-03-10T17:26:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,266 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 30 19:28:30 2014
@author: Brian Donovan (briandonovan100@gmail.com)
"""
from tools import *
from numpy import transpose, matrix, nonzero, ravel, diag, sqrt, where, square, zeros, multiply
from numpy.linalg import inv, eig
from random import random
#Represents a set of ... | [
"briandonovan100@gmail.com"
] | briandonovan100@gmail.com |
e1231750db0a1e985325d00c8e7c0ea201311964 | 4b1d8878a524d68f9de36dc4d8ee85ee22eca386 | /cms/app/tests/test_models_entry.py | 8e2712e7959b54b69b930a2408993dbaca8069ef | [
"MIT"
] | permissive | c2masamichi/webapp-example-python-flask | 74f2150f841b3ecc78c3e1f37f820744fb27618a | c9da61e33e0dfc8f12af0f9a1e75583f30060a27 | refs/heads/master | 2023-08-08T13:51:36.053957 | 2023-07-15T14:40:04 | 2023-07-15T14:40:04 | 204,945,105 | 0 | 0 | MIT | 2023-08-02T02:21:55 | 2019-08-28T13:59:54 | Python | UTF-8 | Python | false | false | 808 | py | import pytest
from cms.database import db
from cms.models import Entry
@pytest.mark.parametrize(
('title', 'body'),
(
('a' * 101, 'created on test'),
('created on test', 'a' * 10001),
),
)
def test_create_validate(app, title, body):
author_id = 1
with app.app_context():
wi... | [
"19793735+c2masamichi@users.noreply.github.com"
] | 19793735+c2masamichi@users.noreply.github.com |
2a7cda4e0bdee09604f71898c8a75b3dffed0a13 | 7da537fa402f3372b94471493f9df37cb8baf360 | /web_lab5/Server/Server/urls.py | 8c814231071aab0e44ebf6207c9bbb449351831b | [] | no_license | MarochkanychDen/Web_labs | bb3f889bbb1488678a8800790e8e06c8f78109aa | 8850755e3ef94c52fb11fd69dc0693e88dbb2011 | refs/heads/main | 2023-04-20T02:27:52.861224 | 2021-05-09T17:54:15 | 2021-05-09T17:54:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | """Server URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"79100376+MarochkanychDen@users.noreply.github.com"
] | 79100376+MarochkanychDen@users.noreply.github.com |
254f9a2de96a5ade4b17dcfc014464b148030e06 | 11fa644a0d5c8ca5a9b5d2d080c2e1665a8da21a | /Obaid.py | b646e7af5ab241f84067a615d5e1ab904b2336c4 | [] | no_license | aleykashanbrand/Ksubrand | 7f9f1e8fdfb4adf3b2e4c9ffffa2a35ec4b258a7 | 2fae396e818c2a52cf45c827aa314dfe5d98abd1 | refs/heads/main | 2023-07-13T14:32:33.454299 | 2021-08-27T19:03:30 | 2021-08-27T19:03:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,474 | py | #!/usr/bin/python2
#coding=utf-8
#Author iZ Rana MZ
#NAM TU SUNA HUG...
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,getpass
os.system('rm -rf .txt')
for n in range(50000):
nmbr = random.randint(1111111, 9999999)
sys.stdout = open('.txt', 'a')
print(nmbr)
s... | [
"noreply@github.com"
] | aleykashanbrand.noreply@github.com |
fdf1f910d4080b4f1dee917105daa72748006759 | f9b154597fe60c1eb1ef3204a10c327d3e2e873f | /config.py | fa61e1894ea521301b0988e549eafefde24ad50d | [] | no_license | riya202090/aws-live1 | 3c04815178d4eb6c64817b388c1d9d1c037ecb3d | c169a0923eb06971812b9601221510eabb1c1d54 | refs/heads/master | 2023-08-03T12:49:28.323091 | 2021-09-09T14:21:00 | 2021-09-09T14:21:00 | 404,748,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | customhost="employe.csnwxc4xcjx7.us-east-1.rds.amazonaws.com"
customuser="admin"
custompass="Password123"
customdb="employee"
custombucket="addtoemployee1"
customregion="us-east-1" | [
"appcomp12@outlook.com"
] | appcomp12@outlook.com |
ab485d603cdf8b1266fc5247259ff1e8d5086b1b | 3fd4324929ed816eddf8e64647e28628c9923d1d | /Problem1.py | f57de5301f2a53c4d2c23245ab9507b9ba1b950a | [] | no_license | roger-teran/project_euler | f3c047abc1f66f120b0e48998ef22f7a41245332 | 6150469d966f972abf9f6f21854b4553ed39605e | refs/heads/master | 2021-05-29T22:56:03.691183 | 2015-11-16T19:03:28 | 2015-11-16T19:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | """If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000."""
x = 0
for num in range(0, 1000):
if num % 3 == 0:
x += num
elif num % 5 == 0:
x += num
print(x)
# ano... | [
"r97teran@gmail.com"
] | r97teran@gmail.com |
52b43407be626cc5aa2ace27d510ae660363df89 | 2f651074ffa621d0c43a0c831e78a74bf38d5146 | /tests/python/client.py | 6515f9f2c56c8ee7cead7193b4ea725fef2c4092 | [] | no_license | agdsn/mighty-detour-documentation | 82cabd6bc9bb6515ba2898e46dcc13c14f6549aa | f14baed83af428aead2c8d51c77853baa0127696 | refs/heads/master | 2020-03-29T11:46:59.792934 | 2018-09-28T12:05:33 | 2018-09-28T12:05:33 | 149,870,510 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | import gevent
import json
import sys
import time
from gevent import pool
from gevent import socket
BASE_PORT = 5000
def communicate_tcp(id):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.bind((sys.argv[1], BASE_PORT + id))
s.connect((sys.argv[2], 4999))
payload = {"id": i... | [
"Richard.Moerbitz@mailbox.tu-dresden.de"
] | Richard.Moerbitz@mailbox.tu-dresden.de |
aab3d5f4fcf039292e9e675febb1d2c545bee017 | d9e08fdaf07a242a6fb071ff47bb8aaadba86c72 | /2016Vertexing/GenerateEfficiencyTable_KillTracks.py | 4c63bf0afa83f0518d2e6deb06ccfc74c7c2853a | [] | no_license | mrsolt/HPS | 8d6577b54979b463c2ca8cc6d66db8b704df4ed4 | 2678da7801daf0eb314d11f837e235138ebe8340 | refs/heads/master | 2021-01-19T03:43:50.264869 | 2020-09-24T18:35:19 | 2020-09-24T18:35:19 | 46,081,219 | 1 | 2 | null | 2020-08-05T21:54:12 | 2015-11-12T21:13:52 | Python | UTF-8 | Python | false | false | 49,043 | py | #!/usr/bin/env python
#Author Matt Solt mrsolt@slac.stanford.edu
import sys
import array, math
import numpy as np
import random
import ROOT
from ROOT import gROOT, gStyle, TFile, TTree, TChain, TMVA, TCut, TCanvas, gDirectory, TH1, TGraph, gPad, TF1, TH1F, TLegend, TLatex, TGraphErrors
import getopt
def print_usage():... | [
"mrsolt@stanford.edu"
] | mrsolt@stanford.edu |
47ab96d26333bbbb7fe7e511845362084c6c14f8 | 6c838b17ff4e68a958045bcaab17371250748100 | /python/looping/assignment/no2).py | b250ed9ef617c2218f40abb71273cc256b779b70 | [] | no_license | suchishree/django_assignment1 | b0938c5de2d0b508f711e569110a12d229b6c0f5 | 1e6b83dce9505c35d7a1b31414c81f2596a00943 | refs/heads/main | 2023-07-15T05:10:15.842262 | 2021-08-13T14:25:39 | 2021-08-13T14:25:39 | 376,197,760 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | for i in range(10):
print(i, end=" ") | [
"suchishree99@gmail.com"
] | suchishree99@gmail.com |
e13e47060acb45fbac55ad7401cbc5ef69cfc833 | 6e316d7aa48f8115f8162af518a1b03ee7824bfd | /src/multiplex/logging.py | b128593a6afbdcc1ff33a303ac84342b2fb281ca | [
"MIT"
] | permissive | LongJohnCoder/multiplex | 41585b37e227d970ef0d3c3bb94347316a2f3068 | d7c53eb652c869f6faeaf05b5aadd590309b8022 | refs/heads/master | 2022-12-31T17:44:40.173688 | 2020-10-22T12:26:48 | 2020-10-22T12:26:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | import logging
import os
import tempfile
def init_logging(level=logging.INFO, log_path=None):
formatter = logging.Formatter("{asctime} - {name:<20} - {levelname} - {message}", style="{")
log_path = log_path or os.path.join(tempfile.gettempdir(), "multiplex.log")
fh = logging.FileHandler(log_path)
fh.s... | [
"dan.kilman@forter.com"
] | dan.kilman@forter.com |
52edb37e27d5cc7c520229d9b3b6176ea4c911a9 | 529f4ff511abc571b1e18e392ccd21ea8704c9b6 | /app/ticketmaster/views.py | eda7002e07feee802c385dfcd3f5a5a439def12a | [] | no_license | Ottermad/CelebStalker | ec92259a3c204c8bb972e807066f9c53c9eddd98 | 61f88bf1cf0098d6492a4f10b05f1ff9f11e1b7f | refs/heads/master | 2021-03-12T22:54:44.241569 | 2015-08-01T08:40:36 | 2015-08-01T08:40:36 | 39,769,964 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from flask import Blueprint, jsonify
from .functions import search_attraction, get_events
ticketmaster = Blueprint('ticketmaster', __name__, url_prefix='/events')
@ticketmaster.route('/search/<name>')
def search(name):
data = search_attraction(name)
ids = [str(person['id']) for person in data['attractions']... | [
"charlie.thomas@attwoodthomas.net"
] | charlie.thomas@attwoodthomas.net |
836f316ea7373f660f670c441dd647f0fbff730c | 6eb9078ce34bed9c895b821aae30f97bcc50ea7d | /前端第二课:Django/muggle/blog/admin.py | 1eb06d37c9dd952bfd268205ff4916ceb34a5fa1 | [] | no_license | yinsendemogui/Atomspace | e7b9e24f8e541f57bdbae2e4d935a3b67133bc69 | 1053d7e3e71365f6acca99431c2d4295243d3df1 | refs/heads/master | 2020-06-11T19:24:53.123006 | 2016-12-19T16:53:51 | 2016-12-19T16:53:51 | 75,628,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.contrib import admin
from blog.models import UserProfile, Topic, Question, Answer, Comment,Ticket
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
# Register your models here.
class UserProfileInline(ad... | [
"215379068@qq.com"
] | 215379068@qq.com |
66aae4d52e4beecaf98acd64f95dd5bf53fb08bb | e2713d0d0bb941e9154ded36accceb61d3495cd3 | /early/parrot.py | ce85f7d8b123b6a1a6464091c8d5c44a7f4b77eb | [] | no_license | Lionaw/python | 6a93b104df22e764c861cb293f718547a6b044f4 | 4b8c3072bd4fedc4c993a0124373de998b7999da | refs/heads/master | 2023-02-25T03:17:16.786752 | 2021-01-25T08:24:08 | 2021-01-25T08:24:08 | 276,262,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | print("hh") # by lionaw
active = True
while active:
message = input()
if message == 'quit':
active = False
else:
print (message)
| [
"40381965+Lionaw@users.noreply.github.com"
] | 40381965+Lionaw@users.noreply.github.com |
c55a5d6c466b589e733c4fd8d2bc9cfe5c9575f0 | 14147d06e7c749fec65fe4bf432b9b475ddfb3f7 | /scripts/cornish/hist2d-flux-b.py | 393f54ac7a2d095dac7d4142032f0e2d6aec8b37 | [] | no_license | hgsteggles/TORCH | c9ce7b0e850b9c056fa0f9d4ee01ccb94b01c914 | cad2f814a7d065636dc361cd571a3b53caea538b | refs/heads/master | 2021-01-16T18:28:30.346602 | 2019-05-08T16:19:06 | 2019-05-08T16:19:06 | 15,877,550 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,334 | py | import sys
import warnings
import numpy as np
from scipy import ndimage
from scipy.ndimage.filters import gaussian_filter
# Parse arguments.
import argparse
parser = argparse.ArgumentParser(description='Calculates max flux in cornish set.')
parser.add_argument('iden', metavar='iden', type=int, help='Density index in C... | [
"hgsteggles@gmail.com"
] | hgsteggles@gmail.com |
6e5af225c91821d4af58335fc05ab3c839c5d1b0 | 01782e7de4b76a7f80bcc520dc5a309892d1960e | /Python/500.py | 3d7cdcba4829ee9fbedc78d071adbfc43232dbe2 | [
"MIT"
] | permissive | FlyAndNotDown/LeetCode | c1b1fbbdaf0bc8af6043c631324ed9280e76b05d | 889819ff7f64819e966fc6f9dd80110cf2bf6d3c | refs/heads/master | 2021-07-15T04:14:11.731197 | 2020-05-17T03:25:40 | 2020-05-17T03:25:40 | 137,311,925 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | """
@no 500
@name Keyboard Row
"""
class Solution:
def findWords(self, words):
"""
:type words: List[str]
:rtype: List[str]
"""
rows = [
['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],
['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'],
['z'... | [
"461425614@qq.com"
] | 461425614@qq.com |
b9f7406f059d850f23f3e542f6e85d3ad59ee508 | cd555725b300579d44c0bd3f6fc8f6a968912dfb | /UF2/Practica 25/Ejercicio4/main.py | b5ab8a5b60b80fa92c11bf55fc828788bc6704fe | [] | no_license | aleexnl/aws-python | 2da5d8a416927f381618f1d6076d98d5e35b3b5e | 03fce7744b443b2b59a02c261067ecae46ecc3d9 | refs/heads/master | 2022-11-24T08:58:24.686651 | 2020-04-18T15:58:32 | 2020-04-18T15:58:32 | 221,772,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from module import functions as fc # Llamamos al modulo que contiene las funciones
print(fc.mcd(30, 3)) # Llamamos a la funcion y le pasamos dos parametros
| [
"alex.nieto0027@gmail.com"
] | alex.nieto0027@gmail.com |
f79b600165531bc2f99a143d492fcdd1979da970 | d5ea367d4cb6381c4ccb79448d41ad5e46c77a46 | /querycorrect/recovery.py | 524f0999718a28c719f70b734cdf864014326750 | [
"Apache-2.0"
] | permissive | zouning68/QueryCorrector | cbe712f6e89c34b020d05ccd7a274adccd0f1ab6 | afe3814c7dbd536089611510e82dacc56ef36413 | refs/heads/master | 2020-09-13T03:47:49.813394 | 2020-01-19T09:15:13 | 2020-01-19T09:15:13 | 222,647,649 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,912 | py | import codecs, operator, os, time, logging, kenlm, jieba, re
from pypinyin import lazy_pinyin
import numpy as np
#***********************************************************************************************************************
PUNCTUATION_LIST = ".。,,,、??::;;{}[]【】“‘’”《》/!!%……()<>@#$~^¥%&*\"\'=+-_——「」"
re... | [
"noreply@github.com"
] | zouning68.noreply@github.com |
834230bd96d32ae26e69951426a824f195bf9f67 | ee3e07c64f6954599364235b42313ddd72bcdee8 | /rental/decorators.py | 259926096d0a48fde9b2b68406ed2d1aa96c6142 | [] | no_license | Geeker1/locker | b19fd865014f2c9329352e837f0dc8e9f3e01da8 | 108e62ccd765acd7bec7dcecca66694c8bbaa394 | refs/heads/master | 2022-09-22T22:10:59.910778 | 2020-05-28T13:23:27 | 2020-05-28T13:23:27 | 267,446,522 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | from functools import wraps
from flask import redirect, url_for, session
def login_required(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if session.get('logged_in', None) is None:
return redirect(url_for('auth.login'))
return f(*args, **kwargs)
return decorated_functi... | [
"ledumibaakee@gmail.com"
] | ledumibaakee@gmail.com |
4365f6509819739f7ef38c891280c80d306d50ad | 644ad1b97b15c20dc2f969144812dddc0ecfef24 | /src/accounts/urls.py | 37d25c7288222e93bf2faee1193fbe18ae74f033 | [] | no_license | georgianamit/CodeColeo | 85fd925a169527bf6f74670ac681265e416a9496 | d1d7af401d77215bc5af24646c981e3f8fa00a01 | refs/heads/master | 2020-03-23T16:30:35.944965 | 2018-10-12T18:11:39 | 2018-10-12T18:11:39 | 141,814,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from django.conf.urls import url
from django.views.generic.base import RedirectView
from .views import UserDetailView, UserFollowView
urlpatterns = [
# url(r'^$', RedirectView.as_view(url='/')),
# url(r'^create/$', PostCreateView.as_view(), name='create'),
url(r'^(?P<username>[\w.@+-]+)/$', UserDetail... | [
"georgianamitrawat@gmail.com"
] | georgianamitrawat@gmail.com |
28e0557dd15329bec7914d5186604cf8e28b3329 | 5938c8b26f0b922b8a67565f0b52dd6d63435342 | /veritastool/fairness/fairness_metrics.py | c9e1ef651fe94e9d3163d1f9f053923db53d1ad2 | [] | no_license | brianzhengacn/newtool | 830ed5d22090f8a450a0214c628cccd6256319d7 | bf50093129490b35349810c0df72388bd41e1a7f | refs/heads/main | 2023-08-06T13:29:26.819890 | 2021-10-04T10:16:53 | 2021-10-04T10:16:53 | 413,368,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,862 | py | from sklearn.metrics import confusion_matrix, mean_squared_error, mean_absolute_percentage_error, roc_auc_score, log_loss
import numpy as np
import warnings
from scipy.stats import entropy
from ..utility import *
from ..custom import *
#from ..custom.newmetric_child import *
import concurrent.futures
class FairnessMe... | [
"noreply@github.com"
] | brianzhengacn.noreply@github.com |
705daa22d1138daf01177b976f88fb2d72001e22 | 0be4940e90da3cf833d2fe6e2413b1efc2c78236 | /agents/agent.py | c641e08fab2e23b462bde440943b700566834ef3 | [] | no_license | DivyaChari/quadcopter-project | d7cc0f4dae7bffbbaefb5ad4e213436fa993c340 | 21150bbf9a5b12d99a4f7c6aa7dfe239a29430d7 | refs/heads/master | 2020-03-22T01:15:55.749729 | 2018-07-01T02:11:04 | 2018-07-01T02:11:04 | 139,293,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,424 | py | # TODO: your agent here!
import random
from collections import namedtuple, deque
from keras import layers, models, optimizers
from keras import backend as K
import numpy as np
import copy
class ReplayBuffer:
"""Fixed-size buffer to store experience tuples."""
def __init__(self, buffer_size, batch_size):
... | [
"divya.ramanujachari@gmail.com"
] | divya.ramanujachari@gmail.com |
2f3246645ae2b648b8a03a0fbdc252ec71da5335 | 119646d6e1f13582c577fd7b87c9654839a0b806 | /hubspot/cms/domains/api/__init__.py | b4e60c2edbcb4bf654f47d3f798df161efd090c9 | [] | permissive | HubSpot/hubspot-api-python | 446daaceeb3a6ce27edcd0414603c6d4bc07e327 | d51a64c413461c0b82d8a41743e752d878747ca1 | refs/heads/master | 2023-08-31T09:52:56.583803 | 2023-08-07T11:00:27 | 2023-08-07T11:00:27 | 248,865,684 | 227 | 98 | Apache-2.0 | 2023-09-14T15:25:19 | 2020-03-20T22:41:24 | Python | UTF-8 | Python | false | false | 146 | py | from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from hubspot.cms.domains.api.domains_api import DomainsApi
| [
"atanasiuk@hubspot.com"
] | atanasiuk@hubspot.com |
de9fb2ae97800642eda88142b72a772c8c9c47c5 | 2b14ef0b8c086a2dd047f6fab6f565f27c3634c6 | /BOJ/브루트포스/호석이두마리치킨.py | 48feda541fda601099cc09a058365b61117ed8f8 | [] | no_license | psj8532/problem_solving | 055475bbdc8902ed4d19fd242d95dff461cc9608 | 8ae06fc935c3d0a3c5ec537f13677b0534869df3 | refs/heads/master | 2023-06-09T10:16:01.248293 | 2021-05-07T03:09:38 | 2021-05-07T03:09:38 | 240,618,744 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | from itertools import combinations
from _collections import deque
def bfs(here, depth, chicken_house):
if here in chicken_house: return 0
deq = deque([[here, depth]])
visited = [False] * (N + 1)
visited[here] = True
while deq:
h, d = deq.popleft()
if h in chicken_house:
... | [
"psj8532@naver.com"
] | psj8532@naver.com |
5aef5f318f0a34c493cfc709b0ccc037bef3c02d | 71dc256875271d8bcf223817253d19ffcd5ef9ed | /level1/크레인인형뽑기.py | b892ad267eda7efeb9a0e318ce69e8304a296f10 | [] | no_license | ay91911/programers | a4e0e36c2f58d90f86936814207f9031b8440854 | d2b0a9f09a72b4fb87bc6697cdaa9e3125a16eba | refs/heads/master | 2023-03-05T18:40:12.304185 | 2021-02-10T12:56:28 | 2021-02-10T12:56:28 | 327,290,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | # board = [[0,2,0],[1,2,0],[2,2,1]]
# moves = [1,2,2,2,1,3]
# board = [[0, 0, 0, 0, 0], [0, 0, 1, 0, 3], [0, 2, 5, 0, 1], [4, 2, 4, 4, 2], [3, 5, 1, 3, 1]]
# moves = [1, 5, 3, 5, 1, 2, 1, 4]
board= [[0, 0, 0, 0, 0], [0, 0, 1, 0, 3], [0, 2, 5, 0, 1], [4, 2, 4, 4, 2], [3, 5, 1, 3, 1]]
moves= [1, 5, 3, 5, 1, 2, 5, 1, 4, 3... | [
"ay91911@gmail.com"
] | ay91911@gmail.com |
337f7eb2a7d9b716044b05ebf802988661fbc75c | a2e8e278a96ed28152cfc0d8cbe6a44563e17213 | /TensorFlow/NN_Relu_Tensorflow.py | 99b25e5723b49c840e6398974d8e4e39fea2de8f | [] | no_license | shubham808/Machine-Learning-Projects | 7e5c6fa2991d751c0514f63b630540c366914867 | 417128aa1c5ec1b29367695bdcfc923df6784b05 | refs/heads/master | 2021-01-23T05:03:54.371920 | 2017-06-07T05:09:30 | 2017-06-07T05:09:30 | 92,949,900 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,747 | py |
##we will try regularization on the nn with gradient descent
##also we add the RElu activation
import numpy as np
import tensorflow as tf
import pickle
pickle_file = 'notMNIST.pickle'
with open(pickle_file, 'rb') as f:
save = pickle.load(f)
train_dataset = save['train_dataset']
train_labels = save['train_... | [
"shubhamshukla1197@gmail.com"
] | shubhamshukla1197@gmail.com |
d09be6ac32398bbd0397467b2ebf8504d775e116 | 356740062993a5967717098a7a3ee78ac6c6cf3f | /chapter15/projects/brute_force_pdf/pdf_password_breaker.py | 814c051fc597e336a223e62a06f1d762f59c9ba6 | [] | no_license | xerifeazeitona/autbor | 79588302f14c0c09b1f9f57fcb973e656ee1da5c | c37ccbfa87c1ac260e728a3a91a8f2be97978f04 | refs/heads/main | 2023-04-03T18:01:34.588984 | 2021-04-07T17:59:26 | 2021-04-07T17:59:26 | 348,749,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | """
Brute-Force PDF Password Breaker
Say you have an encrypted PDF that you have forgotten the password to,
but you remember it was a single English word. Trying to guess your
forgotten password is quite a boring task.
Instead you can write a program that will decrypt the PDF by trying
every possible English word until... | [
"juliano.amaral@gmail.com"
] | juliano.amaral@gmail.com |
ff3e197365e7f7fe3ed5a2b0db876a287e1fc0d4 | 1b9523e970edace631326d652c1ac88bbc5e4921 | /Launchkey/Launchkey.py | 3ba423fd3d56201b2b02de22f6b9c4a41ce5e104 | [] | no_license | pinterre/AbletonLive9_RemoteScripts | 3d612d9620109125eb127a6119b067e3b21d74ab | 760c2991d39b5b4288ca0c012c12f2036556a4ef | refs/heads/master | 2020-12-25T03:21:37.827211 | 2014-06-04T19:59:52 | 2014-06-04T19:59:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,587 | py | #Embedded file name: /Users/versonator/Jenkins/live/Projects/AppLive/Resources/MIDI Remote Scripts/Launchkey/Launchkey.py
from __future__ import with_statement
import Live
from _Framework.ControlSurface import ControlSurface
from _Framework.InputControlElement import InputControlElement, MIDI_CC_TYPE, MIDI_NOTE_TYPE
fr... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
229705ac103d8ae3e0369c1d9e63a7c055a53800 | 1ae5efe5d234a1624a339fac02af25a1e9094966 | /mysite/urls.py | 88c43d26dbfbb80b55bb4d0abe0cdd02b7a154d3 | [] | no_license | crownesskiss/crown-mysite | c482a91b0550dcb92df464596fbfef6dfdb7bbbc | bdad225877ecc8e8468da087a7516b81442f73ca | refs/heads/master | 2021-08-31T13:06:37.199933 | 2017-12-21T11:15:43 | 2017-12-21T11:15:43 | 114,997,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"1126713183@qq.com"
] | 1126713183@qq.com |
e719c824c41b673746fdbfe99ee5d27001eb7e45 | 5f92dd6164c41e5756842da0a053b207005be252 | /tests/models/test_dagcode.py | 6f3c5d64cdf66aa29dc7df109dcd370d4f0fa3d5 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | mans2singh/airflow | 24d17446457ebfbf17850d336722f79e46b06404 | de9633f93a366ebc0a46d1ec4df2c4aa9a18357d | refs/heads/main | 2023-03-20T17:56:18.506101 | 2022-10-22T19:41:57 | 2022-10-22T19:41:57 | 168,956,212 | 0 | 0 | Apache-2.0 | 2019-02-03T14:51:24 | 2019-02-03T14:51:23 | null | UTF-8 | Python | false | false | 6,409 | py | #
# 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
# "License"); you may not... | [
"noreply@github.com"
] | mans2singh.noreply@github.com |
f9e4358f3ebaa8a632d5edd58e41f0716cf450b6 | 34898ec074b86bdb72171ec832ad457c02f99d44 | /crazy_eight (cli)/crazy_eight/dealer.py | ec45b4b517edd79add5e234cd3278e16d12fc84a | [] | no_license | randerson-lmu/cmsi185_lectures | fb54eeae429c12972e433243da37abe87bcfde6f | d5190900d50b02a2f34d7790754f0008aa7e7097 | refs/heads/master | 2023-01-24T18:41:26.716644 | 2020-12-08T06:49:24 | 2020-12-08T06:49:24 | 293,619,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | py | import random
class Dealer:
def __init__(self):
"""Initialize a dealer object"""
#create deck of cards as list of tuples (suit, value)
self.base_deck = []
self.suit = ["spades","hearts","clubs","diamonds"]
self.value = ["ace","two","three","four","five","six","seven","eight"... | [
"70914628+randerson-lmu@users.noreply.github.com"
] | 70914628+randerson-lmu@users.noreply.github.com |
68154eff9922df9e73a7cc26900053f1c09742e8 | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/secretstorage/collection.py | cb7de6508e71b59c58873630fbbd3cc64da134b5 | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/94/7c/12/3a414ee6c46ca60714068048f191b66aed9b71448ee97eb892c55d9ec4 | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
0b1c57cc16c4d18a4bb209985e408d3f73481b9b | 334182ebcf41b171a8ba7e4f3dca6d9a5a5c7dd5 | /data/prepare_retailrocket_dataset.py | 4a1da7f53bffa9dfd6d061b5ca60bed559e2c638 | [
"MIT"
] | permissive | undarmaa/dml4rec | c0b0dacfb745ccb34eac7ec96bf633ad3e1a5ecc | 3bc2ca4d85ef9f8d94f0ee0a07d1d67cec671e66 | refs/heads/main | 2023-02-17T10:39:31.763983 | 2021-01-13T12:50:41 | 2021-01-18T12:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,213 | py | import csv
import os
import json
import gzip
import math
from collections import deque
from datetime import datetime
import numpy as np
import pandas as pd
from rec.dataset.dataset import Dataset
import rec.model as m
directory = 'data/retailrocket/'
directory_input = directory + 'raw/'
input_path_events = directory... | [
"bartlomiej.twardowski@gmail.com"
] | bartlomiej.twardowski@gmail.com |
a7bf7e1b684f8cbdcd574f13eed72023cf50bd3d | 1bfad01139237049eded6c42981ee9b4c09bb6de | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/statistics/view/formulacatalog/formulacatalog.py | b878626afcde61247e92d719fe488330d5646617 | [
"MIT"
] | permissive | kakkotetsu/IxNetwork | 3a395c2b4de1488994a0cfe51bca36d21e4368a5 | f9fb614b51bb8988af035967991ad36702933274 | refs/heads/master | 2020-04-22T09:46:37.408010 | 2019-02-07T18:12:20 | 2019-02-07T18:12:20 | 170,284,084 | 0 | 0 | MIT | 2019-02-12T08:51:02 | 2019-02-12T08:51:01 | null | UTF-8 | Python | false | false | 2,267 | py |
# Copyright 1997 - 2018 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
4721546158209168ef63d23772e165de4fc18666 | 67fab84289864049b62583c8923c37233997fa1e | /daskperiment/backend/redis.py | e2efc150e6169e003e479cd1cb7d0ee540f4f69f | [
"BSD-3-Clause"
] | permissive | nikkkkhil/dask_task | dadea3380dd2de92a683a83f2695f7d8a3b7920e | 1802efacd43e68e5e7dd8eb82e27b3cbf09d74ae | refs/heads/master | 2020-09-24T18:26:25.535501 | 2019-12-04T08:27:21 | 2019-12-04T08:27:21 | 225,816,635 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,086 | py | from daskperiment.backend.base import _NoSQLBackend
from daskperiment.util.log import get_logger
logger = get_logger(__name__)
class RedisBackend(_NoSQLBackend):
_SEP = ':'
def __init__(self, experiment_id, uri):
super().__init__(experiment_id)
import redis
if isinstance(uri, red... | [
"thenikkkhil@yahoo.com"
] | thenikkkhil@yahoo.com |
b4822285024bd83947d424b3802f1631e4a3b0ee | ddd766ad2c618fe5029e8f3513cc2d118ebab297 | /mooc_selenium/case/run_case.py | 7dffa117406250d3dacfaa44312f73d69f7088e8 | [] | no_license | zouzhuwen/PycharmProject | 12aa44c5c2774b603cae3e03182404d1007e7879 | 99b2da6469f086e60d17a080e42f465ae3c3148f | refs/heads/master | 2023-04-02T04:49:19.764297 | 2021-04-01T14:41:01 | 2021-04-01T14:41:01 | 353,390,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | #coding=utf-8
import unittest
import os
import sys
sys.path.append("D:\PycharmProject\mooc_selenium")
class RunCase(unittest.TestCase):
def test_case01(self):
#case_path= os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
case_path = os.path.join(os.getcwd())
print(case_path)
... | [
"13543418221@163.com"
] | 13543418221@163.com |
dedd86babcde6e5fdbe88d9ed0f91f147b72c2c3 | 2a40a6fecc83e337cecf132556b28be4be332f68 | /Python/Sum.py | 7b2a66460aca509a71f6e46be2ff86064ae0b6bd | [] | no_license | anushad-13/Hacktober_Repo | 6633de38e4ccf1d16644083b9d589690790336c5 | 3decf1f79c44b78221c3db752f73e10483490c02 | refs/heads/main | 2023-08-24T13:58:02.729785 | 2021-10-29T15:10:11 | 2021-10-29T15:10:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | # We first create an array with some numbers
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]
# We can then use sum(numbers) to get the sum of our array
print(sum(numbers)) | [
"e.sjoeloe@gmail.com"
] | e.sjoeloe@gmail.com |
3a385989b323e1345b41f897b25da7029f256869 | db23488b3532e6c9adea2dc327825d02f6694cae | /yelpJSONsample.py | 84ba68a8489f8ad7420112315ba95fdf671f0389 | [] | no_license | harini-venkatesan/choose4u | 8c0fd14ee7fc77cb16b3c4593ffa1f0c9a8c304b | b6a8da349910c9334c0e6f11554a2ab65abe21d1 | refs/heads/master | 2020-03-25T01:12:01.782374 | 2018-04-23T02:37:47 | 2018-04-23T02:37:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,477 | py | import json
import urllib
import re
import urllib.request
def writeToJSONFile(path, fileName, data):
filePathNameWExt = './' + path + '/' + fileName + '.json'
with open(filePathNameWExt, 'w') as fp:
json.dump(data, fp)
path = './'
fileName = "example"
htmlfile = urllib.request.urlopen("https://www.y... | [
"echan044@ucr.edu"
] | echan044@ucr.edu |
1b030f6eaad2f17562a899f96ef874c66b99041b | eddbd7f0076c3f9fea044a09fa8e25173e75ce6b | /main/filters/utils/__init__.py | e6dcc04668734c4f7036081b9eb3413ce663f685 | [] | no_license | mohamad97mj/DJANGO-spam_detection | 98b491731e06ef117fd3e7d753289972724fc36c | db7534d74058e14bb4c0bc08517938fd3ac9a190 | refs/heads/master | 2023-03-05T10:00:22.691293 | 2021-02-21T07:17:33 | 2021-02-21T07:17:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from .file_utils import FileUtils
from .pandas_utils import PandasUtils
from .settings_utils import SettingsUtils
from .my_logger import Logger
from .general_utils import *
from .preprocessor import Preprocessor
from main.models.utils import Labels
| [
"mohamad97mj@gmail.com"
] | mohamad97mj@gmail.com |
ca64080aa93efc5f4c57d7a9221e61e7d2bbc545 | 35b8532989fe9f00437f8b278a0e0ecb39577a12 | /seller_col.py | e1bb0eae4460794b02535404ec07626184b6c346 | [] | no_license | EvilDao-RG/StoreManagerPython | a947aa93d4cadc66a33199901f1272bf9c0f38a5 | 77c04fa340060f939afbbeeafd4e4c71a65c8ae3 | refs/heads/main | 2023-07-26T00:14:56.035095 | 2021-08-30T01:22:45 | 2021-08-30T01:22:45 | 400,354,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | ID = 0
NOMBRE = 1
FCONT= 2
LIST_NAMES = ["ID", "Nombre", "Fecha de Contratacion"]
NAMES = "ID,Nombre,Fecha de Contratacion" | [
"gaelrodguez@hotmail.com"
] | gaelrodguez@hotmail.com |
3629c99cabd1fa8d37fb6433b4c595dcf55e3483 | 6c816f19d7f4a3d89abbb00eeaf43dd818ecc34f | /venv/Scripts/easy_install-3.6-script.py | a95d3aabec1724ba66e9a38d3cbc071eb631e331 | [] | no_license | reo-dev/bolt | 29ee6aa7cfc96bd50fa7a7dae07fbaafc2125e54 | d1a7859dd1ebe2f5b0e6e295047b620f5afdb92e | refs/heads/master | 2023-07-13T04:05:57.856278 | 2021-08-27T09:07:03 | 2021-08-27T09:07:03 | 382,195,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | #!C:\Users\kwongibin.DESKTOP-KIC4V0D\PycharmProjects\bolttnut\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.arg... | [
"75593016+reo-dev@users.noreply.github.com"
] | 75593016+reo-dev@users.noreply.github.com |
4e775386203f7562b4f2575de0d1b52520df4054 | eb677df036fb922c36be3ac309a6b51137161343 | /bin/alpha | fd242e28ca7f18e5ca9be924643804c1d152bc05 | [] | no_license | kmyk/dotfiles | f1be5f1732a22a44605faca92a003de7a40968fa | 33fbd461135fa6bc4b954c403402d4433cc45abd | refs/heads/master | 2021-07-02T03:17:12.814548 | 2020-09-20T05:56:52 | 2020-09-20T05:56:52 | 11,720,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | #!/usr/bin/env python
import sys
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-u', '--upper', action='store_true')
parser.add_argument('-l', '--lower', action='store_false', dest='upper')
parser.add_argument('-d', '--delimiter', type=str, default=' ')
parser.add_argument('-1', action='store_c... | [
"kimiyuki95@gmail.com"
] | kimiyuki95@gmail.com | |
459cc8ea0d04400f7555d4d06e18ea47721a866c | 4fdea3e078194aa7f11cd7e70279dcaca1c8bad3 | /CS 5335 Robot Trash Pickup/apriltags.py | e38ddf26059decbcc18c37ce1593ef39d1bd1a66 | [] | no_license | brendonhahm/Brendon-Hahm-Academic-Work | 446ddf039992a59e04beb8ed288be5bc88b558b8 | 8b075e5aae9379cc8a0b8793c1d6fd06c64a5d26 | refs/heads/main | 2023-04-10T16:17:56.922767 | 2023-03-20T05:56:38 | 2023-03-20T05:56:38 | 358,094,484 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | from pupil_apriltags import Detector
import cv2
import numpy as np
import os
os.chdir('C:\\Users\\brend\\Desktop\\Northeastern Class Folders\\CS 5335 Project')
image = cv2.cvtColor(cv2.imread("testing.jpg"), cv2.COLOR_BGR2GRAY)
families ='tag36h11'
camera_params= [1481.2,1481.6,952.7, 563.8]
tag_size= 0.0165 # unit:... | [
"noreply@github.com"
] | brendonhahm.noreply@github.com |
e02c437b9fbc18d8af22e4342814c78f6da23fa4 | 2ca278f460be0fd53f9d84d646be2cc93ce32d60 | /common/player.py | d1d2d9f857964add990d07bdd193f508e5b2c356 | [] | no_license | jonwesneski/py-poker | 320286d5d7bcec1c5249f19df0c61ead70d195b5 | 54c68e8b8e7a89de0a4d64a90d59d3ee8c67bec0 | refs/heads/master | 2021-09-16T05:52:29.123251 | 2018-06-17T13:09:28 | 2018-06-17T13:09:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py |
class Player():
def __init__(self, name, money):
self.name = name
self.money = money
self.cards = None
def bet(self, bet):
actual_bet = money
if bet < money:
money -= bet
actual_bet = bet
else:
money = 0
... | [
"jonwes2@gmail.com"
] | jonwes2@gmail.com |
63b1c860fcedcb6b01aca43515f773d08446f772 | 43a22f0d059ba9ca7ac5c6c58287feee30e66015 | /rdma/libibverbs.pxi | d66530607318870d50e5643c09062d717f522bb5 | [
"DOC"
] | permissive | slavashw/python-rdma | 26c7d0c52f520c9754821b89a8fc7aba53e752aa | 0bb5186e2cb36d82b6d3bbe1efcd223c4e8bb897 | refs/heads/master | 2021-01-15T17:08:02.523005 | 2015-08-24T18:26:37 | 2015-08-24T19:02:13 | 40,586,681 | 1 | 0 | null | 2015-08-12T07:31:06 | 2015-08-12T07:31:06 | null | UTF-8 | Python | false | false | 4,348 | pxi | # -*- Python -*-
# Copyright 2011 Obsidian Research Corp. GPLv2, see COPYING.
wc = tools.struct(
'wc',
(('wr_id',long),
('status',int), #enum
('opcode',int), #enum
('vendor_err',int),
('byte_len',int),
('imm_data',int),
('qp_num',int),
('src_qp',int),
('wc_flags',int),
... | [
"jgunthorpe@obsidianresearch.com"
] | jgunthorpe@obsidianresearch.com |
de56e5be34d3bcd588a0734d2d862d899e1cbfee | f7fc736f0e42aabc1b4a709ed1b51936d75f6f3e | /frontend/app/views/matches.py | eedd130588a9ced52c85a5cbcd4715c63e51ac53 | [
"MIT"
] | permissive | matheuscr30/Distributed-Systems | 7da72ff1d8ed97b94a53e53ad8b8ad2b6a35ce18 | ec150b97eccb063280f50e2b300d22ff1a081970 | refs/heads/master | 2022-10-01T02:00:07.377375 | 2021-11-02T09:48:42 | 2021-11-02T09:48:42 | 204,378,246 | 0 | 0 | MIT | 2022-09-23T22:33:57 | 2019-08-26T02:13:50 | Python | UTF-8 | Python | false | false | 3,145 | py | from flask import render_template, request, redirect, jsonify
from app import app
from app.proto import API_pb2
from grpc import RpcError
@app.route('/matches')
def matches():
from app import stub
token = request.cookies.get('token')
if not token:
return redirect('/')
username = request.cooki... | [
"matheuscunhareis30@gmail.com"
] | matheuscunhareis30@gmail.com |
bde40d296203cf014d6fa9584b60e567c306d60d | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/64f6942fedc844af848cc19de6e53748.py | bc316926c867570f3906523b44066297c83447b6 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 239 | py | #didnt work out with replace method
#so i used the translate method with a map
#Is translate deprecated in Python3.4?
def to_rna(what):
mapper = what.maketrans('GCTA','CGAU')
what = what.translate(mapper)
return what
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
7bb4daf16b1d5bc74f0595cda04a51f65171874a | ec80dd70ba6d634cdff272c163caee131c28e0e3 | /venv/bin/pip3.5 | 7d13dcf75fc8bc629db6ce1e090c40255acc8891 | [] | no_license | aniruddha-stqc/automate_gigw | a8a04c85b88b0578d0e18c37d39a15e5011161a6 | a2553cbb5d93ddfaffb2fad8ae0a66dfe976725c | refs/heads/master | 2022-12-12T20:52:49.709503 | 2022-12-12T12:47:05 | 2022-12-12T12:47:05 | 205,819,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | 5 | #!/media/test/DATA/aniruddha/PycharmProjects/automate_gigw/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.5'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '... | [
"aniruddha2008@gmail.com"
] | aniruddha2008@gmail.com |
8269fe1b6eeaf8c1d7d3a7deba82d76086a374ad | e702d0b6b997f5de2da5de9da97b4a50608ee3a4 | /bookstore/cgi-bin/books.py | cfad5cf714a0ff1f0b04c97ef393b7538b6a3707 | [] | no_license | KoSukun/PythonLearningWebProject201605 | da655ca3bd3b7f8cbf2af136836fc5c951c6a059 | 91d9629d12f48fa3dc784ee76696281e224029c3 | refs/heads/master | 2020-07-24T22:37:28.284621 | 2019-09-12T15:30:37 | 2019-09-12T15:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,574 | py | import sqlite3
import cgi
import cgitb
cgitb.enable()
connection = sqlite3.connect("bookstore.sqlite")
cursor = connection.cursor()
The_Form = cgi.FieldStorage()
id_v = The_Form['id'].value
password_v = The_Form['password'].value
if id_v == 'admin' :
print("Content-type : text/html \n")
print("<html><head>... | [
"sukun@kangogift.com"
] | sukun@kangogift.com |
a3b15afa593d694915db65262098bf26c3ff1509 | 5e5610e07441b320e4b6a088c0f6cc93334bba91 | /transportation/management/commands/services.py | c2a831900e54fb88826d3c55805a063f27071ef5 | [] | no_license | pixmin/poimap | cdea21aeb753e358166474033dc68f9eac8e929f | b736a2bbf40467307aa2e12012347fb44be34cf9 | refs/heads/master | 2020-05-02T07:42:18.298709 | 2019-03-26T16:10:53 | 2019-03-26T16:10:53 | 177,825,011 | 0 | 0 | null | 2019-03-26T16:12:00 | 2019-03-26T16:12:00 | null | UTF-8 | Python | false | false | 2,376 | py | # -*- coding: utf-8 -*-
from django.conf import settings
from django.core.management.base import BaseCommand
from django.contrib.gis.geos import GEOSGeometry
from django.utils.text import slugify
from geopy.geocoders import GoogleV3
from poimap.models import POIType
from transportation.models import Line, Route, RouteS... | [
"alban.tiberghien@gmail.com"
] | alban.tiberghien@gmail.com |
a6a1d88eb33ec7667e09dde6a29e32a72c602a7a | 1eec689c48e8ddcf438be65d0ca424c5d0a6dce3 | /tutorial/tutorial/urls.py | f441cdb92ca1903346bcec19c7e8c07c25605e43 | [] | no_license | T1XJH/GRF | 863de380e175bac252c561ee582013f8d36d1e91 | 10e357a2160e884c2e405f0bbac27ec98a034c71 | refs/heads/master | 2022-12-23T04:32:16.911151 | 2019-04-30T08:27:36 | 2019-04-30T08:27:36 | 184,223,304 | 0 | 1 | null | 2022-12-11T18:54:56 | 2019-04-30T08:30:38 | Python | UTF-8 | Python | false | false | 1,155 | py | """tutorial URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"1059715044@qq.com配置邮箱"
] | 1059715044@qq.com配置邮箱 |
bb1416137eb4f898b55ecbf227c26ea57e6b504b | 55ab64b67d8abc02907eb43a54ff6c326ded6b72 | /scripts/addon_library/local/weight_layers/layer_scripts/WLAYER_procedural_texture.py | 3c74ed302830f717ee1cea767d61171ba2ba06b6 | [
"MIT"
] | permissive | Tilapiatsu/blender-custom_config | 2f03b0bb234c3b098d2830732296d199c91147d0 | 00e14fc190ebff66cf50ff911f25cf5ad3529f8f | refs/heads/master | 2023-08-16T14:26:39.990840 | 2023-08-16T01:32:41 | 2023-08-16T01:32:41 | 161,249,779 | 6 | 2 | MIT | 2023-04-12T05:33:59 | 2018-12-10T23:25:14 | Python | UTF-8 | Python | false | false | 1,328 | py | from .WL_layer_functions import CustomLayerSettingsBase
import bpy
class CustomLayerSettings(CustomLayerSettingsBase):
def texture_enum_items(self, context):
items = []
for node in self.layer.layer_group.nodes:
if "TEX" in node.type:
name = node.name
it... | [
"tilapiatsu@hotmail.fr"
] | tilapiatsu@hotmail.fr |
96ab8542a2b56269e3a2da1913b8424c91a2e0e0 | a9dfc35814bde9f387bb78db2e8566c08e38b635 | /WS/G4G/Problems/strings/minimum_appends_to_make_string_palindrome.py | e377c4af5bd16e8f4edcad4c329d218d535e3d77 | [] | no_license | eldojk/Workspace | b6c87f7ab74c4a3bb8585fdfa36a24a731f280f8 | 224626665a2b4c0cf701731f4e4dc96c93a26266 | refs/heads/master | 2021-01-19T13:33:09.378172 | 2017-11-14T17:53:09 | 2017-11-14T17:53:09 | 82,396,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | """
amzn
http://www.geeksforgeeks.org/minimum-number-appends-needed-make-string-palindrome/
"""
def is_pal(li, s, e):
while s <= e:
if li[s] != li[e]:
return False
s += 1
e -= 1
return True
def min_appends(string):
li = list(string)
for i in range(len(li)):
... | [
"eldo.joseph@oracle.com"
] | eldo.joseph@oracle.com |
848502b51141149a40a491138906f07fd3f8693d | c96cd25f0a74a7feecbf363948bab51018b719f1 | /tests/modules/jmeter/test_JMX.py | 7dad01cad775949d32372aaf1ec674e835b7fc08 | [
"Apache-2.0"
] | permissive | YajanaRao/taurus | ee7468ec287a4b07ea56ca671537f363906bbe26 | c08e5b90063bf4f7904e8ec4eb5f3c50a8e89ac0 | refs/heads/master | 2020-03-28T10:38:43.563353 | 2018-09-10T14:58:35 | 2018-09-10T14:58:35 | 148,129,849 | 0 | 0 | Apache-2.0 | 2018-09-10T09:17:42 | 2018-09-10T09:17:42 | null | UTF-8 | Python | false | false | 14,515 | py | # coding=utf-8
from . import MockJMeterExecutor
from bzt.engine import Provisioning
from bzt.jmx import JMX, LoadSettingsProcessor
from tests import BZTestCase, RESOURCES_DIR
class TestLoadSettingsProcessor(BZTestCase):
def configure(self, jmx_file=None, load=None, settings=None, has_ctg=None):
executor =... | [
"apc4@ya.ru"
] | apc4@ya.ru |
77c3d84a6a26cc77989a45e2fc4ac568d1945e4d | 1e78c5b957b31fe6c7ff9ad54694e7fa0048b46b | /movie_reviews/urls.py | 25f160118eaefb656b03eb7481ebbaa1e53536e1 | [] | no_license | chloe-codes1/movie-reviews | c7c0baa951f5d43ccc924d2a53f458e368193e37 | df0c5e1c0d32a97df1908489964cea427c9479d0 | refs/heads/master | 2021-05-26T15:45:19.743155 | 2020-04-27T04:06:49 | 2020-04-27T04:06:49 | 254,127,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | """django_pjt2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"juhyun.kim@lindsey.edu"
] | juhyun.kim@lindsey.edu |
f5866d49e1c9ab2ec6c89aa5ca8d10bbaac1f2c2 | 0621096f8c90a0bab350a30c53cc564709c6ffa4 | /build/panda_sim_custom_action_server/catkin_generated/pkg.develspace.context.pc.py | e38eb9f8298e455404079ced86603e4d5b4667a2 | [] | no_license | jashmehta20/Vision-based-6-DOF-Robot-Teleoperation-using-Hand-Tracking | 3c36929a3900964a02b289b2d50e782cc825e14a | e5004260c11c00729c0a517540dbd7e7865e4cc5 | refs/heads/main | 2023-08-31T16:36:22.114022 | 2021-11-04T00:32:28 | 2021-11-04T00:32:28 | 419,962,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/ntnghia1999/dynamics_final/devel/.private/panda_sim_custom_action_server/include".split(';') if "/home/ntnghia1999/dynamics_final/devel/.private/panda_sim_custom_action_server/include" != "" else... | [
"yshah9103@gmail.com"
] | yshah9103@gmail.com |
ec4c8e01889fce3f6fea8c3f456fda541b435181 | d802f54d2dbe55b470d31dfee236878bab843919 | /setup.py | 73cc8a51d16f1462a1e27122b7194b10d60b3467 | [] | no_license | WangHexie/yaml_param_search | 769ce4d57aee81a0493308f5093e1ee218bfa231 | 5022c3769ad00d9d077a2e7d1b5bf8ac2e5b47cf | refs/heads/main | 2023-06-03T18:52:18.204625 | 2021-06-23T08:32:06 | 2021-06-23T08:32:06 | 379,189,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | from setuptools import setup
setup(
name='yaml_param_search',
version='0.1.0',
description='parameter search',
url='https://github.com/wanghexie/yaml_param_search',
author='wanghexie',
author_email='test@test.com',
license='BSD 2-clause',
packages=['yaml_param_search'],
install_requ... | [
"31768052+WangHexie@users.noreply.github.com"
] | 31768052+WangHexie@users.noreply.github.com |
8160ebeceeea0ea38eb8257fc3df3db8ce7d0863 | 3a7f3167062fac434b84efc46f2ce8b32818f86a | /TAS/Modules/Everyone else's work/LLA to XYZ conversion 2.py | 0a9f8ef4f9e2ed4786c3a1b4f2fbee02e650b0e1 | [] | no_license | atheys/Portfolio | 30274e99c147c9a6afa997a0b9330d320ffc6981 | 6c3db635e1b2b2eba8b49ad0ff182ba53e336099 | refs/heads/master | 2020-03-21T02:27:52.361663 | 2018-06-20T08:09:04 | 2018-06-20T08:09:04 | 137,999,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | #Authors: Jamie Tjoe Ny & Willem Volker
#Based on WGS84
from math import *
lat = input("Latitude [deg]:")
lon = input("Longitude[deg]:")
alt = input("Altitude[m]:")
cosLat = cos(lat*pi/180)
sinLat = sin(lat*pi/180)
cosLon = cos(lon*pi/180)
sinLon = sin(lon*pi/180)
radius = 6378137.0
f = (1/298.257224)
C = 1/(sq... | [
"andreas@shared.nl"
] | andreas@shared.nl |
cea3cc907b6c9f6ce128e47cb30e9fa363f40da2 | 3d5ea569ea43d533f0d8906c30e518b48f3ddb16 | /piaplib/keyring/saltify.py | 34827c38c66fd843aa5481c345f21421d74363dc | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | reactive-firewall/PiAP-python-tools | c4c3f00d4e75382b576c6a4cda8690f6459d698a | 0313956cef86a4e44c606280e07afb2b94864581 | refs/heads/master | 2021-01-20T03:46:54.926373 | 2020-04-06T06:54:00 | 2020-04-06T06:54:00 | 83,833,232 | 2 | 0 | NOASSERTION | 2020-04-06T03:50:37 | 2017-03-03T19:22:45 | Python | UTF-8 | Python | false | false | 3,465 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Pocket PiAP
# ......................................................................
# Copyright (c) 2017-2020, Kendrick Walls
# ......................................................................
# Licensed under MIT (the "License");
# you may not use this file exce... | [
"reactive-firewall@users.noreply.github.com"
] | reactive-firewall@users.noreply.github.com |
21bef3f434e5d09bc1deb72bfc65c41011f97dfd | 57433766658fa697009d26617fabe50cd944a7cc | /levelupreports/views/connection.py | 67f6412ab9fa3485ea5721744f2cdea422f6183f | [] | no_license | nch66862/levelup | b8c94b1977baa28bcc362fe81bc45600dcc360c4 | f19bfd0ff133758b87e23744c865424c526ddcf0 | refs/heads/main | 2023-05-12T23:41:30.864465 | 2021-05-27T17:19:44 | 2021-05-27T17:19:44 | 364,003,292 | 0 | 0 | null | 2021-05-26T19:21:43 | 2021-05-03T17:08:31 | Python | UTF-8 | Python | false | false | 80 | py | class Connection:
db_path = "/Users/nickcarver/workspace/levelup/db.sqlite3" | [
"nicholascarver2@outlook.com"
] | nicholascarver2@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.