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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cf56319f264cb7dd6bbfac6b309392fa20ef6ce9 | 54fe1f253fb245deffe162f6cb97291b8fd2a6dd | /sticks.py | 6a5cb9a84db5b475dc5391e83d5e3fd8713065e0 | [] | no_license | qugit-hub/shiyanlou-code | 23186ebb3440a0b8680bf4625580f761403a1bda | bcb36663251b202404f6def70000367ec7b767c2 | refs/heads/master | 2023-02-26T06:59:15.960331 | 2021-02-03T03:00:25 | 2021-02-03T03:00:25 | 330,922,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #!/usr/bin/env python3
sticks=21
print("There are 21 sticks, you can take 1-4 number of sticks at a time.")
print("whoever will take the last stick will lose")
while True:
print("sticks left: ",sticks)
if sticks ==1:
print("You took the last stick, you lose")
break
sticks_taken=int(input("T... | [
"qym_94@163.com"
] | qym_94@163.com |
03383d50b28e350662087e4cbccf7252f9345a0a | 44eff1687bd3db0552ebbffc14d7178b0d946988 | /Crawling/Crawling/wsgi.py | e5e321b1486fbec68086438616042c03aeeb0997 | [] | no_license | Hwang-Sungmin/Crawling | 8a129087930798d027a66e30edce1a224114c381 | 04278e47e40165561436b925eef8b841f8009a46 | refs/heads/master | 2020-12-02T13:12:06.762340 | 2020-03-17T05:03:00 | 2020-03-17T05:03:00 | 231,016,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for Crawling project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"hsm511@ajou.ac.kr"
] | hsm511@ajou.ac.kr |
5acdfe52eb25d3cd6de5b1bea421707d7b5ba3cd | 0630a7addb90600293f0ee0787dd6ab0ac77b09a | /LinkedList/FindDuplicatesInArray.py | 35abfd91e5fb529b564d57ba99c6e779fb8a5c5a | [
"MIT"
] | permissive | aritraaaa/Competitive_Programming | 48ecd3b6e28549889160c04cdbd19a5ad06fa49b | ee7eadf51939a360d0b004d787ebabda583e92f0 | refs/heads/master | 2023-06-12T07:04:07.698239 | 2021-07-01T11:11:24 | 2021-07-01T11:11:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | class Solution:
# @param A : tuple of integers
# @return an integer
def repeatedNumber(self, A):
'''
# This is the marker concept, by list modification
A = list(A)
if len(A) <= 1:
return -1
for i in range(len(A)):
num = abs(A[i])
if... | [
"amitrajitbose9@gmail.com"
] | amitrajitbose9@gmail.com |
2dd88044536b0537240afba9e2ce20986046975e | 407d9b737babef2625182bd92ae56ae2efee8dfd | /DT_surface_floor_bottom.py | 008359f98f7b629520d29d44dc13de81474c11b1 | [] | no_license | Sujit-O/digitaltwin | 1ca4712ae2212de5b563ae9fee6b681b17b084f2 | 06950dc69b6f270742eeb8800a97ee5075a376ba | refs/heads/master | 2021-05-14T09:01:33.790322 | 2018-01-04T23:24:23 | 2018-01-04T23:24:23 | 116,317,258 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,084 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 3 12:16:00 2017
@author: AICPS
"""
# -*- coding: utf-8 -*-
"""
Created on Sun Aug 20 12:27:08 2017
@author: Sujit Rokka Chhetri
Project: Siemens Digital Twin Prject Summer 2017
"""
#!/usr/bin/python
#%% Import all the libraries
import numpy as np
... | [
"noreply@github.com"
] | Sujit-O.noreply@github.com |
5dd6e9370327b7405c71203257389455825b2b55 | 9d12c69327ee35fb2b478405a7a06e962bedc433 | /claims/models.py | e5768190bdf6d1c9a01e15d9710b7f1f219eb767 | [] | no_license | denizen-ru/partnerKredit | 3429eaad75942dcbc40d873a8a91a739f4458036 | 5e59afbc29080e135bef23c78be199987344a5e4 | refs/heads/master | 2021-01-01T03:49:55.460491 | 2016-05-25T09:25:40 | 2016-05-25T09:25:40 | 59,650,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,056 | py | from django.db import models
from accounts.models import SuperUser, Partner, CreditOrganization
OFFER_TYPE_CHOICES = (
('CC', 'Consumer credit'),
('MG', 'Mortgage'),
('CL', 'Car loan'),
('SME', 'SME credit')
)
CLAIM_STATUS_CHOICES = (('NEW', 'New claim'), ('SENT', 'Sended claim'))
class Offer(models... | [
"denis.m.knyazev@gmail.com"
] | denis.m.knyazev@gmail.com |
9878b2c84cacca4dd1e3d8247bee2f35e08bf723 | a16f09908c251f4fc162b28e8dbeb9d2017ab408 | /homepage/migrations/0005_alter_ticketmodel_status.py | c6a248ab9acf6eedc0feedb0c9be79adbf60b7c9 | [] | no_license | maglin07/BugTrackerApp | 95b5ec93d69777ed89d13a8665d50d701cb62694 | da6b257a3d00aa4abb344c76ec339349e226d23b | refs/heads/main | 2023-06-18T12:02:53.483915 | 2021-07-21T07:06:31 | 2021-07-21T07:06:31 | 388,016,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # Generated by Django 3.2.3 on 2021-05-25 14:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0004_alter_ticketmodel_status'),
]
operations = [
migrations.AlterField(
model_name='ticketmodel',
name=... | [
"linmag138@outlook.com"
] | linmag138@outlook.com |
90b5d147893c7fb4e128a6b6787bdd1219b8a793 | 57b62a2c0a64926eaa2f7f7fbef197276004e7d1 | /BUsBot/news.py | 711011a80ed8f937f4dd34a3a03d9db3d31731ad | [] | no_license | MasayoshiI/bu_bus_cb | 680520e1c75b34069cfefee55c05420622bafdab | b1aada6da2743ac6472912b070a6e28c8755491e | refs/heads/master | 2020-04-06T12:08:17.653883 | 2019-04-25T00:58:29 | 2019-04-25T00:58:29 | 157,444,367 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | # should I separate news and twitter authorization?
class News:
def __init__(self):
self.authorized = False
def get_news(self,authorized):
return None
| [
"miwasa20@bu.edu"
] | miwasa20@bu.edu |
eb37fe94306a9b07ea18d96085975147265fa95d | 1d26bf859705d3d6193fc3cc9da28d9a3af0de8e | /core_jobs/apps/jobs/search_indexes.py | 18fbeb56c7da36a46a1a6f8f1a405a65d2340baf | [] | no_license | tanay46/core_jobs | 3d8fe637127c6a4a4923b07ba4235858ee1b40ba | cbf0cf074332f0dd5abc4d9145d47eb989bcd577 | refs/heads/master | 2020-04-05T23:17:19.425885 | 2012-01-23T08:48:10 | 2012-01-23T08:48:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | import datetime
from haystack import indexes
from apps.jobs.models import *
class PostIndex(indexes.RealTimeSearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
author = indexes.CharField(model_attr='user')
modified_on = indexes.DateTimeField(model_attr='modified_on'... | [
"shindonghee@gmail.com"
] | shindonghee@gmail.com |
daabd04ef66e95085d98f1fa3e703af811ec01c0 | 2344d7aacbcec14b054beafe04225fb7ea0f7c0e | /mainapp/migrations/0018_auto_20190803_0033.py | b7c20cc2c9fe72124be0943fbaf6914eab402c32 | [] | no_license | RomanJordan/dota-website-public | 65873aba6f9bf2bd9080eab143ae70e4dd4c631e | 4fbb9d6b1de013310ea8d018a94a09d7dde894cd | refs/heads/master | 2022-12-07T18:47:29.804789 | 2019-09-10T04:24:05 | 2019-09-10T04:24:05 | 207,461,787 | 0 | 0 | null | 2022-11-22T04:14:16 | 2019-09-10T03:59:24 | Python | UTF-8 | Python | false | false | 1,871 | py | # Generated by Django 2.2.3 on 2019-08-03 04:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0017_hero_hero_advantages'),
]
operations = [
migrations.AddField(
model_name='hero',
name='hero_talent_l... | [
"32529400+RomanJordan@users.noreply.github.com"
] | 32529400+RomanJordan@users.noreply.github.com |
8d6d450c53634324abe9438facd8aa95c0534131 | 2492705863a873333c9df9d61732d1d5c0969b56 | /VIZARD - Python/Vizard1ShaderExample.py | 2d9de7605f1641eb61b096696a21e0a98ffabdaf | [] | no_license | jarsal558/Coding-Portfolio | 3a4f514321288f6f4abbbb82fda74bc0361f6fe1 | c08588ed62e6e9f3b8f6cc09196b0a2ab611692c | refs/heads/master | 2020-04-15T18:54:52.481281 | 2019-01-09T20:24:14 | 2019-01-09T20:24:14 | 164,930,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | vert_shader = '''
void main (void)
{
gl_TexCoord[0] = gl_TextureMatrix[0]*gl_MultiTexCoord0;
gl_FrontColor = gl_Color;
gl_Position = gl_Vertex;
}
'''
import viz
viz.go()
viz.clearcolor(1,1,1)
my_shader = viz.addShader(vert = vert_shader)
viz.startLayer(viz.TRIANGLES)
viz.vertexColor(1,0,0); v... | [
"noreply@github.com"
] | jarsal558.noreply@github.com |
806b799a68a8f630d0d3c583863156a6fb5790ed | 98d07f95e07c3e76d356bd50e062602ce00dceb4 | /email_blast/urls.py | 05a2bd404b76b8eb4754eb59b8e091b9235ff2fc | [
"MIT"
] | permissive | todaatsushi/hhts_website | 23b7aee4e76878503459be334f6b6ef635dfd6f0 | 5ae44056d4cb577eab2e5a0525a330b3ac19e122 | refs/heads/master | 2022-04-29T04:55:25.569632 | 2019-08-12T16:52:27 | 2019-08-12T16:52:27 | 178,904,398 | 0 | 0 | null | 2022-04-22T21:03:59 | 2019-04-01T16:33:48 | Python | UTF-8 | Python | false | false | 560 | py | from django.urls import path
from .views import AllBlastsView, DraftMailView, DeleteMailView, UpdateMailView, ViewMailView, send_mail
urlpatterns =[
path('', AllBlastsView.as_view(), name='email-index'),
path('draft/', DraftMailView.as_view(), name='email-draft'),
path('<int:pk>/update/', UpdateMailView.a... | [
"todaatsushi0@gmail.com"
] | todaatsushi0@gmail.com |
bb090a14d03d9ae34916626a733163fb80a13d07 | 6fd5d30cf21716893388442eb0f9c16e13b91315 | /ABC/146/b.py | c2dd6c1a2676c0ffb2fe3790a90434aca68c06bd | [] | no_license | mgmk2/atcoder-python | 23d45f3195977f1f5839f6a6315e19cac80da2be | beec5857a8df2957ff7b688f717d4253b4196e10 | refs/heads/master | 2021-06-09T20:00:22.500222 | 2021-05-04T15:36:39 | 2021-05-04T15:36:39 | 179,711,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | n = int(input())
s = input()
a = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ans = ''
for i in range(len(s)):
idx = n + a.find(s[i])
ans += a[idx % 26]
print(ans)
| [
"mgmk2.dev@gmail.com"
] | mgmk2.dev@gmail.com |
be503a2325322b3afaffbe0751bad9e35b57d03f | 1f15008a52ab5d60513af1f0cf7949bd69ebc7a0 | /src/domain/modules/vehicle_module/model_factory.py | 9acdbb0e69e136a87af541f7dd912b128a5b2c86 | [] | no_license | chris-coelho/saoma-v2 | 88dad03b7f75b71462a05210533289fadb7e1d24 | e5184b683c9a94c916cc38ede74d62d479eb1fdd | refs/heads/master | 2021-05-01T16:41:45.155695 | 2018-02-13T02:11:29 | 2018-02-13T02:11:29 | 121,051,212 | 0 | 0 | null | 2018-02-14T18:31:01 | 2018-02-10T20:24:28 | Python | UTF-8 | Python | false | false | 1,006 | py | from src.domain.modules.factory_base import FactoryBase
from src.domain.modules.vehicle_module.brand import Brand
from src.domain.modules.vehicle_module.model import Model
from src.domain.modules.vehicle_module.model_exceptions import ModelExceptions
class ModelFactory(FactoryBase):
@staticmethod
def create(... | [
"cristovao3g@gmail.com"
] | cristovao3g@gmail.com |
d08c5b7f46e7c4c45e0f33e24570caf885631458 | b85bea9d8c4f64fecc7cce70c211e7c1f5fd5da2 | /2_frequent_item/preprocess.py | 97c2199fa4fe0b1ab481e9d629bd49e693a20454 | [] | no_license | alvinzhou66/data_mining_assignments | c27cc3433317baff3105cdd7d7737594160d99e3 | 2e175934e54b76c703e3c52bd438d2dc032d2273 | refs/heads/master | 2022-11-15T15:14:57.722238 | 2020-07-06T00:54:35 | 2020-07-06T00:54:35 | 277,409,292 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | #%%
import csv
import json
from pyspark import SparkContext
input_review_file_path = "data/review.json"
input_business_file_path = "data/business.json"
output_file_path = "data/user_business.csv"
sc = SparkContext.getOrCreate()
business = sc.textFile(input_business_file_path).map(lambda x: json.loads(x)).map(la... | [
"noreply@github.com"
] | alvinzhou66.noreply@github.com |
0633d7ede215b645bc834d754358a81a2a6958b3 | df21ff970371d278473a19e851f4ab34ff15f97a | /bin/cftp | 2aad09f522365becd158b70a8772d373df34fcfd | [
"MIT"
] | permissive | harshavardhan98/news-detection | 032546bf1a13bdaa0a9bbc0c4dd8c3fc4c75d361 | 9f2039354346f71d284f36e9d4b654feac071f7e | refs/heads/master | 2022-12-17T04:27:21.677387 | 2018-08-10T17:34:12 | 2018-08-10T17:34:12 | 144,314,511 | 1 | 0 | MIT | 2022-12-08T01:00:31 | 2018-08-10T17:25:58 | Python | UTF-8 | Python | false | false | 419 | #!/home/atrophy98/Desktop/sih/Application/venv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==17.9.0','console_scripts','cftp'
__requires__ = 'Twisted==17.9.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"noreply@github.com"
] | harshavardhan98.noreply@github.com | |
b9bfcb28d66d01892330615f38b9420e3f501ff2 | 1e47d2fd3df5bb7958e6286fd85dd9bfc0341ac6 | /app2n9k.py | eadc9fcb73b5d91c485d4caa87e2b10783be2db6 | [
"BSD-3-Clause"
] | permissive | leeahnduk/Apps2N9k | cf463e7b6a4ecfab8e58666b827fee5646ea8e08 | 2992a4cc14ed4056e7e7fcf6565521988f0f9eea | refs/heads/master | 2023-01-22T19:29:04.753626 | 2020-11-13T00:53:35 | 2020-11-13T00:53:35 | 294,311,265 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,482 | py | import tetpyclient
import json
import requests.packages.urllib3
import sys
import os
import xlsxwriter
import argparse
import time
import csv
from argparse import ArgumentParser
from collections import defaultdict
from datetime import datetime
from builtins import input
from columnar import columnar
from tetpyclient ... | [
"anhdle@cisco.com"
] | anhdle@cisco.com |
39a3b88526f8165408904493963979bfd1fd988e | 9191f82029b47613133659a828834230e50e695a | /coding_problem4.5.9.py | 81c58aa4d7f03b0894d91decfef0c48adb5aa920 | [] | no_license | JCGilPose/Intro_Computing_David_Joyner | 08bb2d61c3b8c629acd1efeb9a672f63ce65078c | ef84a89b81fed6bb8af9cc94193d509b499d3582 | refs/heads/master | 2020-05-31T00:01:06.768200 | 2019-08-12T11:22:30 | 2019-08-12T11:22:30 | 190,028,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | #Recall last exercise that you wrote a function, word_lengths,
#which took in a string and returned a dictionary where each
#word of the string was mapped to an integer value of how
#long it was.
#
#This time, write a new function called length_words so that
#the returned dictionary maps an integer, the length of... | [
"noreply@github.com"
] | JCGilPose.noreply@github.com |
9de4abdf643e0a2a6772a2eb914b3fc2796f7194 | 3e15b40f4e28675af82d7d19aca1e5769131b3a4 | /exonic_snps.py | 55c500fd1980d7102f2be0938655079c402957f3 | [
"MIT"
] | permissive | jzfarmer/learning_python | 69fd50457e2365d39bd23f6953d3d1456ff6147d | 279fc19d4405625b49f853575252bf1dee3cbb99 | refs/heads/master | 2022-08-04T01:42:35.597663 | 2020-06-01T23:35:15 | 2020-06-01T23:35:15 | 252,600,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,950 | py | #!/usr/bin/env python3
# Write a program that intersects SNPs and coding exons
# snps.txt.gz has all the 23andme snps on chrom 21
# exons.txt.gz has all the coding exons on chrom 21
# Report:
# number of SNPs
# number of genes
# number of exons
# names of genes with SNPs in them
# Given that there are about 100x more ... | [
"jessicafarmer@Jessicas-MBP.attlocal.net"
] | jessicafarmer@Jessicas-MBP.attlocal.net |
695cdb94db56ccb5b2689dc2825959a63ea15a94 | 0c94547925ed2f81965be5ec62711e1556ec3e33 | /main/pagecontexts/writview.py | c054786c2e1e085a1156bed0117a42e2310c4ac6 | [] | no_license | eremzeit/beatwrit | 53bc73319d32213d5e90669ad7b69268e81a36cd | 0f9bb9f5df9b15b756c140ad7b36a5c58b3faf45 | refs/heads/master | 2020-05-16T20:25:57.226715 | 2011-12-30T22:55:05 | 2011-12-30T22:55:05 | 3,077,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,947 | py | from django.utils import simplejson as json
from datetime import datetime, timedelta
import re
import pdb
import math
from django.http import HttpRequest
from main.models import *
from utils import logpath
from main.fetching import *
class WritViewPageContext():
def __init__(self, request, writ):
self.wr... | [
"erem.zeit@gmail.com"
] | erem.zeit@gmail.com |
4fb689d7ee6a7dff3dde5f365c246c20d0d8dbde | b317bcf748825f0bcea361bbee0b02907a21aa39 | /Code/CNN/load_data.py | c0cb9d028bb1d264c0e39c6a6b2ff098eac702a9 | [] | no_license | singhalarchit/Abstract-Summarization | f0ef3b8591ab6f0273dc57ed7add4a3d4d1cdf60 | fa654984426a1ba1f128a22941307c5864904463 | refs/heads/master | 2021-05-07T06:23:05.432213 | 2017-12-14T11:25:59 | 2017-12-14T11:25:59 | 111,747,123 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,321 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 18 19:56:24 2017
@author: Archit
"""
import pickle
import nltk
import numpy as np
import re
import unicodedata
from io import open
full_data_filename = "../Processed Data/fulldata.pkl"
full_data_idx_filename = "../../Processed Data/fulldataidx.pkl"
full_data2_idx_filena... | [
"singhalarchit1@gmail.com"
] | singhalarchit1@gmail.com |
f73d89394fef515dd649d7bc36678ebade8faa53 | 017b29bd393cfafc2fe398aae7754bce0182da7c | /examples/ice40hx8k-yosys/SConscript | fd9268d63da7d8ddc623c6c5cb4ad2409fb12f6e | [
"LicenseRef-scancode-bsd-3-clause-jtag"
] | permissive | chipyard/chisel-jtag | a971d50a82097c77b7cad8970a87df39efa4a86f | 9646b090c16fe26790be77135e1bc491353c9815 | refs/heads/master | 2022-04-16T03:03:00.657118 | 2020-04-14T20:26:43 | 2020-04-14T20:26:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | Import('env')
blif = env.Synthesize('top', ['build/Top.v', '#../../external/vsrc/AsyncResetReg.v'])
asc = env.PlaceRoute(blif, pcf='ice40hx8k-b-evn.pcf')
bits = env.BitGen(asc)
report = env.Timing(asc)
env.Default(bits, report)
env.Alias('prog', [env.BitProg('prog', bits), report])
env_sram = env.Clone()
env_sram.Ap... | [
"richard.lin@berkeley.edu"
] | richard.lin@berkeley.edu | |
ad03b895afc6d180aa2358f68de8fcb600e871dd | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /W3Hptw6ieTtrWNw4H_17.py | 8740c16f02a86224026dad019c28269cb2d8f877 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,753 | py | """
The basic **Polybius Square** is a 5x5 square grid with the letters A-Z
written into the grid. "I" and "J" typically share a slot (as there are 26
letters and only 25 slots).
| 1| 2| 3| 4| 5
---|---|---|---|---|---
**1**| A| B| C| D| E
**2**| F| G| H| I/J| K
**3**| L| M| N| O| P
**4**| Q| R| S... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
279fd19ae32254d0fd602d477672d39a3c43f3e1 | 2083b21877700004a65f35c20abe8f5885244207 | /regularization/orthogonal_weight.py | 9296f5a3b9b8708d811e077e627ac080fab9c703 | [
"Apache-2.0"
] | permissive | ETRI-EdgeAnalytics/AIGrandChallenge | f0f2e8b5aa3b4ae31f34f4bae01961d6fb747dca | ecd6c2c9911d195155d3cbd14017d1692593926a | refs/heads/main | 2023-03-28T19:54:28.319583 | 2021-04-01T06:42:31 | 2021-04-01T06:42:31 | 353,196,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,671 | py | import torch
from torch.optim import lr_scheduler
import copy
from torch import cuda, nn, optim
from tqdm import tqdm, trange
import numpy
from torch.nn.functional import normalize
from torch.autograd import Variable
def gram_schmidt(vectors,device):
#to make pointwise matrix independent matrix
if vectors.sha... | [
"noreply@github.com"
] | ETRI-EdgeAnalytics.noreply@github.com |
64152ef3286b3b4aaf75d45d5ddad35339af9571 | 3cb89a2d4474608c5f47c4463eb8a3191774ab89 | /gensa.py | 3172fb7e7b17b44e207f4ad61280869721955943 | [] | no_license | haohaosteven/AutoRclone | 941fa08262679f9dd571197cc79b5ebcdaf119fb | ba5bafc28ed553a67d23516e965f667abdda83c1 | refs/heads/master | 2022-12-01T10:17:07.974194 | 2020-08-05T23:43:11 | 2020-08-05T23:43:11 | 284,528,513 | 0 | 0 | null | 2020-08-02T19:36:06 | 2020-08-02T19:36:05 | null | UTF-8 | Python | false | false | 16,466 | py | from __future__ import print_function
# mod by @avjun
# 所有项目邮箱都从1开始
import json,re
import sys
import errno
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from googleapiclient.discovery import build
from googleapiclient.errors import HttpError
from argparse im... | [
"noreply@github.com"
] | haohaosteven.noreply@github.com |
a3522fca20b8464003183ee290a2778619feb8d8 | cb4db25a0b13f058f1a31b38d80d76a118d1e2dc | /venv/lib/python3.6/site-packages/google/cloud/pubsub_v1/subscriber/policy/thread.py | 39f161a3b93e9a362f65cc6dcd60b839cd2cad34 | [
"MIT"
] | permissive | Hackaton-Dragons/Never-Boils | 73df2b65f54a77d961ce53dea350b7d2a4261154 | 2d43e6e07fb18409d5a964f44f481d28d2352531 | refs/heads/master | 2020-03-09T20:27:54.554616 | 2018-10-08T05:52:33 | 2018-10-08T05:52:33 | 128,985,616 | 1 | 0 | MIT | 2018-04-15T13:32:45 | 2018-04-10T19:35:32 | Python | UTF-8 | Python | false | false | 12,056 | py | # Copyright 2017, Google LLC All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"contact@noahh.io"
] | contact@noahh.io |
e34f54532e8403ba6405c2e1be24e8b4eb190ba3 | bcc3359817a74c97b8804d415b5b578d03ca4fc9 | /test/assets/classes/message.py | ae9a9cd7c2fcfd518fe6587ade21a5477f78edb7 | [] | no_license | pydget/pyspare | 21c7677e66987ef4625dc7a71f041beb025b0350 | 46ef0e3c4eca1ceb52a86cae3d790483d25b2906 | refs/heads/master | 2023-02-19T19:18:13.743639 | 2021-01-16T01:27:20 | 2021-01-16T01:27:20 | 288,975,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from dataclasses import dataclass
@dataclass
class Message:
__slots__ = 'origin', 'target', 'body'
def __init__(self, origin, target, body):
self.origin = origin
self.target = target
self.body = body
| [
"hoyeungw@outlook.com"
] | hoyeungw@outlook.com |
6cb65b44504b20720b6967c08c0fb580dd2850cb | cd6a835b14596620d46236ce2ec8003b42dcd393 | /machina/apps/forum/urls.py | 588a345c6d1914ddacaafe935dbb9bae7b6ff0a3 | [] | no_license | VanHai88/covert-site | bfec3ed75a75f4a29614906d982fd565ac1e011b | 2385ebaf1ed6c0eb42027f6665f545ce60828c12 | refs/heads/master | 2023-06-08T19:43:18.339787 | 2021-06-22T09:28:00 | 2021-06-22T09:28:00 | 379,212,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | """
Forum URLs
==========
This module defines URL patterns associated with the django-machina's ``forum`` application.
"""
from django.urls import path
from machina.core.loading import get_class
from machina.core.urls import URLPatternsFactory
class ForumURLPatternsFactory(URLPatternsFactory):
"""... | [
"hai.nguyen@emwealthtech.com"
] | hai.nguyen@emwealthtech.com |
5b34e7d87886c5e4e1f84382ab18bc06fd905371 | 5cb94263a7ccdc5a3f6ca18040672124c483ca12 | /backend_server/efluent_webserver/e_fluent_app/migrations/0001_initial.py | b6aac4292d59df3e823afc4b94f0b1e1fc720334 | [] | no_license | martinvol/e-fluent | e6ad8524673a746b95f9f2f20e9a46f9b1e80dd1 | 06c18b1ab853e44a7b07b4821ed966ae79d2c707 | refs/heads/master | 2020-12-07T02:32:38.605369 | 2016-06-19T00:34:29 | 2016-06-19T00:34:29 | 57,111,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-05-03 07:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Orthophon... | [
"martin.volpe@gmail.com"
] | martin.volpe@gmail.com |
909b30bb2930b9cb2a1dc1880cd4b41358bb8757 | 65bdb78953d12ef94951f9006b9aa94779827f17 | /challenge10d.py | b4e5e590f1abab93f7a457fce9971ca5839d218c | [] | no_license | GM3D/POH1 | bf66385b7993d6255736a1cef83da466bf1fa8c0 | 0d1ed9b76f01e328c434ccb48cea971c90ea7acb | refs/heads/master | 2021-01-13T12:55:54.934919 | 2013-12-22T18:14:18 | 2013-12-22T18:14:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,996 | py | #challenge10c.py
# count_and_offset is list
# with prescan.
from datetime import datetime, timedelta
from sys import stderr
num_marks = 10
def report_time():
for i in xrange(num_marks - 1):
if t[i+1] > t[i]:
stderr.write("t[%d] - t[%d] = %d us.\n" %
(i + 1, i, (t[... | [
"gmomma940@gmail.com"
] | gmomma940@gmail.com |
f8446039964cea805bcbfbf0a9c49bc5f3b15ee8 | 8ab6ee616e14619338d74751947d6446ac4a38bd | /ur5_test/scripts/main.py | 0ebeaf5a27bd031172d021e58089c4260207dfda | [
"BSD-2-Clause"
] | permissive | wkqun555/OCRTOC_GINS_Simulation-Part | 1fcecfefba0c2afbf1721d147726cdab602af97e | 642bb479c97a5e3a4c1be44ac10fa2b09f6b8a24 | refs/heads/master | 2023-01-09T03:09:18.680931 | 2020-10-05T07:26:59 | 2020-10-05T07:26:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | #!/usr/bin/env python
import rospy
from std_msgs.msg import Header
from trajectory_msgs.msg import JointTrajectory
from trajectory_msgs.msg import JointTrajectoryPoint
waypoints = [[1.5621, -2.12, 1.72, -1.1455, -1.57, 3.14],[0,0,0,0,0,0]]
def main():
rospy.init_node('send_joints')
pub = rospy.Publisher('/arm_c... | [
"1206413225@qq.com"
] | 1206413225@qq.com |
dbee5a27c760a92bb50d8294c6b8352a22ea276f | 346090f528bc8a8c415b4f0253b29dac9c1a97a1 | /takenotex/manage.py | 9480f8a9fc125a3877549005240aac46f01394e4 | [] | no_license | raveenb/TakeNote | 10e01769b342d99a4efe0f0369edbe436a52354d | 0d043debb540d5118264f8f64252db1b499e6c3b | refs/heads/master | 2021-01-23T16:28:11.629683 | 2013-03-25T18:13:56 | 2013-03-25T18:13:56 | 7,698,881 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "takenotex.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"raveen.b@gmail.com"
] | raveen.b@gmail.com |
73cf1bf0cb2673991a13c5ad0255cdb583da53a6 | fd9e45ff4e0e8ea93c1204aeac6020eb82395bbe | /sel_elements/find_elements_by.py | 5ca6e054e53261a361ff556b80c2d3eaffe943b4 | [] | no_license | VishwajeetSaxena/selenium_python | e42a4c7bc971ff5380b73d617890af7de0b2a09d | 02fe6a1e3e92f1b2ccd42ae7537b898b1aa68b26 | refs/heads/master | 2022-12-06T18:42:00.444136 | 2020-08-16T15:28:17 | 2020-08-16T15:28:17 | 277,317,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,889 | py | from selenium import webdriver
class Find_By_Name():
def getChromeDriver(self):
driver = webdriver.Chrome(executable_path='C:\\Users\\91897\\workspace_python\\sel_drivers\\chromedriver.exe')
return driver
def test(self):
baseUrl = 'https://learn.letskodeit.com/p/practice'
dri... | [
"asivish@gmail.com"
] | asivish@gmail.com |
a44762f7f83ec08c0a592bc170b50259d8bd49e2 | 292417a70e83d33fc4cedaed34d1b8e859ffe1a7 | /market/urls.py | 113708503a9a96ee4ed392f28d9d1321ee1c94c8 | [] | no_license | cooluks2/Niche-market-mine | c739144b61dfecd641f19bfa20439388d9dd562d | 2eacedd83ae3d1690ac56f9ae4089a44737c4771 | refs/heads/master | 2022-12-10T09:45:13.759650 | 2020-08-31T02:52:07 | 2020-08-31T02:52:07 | 289,786,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | from django.urls import path
from market.views import StoreDV, StoreLV, StoreCreateView, StoreUpdateView, StoreDeleteView, store_download
from market.views import MarketDV, MarketCreateView, MarketUpdateView, MarketDeleteView, market_download
from mysite.views import HomeView
from market.models import Market, Location
... | [
"cooluks2@gmail.com"
] | cooluks2@gmail.com |
ffe8f0bfa0cda93b62e2884a1937315803555c18 | c40d9297d54ee369afe5de5819e038386d32f5bd | /app/review_bid_list.py | 5a42529d3ffe0de2c0f2e9f7206ba26811513ace | [] | no_license | kuangwanjing/IntelligentAssignment | 47a14d5b7a8024fb8ea9f99a81e6d709aec0c886 | 06c0be177e43d240381c3c7e2254545f66b4b61c | refs/heads/master | 2020-04-10T03:03:42.743916 | 2018-12-07T16:14:53 | 2018-12-07T16:14:53 | 160,759,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | class ReviewBidList:
def __init__(self, review_size, participants = []):
self.participants = participants
self.review_size = review_size
| [
"samrappl50@gmail.com"
] | samrappl50@gmail.com |
fc1266738f799c65b9d4f71e6846f6b72d00fc74 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/recoveryservices/get_replication_migration_item.py | d1e403b2a6e74c291c8bcdb23200e48a30cd7dcb | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 4,452 | 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
from... | [
"noreply@github.com"
] | morrell.noreply@github.com |
031f01341b3f6a3f5d55120b736d178b2b4babe0 | 7302f7cfbbc992cdbb64548c121c9c23e326b47b | /web/migrations/0016_studyrecord.py | f5a01f20a4c6911328dc4fbd13e1d907f587ba6a | [] | no_license | kingLDY/luffy_crm | 7268e1c0164ba8a6a72eb83dc47e678d8fd7dbbc | d117b5ac6a57390300e5d6a73d7d3c01061a1b5e | refs/heads/develop | 2021-05-20T19:16:43.036840 | 2020-04-02T08:37:02 | 2020-04-02T08:37:02 | 252,387,116 | 1 | 0 | null | 2020-04-02T08:26:30 | 2020-04-02T07:37:08 | Python | UTF-8 | Python | false | false | 1,077 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-12-29 07:15
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('web', '0015_auto_20181227_0751'),
]
operations = [... | [
"1824243518@qq.com"
] | 1824243518@qq.com |
6caf9bad8efb32e56e0a9001ee05d706bcc31682 | a40f3574cebafaf0ae82277cf7d128aea8e340d9 | /GAN/gan.py | 19e948a8f69cc0aecbe17607b1b1ff1a63913430 | [] | no_license | ybai62868/PytorchLearning | b14f36896477baf6afb65412e14a9f8e38efb086 | 3ed4252978fedc65349eb094d85ddaf461c0bd18 | refs/heads/master | 2021-08-15T06:43:05.961680 | 2017-11-17T14:30:22 | 2017-11-17T14:30:22 | 106,394,788 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
torch.manual_seed(1)
np.random.seed(1)
BATCH_SIZE = 64
LR_G = 0.0001
LR_D = 0.0001
N_IDEAS = 5
ART_COMPONENTS = 15
PAINT_POINTS = np.vstack([np.linspace(-1,1,ART_COMPONENTS) for _ in range(BATCH_SIZE)])
def artists_works():
... | [
"ybai62868@gmail.com"
] | ybai62868@gmail.com |
c03780fcab120293920c7a174d3b1e18f90e1e0f | 3e55e0bf2b751163680b4557c614d9facd5c97c0 | /cart/views.py | 7774a2f6c65b353be32149af9b0d5d62a2f98081 | [] | no_license | jtuck15/ecommerce-mini-django-project | 8efb696d158a581d571982f523cb7cf721fee287 | 69fa59793074811e4849eb6450f155e86a8be041 | refs/heads/master | 2022-12-16T17:05:04.640977 | 2019-06-04T19:52:18 | 2019-06-04T19:52:18 | 189,295,159 | 0 | 0 | null | 2022-12-08T05:12:06 | 2019-05-29T20:43:05 | Python | UTF-8 | Python | false | false | 984 | py | from django.shortcuts import render, redirect, reverse
# Create your views here.
def view_cart(request):
"""A view that renders the cart contents page"""
return render(request, 'cart.html')
def add_to_cart(request, id):
"""Add a quantity of the specified product to the cart"""
quantity = int... | [
"jim.tuck15@gmail.com"
] | jim.tuck15@gmail.com |
4342584878b19df84503285c1ef03b3e9e403054 | 2d91300f0624f5287dea65dbedcaf2ecb1f5274b | /App/PageObject/HomePage.py | 0ddd990524f11b9febe72b6028be631e24121500 | [] | no_license | zlmone/nonoapp-android-autotest | e82faf04961c51526f4611eb3b36566d78a3031c | 10fc369d426707b85be874bb7835c17a0f222c4d | refs/heads/master | 2022-01-21T04:02:09.216843 | 2019-07-19T08:17:33 | 2019-07-19T08:17:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | from App.Driver import Driver
import time
class HomePage:
@property
def mine_view(self):
return Driver.d(resourceId="com.nonoapp:id/tv_home_tab_title", text=u"我的")
@property
def invest_view(self):
return Driver.d(text=u"出借")
@property
def discover_view(self):
return D... | [
"suzhiyu@suzhiyu-raindeMacBook.local"
] | suzhiyu@suzhiyu-raindeMacBook.local |
0db7f68eab74751e0b8f455e123cefcc363b17d2 | 470eb6b6af669ae037d1aaaf28c7169d906ca25e | /src/split_read_matrices_by_plate.py | 8292d94d002a13ad6308b38113fa0d8197f0494f | [] | no_license | wxgao33/CSI-Microbes-analysis | 5bddd6cc4ffb7ec2dca833231a4e966b92f348a1 | 273b41a20c4c13af0efe2a888821b0cfc5e0c189 | refs/heads/master | 2023-04-12T00:59:02.423797 | 2021-05-18T15:03:11 | 2021-05-18T15:03:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | import pandas as pd
read_df = pd.read_csv(snakemake.input[0], sep="\t", index_col=0)
metadata_df = pd.read_csv(snakemake.input[1], sep="\t")
metadata_df = metadata_df.loc[metadata_df["plate"].astype("str") == snakemake.wildcards["plate"]]
read_df = read_df[metadata_df["cell"]]
read_df.to_csv(snakemake.output[0], sep="... | [
"wir963@gmail.com"
] | wir963@gmail.com |
0113a3f2a583175b56b510febee6361c7eef79c7 | a941df10f19dc6d9a07575e7fbaf8577aa35de19 | /graphic.py | 68c274291e394647053ae420cbfdee7edc0a4951 | [] | no_license | GoDDoS/DevopsTasks | a22d65918c8d936f264dc9d2f40ef2276703cb36 | b0420c681d2316d3fdb45e353b088bd040bdef50 | refs/heads/main | 2023-04-28T04:39:51.217128 | 2021-05-10T17:19:07 | 2021-05-10T17:19:07 | 365,012,384 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,110 | py | from db import *
from tkinter import *
root = Tk()
root.title("Personal anime list")
ii = 0
gg = 0
ttl = ""
def add():
str = ('type', 'released_date', 'end_date', 'producer_name', 'rating', 'studio')
quest = ('When did you see it?', 'Rate it!', 'Type the best character')
array = {}
info_array = {}
... | [
"kuleshov.iv@phystech.edu"
] | kuleshov.iv@phystech.edu |
9344bb527e6bd01be344424a5716b7c6d61d62a3 | 4a23bef7eae8206345a02824b377a61ac2b588ce | /DirectRanker.py | e17c7e62241f319a4927fe8b3e459434595234a7 | [] | no_license | cjholl211/Learning-to-rank-for-patient-prioritisation | 575cac61a873b9204485425085165ed14c4aa9c9 | 477941b90453eed54d2fd8c9e2fd33662ad7a759 | refs/heads/master | 2022-11-16T01:43:05.958814 | 2020-07-18T10:51:45 | 2020-07-18T10:51:45 | 263,937,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,950 | py | import numpy as np
import tensorflow as tf
import pickle
from sklearn.base import BaseEstimator
from sklearn.model_selection import train_test_split
from dr_helpers import nDCG_cls
import time
def default_weight_function(w1, w2):
return w1 * w2
class directRanker(BaseEstimator):
"""
Constructor
:par... | [
"noreply@github.com"
] | cjholl211.noreply@github.com |
3370e689410d396a827a715f14aedb1803000b7e | f048f66977ebcfd3973f5cb41911e5de8b1bf7f5 | /pullenti/ner/NumberSpellingType.py | 72db57f98484782ba6c07c2f861ed30185173d7c | [] | no_license | AAA1911/PullentiPython | e01223d2d8656a8fbcc0873446a12d7e5c913f4a | f25b228c8eef9b70acb1285f405c976542342319 | refs/heads/master | 2020-12-22T12:56:21.701229 | 2019-12-11T08:34:43 | 2019-12-11T08:34:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # Copyright (c) 2013, Pullenti. All rights reserved. Non-Commercial Freeware.
# This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C#.NET project (www.pullenti.ru).
# See www.pullenti.ru/downloadpage.aspx.
from enum import IntEnum
class NumberSpellingType(IntEnum):
... | [
"alex@alexkuk.ru"
] | alex@alexkuk.ru |
0e54f592add357a09ba8655d612cbf44e75aacd4 | e694891ff8c9d06df7b7b5def7ba71c1dba03aa8 | /redis_queue/db.py | 730396f0069a2660ad5e33e14ba3afafc373801f | [] | no_license | wangyu190810/python-skill | 78f9abb39ebfa01b92ffb2ec96c7ef57c490d68d | 719d082d47a5a82ce4a15c57dd481932a9d8f1ba | refs/heads/master | 2020-04-05T17:43:48.005145 | 2019-02-01T01:45:49 | 2019-02-01T01:45:49 | 41,524,479 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # -*-coding:utf-8-*-
# email:190810401@qq.com
__author__ = 'wangyu'
from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine,text
from config import Config
def connection(database):
engine = create_engine(database)
Session = sessionmaker(engine)
session = Session()
return sessio... | [
"190810401@qq.com"
] | 190810401@qq.com |
34bf0ddf4c836f00f7809ad719bf5652f662b7e8 | 373035950bdc8956cc0b74675aea2d1857263129 | /spar_python/report_generation/ta1/ta1_section_overview_p2.py | 8c710d1d99d7cf13febced25219e657a0bc71447 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | limkokholefork/SPARTA | 5d122cd2e920775d61a5404688aabbafa164f22e | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | refs/heads/master | 2021-11-11T21:09:38.366985 | 2017-06-02T16:21:48 | 2017-06-02T16:21:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,053 | py | # *****************************************************************
# Copyright 2013 MIT Lincoln Laboratory
# Project: SPAR
# Authors: SY
# Description: Section class
#
#
# Modifications:
# Date Name Modification
# ---- ---- ... | [
"mitchelljd@ll.mit.edu"
] | mitchelljd@ll.mit.edu |
c0da0137dc94f85eb66878eb6c898a2804ae0fd3 | 3e97ac25dc95de9136fdc28840b869aa6f95f4ed | /ProcessFluorescence/NovelRegressionDevelopment/df_on_f_novel_regression_validation_with_created_data.py | 1dab77727f0fb088e4d89fbb2c883a3032adbf1f | [] | no_license | vivian-imbriotis/AccDataTools | d0753996bfbc5ae7d8c43eb94b6fd053f6565d33 | df2b85355c2dce2b68848064e2dc57c98cc5675b | refs/heads/master | 2022-12-30T15:03:37.367395 | 2020-10-22T07:44:43 | 2020-10-22T07:44:43 | 243,228,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,622 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 1 11:12:15 2020
@author: Vivian Imbriotis
"""
from time import time
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import linregress
from scipy.ndimage.filters import minimum_filter1d, uniform_filter1d
from sklearn.linear_model import TheilSenRegress... | [
"vivian.imbriotis@gmail.com"
] | vivian.imbriotis@gmail.com |
2a46943042d1f292a584285a1d041fb2aecb17d8 | b1a85a746ab50c9de17a8e2072ee319ad39f7e3e | /Task_2/Solution/Components/Data_Augmentation.py | 8a9781d5e59cf44898a30bd533ea172f4f64f33e | [] | no_license | LukeAndrewSmith/AML | 4087e28ce165bd316d97197f36bb6c12d5e2d791 | 1f30700bf825d88248ed7a38761438f094189539 | refs/heads/master | 2023-02-02T16:37:27.801817 | 2020-12-20T12:13:05 | 2020-12-20T12:13:05 | 298,624,715 | 0 | 0 | null | 2020-12-19T17:55:37 | 2020-09-25T16:27:03 | Jupyter Notebook | UTF-8 | Python | false | false | 181 | py |
import imblearn
from imblearn.over_sampling import SMOTE
def smote_resampling(X,y):
sm = SMOTE(random_state=0)
X_res, y_res = sm.fit_resample(X,y)
return X_res, y_res | [
"boeselfrederic@gmail.com"
] | boeselfrederic@gmail.com |
d793f87b0bef4eaaef51634ad0c4592d4a02d5ee | dd573ed68682fd07da08143dd09f6d2324f51345 | /daily_study/ProblemSolving/5430_AC.py | ee3166173aa8bebbfdd26b513e4d008af4aec83f | [] | no_license | chelseashin/My-Algorithm | 0f9fb37ea5c6475e8ff6943a5fdaa46f0cd8be61 | db692e158ebed2d607855c8e554fd291c18acb42 | refs/heads/master | 2021-08-06T12:05:23.155679 | 2021-07-04T05:07:43 | 2021-07-04T05:07:43 | 204,362,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | from sys import stdin
input = stdin.readline
def solve(numbers):
print("초기상태", numbers, len(numbers))
rcnt, dcnt = 0, 0
for cmd in p:
if cmd == "R":
rcnt += 1
elif cmd == "D":
try:
if rcnt % 2 == 0:
dcnt += 1 # 나중에 빼줄 때 사용
... | [
"chaewonshin95@gmail.com"
] | chaewonshin95@gmail.com |
3cff9791f0f876f817bef6ab82efff8e16924526 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4030/840004030.py | ea51f50d52dde6357e28745d6a0cd44e12f4297f | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 7,084 | py | from bots.botsconfig import *
from records004030 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'RQ',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BQT', MIN: 1, MAX: 1},
{ID: 'CUR', MIN: 0, MAX: 1},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
2a469acf940d000a63a2e38071d9e6e0c3be30a0 | 48b8afa97581b618fc5a378b566db95d486bb6b5 | /6kyu/AreTheyTheSame_6kyu.py | 04523bdd29f97c4c415faac92383a12cbfc391bf | [] | no_license | AthaG/Kata-Tasks | 1a3449a641b8bb10739195fd9291e91b990f0076 | ec01f86bd7e508552e00a285116d442c999070b2 | refs/heads/master | 2023-06-10T02:51:57.445083 | 2021-06-20T08:13:57 | 2021-06-20T08:13:57 | 323,949,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | '''Given two arrays a and b write a function comp(a, b) (orcompSame(a, b)) that checks
whether the two arrays have the "same" elements, with the same multiplicities. "Same"
means, here, that the elements in b are the elements in a squared, regardless of the
order.
Examples:
Valid arrays
a = [121, 144, 19, 161, 1... | [
"52504599+AthaG@users.noreply.github.com"
] | 52504599+AthaG@users.noreply.github.com |
0e82ee79e918a29ba71b84fda1e05d64b7d61662 | 88509a8ce62a22acc0639c683900d5d0cb8d69e7 | /Day22/orm/app/views.py | 034ffce2d9c3976faf3424c9b86052e00b42b8fe | [] | no_license | pytutorial/py2104 | 8b0238ab6f6d2f5395aee5fbe1f4aff03b819cd3 | 48b36d6b1f40730ef2747c310e70fb6997eda388 | refs/heads/main | 2023-09-03T16:55:02.285158 | 2021-10-20T05:24:31 | 2021-10-20T05:24:31 | 391,613,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | from django.shortcuts import HttpResponse
from .models import *
import json
# Create your views here.
def get_product_by_code(request, code):
product = Product.objects.get(code=code)
data = {
'id': product.id,
'name': product.name,
'code': product.code,
'description': product.de... | [
"duongthanhtungvn01@gmail.com"
] | duongthanhtungvn01@gmail.com |
bbb44545c91f38f60b5e2dd68e784a2dd5585d07 | 5f0aa278f1bce85b852d4cb57b5d1314b577635f | /anagram.py | d9ed06d79ee8e8fb1ad202f9006e8070ad81565e | [] | no_license | osvaldohg/algorithms | 56eb12975468871a11c7598b291780ce662b80cd | 99bcc57440e1fc7ac077112a9f65377554cb3a4c | refs/heads/master | 2021-10-08T04:28:24.106489 | 2018-12-07T17:08:03 | 2018-12-07T17:08:03 | 71,183,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | print "decoding"
#poultry outwits ants
PHRASE="poultryoutwitsants"
#pastils turnout towy
#poultryoutwitsants
#ailnooprssttttuuwy
source_list=[]
source_dict={}
filter_words=[]
def load_dict_source(inputFile):
source=open(inputFile,"r")
for line in source:
source_list.append(line.strip())
d... | [
"noreply@github.com"
] | osvaldohg.noreply@github.com |
46928e043be6e75bc252aa673845202699199897 | 34d52e534dbd866e43091fb61249c171e7f6506b | /main/tokenizeDB.py | 0c116d7e2a6c11e918a3cff26934b7665f166b3b | [] | no_license | wickz80/askreddit-informatics | e739fccebd910b99d743468f7515cfb4fd0433be | dd1510fd7b875fca23e48aec7518ecd387004664 | refs/heads/master | 2021-10-27T15:22:08.828069 | 2019-04-17T22:54:35 | 2019-04-17T22:54:35 | 115,559,434 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py | import praw
import sqlite3
import time
from itertools import islice
import re
import csv
from multiprocessing import Pool as ThreadPool
def fetchAllPostText(amount):
if amount == 0:
cur.execute("SELECT title FROM posts WHERE score >= 1")
else:
cur.execute("SELECT title FROM posts WHERE score >= 1 LIMIT {}".forma... | [
"32722332+wickz80@users.noreply.github.com"
] | 32722332+wickz80@users.noreply.github.com |
ca92dcd2a70ec4049ddc36eda9fdde994a6d6d20 | 5592b2cb7120a59a246a184e72177f9312bbc277 | /trunk/src/py/clTest.py | 5090d9d7bca9c97fdc73712d9fb66bf283933307 | [] | no_license | bjohan/Corbomite | 2d5bd75706af37450ad2f99cdce14b6c2e969d4f | 15908269c9bc433784a8d15c2feb3287ffa216d7 | refs/heads/master | 2022-05-27T11:57:31.155808 | 2022-05-14T18:29:10 | 2022-05-14T18:29:10 | 28,397,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | import common.tcpCommunication
cl = common.tcpCommunication.TcpClient()
cl.write("#info\r\n")
print cl.read()
cl.write("#tja\r\n")
print cl.read()
| [
"sa6bxq@gmail.com"
] | sa6bxq@gmail.com |
9b2e42ad3619a8aa8d9e99c6a2b3c8045609e66e | 475d1b83b77e2730b53722f0d8d11b070f97018a | /travelapp/migrations/backup/0013_auto_20210221_1309.py | 6de634dbf85cd70b3b448828cfa895fc3a0f6706 | [
"MIT"
] | permissive | Gwellir/my-region | b651284ee4d4ec7ec892bb78a7ce3444c833d035 | baacb7f54a19c55854fd068d6e38b3048a03d13d | refs/heads/main | 2023-04-20T17:31:33.040419 | 2021-05-17T13:35:38 | 2021-05-17T13:35:38 | 336,533,029 | 0 | 1 | MIT | 2021-05-17T13:35:39 | 2021-02-06T12:31:08 | Python | UTF-8 | Python | false | false | 1,558 | py | # Generated by Django 3.1.6 on 2021-02-21 10:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('travelapp', '0012_trip_subbed'),
]
operations = [
migrations.RemoveField(
model_name='route',
name='base_price_curre... | [
"gwellir@gmail.com"
] | gwellir@gmail.com |
6ba1c5ad8455cb166c23400b1eaadef2c3fbd71a | 207b1a92f81074d646ea40201f20aadb4f04a7b9 | /virtual/bin/sqlformat | 26f5fa7b6770340ebcd6b5d485c38b431f8ea587 | [
"MIT"
] | permissive | Benardakaka/Water-Travelles | 7bb00ad6a0d3f174a28b90c1c839fb3bd8bcc7a9 | f074cd38bc7aefb12f024e8d9ba34b8bd5ab2776 | refs/heads/master | 2023-02-24T13:52:06.612692 | 2021-02-04T09:35:05 | 2021-02-04T09:35:05 | 335,035,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/home/moringa/Documents/Marine-Travellers/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"benardakaka484@gmail.com"
] | benardakaka484@gmail.com | |
f0e3aff03c48d717cce727030dcf7d1bc41cccc4 | 4384308f49712034322404f65bedd47878c3c288 | /server/dataAccess.py | 7a81622218d0aae8a62e77e31ec7be6004b7874e | [] | no_license | weiwang-goed/warehouse | f4fea4b8205149bb18213e58f6f191fa36df4610 | 650330d7875c7094c4c53495855ae71663b733f4 | refs/heads/master | 2023-07-13T16:37:01.059098 | 2021-09-12T14:11:09 | 2021-09-12T14:11:09 | 405,655,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,493 | py | import pandas as pd
import os
import json
import pathlib
import time
from serverConfig import *
class dataAccessJs():
''' Funtions to access database (in this case, js files) '''
def __init__(self, inventoryJs, productJs):
self.inventory, self.products = {}, {}
self.inventoryJs, self.productJs ... | [
"ec2-user@ip-172-31-38-196.us-east-2.compute.internal"
] | ec2-user@ip-172-31-38-196.us-east-2.compute.internal |
0e61787e7e39045dbbff613b13f6d1a6a51f3570 | 29e4cfd21734307a438ce4620c11e0c99204b05d | /crawler/items/new.py | f7638a6a8cdd2c3a22ad45ef9e743cae108afd14 | [
"MIT"
] | permissive | LProDreamAll/douban_movie_database | b8be820c5c71c0263475ec6c3260da34c0bcbae7 | c4891fa078dbaffe251d135e5b49fafdb92e2b2a | refs/heads/master | 2020-09-23T05:48:52.387022 | 2019-12-01T12:16:40 | 2019-12-01T12:16:40 | 225,420,261 | 2 | 0 | MIT | 2019-12-02T16:30:07 | 2019-12-02T16:30:06 | null | UTF-8 | Python | false | false | 192 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# author: humingk
# ----------------------
import scrapy
class MovieDouban(scrapy.Item):
id = scrapy.Field()
name_zh = scrapy.Field()
| [
"humingk@qq.com"
] | humingk@qq.com |
59850fd2e1725ec52509b49798ea40b17538a168 | 3c85959670855891a4db4c2cb901cbab1cd4dbc4 | /crop.py | ba246987d996ee60ada74797125ca71f36af3dc3 | [] | no_license | pkmurphy85/Self-Driving-Car-NanoDegree-Term1-Behavioral-Cloning | 6d13abf3b562b33c99028c6011ffe872b3676fff | 973f3fd59a7e6a6583fa44a4527fecea8d76a902 | refs/heads/master | 2020-03-11T00:21:59.766873 | 2018-04-29T00:43:27 | 2018-04-29T00:43:27 | 129,662,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | import cv2
img = cv2.imread("./Images/center_2018_04_15_17_34_49_863.jpg")
crop_img = img[75:75+65,0:320]
cv2.imshow("cropped", crop_img)
cv2.imwrite("cropped.png", crop_img)
| [
"pkmurphy85@gmail.com"
] | pkmurphy85@gmail.com |
e04500146c2905788b8bb45ffa56d3c234a09b81 | 3120d8b22cc0b6755da6341434165baf0a855e9d | /Day 5 - Assignments/qn3.py | 1fe82263a2e7c8a2213031cae4cee04e2a0a3ef9 | [] | no_license | karthika-onebill/python_basics_assignments | 6033c8f442d452b463e81ba8bc70a6d1ed87b14f | 793bd0205d2f3eab47bf939aa0c0e002728805dd | refs/heads/master | 2023-05-24T14:18:46.603229 | 2021-06-20T02:17:02 | 2021-06-20T02:17:02 | 376,065,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | #for loop
def forLoop(list_var,type_var=0) :
if(type_var==1) :
sum=0
for i in Num :
sum+=int(i)
print("The sum from for loop:",sum)
else :
for i in list_var :
print(i)
print()
#while loop
def whileLoop(list_var,type_var=0) :
if(type_va... | [
"karthikavel2000@gmail.com"
] | karthikavel2000@gmail.com |
131f9db886c7a08170d6b8d48f09d8502bcb586e | 3382009321ffd3b6da55a83cfe364717b8d4a69c | /website/home/models.py | 602965cd23915282e0b66dc20e07492387826360 | [] | no_license | siddpatny/Trends-1 | 4165ee5f9f22f92132800a0c3ce9e004d743b3bd | 5644960f8ecb55163d41fcbcd2bde0d2be081132 | refs/heads/master | 2020-12-19T08:02:11.911923 | 2016-04-29T03:33:13 | 2016-04-29T03:33:13 | 235,672,605 | 1 | 0 | null | 2020-01-22T21:39:40 | 2020-01-22T21:39:39 | null | UTF-8 | Python | false | false | 455 | py | from django.db import models
class TopHashTags(models.Model):
hashtag = models.CharField(max_length=200)
rank = models.IntegerField()
# ...
def __unicode__(self): # __str__ on Python 3
return self.hashtag
class TopUserMentions(models.Model):
mentioned_user = models.CharField(max_length... | [
"rohittjob.it16@mnnit.ac.in"
] | rohittjob.it16@mnnit.ac.in |
f051187cc8b8ebd6a86176547ea86dfea08a8b02 | 235f47ff67783b80f5b57692d01905ea8a7e171f | /RQ1_RQ2/Thermostat_case_study/EVALUATION/Pymoo_GA/ImageBuilder.py | 263ef27cf31f913a1a914e634a9c4248ba52602c | [
"MIT"
] | permissive | dgumenyuk/Environment_generation | 5293789b89818d961d93facad1f9604470efe55d | 092fbecdc208f84aa58f2ccd3522262984e79cda | refs/heads/main | 2023-07-01T06:26:30.972835 | 2021-08-02T19:30:28 | 2021-08-02T19:30:28 | 383,611,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,672 | py | '''
Module to illustrate the created scenarios
'''
import numpy as np
import matplotlib.pyplot as plt
import time
class ImageBuilder:
def __init__(self, folder, duration, smpl_rate):
self.folder = folder
self.duration = duration
self.smpl_rate = smpl_rate
def build_image(
se... | [
"noreply@github.com"
] | dgumenyuk.noreply@github.com |
e2ff23792a6b36940e6dfd522da58a99e0a959da | d3f44206d35c8c8976f10492de3c77b57082ad11 | /client.py | d4482dc9f9d577b753a36b01ed9e758c9a6893a9 | [] | no_license | s19-nets/udp-file-transfer-xquipster | e80cc7cba17507a942baff674e06aebb15d06b70 | 5882c49b4f6b29383ab28578d15b61f0537cceac | refs/heads/master | 2020-04-23T23:14:40.843065 | 2019-03-06T17:31:27 | 2019-03-06T17:31:27 | 171,529,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,388 | py | from socket import *
import sys
class Client:
def __init__(self, af, socktype, file_name, choice, numClients):
self.numClients = numClients
self.sAddr = sAddr = ("127.0.0.1", 50000) #set address and reserve port
self.file_name, self.choice = file_name, choice
self.cli... | [
"ejhardin@miners.utep.edu"
] | ejhardin@miners.utep.edu |
d1637ba38880e1918ef3ef2ff63a4a45df0985d1 | 73e277935ef28fd05935c93a3f155c9cc6dc6de7 | /ctf/crypto/rsa/pq_common_pollard_rho.py | b3132f1b7d7879f7cddc3228571c37da556ae317 | [] | no_license | ohmygodlin/snippet | 5ffe6b8fec99abd67dd5d7f819520e28112eae4b | 21d02015492fb441b2ad93b4a455dc4a145f9913 | refs/heads/master | 2023-01-08T14:59:38.618791 | 2022-12-28T11:23:23 | 2022-12-28T11:23:23 | 190,989,347 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | #Easy_Rsa, yangcheng-2021, https://lazzzaro.github.io/2021/09/12/match-2021%E7%BE%8A%E5%9F%8E%E6%9D%AF%E7%BD%91%E7%BB%9C%E5%AE%89%E5%85%A8%E5%A4%A7%E8%B5%9B/, https://xz.aliyun.com/t/6703
from Crypto.Util.number import *
import gmpy2
n = 84236796025318186855187782611491334781897277899439717384242559751095347166978304... | [
"laitaizong@gmail.com"
] | laitaizong@gmail.com |
a4057c1687bbd2a89ca72fd789f29938de7b0a68 | c2842053268c1a065f8cbbac476713904da5e12c | /python/PyImporterExample.py | 8242672bd6ad1aeac4a57944a480d2c73176146e | [] | no_license | xiewendan/HelloWorld | 0741776218f44d92e54ca0bfe676401fd3c165cf | eeb11d0a0c3f584d2168d9c459fc54ddca83f654 | refs/heads/master | 2023-02-24T14:43:33.497926 | 2023-02-07T09:29:24 | 2023-02-07T09:29:24 | 82,867,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,374 | py | import sys
from importlib.abc import FileLoader
from importlib.machinery import FileFinder, PathFinder
from os import getcwd
from os.path import basename
from sibilant.module import prep_module, exec_module
SOURCE_SUFFIXES = [".lspy", ".sibilant"]
_path_importer_cache = {}
_path_hooks = []
class SibilantPathFin... | [
"jinchunxie@126.com"
] | jinchunxie@126.com |
93b8938a179dfae461fe0665037e5001a40af79d | db9a37dd50b90eb1c910ddf4f9cf97baa2cdb1b8 | /old/vis_html/vis.py | d6e738426b1a2a31dc8d874e30b49e5cbd0b2ce4 | [] | no_license | turbinenreiter/edurocket | f245767645d8187d8a8a1ea2864138affa925278 | b5088ff9a1835f9960ee8869193898322f7ebc21 | refs/heads/master | 2021-01-19T06:35:45.973124 | 2018-06-10T14:12:09 | 2018-06-10T14:12:09 | 25,205,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,681 | py | import matplotlib as mpl
#mpl.use('Agg') #'WebAgg'
mpl.rcParams.update({'font.size': 12})
import numpy as np
import matplotlib.pyplot as plt
import mpld3
import sys
def main(filename):
# read file
data = np.genfromtxt(filename,delimiter=';',names=True)
t = data['t_start']-data['t_start'][0]
uax, ua... | [
"oepse@gmail.com"
] | oepse@gmail.com |
8350f11980db9cb44191f5846907f76bee29c0a3 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/vse-naloge-brez-testov/DN13-M-065.py | d4f9aec2e9e2b28eadb12b6390cf9ff7b76a6e9f | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | from math import fabs
class Minobot:
def __init__(self):
self.x = 0
self.y = 0
self.direction = 0
self.x_direction_coefficient = [1, 0, -1, 0]
self.y_direction_coefficient = [0, -1, 0, 1]
self.states = []
def get_current_state(self):
... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
5389f0f4eeec31e9af90b7b7de046de7ff9bc43a | 9221667562d5d6a88eaf83df683ecc25eb9aac89 | /account/views.py | 436717b358c6808c19b8a86931d60c3802ddf7b1 | [] | no_license | RaihanDewonEman/Online-Exam | 84c5e1969afdb631affe8ffb943945fd70d56ec3 | 5608cff22e67125f2dc805ff266865e027fe7859 | refs/heads/master | 2023-08-26T17:53:44.758653 | 2021-11-12T05:12:07 | 2021-11-12T05:12:07 | 298,227,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,742 | py | from django.shortcuts import render, redirect
from django.contrib.auth.models import User
from django.contrib import auth
from django.core.exceptions import ObjectDoesNotExist
# Create your views here.
def Home(request):
return render(request, 'account/home.html',{'name': 'Home page'})
def Signup(request):
... | [
"raihan11011997@gmail.com"
] | raihan11011997@gmail.com |
7d1565ba786aff297e23e5f3ce7456cf1f7fcdc7 | f3ee9772e2a1599dd29705022e820ee48683562b | /script.py | d0319806c11bdb4528ee63f72f59824a6a397367 | [] | no_license | isalevine/file-renamer | 5434c739eb26ca53963a5cd707cd43063e7dcbb3 | 9e4bd0eaab3cb1b6733f6d1e9736c0622f5722cd | refs/heads/master | 2020-06-09T12:47:35.983012 | 2020-05-13T07:49:53 | 2020-05-13T07:49:53 | 193,440,265 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,678 | py | # per: https://stackabuse.com/python-list-files-in-a-directory/
import pathlib
# per: https://stackoverflow.com/questions/54152653/renaming-file-extension-using-pathlib-python-3
import os
path = os.path.realpath('./drum-samples') # set default path here
current_directory = pathlib.Path(path)
def print_menu():
g... | [
"isa.loves.coding@gmail.com"
] | isa.loves.coding@gmail.com |
ee2adfc989da6719ce249ae302c01aec142a648f | 1dfc1b538bd5c22468d9cbeaba5e16b9d6985518 | /ws-img/app/views/image_view.py | 6c031e954b03dcfc9e198c593255bbf3b94b0eb2 | [] | no_license | Deyveson/Project-Article | a0dce5a50e42f2ba8b5df74b82eab3b57044f43e | 6324f56985dad63b6b5939599f1a1740b2bd80f3 | refs/heads/master | 2022-11-22T21:10:24.333988 | 2020-06-25T17:09:50 | 2020-06-25T17:09:50 | 216,874,662 | 1 | 0 | null | 2022-11-22T04:59:32 | 2019-10-22T17:44:04 | Python | UTF-8 | Python | false | false | 978 | py | from flask import send_file
from flask_restplus import Resource
from app.py_image import app, ns, api
from app.services import imageService
@ns.route('/version')
class Version(Resource):
def get(self):
"""
Version project.
"""
return api.version
@ns.route('/get_image/<id>')
... | [
"deyvesonn@outlook.com"
] | deyvesonn@outlook.com |
9135fcf5f8c811e586c97a191119fd9d46c83c74 | 6352a8f4726d4d9c1970576e7b10a1394ce987cc | /config/taiga-back/local.py | 8364302d82641dd2918b3294090976761061d191 | [] | no_license | rimms/taiga-docker | d3eec16d36f83a4c74a64b0a08992083a8984779 | 2e23ff15bcab219b8fa25372b6d2111ce3899f9d | refs/heads/master | 2021-04-30T08:24:05.782331 | 2018-02-13T11:42:30 | 2018-02-13T11:42:30 | 121,373,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from .common import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'taiga',
'USER': 'taiga',
'PASSWORD': 'password',
'HOST': 'taiga-db',
'PORT': '5432',
}
}
MEDIA_URL = "http://localhost/media/"
STATIC_URL = "http://localhost/sta... | [
"imms.ryohei@gmail.com"
] | imms.ryohei@gmail.com |
3eea5540d632b5f817bbd40bce3131d0ad1f8263 | 101f124e47b71134a25ed664998ec244a6e4ab55 | /cluster_CESM-PIC.py | dd1ec609a7c12a5c19979391be26a9d92b4aa8bf | [] | no_license | cxzhangqi/cluster_ssh | 31e3777c141b09a08fd6ddfb221397b856b4d3ac | 4ca640d5ed0188e7b9ea25e688d077a19fbd6ab3 | refs/heads/main | 2023-06-05T18:00:59.583829 | 2021-06-28T23:51:19 | 2021-06-28T23:51:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,116 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Perform Clustering Analysis on CESM Data (Pre-Industrial Control)
Created on Wed Mar 10 10:10:37 2021
@author: gliu
"""
from sklearn.metrics.pairwise import haversine_distances
from sklearn.metrics import silhouette_score,silhouette_samples
import matplotlib.pyplot... | [
"glenn.y.liu@gmail.com"
] | glenn.y.liu@gmail.com |
a9ad1e1edb10e8fc1e8a7133be180469d8058dfe | d0ff7de56025a341c8740cc8eb95171f9f789b4f | /project1.py | 0591582690edc39044fbf7ad796f44975ed69670 | [] | no_license | glitchwizard/OpenCVTutorialFromMurtazasWorkshop | 018fed1333fa6dbf8f2aba42d030bf062df83285 | dfa42842fbe00ac2ef95092559000551d9b146e8 | refs/heads/master | 2023-02-10T09:42:41.280427 | 2021-01-05T00:33:25 | 2021-01-05T00:33:25 | 324,441,959 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,433 | py | import cv2
import numpy as np
#Project
#Screen painting by color
#it will take individual colors and allow you to paint with them on a screen
cap = cv2.VideoCapture(0)
cap.set(3, 640)
cap.set(4, 480)
myColors = [
[5, 107, 0, 19, 255, 255, "Orange"], #orange
[133, 56, 0, 159, 156, 255,... | [
"charley.mcgowan@outlook.com"
] | charley.mcgowan@outlook.com |
17345d8b511ebbe958917dea63d04e077d72fb03 | fe3adecf5d7f65b14b5b6faf4a9f34b00b481a75 | /corpus_formats/formater.py | 4cd9a15ba3937fd87c0d33da28add8690e6c1893 | [] | no_license | kendalvictor/harmonizing-tibidabo | d8dfcd2d3533439362278703796edff100aa7725 | e808d682431db525ae4eb7945bf9baeff9a67ca6 | refs/heads/master | 2021-01-19T20:43:25.391859 | 2015-11-02T11:35:35 | 2015-11-02T11:35:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | # -*- coding: utf-8 -*-
# /usr/bin/python
# Transforms the conll format of the tibidabo corpus to the conll format of freeling.
import sys
if __name__ == "__main__":
if len(sys.argv) is not 1 + 3:
print "Usage: ./formater.py <tibidabo input> <freeling format> <conll format>"
exit(1)
flout = ... | [
"mlloberes@bitbucket.org"
] | mlloberes@bitbucket.org |
8a6670b49666ee77f08d7a315a5866b81dbe64f2 | 4edbab938229e911599706974b5ea00b593a4594 | /le_sheets_essentials.py | 742c5290653bd06c234d7caddbd241885a2cefcf | [] | no_license | there-is-no-sp00n/Google_APIs | 2283004bc734f7f00165c36a17fbd285e24c5b43 | c260d02b086fcf9e2d29d5b296881de341039995 | refs/heads/main | 2023-06-25T03:38:14.187776 | 2021-07-21T10:56:40 | 2021-07-21T10:56:40 | 381,122,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | '''
Copyright 2021, Aninda Zaman, All rights reserved.
'''
#this will only work with Oshud Delivery
import os
import gspread
from oauth2client.service_account import ServiceAccountCredentials
import pprint
from send_order_info import send_order_info
# tells the program what scopes to look into
s... | [
"noreply@github.com"
] | there-is-no-sp00n.noreply@github.com |
72e1e11b35929352a9b8fb4845e93cb148b0df76 | d7d7108dc922c927650b68a65c857d64911c9882 | /eclipse_workspace/DownLoad/src/default/postform.py | 4c6a59eb291e00a0ca600b9fb00a21b288c397dd | [] | no_license | yzqcode/MyWorkSpace | adf310b3d367892e2ec2793abe07948e8ada2129 | 40d659e8e1549fbad8e84497b30f9894d298fc2d | refs/heads/master | 2021-01-18T20:56:10.721277 | 2016-10-14T01:21:10 | 2016-10-14T01:21:10 | 69,458,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | # -*- coding: utf-8 -*-
'''
Created on 2016-09-27
@author: 鄢真强
'''
import urllib.request
from bs4 import BeautifulSoup
import re
import math
import os
counter = 1
url = "http://disclosure.szse.cn/m/search0425.jsp"
def down(link):
global counter
url = 'http://disclosure.szse.cn/'
url = url + link
... | [
"鄢真强"
] | 鄢真强 |
f89be28b2adee79ecf8dd448dea45f1e162d5230 | fd1f351d6a768cdfccc5e863951f104b0461201c | /hamcwebc/settings.py | 503e0be296e6535cb18a59c8af34321b34c28d94 | [] | no_license | gurkslask/hamcwebc | b599f0a7796370c4180d0040a887399bdc37313e | 8abbe47cdd58972072d6088b63e1c368a63bb4af | refs/heads/master | 2021-01-10T22:35:52.527879 | 2017-06-01T09:26:22 | 2017-06-01T09:26:22 | 70,381,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,949 | py | # -*- coding: utf-8 -*-
"""Application configuration."""
import os
from datetime import timedelta
class Config(object):
"""Base configuration."""
SECRET_KEY = os.environ.get('HAMCWEBC_SECRET', 'secret-key') # TODO: Change me
APP_DIR = os.path.abspath(os.path.dirname(__file__)) # This directory
PROJ... | [
"gurkslask@gmail.com"
] | gurkslask@gmail.com |
bacf2279a6f0a45ea3f2fcfbac61d84042b305c0 | f5706f4e9ab0e82c3b4f32f2a51cf1add12f4b8d | /graph-project/client.py | a6a220b9b55ef3c1507234ee8c982d2f52d441fd | [] | no_license | brunodantas/sd | 35a01e00a6e993f2c5a2f5082ab86a42dab051b7 | c0c416205ba5c47011fd321058c4a94c68ebe58a | refs/heads/master | 2021-01-19T09:18:52.572582 | 2017-08-03T00:10:52 | 2017-08-03T00:10:52 | 53,506,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | #!/usr/bin/python3
# -*- coding: UTF-8 -*-
import sys
import glob
from inspect import signature
sys.path.append('gen-py')
sys.path.insert(0, glob.glob('./lib*')[0])
from graph import Graph
from graph.ttypes import NotFound
from thrift import Thrift
from thrift.transport import TSocket
from thrift.transport import TT... | [
"dantas@esolvere.com.br"
] | dantas@esolvere.com.br |
2e194112df53ba147c427b3442ad1038fea71b05 | 480e7bb34c23445497bc95e4b5107d89830148f2 | /Day 45/962. Maximum Width Ramp.py | a89d88a5861bb4b320d90a53b474a840aad0b325 | [] | no_license | ManojKumarPatnaik/100-Days-Code-Challenge | 632b15679557d482eb8e00468aa432c3df5d4d56 | 7be599bc7bbd07b4df576e00c27a55df60a678c4 | refs/heads/main | 2023-06-07T06:25:44.878727 | 2021-07-03T08:14:54 | 2021-07-03T08:14:54 | 382,612,464 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | # Github: Shantanugupta1118
# DAY 45 of DAY 100
# 962. Maximum Width Ramp - LeetCode
# https://leetcode.com/problems/maximum-width-ramp/
import sys
# Brute Force -- O(N^2)
'''
class solution:
def max_width_ramp(self, nums):
max_width = -sys.maxsize
for start in range(len(nums)):
... | [
"shantanuguptaknp@gmail.com"
] | shantanuguptaknp@gmail.com |
3d70438dff4ccacb8dc111623cddb2e69d1930fc | 3405ec23e8e1b7fbeffcef144b8994da4dd5b227 | /src/gui.py | 314e67a64fb7b02a216dbfc0896f5edc6920e9e5 | [] | no_license | Trekki03/Titration-Analyzer | 684fd582cd40315a3a892f133a7d3b5b927be6bf | 5542ae1a9b910cc4446e87efd024a341554b650a | refs/heads/main | 2023-08-11T04:17:43.448960 | 2021-10-11T07:47:21 | 2021-10-11T07:47:21 | 415,121,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,674 | py | # -*- coding: utf-8 -*-
"""
First created on 10/10/2021
@author: github.com/Trekki03
"""
import tkinter as tk
import matplotlib as plt
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
import plotter
import analyzer
import fileHandler
import linearFunction
class Window:
""" class containing all func... | [
"33525119+Trekki03@users.noreply.github.com"
] | 33525119+Trekki03@users.noreply.github.com |
6047a87b91eac506db9f9f35c3187806f051ffc0 | d5a1d87ce0162f0767f557c15a8081473d7e167a | /tools/SGD.py | f648b97e33a0fbfdc080ae269f2dcd5970e756a8 | [
"MIT"
] | permissive | Yonghongwei/reid-strong-baseline | bda4a7a6901e7320b4271e6a5a1dd6edd43c33b1 | 64d8f8c1b8d988a598071bb5ed15fd3fcc200dfb | refs/heads/master | 2022-06-19T10:40:53.092057 | 2020-05-07T08:30:31 | 2020-05-07T08:30:31 | 255,493,153 | 0 | 0 | null | 2020-04-14T02:43:17 | 2020-04-14T02:43:16 | null | UTF-8 | Python | false | false | 13,636 | py | import torch
from torch.optim.optimizer import Optimizer, required
class SGD_GCC(Optimizer):
def __init__(self, params, lr=required, momentum=0, dampening=0,
weight_decay=0, nesterov=False):
if lr is not required and lr < 0.0:
raise ValueError("Invalid learning rate: {}".for... | [
"noreply@github.com"
] | Yonghongwei.noreply@github.com |
0772b2a1ca7cccdfeadc35e6f96b484894c0fbc1 | e2cbe9d830e181355cdebb5f33d66aa879b81914 | /settings/example_local_settings.py | d88548a66388ba92fb8f6bd828b27f633f8f383d | [] | no_license | peterfschaadt/django-safesettings | 204f25df69cc35a82e5a5ec4adcf4dba13817d25 | 1dc1c9fa455024ae506db3c08316e2dd07765b67 | refs/heads/master | 2020-04-06T04:40:39.509124 | 2013-04-08T17:26:54 | 2013-04-08T17:26:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | ### Settings for Local environment ###
# Keep this file out of Version Control! (.gitignore)
__author__ = '{{ AUTHOR_NAME }}'
ENV_STATE = 'PROD' # Either DEV, STAGING, or PROD
# Production Database
PROD_DB = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2',... | [
"peterfschaadt@yahoo.com"
] | peterfschaadt@yahoo.com |
b8317e4db558cc1098bd224c458d1d8f2c3b1ddf | b22de9d0ca277bf9d12cb8bc847cd3964618746c | /get_movie_board.py | 758a94bd773fffde200e1e07953d42a670c3626c | [] | no_license | Proudgeorge/Web-Crawler | e32ea7327449d6598c13264192eb6933891e234f | 5d515511fead4035a8c727a679eaaeebf403cade | refs/heads/master | 2020-03-31T15:38:11.068390 | 2018-10-10T01:56:47 | 2018-10-10T01:56:47 | 152,344,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'CZH'
import requests
import re
import pprint
import json
import time
from requests.exceptions import RequestException
'''
作者:陈自豪
功能:抓取猫眼上评分前100的电影名称、时间、评分、图片等信息
版本:1.0
日期:09/10/2018
'''
def get_one_page(url):
'''
抓取一页的信息... | [
"noreply@github.com"
] | Proudgeorge.noreply@github.com |
1cf60a4eca3f70277691e357f9944a1180adcaf2 | 6e5a095b273497368cc63a8a38ca31324b990555 | /test.py | 0e9ddc06d21f650c472cb71f1f912b924b0f306c | [] | no_license | kalanod/bot | ca94b2651ec9e87fd57481f0f241c781b7c05988 | 4ef398b2c15b997b0f8f6f4530d153bd12b7de68 | refs/heads/master | 2023-04-10T16:01:15.763758 | 2021-05-01T17:20:20 | 2021-05-01T17:20:20 | 360,224,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | import itertools
from random import randint
key1 = itertools.permutations('QFS01LVmOPZ4G', 5)
rand = randint(1, 154440)
a = [i for i in key1]
key1 = "".join(a[rand]) | [
"336633563aA"
] | 336633563aA |
63f87d61e8c964d81e856f1e6f01cd937940a20b | 6b8bf10a57e1a85d2281579da9511310e39b9125 | /Exercise5/list_module.py | 653fd5fdce78508a87f475cb1e928e78a0de0a2d | [] | no_license | Hadirback/python | 9c0c5b622b18da50379d4c17df8ba68b67d452c9 | 88e03c34edb1c2f60a1624ee04b5bd975967e8ad | refs/heads/master | 2020-07-20T12:47:48.224472 | 2019-10-11T20:39:12 | 2019-10-11T20:39:12 | 206,643,640 | 0 | 1 | null | 2019-09-05T19:48:10 | 2019-09-05T19:38:58 | null | UTF-8 | Python | false | false | 629 | py | # Lesson 5 Exercise 2
import random
def get_random_elem(list):
if not list:
return None
return random.choice(list)
def fill_list():
my_list = []
while True:
elem = input('Введите элемент списка или Enter чтобы закончить ввод: ')
if not elem:
return my_list
... | [
"mail.evgeny.filippov@gmail.com"
] | mail.evgeny.filippov@gmail.com |
5789a966ed6ae948e41d390b54e40df3e87ec159 | 86e292a80731c6824fa410df41761db6a07939ca | /prodscripts/QuantStudio_hamilton.py | 095084284e732e78af7f0a2611b6bd4994035796 | [
"MIT"
] | permissive | EdinburghGenomics/clarity_scripts | 447b38ed4c4ff62abb65e421cbfbd43c0286035d | bc9c0ab400d4c47d2c2e43519dfe50360cf88dd4 | refs/heads/master | 2022-12-07T06:29:23.073447 | 2022-03-30T16:30:17 | 2022-03-30T16:30:17 | 50,435,598 | 2 | 0 | MIT | 2022-11-22T10:25:22 | 2016-01-26T14:54:00 | Python | UTF-8 | Python | false | false | 3,265 | py | #!/usr/bin/env python
__author__ = 'dcrawford'
from EPPs import glsapiutil
from xml.dom.minidom import parseString
from optparse import OptionParser
api = None
def limslogic():
def writecsv():
content = ['Input Plate, Input Well, Output Plate, Output Well']
for art in sortedArtifacts:
... | [
"timothee.cezard@ed.ac.uk"
] | timothee.cezard@ed.ac.uk |
32d8b616c7fbf7970c48dbd6370b57e89c4e3ef7 | 2ae5610c145557a6718f2103cc1ce01bc5d40fc7 | /distoptim/FedNova.py | c7cd144c19d90341b6bc49ea9595e3e4f6dc4a59 | [] | no_license | ms116/FedNova | bfc4ee9096194c774a884b25a60e37b84c965316 | 47b4e096dfb19dc43c728896fff335a5befb645d | refs/heads/master | 2023-03-19T10:52:01.438685 | 2020-10-21T21:00:51 | 2020-10-21T21:00:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,888 | py | import torch
import torch.distributed as dist
from torch.optim.optimizer import Optimizer, required
from comm_helpers import communicate, flatten_tensors, unflatten_tensors
import threading
import numpy as np
class FedNova(Optimizer):
r"""Implements federated normalized averaging (FedNova).
Nesterov momentum... | [
"jianyuw1@andrew.cmu.edu"
] | jianyuw1@andrew.cmu.edu |
7d26e894c9f765bef6b532e768050fc4c9df08c5 | a73ac0f5ae1f0ac543f0ffe9facd6861a435dc67 | /ex38.py | db5382f446dbcefdfb3d4cbea255f5f3e1843e97 | [] | no_license | suboqi/-python | 438e87bd440cc5b05cf7f884d6f08a46a2b346af | f8844c9dd81e0b9788089d420858891a460e2f39 | refs/heads/master | 2020-05-31T09:13:21.432226 | 2019-06-04T13:30:35 | 2019-06-04T13:30:35 | 190,207,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,993 | py | # batch_file_rename.py
# Created: 6th August 2012
"""
This will batch rename a group of files in a given directory,
once you pass the current and new extensions
一旦传递了当前和新的扩展,此批处理将重命名给定目录中的一组文件。
"""
# just checking
__author__ = 'Craig Richards'
__version__ = '1.0'
#导入os模块
import os
#导入argparse模块
import argparse
def ... | [
"1622653732@qq.com"
] | 1622653732@qq.com |
de317dc6879183437dc69a03ede0e6a143c57d62 | 6d86360bc6ae5c39128d3480c6382c58a6e7c5c1 | /Code_With_Us/src/sim/model/parts/bondburn.py | dcb2aa459e6730d24f39b9ceb366c97d2316b613 | [
"MIT"
] | permissive | CineDAO/Risk-Adjusted-Bonding-Curves | 0c3809f488f818235875d68881a7262b1d35d1df | 56b4f714dc145cca1503b7c80d6a7b38c1e2e3fc | refs/heads/master | 2023-08-16T01:41:23.121213 | 2021-10-02T13:45:47 | 2021-10-02T13:45:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,818 | py |
def update_R(params, substep, state_history, prev_state, policy_input):
# params = params[0]
# access amt_to_burn using _input['action']['amt_to_burn'] because it's a dict of dicts
R = prev_state['reserve']
S = prev_state['supply']
V = prev_state['invariant_V']
kappa = prev_state['kappa']
... | [
"andrewtaylorclark@gmail.com"
] | andrewtaylorclark@gmail.com |
ec349dee68d4714e67b1fc1faef499204a9b868f | 481f4d9c2265360fff330716ef6f2c0daed86740 | /couleur_aleatoire.py | b2d2e65649dabb2e1f8eb6a48849b0347fbc6f68 | [] | no_license | lucas-thong/NSI-project-1 | d1513b7ade96b2085d88a188234927d7e1537b72 | 80089c6cab4e47ef1a7eb7df90bd0029008210ad | refs/heads/main | 2022-12-25T14:52:49.670581 | 2020-10-12T16:31:01 | 2020-10-12T16:31:01 | 303,449,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | import turtle
from random import randint
def couleur_aleatoire():
'''
renvoie un triplet de 3 nombres entier compris entre 0 et 255
Ce triplet correspond à une couleur codée en RVB
'''
pass | [
"noreply@github.com"
] | lucas-thong.noreply@github.com |
812927956fda4aaf42b40e6e663b051499964fbb | cc423a599fae5bdc319b1ede586e97289308ae07 | /libsongtext/lyricwiki.py | bf1d70c41d9c4dff44edaa05bbe89905922b6133 | [
"BSD-2-Clause"
] | permissive | ysim/songtext | 778cc74967029760994f5b6143e6f4a175f3b5db | 1806c18ea9b77dc3f065e19aa0fb88ee533d835c | refs/heads/master | 2022-12-18T12:09:46.381777 | 2019-06-21T20:28:34 | 2019-06-21T20:28:34 | 16,112,047 | 14 | 3 | BSD-2-Clause | 2022-12-08T05:46:12 | 2014-01-21T17:51:54 | Python | UTF-8 | Python | false | false | 2,377 | py | from lxml import html, etree
from lxml.html.clean import clean_html
import requests
from libsongtext.errors import ArgumentError, SearchError
from libsongtext.utils import format_song_info, output_song
API_URL = 'http://lyrics.wikia.com/api.php'
SEARCH_PARAMETERS = {
'artist': 'artist',
'title': 'song',
}
... | [
"opensource@yiqingsim.net"
] | opensource@yiqingsim.net |
705172b35e4e926f7aaafbb9431f13fc097b88a4 | 54a26bf56aebd604d4dece733f08d7d30cd27f89 | /zdemo/auser/urls.py | 111ae8dee1420e3cac23d71f7714792b65cc4091 | [
"MIT"
] | permissive | zzZaida/django_27 | b78f5ae8bccfa11074221ba32241878d703aa535 | bbbba8be9547fb815c68e94fadb7e8b6eebf75c9 | refs/heads/master | 2020-07-03T19:47:25.037195 | 2019-08-13T12:11:29 | 2019-08-13T12:11:29 | 202,030,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | """zdemo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
1994c2b87b2984da6665c4ad9634a631dc9266a0 | 6f0d5ec56efc0c2933013867cd6b9529ca5ac1ac | /SolarSystemdMag/keithlyCompExampleDmagvsScurve.py | 1064970ae35faafefca4cf71c67d0a252f68e6c8 | [] | no_license | deanthedream/PrototypePlottingUtilsEXOSIMS | 1e3b1a004e21a3d06cc47f557dec7ce0e1a576fe | 3f17eb42f62e3d9a7dbffa7990317f928d8ec9da | refs/heads/master | 2023-08-27T23:47:34.465078 | 2023-08-24T11:58:54 | 2023-08-24T11:58:54 | 138,237,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,053 | py | #### Keithly Completeness Example Dmags vs S curve plot
import os
from projectedEllipse import *
import EXOSIMS.MissionSim
import matplotlib.pyplot as plt
from matplotlib import colors
from mpl_toolkits.mplot3d import Axes3D
import numpy.random as random
import time
from astropy import constants as const
import astropy... | [
"drk94@cornell.edu"
] | drk94@cornell.edu |
dbc9f7579143bb64ff98823e0279763d02cde114 | 6a8644cc47ed31adb60aba0f47551a897fdf8767 | /src/seraing/urban/dataimport/acropole/mappers.py | caa692885e0c32bea9b5dba44a5c0dcf0ed4a1e6 | [] | no_license | IMIO/seraing.urban.dataimport | 4e6ad4340348fc24b8576d4ce1f4c89a03063b88 | c9bd8e49390a14eeb53ce04a3d7b571e34da8a20 | refs/heads/master | 2021-01-20T03:42:12.232635 | 2017-04-27T12:23:47 | 2017-04-27T12:23:47 | 89,576,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,564 | py | # -*- coding: utf-8 -*-
import unicodedata
import datetime
from seraing.urban.dataimport.acropole.settings import AcropoleImporterSettings
from seraing.urban.dataimport.acropole.utils import get_state_from_licences_dates, get_date_from_licences_dates, \
load_architects, load_geometers, load_notaries, load_parcell... | [
"julien.jaumotte@imio.be"
] | julien.jaumotte@imio.be |
1e0b321bd32462e3429bc13aa5cf1eaa4183b6d8 | 05d7ffbde61f195e9ac73f3a73d880891a01bda6 | /shop_config.py | 83c7ab2c706f468639800cd2d495eec949b8fb85 | [] | no_license | m0n1ter/wxxq | 6d09d11022e3fc486e4193a6c6130a513db15e39 | d3fa3362cdbb48e59ff9a866158e108d3c6f1895 | refs/heads/master | 2020-04-07T03:26:56.463869 | 2018-03-14T13:54:23 | 2018-03-14T13:54:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | shop_list = [13069819, 13077683, 13079433, 13082387, 14065620, 14830235, 16438854, 18339733, 1865890, 1917598, 19281319, 19419483, 1999657, 2050147, 2245387, 2471101, 2716252, 3024541, 44397898, 44783109, 45075662, 5144657, 59061381, 9495359, 9873641, 9877320]
new_shop_list = [] | [
"chey"
] | chey |
b5ed6dd488d878ccd57ad40c55431222f153790d | 13e21198448cd5839d9b5cdba0c62ea4c3b36314 | /basin3d/core/connection.py | 7fffa230e1fe83b836664940e6262b6a0f78abeb | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause-LBNL"
] | permissive | heycatwonton/basin3d | 2f9392a4e205ce427ab1d7581976908b2848c7f9 | 980a52fa8d6c073cd6704950cfd4168c7f4b0f61 | refs/heads/main | 2023-04-12T01:48:25.308923 | 2021-04-23T16:48:02 | 2021-04-23T16:48:02 | 351,609,042 | 0 | 0 | NOASSERTION | 2021-03-26T00:40:15 | 2021-03-25T23:57:17 | Python | UTF-8 | Python | false | false | 13,833 | py | """
`basin3d.core.connection`
************************
.. currentmodule:: basin3d.core.connection
:platform: Unix, Mac
:synopsis: BASIN-3D ``DataSource`` connection classes
:module author: Val Hendrix <vhendrix@lbl.gov>
:module author: Danielle Svehla Christianson <dschristianson@lbl.gov>
.. contents:: Contents
... | [
"vchendrix@lbl.gov"
] | vchendrix@lbl.gov |
3be52c23ed541d99741e87747c2063b628607ae5 | 9c1ec6c3a826a40f9911894b63af6e265b70792c | /src/EmailClient.py | d34c7782fba23f512be609273cd7e8f0c391d5e9 | [] | no_license | Duskamo/beachhouse_email | c84c3907791fcc792ec86a5ebecffcd43aedcf73 | a4d3b30691d9b8c5cf8ae0e606496ec1c11353fd | refs/heads/master | 2020-07-05T01:14:03.636340 | 2020-03-15T16:17:26 | 2020-03-15T16:17:26 | 202,480,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py |
import smtplib, ssl
from .Data import Data
class EmailClient:
def __init__(self):
self.port = 465
self.smtp_server = "smtp.gmail.com"
self.dlandryClientEmail = Data.clientEmail
self.dlandryClientPassword = Data.clientPassword
self.dlandryServerEmail = Data.serverEmail
def addUserEmail(self, userEmail)... | [
"dyanownz@yahoo.com"
] | dyanownz@yahoo.com |
347021acc8f528e862d6401bb21dfa7d3134cf58 | 8d73ebf53f3d0aa08c3a50f18f47ef7d48e6febf | /CGPA_Calculator/icon.py | 7c01b70363b3922098a63c8e25bc682ad829f7c7 | [
"MIT"
] | permissive | deepdalsania/calculator | 1da25f91feed8723a1faf43a2dffd8a955d7a359 | 1460fc7f91ef9e379bdde240ddbcb0183d7ec092 | refs/heads/master | 2022-12-20T16:42:36.522300 | 2020-10-06T05:03:51 | 2020-10-06T05:03:51 | 300,562,691 | 0 | 5 | MIT | 2020-10-06T05:03:52 | 2020-10-02T09:18:04 | Python | UTF-8 | Python | false | false | 864 | py | import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWebEngineWidgets import QWebEngineView
from PyQt5.QtWidgets import QMainWindow, QLabel, QLineEdit, QPushButton, QApplication
def arrowIcon(self):
self.arrow = QLabel(self)
self.arrow.setPixmap(QPixmap("ARR.png"))
self.arrow.set... | [
"deeppatel.dd@gmail.com"
] | deeppatel.dd@gmail.com |
629f5f19bfaed88e1da50cd8780de17afb76811f | 57e649df1e635ab5d7ab4b31caef10ea1d829691 | /DBA/wsgi.py | 36ced47b75f4185978846ca828f12b5d8151b5d2 | [] | no_license | l985654987/hello_world | ed11d2df659294d6de8850fbaedc9c53da9ab74a | bbb58fef5f5416d5146f43251af246709e58a224 | refs/heads/master | 2020-04-11T12:13:00.262471 | 2019-04-20T08:21:20 | 2019-04-20T08:21:20 | 161,773,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for DBA project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_... | [
"985654987@qq.com"
] | 985654987@qq.com |
e883556af74768d33c9d085307796931163d4c7f | 0cf64c67a3eede0d16e15a527a58bc7515659b3e | /Zadania 2/2.19.py | 229c1a5f88a9917d1febe73c295db8de3dd5025c | [] | no_license | StaporBartlomiej/Python | 14cf7dbf3a84fcd3217bc983b6f509571153a6c3 | 2d6922952e02bbe7285feca20f6444e2660fcc51 | refs/heads/master | 2021-01-12T13:28:44.520583 | 2017-01-27T17:41:07 | 2017-01-27T17:41:07 | 69,954,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | #!/usr/bin/python
# -*- coding: iso-8859-2 -*-
L = ["1","2","3","21","22","23","301","302","303"]
for i in range(len(L)):
print (L[i].zfill(3))
| [
"bartlomiej.stapor@gmail.com"
] | bartlomiej.stapor@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.