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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
04cdfacc94cba4b6547b23c48613e764fff8eea7 | c04766334a0c9bec3583c707ac177aedc3247fbb | /example/report/test/SeoulCityDead.py | 3c3e2530b731292973656ffb451b1a24fb1bb2bb | [] | no_license | realwater20/city-seoul | 6abe870447cedcfc29315ebc2f28e6d878dd4cd5 | 8f889a2667de554c83e76492f08c47838198caee | refs/heads/master | 2023-04-07T23:12:30.598955 | 2021-04-21T06:00:05 | 2021-04-21T06:00:05 | 360,049,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,982 | py | # -*- coding: utf-8 -*-
# 서울시 월별 연간 사망자 수 집계
import numpy as np
import matplotlib.pyplot as plt
from operator import eq
import csv
def analyzeDie():
# csv 파일 읽어오기
pieces = []
datafile = '.\\csv\\SeoulDeadReport.csv'
with open(datafile, 'rt') as f :
data = csv.reader(f, delimiter = ',')
... | [
"realwater@staby.co.kr"
] | realwater@staby.co.kr |
333b3e57b03c06635723ab136380a76d369174b0 | edfcd96f0010ea068a4c046bdcf7067ff92d3f9b | /Modules/datetime/1.py | 3dcb2607e4524fae4299e4d4cb1d07b43e896777 | [] | no_license | afsanehshu/python-project | a99ff558f375c1f5e17ea6ffc13af9216ec4733f | 48905cfd24df6d1f48460d421ed774f19403cf53 | refs/heads/main | 2023-08-03T01:53:32.812949 | 2021-09-22T19:36:25 | 2021-09-22T19:36:25 | 409,303,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | import datetime
datetime_object = datetime.datetime.now()
print(datetime_object)
| [
"afsanehshu@gmail.com"
] | afsanehshu@gmail.com |
406c110b30acb23f4d2b89fa97603e853e4b9c26 | 5d263af3a57e0eaa1dfc55df964e61ed74208bb2 | /feature_extraction/extract_features.py | 811abb12454c69f6c67627835c5d8386ede54ef6 | [] | no_license | chenyr0021/multimodal-human-action-recognotion | 1c5374c93050f56eb00f87d00aea400f0158bafb | bf69abb2355de83b53f652416f29bd832ced5afc | refs/heads/main | 2023-02-04T03:22:42.611616 | 2020-12-25T06:35:39 | 2020-12-25T06:35:39 | 318,051,286 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | py | import os
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
import sys
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-load_model', type=str)
parser.add_argument('-root', type=str)
parser.add_argument('-gpu', type=str)
parser.add_argument('-save_dir', type=str)
args = parser.parse_args()
os.env... | [
"chenyiran0021@163.com"
] | chenyiran0021@163.com |
834876b1059232ee24322d209800d83c0d91d521 | de7b80e949b8890e8beec5da711c33fa74a49f01 | /catnado/properties/choice_property.py | 679b7c73a5872660d58c99d697c6ee75e8c3c629 | [
"Apache-2.0"
] | permissive | tylertrussell/gae-catnado | 39a0d1a7931acbb09ab739d6536f1b475b367a5f | 91a73e9108bb724fb780cc8dcfca4da579313cb9 | refs/heads/master | 2020-03-17T20:24:25.942542 | 2018-07-25T07:02:42 | 2018-07-25T07:02:42 | 133,907,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | from google.appengine.ext import db
class ChoiceProperty(db.IntegerProperty):
"""A property for efficiently storing choices made from a finite set.
This works by mapping each choice to an integer. The choices must be hashable
(so that they can be efficiently mapped back to their corresponding index).
"""
... | [
"tigertrussell@gmail.com"
] | tigertrussell@gmail.com |
e25fb293e8841b87c8979b159fe4daadf9eed51e | 8ed215ee731bc8c55eabdc66ee028a43771510bc | /tasks-deploy/rsa/check.py | 5bac71f193f848b84031ce3a62e0ff96d6fb6acd | [
"MIT"
] | permissive | irdkwmnsb/lkshl-ctf | c6c0b0ae58653d3d7c427073221043d2adea212c | e5c0200ddc8ba73df5f321b87b9763fb1bbaba57 | refs/heads/master | 2020-03-23T22:22:23.499985 | 2019-02-22T13:29:51 | 2019-02-22T13:29:51 | 142,172,055 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,868 | py | def check(attempt, context):
if attempt.answer == flags[attempt.participant.id % len(flags)]:
return Checked(True)
if attempt.answer in flags:
return CheckedPlagiarist(False, flags.index(attempt.answer))
return Checked(False)
flags = ['LKL{RSA_is_s0metimes_insecur3_3Udjwqg6}', 'LKL{RSA... | [
"supermax74.02@gmail.com"
] | supermax74.02@gmail.com |
de173d2bb760fbf4bd04e8b5784cb2d50c4a74b0 | f4af33b9a46effbd6cbcd84eedbc8992d3f3a5ce | /unit4/sps_function.py | 413e089cb9d718d71765a9b5c49c594758e39c3d | [] | no_license | ajdt/udacity_cs212 | d7fac354e8cc4ee54674cf40baf605f47f758bbf | bc9225ba7e04b7d219fed387a045dfec09c9bbcf | refs/heads/master | 2020-11-30T01:44:36.911165 | 2016-09-17T17:22:27 | 2016-09-17T17:22:27 | 68,466,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,778 | py | # -----------------
# User Instructions
#
# Write a function, shortest_path_search, that generalizes the search algorithm
# that we have been using. This function should have three inputs, a start state,
# a successors function, and an is_goal function.
#
# You can use the solution to mc_problem as a template for const... | [
"ajdt@uw.edu"
] | ajdt@uw.edu |
0404f601868205f4d85cf25071622a33e7bd409e | 85f96ed9ab5510ec1120a0687c6de5c4a8774a9f | /RestAPI/config.py | 4c6208b12f3b361ae2c9f9c7f0cbe7df16fd8a18 | [] | no_license | ronistone/toilter-APP | cc40e7e65ad68845f9d1a58b9f955dd29a3a1e13 | da211df826045a5cf4b463ebd82fddce3949ee25 | refs/heads/master | 2020-07-11T12:34:06.718155 | 2017-06-14T00:41:36 | 2017-06-14T00:41:36 | 94,269,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | DEBUG = True
DEVELOPMENT = True
SQLALCHEMY_DATABASE_URI = 'postgres:///restapi'
SQLALCHEMY_TRACK_MODIFICATIONS = True
SECRET_KEY = 'a1b2c3d4e5f6g7h8j9k10l11'
BUNDLE_ERRORS = True # related to Flask-RESTful errors, see docs
ERROR_404_HELP = False
| [
"ronistonejunior@gmail.com"
] | ronistonejunior@gmail.com |
f7d577610c90e9aa93d478ba5211244881ae4241 | 4711a51655cf8944039246d3cf28f5798af089fe | /coder/wsgi.py | 29f26bbb10285e85a1939e86c02aebaf634743b4 | [] | no_license | GauravTyagi67/myblog | 827756f8334b4e3df5b3fce2f598185d13551530 | 86288bb1b403206654752a1890f70cae4dc9d4c2 | refs/heads/main | 2023-04-20T02:08:23.752116 | 2021-05-11T03:08:12 | 2021-05-11T03:08:12 | 366,239,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for coder 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('D... | [
"noreply@github.com"
] | GauravTyagi67.noreply@github.com |
3ec15a885991693045ca69757489420fd2440bc1 | ee22ec2076a79e8de3011377fe205bc87163ab9f | /src/algo-p5/0828/q27/player.py | 1631f0c162cd5940c1385e5e74a4e95c3ea58bec | [] | no_license | n18018/programming-term2 | 039a95c67372a38a34e2aa8c5975045a9fc731be | 86c455269eed312def529604e1ac3b00f476226c | refs/heads/master | 2020-03-22T08:59:29.545280 | 2018-08-29T07:57:37 | 2018-08-29T07:57:37 | 139,806,131 | 0 | 0 | null | 2018-07-05T06:42:11 | 2018-07-05T06:42:11 | null | UTF-8 | Python | false | false | 12,069 | py | import field_map
import sys
import random
from enemy import Enemy
class Player:
def __init__(self, name):
"""
コンストラクタ
Parameters
----------
name : str
プレイヤーの名前
Returns
-------
自分自身のインスタンス
"""
self.name = name
self.... | [
"n18018@std.it-college.ac.jp"
] | n18018@std.it-college.ac.jp |
6cbf9974caf542980afdcb04dd20da0afa523385 | a835f4daa719e0060d5f0c9def9b51ff319ea17d | /MyEDmodules/HFraddamAnal/python/hfraddamanal_cfi.py | 493225a7c22025bf8d63b76188548455508b1635 | [] | no_license | pdudero/usercode | 8e2582df407aa81e1d674c5adb498e5268f54aa7 | e53c110632ef046e0944697611d727e1f8841510 | refs/heads/master | 2021-01-01T06:28:25.007997 | 2018-05-04T05:32:32 | 2018-05-04T05:32:32 | 11,696,730 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,654 | py | import FWCore.ParameterSet.Config as cms
hfraddam = cms.EDAnalyzer('HFraddamAnal',
eventDataPset = cms.untracked.PSet(
fedRawDataLabel = cms.untracked.InputTag("source"),
tbTrigDataLabel = cms.untracked.InputTag("tbunpack"),
laserDigiLabel = cms.untracked.InputTag("... | [
""
] | |
770c7164abe7da38b537a93ec34d8f614f0a94cc | ef35552267ac45345c60135845470260afbd6687 | /Artifacts/run_verus.py | 62d4e1cd025febe0970d0d9cd628cd8b3f810c46 | [
"MIT"
] | permissive | xianliangjiang/ALCC | 2bbe7e48aaf7ab273cfea4622855be12e261730f | fc9c627de8c381987fc775ce0872339fceb43ddf | refs/heads/main | 2023-05-16T21:11:06.738812 | 2021-06-10T11:43:23 | 2021-06-10T11:43:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | import os
TIME=300
DIR='Results'
NUM_RUNS=20
os.system('sudo sysctl -w net.ipv4.tcp_congestion_control=cubic')
# compile bftpd with alcc verus library
os.system('echo "compiling bftpd for alcc verus" && cd ../Applications/bftpd && cp Makefile_verus Makefile && make')
for trace in ['highwayGold', 'CityDrive', 'Corni... | [
"yasir.zaki@nyu.edu"
] | yasir.zaki@nyu.edu |
8baafd6e359d9fb1be1f926e4333393e9d332c08 | 6ceb5c8d4276165e61063edf4c4d7ddd4e23ad93 | /tests/pf/test_mag_MVI_Octree.py | be0979f77bb644d2fa5708a03a2dc24fdf135846 | [
"MIT"
] | permissive | fperez/simpeg | e3f552c654d1b57b8f6e407a8f9460799a300cba | 5babfbfb0e74a41f20dfa81eb872603fdc33b17a | refs/heads/master | 2020-09-15T19:39:35.547901 | 2020-01-10T00:25:57 | 2020-01-10T00:25:57 | 223,541,836 | 0 | 1 | MIT | 2019-11-23T06:21:14 | 2019-11-23T06:21:13 | null | UTF-8 | Python | false | false | 11,712 | py | from __future__ import print_function
import unittest
from SimPEG import (Directives, Maps,
InvProblem, Optimization, DataMisfit,
Inversion, Utils, Regularization, Mesh)
import SimPEG.PF as PF
import numpy as np
from scipy.interpolate import NearestNDInterpolator
from SimPEG.Uti... | [
"fourndo@gmail.com"
] | fourndo@gmail.com |
f5a8b97a66c04bb5a50c0064ce19657b48d5b3ef | 596b6f769a19bd597ca235263b4518be3227b0f7 | /ExeDemo/Exe14.py | 148b0eb6792aa548ad6088c8760e6848c115f327 | [] | no_license | himanim-ept/Python-Execerise-1 | 0ac5022e6cd5f6fe6887b1154258c3c62d393150 | 1663cba8bae6b1e6d186e87c7058c70023e65ca7 | refs/heads/master | 2023-03-15T06:18:51.546786 | 2021-03-10T11:02:19 | 2021-03-10T11:02:19 | 336,448,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | #Write a Python program to count the number occurrence of a specific character in a string.
txt = "Hello, My name is Himani"
x = txt.count("e") # count particular charachter
print(x) | [
"himanim@emiprotechnologies.com"
] | himanim@emiprotechnologies.com |
e308f0aa83b793bc83ed23a3d964b239a72ed6de | d4a5f8144855b201071c4657e37a7ad6b5994aff | /users/models.py | 7ae3002a7cc0a15449464e78df4109b39fe0abb8 | [] | no_license | Muratcol/Higher-Level-Django-Project | d453761197756d5b345640570f5a7b00c7948319 | cd82cc6bdc01196ad9a602be4bcd11ee655e1e1f | refs/heads/master | 2022-04-26T14:39:05.641565 | 2020-04-25T14:28:46 | 2020-04-25T14:28:46 | 258,793,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(User, on_delete = models.CASCADE)
image = models.ImageField(default = 'default.jpg', upload_to = 'profile_pics')
def __str__(se... | [
"muratcolyaran@yahoo.com.tr"
] | muratcolyaran@yahoo.com.tr |
4c198afdf441b3b85b7630151015f6fc947c91ca | 5d423684f7db6dd3f528e0ccc27ab41d6dfca9bd | /seniors/admin.py | ec0914b79716d1cc384dc3ee739cb1def581bc0e | [] | no_license | tnq/grogosite | e7459080188252c169c5bb71fbd183f06a2fe293 | c528826967aba6240a48f344a9a579c442695ddb | refs/heads/master | 2021-01-02T08:56:20.147735 | 2018-05-07T22:49:11 | 2018-05-07T23:04:11 | 1,848,585 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,137 | py | # -*- coding: utf-8 -*-
import codecs
import csv
from collections import defaultdict
from StringIO import StringIO
from zipfile import ZipFile
from django.contrib import admin
from django.core.paginator import Paginator
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.contenttypes.models i... | [
"nwiltsie@mit.edu"
] | nwiltsie@mit.edu |
560ff9f3f493317e04240dcf5f75f3fb3c0b41e7 | 500bca3e22bd0c30c79b74918e9847742b3c428e | /sdk/python/endpoints/online/mlflow/sklearn-diabetes/src/score.py | 4e2c269f5cb447804f693d12932e283e9219e83f | [
"MIT"
] | permissive | Azure/azureml-examples | 2304c862fd2e36e6640ecc4d09f69c5ed93b48ab | e5f7b247d4753f115a8f7da30cbe25294f71f9d7 | refs/heads/main | 2023-08-31T00:10:14.107509 | 2023-08-30T17:29:22 | 2023-08-30T17:29:22 | 289,334,021 | 1,219 | 1,074 | MIT | 2023-09-14T16:00:55 | 2020-08-21T18:04:26 | Jupyter Notebook | UTF-8 | Python | false | false | 979 | py | import logging
import os
import json
import mlflow
from io import StringIO
from mlflow.pyfunc.scoring_server import infer_and_parse_json_input, predictions_to_json
def init():
global model
global input_schema
# "model" is the path of the mlflow artifacts when the model was registered. For automl
# mod... | [
"noreply@github.com"
] | Azure.noreply@github.com |
6969c5a69023c51c4b9f057fc4d0ebc464317c30 | b4920771048ba1f7cc6ac266c3f3576290c00718 | /session1/HW/ex1.py | fc29c34c92c90a445624ba1c1a341c8b163b3e6c | [] | no_license | dungbk10t/phamtuandung-webmodule-c4e26 | 969779da1d4bd8c1940583f4a11d1cfbe064eea2 | af793ba2765c8c17852c6bebcaf8250543488490 | refs/heads/master | 2021-10-23T12:59:32.532871 | 2019-03-17T14:03:31 | 2019-03-17T14:03:31 | 173,112,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from flask import Flask,redirect
app = Flask(__name__)
@app.route('/about-me')
def about():
myseft = {
"Name": "Dung",
"Age": "21",
"Hobbies": "Travel",
"Work": "Student",
}
return str(myseft)
@app.route('/')
def school():
return redirect("https://techkids.vn/", code=302)
if __name__ == '__main... | [
"38665090+dungbk10t@users.noreply.github.com"
] | 38665090+dungbk10t@users.noreply.github.com |
c771d7fe4dad2294e05f47c1a734db065672f857 | 724713c8d5891e7dda67e8c250018250e6da44bf | /chapter_05/Variavle_length.py | 43a79e76c9e659d146355ac97a62f385eed7b721 | [] | no_license | conanlhj/python_inflearn | 1c5731e8634c18e15360097569541b419410f94e | c9c713ea1d374e8a5b9dfc1568e6a767c4d00305 | refs/heads/main | 2023-02-19T10:23:58.835506 | 2021-01-25T11:40:22 | 2021-01-25T11:40:22 | 332,727,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | def asterisk_test(a,b,*args):
return args
def asterisk_test_2(*args):
x,y,z=args
return x,y,z
def kwargs_test_1(**kwargs):
print(kwargs)
print(kwargs["first"])
def kwargs_test_2(**kwargs):
print(kwargs)
print("First value is {first}".format(**kwargs))
print("Second value is {second}".... | [
"77838360+conanlhj@users.noreply.github.com"
] | 77838360+conanlhj@users.noreply.github.com |
3d97109bf415ea9269f7025758774cb1e2f9c5ab | e5add4ba0dc980b2129830142d91956f762d9835 | /CovidResourceFinder/urls.py | bf5e8da72bbc53f8764ed3e35dba36556799fb7e | [] | no_license | VirangParekh/CovidResourceFinder | a23ddb0db9167625f2a605ec061d4f8a0bd583aa | 168bc145d1e92e8285f3a38bfd0eb0ea3effea93 | refs/heads/master | 2023-04-08T03:34:51.677830 | 2021-04-25T06:02:25 | 2021-04-25T06:02:25 | 360,268,178 | 0 | 0 | null | 2021-04-22T13:41:36 | 2021-04-21T18:27:36 | Python | UTF-8 | Python | false | false | 366 | py | from django.conf.urls import url
from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('admin/', admin.site.urls),
path('resource_finder/', include("ResourceFinderApp.urls")),
] + static(settings.... | [
"44228173+VirangParekh@users.noreply.github.com"
] | 44228173+VirangParekh@users.noreply.github.com |
833150ec357d3ab8a3ffb1d0b530443494e22440 | 6423626dcb7c6d2d261e9c87095736bcff888359 | /mainApp/views.py | 0f89809047fb03adb631c5f00f6269b3e53f4dd1 | [] | no_license | andrew-cmdltt/blog | d39031f7e1c8c5402fb201676c4b360c6b2ad3eb | 96e819ad1da056739c4ed854bbb7426d27f80c39 | refs/heads/master | 2022-11-05T13:32:32.720195 | 2020-06-22T07:07:37 | 2020-06-22T07:07:37 | 274,064,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.views.generic.base import View
from django.views.generic.edit import FormView
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.contrib.auth import login, logout
from posts.models import Pos... | [
"menwhohas2279@gmail.com"
] | menwhohas2279@gmail.com |
a4c78496e3e6c0ca7c8343f03b0e455be84de413 | 585fcfd09bcc37ad73c6f301cb8b16261a93df7e | /projects/pyDOE-master/pyDOE/build_regression_matrix.py | 5ea2c2f53342a023823a115a04a403407c9ccc3d | [
"MIT",
"BSD-3-Clause"
] | permissive | louisXW/Surrogate-Model | e9e8de3ab892eed2f8ed424e09b770e67126c1f3 | 65ec8a89c1b7a19d4c04c62e2c988340c96c69f8 | refs/heads/master | 2021-07-21T09:37:41.045898 | 2017-10-30T11:49:35 | 2017-10-30T11:49:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | """
This code was originally published by the following individuals for use with
Scilab:
Copyright (C) 2012 - 2013 - Michael Baudin
Copyright (C) 2012 - Maria Christopoulou
Copyright (C) 2010 - 2011 - INRIA - Michael Baudin
Copyright (C) 2009 - Yann Collette
Copyright (C) 2009 - CEA - Jean-Marc Mart... | [
"quanpan302@hotmail.com"
] | quanpan302@hotmail.com |
a6f10eb4cac4d9ebb9ce1cafd18a0bd881d177e0 | 9f3151a966b1e682dd24d806d4705145c8b10c47 | /0x11-python-network_1/6-post_email.py | ba2b1dc4d81b3f013abb2827eab4d3cb8942dca6 | [] | no_license | DiegoSusviela/holbertonschool-higher_level_programming | 5ace3a63a1f79fc7d0e870b8308dc10964b7bb21 | 4cd3e677bd0ffd6b7fc034a53b8c357893b87a60 | refs/heads/main | 2023-08-14T05:12:20.926985 | 2021-09-27T15:47:15 | 2021-09-27T15:47:15 | 361,817,218 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | #!/usr/bin/python3
"""alibaba y los 40 ladrones"""
import requests
from sys import argv
if __name__ == "__main__":
payload = {'email': argv[2]}
r = requests.post(argv[1], data=payload)
print(r.text)
| [
"dieguitosus@hotmail.com"
] | dieguitosus@hotmail.com |
21258aa7598c5f930fe4eaed3af4d0a499b648d9 | 98efe1aee73bd9fbec640132e6fb2e54ff444904 | /loldib/getratings/models/NA/na_ornn/na_ornn_top.py | 2ca0d07a4824d85d8de49a6105daf5c1b67f4de7 | [
"Apache-2.0"
] | permissive | koliupy/loldib | be4a1702c26546d6ae1b4a14943a416f73171718 | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | refs/heads/master | 2021-07-04T03:34:43.615423 | 2017-09-21T15:44:10 | 2017-09-21T15:44:10 | 104,359,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,269 | py | from getratings.models.ratings import Ratings
class NA_Ornn_Top_Aatrox(Ratings):
pass
class NA_Ornn_Top_Ahri(Ratings):
pass
class NA_Ornn_Top_Akali(Ratings):
pass
class NA_Ornn_Top_Alistar(Ratings):
pass
class NA_Ornn_Top_Amumu(Ratings):
pass
class NA_Ornn_Top_Anivia(Ratings):
pass
clas... | [
"noreply@github.com"
] | koliupy.noreply@github.com |
25d68ca33cbaa85ba2ebd6cc6cd38960029053a9 | 2ddfcb901978b4c8a431406098669d22c0c33c62 | /runaway/config/urls.py | 8feca1fe5a36af1262c8f959baf8fbc42ca3cb14 | [] | no_license | thezpliu/runaway | 1ce3e29e8e4b16d89c4c7bee5b44fc911089f586 | e32b3c9a40f40f3017b2b1d38b327cec78c3cad4 | refs/heads/master | 2020-04-29T21:15:53.971365 | 2019-03-19T02:37:35 | 2019-03-19T02:37:35 | 99,125,026 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | # coding=utf-8
from runaway.views.index import index
from runaway.views.login import login, user_login_out
from runaway.views.monitor import monitor
from runaway.views.svninfo import svn_v
from runaway.views.p4info import p4_v
from runaway.api.ldap_login import LoginCheck
from runaway.api.changepasswd import ChangePass... | [
"lzpac@163.com"
] | lzpac@163.com |
8a1ca419dff4adbd0c351ffc4b87553ec6abd288 | b134420ad05667ae191c3a2f3753ce5966594fb1 | /02_Info/hw02/src/docreader.py | 7746f9a82e692830eb169f912e43a82443d4b2a3 | [] | no_license | Fen99/TehnoSphere | aad17f9dca11561378d38ba292db1599e9bcfbec | 8a11c3d26f4eb6ad88c154e10e5411a5f625a17e | refs/heads/master | 2022-03-07T03:56:54.781807 | 2019-09-13T23:03:45 | 2019-09-13T23:03:45 | 106,061,225 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | #!/usr/bin/env python
import document_pb2
import struct
import gzip
class DocumentStreamReader:
def __init__(self, paths):
self.paths = paths
def open_single(self, path):
return gzip.open(path, 'rb') if path.endswith('.gz') else open(path, 'rb')
#Document format - <Len><Text>
#documen... | [
"feda.petraykin@gmail.com"
] | feda.petraykin@gmail.com |
26cdf1910bc9e8ac0aefa7ee992aabf7376ac5ae | a2f0abc7e1ec380f387d51dcefd1c5c2e0f6ba21 | /auth/httpclient.py | 4eeac4e2eb21f2faa3c06f0a709419106a2ec479 | [] | no_license | sanand0/sms-greetings | 0771537fd73a0769cb0e5eff2c9db56d401f6889 | ab9d7757104f8b1d1129df598f78e4b507d07bc3 | refs/heads/master | 2021-01-15T11:48:30.030591 | 2010-03-19T14:12:48 | 2010-03-19T14:12:48 | 32,197,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | """
web.py httpclient
~~~~~~~~~~~~~~~~
HTTP client to support `tornado.auth` on web.py.
:copyright: 2010 by tipfy.org and s-anand.net
:license: Apache License Version 2.0. See LICENSE.txt for more details.
"""
import functools
import logging
import httplib2
from webpyauth import RequestRedirect
b... | [
"subramanian_anand@localhost"
] | subramanian_anand@localhost |
87329ac75e0a03161d9c4ec7e50671e1a8c5b0d0 | 22299195d67f887d8de9f8764e8a85680cd3416c | /class7 (Color Filtering - OpenCV with Python for Image and Video Analysis 7)/main.py | e4430a318df1dc716db227d2a786414f7b6eb3ff | [] | no_license | EnggQasim/PythonOpenCV | 71268cb9bfa603b9aec1e239756f515f9693f74c | 2f1cd61df0fd520dbdc0e41a52ebfc4da410c771 | refs/heads/master | 2021-01-01T15:29:14.768477 | 2017-07-18T18:11:19 | 2017-07-18T18:11:19 | 97,629,494 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import cv2
import numpy as np
cap = cv2.VideoCapture(1)
while True:
_, frame = cap.read()
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
#hsv hue sat value
lower_red = np.array([150,150,50])
upper_red = np.array([180, 255, 150])
mask = cv2.inRange(hsv, lower_red, upper_red)
res = cv2.bitwise_and(frame, frame, ... | [
"m.qasim077@gmail.com"
] | m.qasim077@gmail.com |
0dec940c8d9ee73e47f55d49a771aebb21beec6d | 55d560fe6678a3edc9232ef14de8fafd7b7ece12 | /tools/build/test/rescan_header.py | 36a007eb406fa403704cb5091d42f2606d7901ce | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | stardog-union/boost | ec3abeeef1b45389228df031bf25b470d3d123c5 | caa4a540db892caa92e5346e0094c63dea51cbfb | refs/heads/stardog/develop | 2021-06-25T02:15:10.697006 | 2020-11-17T19:50:35 | 2020-11-17T19:50:35 | 148,681,713 | 0 | 0 | BSL-1.0 | 2020-11-17T19:50:36 | 2018-09-13T18:38:54 | C++ | UTF-8 | Python | false | false | 5,653 | py | #!/usr/bin/python
# Copyright 2012 Steven Watanabe
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
import BoostBuild
t = BoostBuild.Tester(use_test_config=False)
# Test a header loop that depends on (but does no... | [
"james.pack@stardog.com"
] | james.pack@stardog.com |
da33fd90e8e21d2ac80a6cfe717c8d7bd2b41914 | c54f0b3a32e9043ca99a8ffbb6989747eaec50b1 | /infer_module/positional_encoding.py | 1d2b0b973a1a1c59ef6a8bb994e99e68a84eb1d0 | [
"MIT"
] | permissive | daniel-richter/DIN_GAR | bad849a6eeeecaf7f9779c64b75494d8e12c0eb5 | f97759038936ad36359cb8c0d9ff0951d2482e25 | refs/heads/main | 2023-09-02T21:40:11.727572 | 2021-10-29T12:35:03 | 2021-10-29T12:35:03 | 407,142,109 | 0 | 0 | MIT | 2021-09-16T11:41:54 | 2021-09-16T11:41:53 | null | UTF-8 | Python | false | false | 6,752 | py | import torch.nn as nn
import torch
import math
import torch.nn.functional as F
import numpy as np
import cv2
from config import Config
class PositionEmbeddingSine(nn.Module):
"""
This is a more standard version of the position embedding, very similar to the one
used by the Attention is all you need paper, ... | [
"jie980446003@hotmail.com"
] | jie980446003@hotmail.com |
09485a4a913d81b199e0e4f85f59f811f3947951 | 867bb24022e8908e66b9dbe52bcac81cc16e86db | /myshop/Employee/apps.py | 907e9dc183c55890576e53643f99d014415ddbe7 | [] | no_license | Gonza12345/Diplom_shop | 86120886b0bf77cb871d3de2f64075592bed09c8 | 0527561d9746d6e5f73c62b74814135af7aa52e8 | refs/heads/master | 2020-05-31T02:28:52.147478 | 2019-06-03T19:34:39 | 2019-06-03T19:34:39 | 190,066,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class EmployeeConfig(AppConfig):
name = 'orders'
| [
"uad134679@gmail.com"
] | uad134679@gmail.com |
2736f96c3498266dc89e81e233c7c4990877fda0 | 3408dbca136a301cdaece4f15bc69e6c3cab3caf | /ism_pkg/tools/rff_layer.py | 53dc0dd8c9479e6b895e2bcf7f794328a1d417c8 | [
"MIT"
] | permissive | fusion-research/stochastic_ISM | 7c832e41aa76853349f266ebcf2d29aef77ade54 | 6438eb17bd391e8698e989156acb9b786c8f7299 | refs/heads/master | 2023-04-05T10:52:13.611747 | 2021-04-15T16:18:58 | 2021-04-15T16:18:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py |
from ism_pkg.tools.RFF import *
# A layer is defined by Wₐ, ℱ = RFF mapping, and maybe Wᵦ
# ℓᴵᴺ:layer input, ℓᴼᵁᵀ : layer output from training only
# A layer is a function f = Wᵦ ∘ H ∘ ℱ ∘ Wₐ
class rff_layer():
def __init__(self, ℓᴵᴺ, σ, RFF_width=400):
self.σ = σ
self.ℓᴵᴺ = ℓᴵᴺ
self.Wₐ = self.W = np.array([]... | [
"juliusctw@gmail.com"
] | juliusctw@gmail.com |
ad77f04ce6810e07fd8407db9354c5b4139ab67e | 17dca703eed28a859bba4984eba5b039b900e3d7 | /.history/nomina/views_20200227181321.py | a9f9c322cb015feead3955c66ebab05f4727ad27 | [] | no_license | alexogch1/SistemaOperaciones | 1a34872daf0e151672edd202a5089ee754805203 | ac72f6e3284061e240aebec6a3300ff463a3544c | refs/heads/master | 2021-01-03T15:32:45.470642 | 2020-03-03T07:47:27 | 2020-03-03T07:47:27 | 240,133,319 | 0 | 1 | null | 2020-02-28T05:21:57 | 2020-02-12T23:02:36 | Python | UTF-8 | Python | false | false | 5,733 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse_lazy
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.messages.views import SuccessMessageMixin
#from .filters import NominaFiltro
from dateutil.parser import pars... | [
"alexogch@hotmail.com"
] | alexogch@hotmail.com |
8a94001111da649b92a725b1d7bc961265802cb8 | c0ffe8573c627cda23840318bb22ca4bc612897e | /google-practice/Interview-Questions/oneEditOrMore.py | 0385c3199cc150292e559094c2c7951376b18795 | [] | no_license | ammarasmro/experiments-tuts | 284b37c9cce14c02e73a0bce65d36dfa9d85ee74 | 21395e64fce03c7c3d7590eb48038415f7640245 | refs/heads/master | 2021-01-22T19:35:57.891498 | 2017-09-30T07:33:57 | 2017-09-30T07:33:57 | 102,421,027 | 0 | 0 | null | 2017-09-30T07:33:58 | 2017-09-05T01:55:13 | Python | UTF-8 | Python | false | false | 804 | py | def isOneEdit(myString1, myString2):
if abs(len(myString1)-len(myString2)) > 1:
return False
counter = 0
str1Iter = 0
str2Iter = 0
while str1Iter < len(myString1) - 1 and str2Iter < len(myString2) - 1:
if myString1[str1Iter] != myString2[str2Iter]:
counter += 1
if myString1[str1Iter+1] == myString2[str2I... | [
"ammarasmaro@gmail.com"
] | ammarasmaro@gmail.com |
51fe296f9a06966e6e243a907c4209236b1137e9 | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/ebooks/migrations/0007_auto_20190429_1732.py | 3b567492131adb79f3e21d1f851220e0b4b14f01 | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 1,340 | py | # Generated by Django 2.1.7 on 2019-04-29 15:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ebooks', '0006_auto_20190429_1727'),
]
operations = [
migrations.AddField(
model_name='chapter',
name='description_e... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
c73ca1e3ae1851e55b801e24ff6219b8ff872295 | 59eccb126e4efd0f39bab0b00683a9fbdd9b5e69 | /tests/test_core.py | a1a01024c77cd89be8debe19e4246d704d0f3971 | [
"BSD-3-Clause"
] | permissive | Deepomatic/channels_redis | c694ca7ab711937e2c3c245c5f817cdf06549640 | 54d935beb6842333ba4f3e6c29cbe86c4307cf16 | refs/heads/master | 2020-03-09T20:07:54.566703 | 2018-04-03T16:05:44 | 2018-04-03T16:05:44 | 128,975,901 | 0 | 0 | null | 2018-04-10T18:08:14 | 2018-04-10T18:08:13 | null | UTF-8 | Python | false | false | 9,624 | py | import asyncio
import async_timeout
import pytest
from async_generator import async_generator, yield_
from asgiref.sync import async_to_sync
from channels_redis.core import ChannelFull, RedisChannelLayer
TEST_HOSTS = [("localhost", 6379)]
MULTIPLE_TEST_HOSTS = [
"redis://localhost:6379/0",
"redis://localhos... | [
"andrew@aeracode.org"
] | andrew@aeracode.org |
fa546a46671df8d5e7d5f0030dbce2f35ebe48ce | 1df53d3142563ccf0e47615dc226be0d6b9475aa | /model_utils.py | 3ed7b63f1cbafd89e7921c9febda497eb12c891d | [
"MIT"
] | permissive | zjunet/KDDCUP2020_AutoEnsemble | eee94298515db54f6bbc4c03729418913c2ae4ad | 88b766eb66e33d51ca350b22485bd9839e193ab2 | refs/heads/master | 2022-10-27T05:02:11.076782 | 2020-06-15T03:49:14 | 2020-06-15T03:49:14 | 285,231,427 | 1 | 0 | null | 2020-08-05T08:43:58 | 2020-08-05T08:43:57 | null | UTF-8 | Python | false | false | 20,601 | py | import pandas as pd
import numpy as np
import lightgbm as lgb
import torch
from sklearn.model_selection import train_test_split
from torch_scatter import scatter_add
from torch_geometric.utils import add_self_loops, degree, add_remaining_self_loops, remove_self_loops, is_undirected
from torch_geometric.utils import to_... | [
"826804116@qq.com"
] | 826804116@qq.com |
be93dedcd378f0edd7cec8080db95e8c1e31360e | 994ed74e909a59c3aae6428e13c4817865fc5636 | /ar/factory.py | fcbdd587f5ee693b6f1d1ecb28b89e7e259c2017 | [] | no_license | Lance0404/ampos_restaurant | e6bb0d66ac79d93902b30d13631cdb6fda4e8ea1 | 8c8c2039d704235c686cdd797d3962ee6d5cac8e | refs/heads/master | 2020-05-16T12:25:16.243764 | 2019-04-26T12:01:41 | 2019-04-26T12:01:41 | 183,044,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | from flask import Flask, current_app
from ar import config
# import os
from ar import db
import logging
import logging.config
from ar import mylogging
def create_app(config_obj=None):
app = Flask(__name__)
app.logger.info(f'flask app is up by Lance!')
app.config.from_object(config)
# if config_obj:
... | [
"virtuouslycan@gmail.com"
] | virtuouslycan@gmail.com |
b62cc4bb33d0bd00d4f6f417bd45a4df88c9bfad | be86e0055a3fc1a713ff6c530365cde78e81c2bf | /src/cardinal/db/newbie.py | 00d36673ff2cd09538a8b0e1f7d35833b741b80f | [
"MIT"
] | permissive | Maamue/cardinal.py | 228f3e422bb4884c87e53c6ef59373f772cf2b6d | 8e5a357c896ad0ff899e92a211380aab80c09b79 | refs/heads/master | 2020-08-31T23:46:57.841645 | 2019-04-30T15:40:13 | 2019-04-30T15:40:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | from sqlalchemy import BigInteger, Column, DateTime, ForeignKey, Interval, UnicodeText
from sqlalchemy.orm import relationship
from .base import Base
class NewbieGuild(Base):
__tablename__ = 'newbie_guilds'
guild_id = Column(BigInteger, primary_key=True, autoincrement=False)
role_id = Column(BigInteger,... | [
"simon.engmann@tu-dortmund.de"
] | simon.engmann@tu-dortmund.de |
5f1c1351f6599de5efa259519f67b0362771a49c | fc77f5083e4303f589b8e4b06a9cf898c8bffe3e | /users/forms.py | db49143b9091f51c957968a7cdd01bed1790a5e7 | [] | no_license | SaemChan/hotelreservation | fbe364153f2194669219881309c782df45fb6481 | c2df07fff5e0e6cf7d14e65147b774801c231e3f | refs/heads/master | 2023-01-02T11:53:31.098275 | 2020-10-26T17:34:55 | 2020-10-26T17:34:55 | 294,141,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,313 | py | from django import forms
from . import models
# from django.contrib.auth import password_validation
from . import models
class LoginForm(forms.Form):
email = forms.EmailField(widget=forms.EmailInput(attrs={"placeholder": "Email"}))
password = forms.CharField(
widget=forms.PasswordInput(attrs={"place... | [
"scha_@naver.com"
] | scha_@naver.com |
9b1a400d3281860f99c1cb1c0f0a9b1c2006bf90 | 2d191eb46ed804c9029801832ff4016aeaf8d31c | /configs/_base_/models/deeplabv3_sep_r50-d8.py | bb8c92051e538c75132eb8666ccb1d1cc8698ffc | [
"Apache-2.0"
] | permissive | openseg-group/mmsegmentation | df99ac2c3510b7f2dff92405aae25026d1023d98 | 23939f09d2b0bd30fc26eb7f8af974f1f5441210 | refs/heads/master | 2023-03-02T07:49:23.652558 | 2021-02-15T04:16:28 | 2021-02-15T04:16:28 | 278,537,243 | 2 | 2 | null | 2020-07-10T04:24:16 | 2020-07-10T04:24:15 | null | UTF-8 | Python | false | false | 1,330 | py | # model settings
norm_cfg = dict(type='SyncBN', requires_grad=True)
model = dict(
type='EncoderDecoder',
pretrained='open-mmlab://resnet50_v1c',
backbone=dict(
type='ResNetV1c',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
dilations=(1, 1, 2, 4),
strides=... | [
"yhyuan@pku.edu.cn"
] | yhyuan@pku.edu.cn |
8d2db0e03577849c03ffa9b296d5a266ea0fb0d7 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/aio/operations/_replicas_operations.py | ed2a170e523af5c4bd570d0b9b817e6a9a04d6ce | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 5,650 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
ab25192c92848ca0ed44893a946b6fd0e050f0dd | 23976d5085e2c0b91057a9a4009d4a4bca2f111b | /prod/ttbarSingleLeptonAnalyzer_TTBar.py | 3614d58004994599ac5c37da89d91a6fffa5d590 | [] | no_license | dygyun/TopSemiLepton | 2f7202b1b93e055060911cb222a258e0e462be15 | 9b84415e12fd8146bb4523a1d01b3ab53cae8ca8 | refs/heads/master | 2021-01-24T03:48:35.915247 | 2017-09-20T12:30:04 | 2017-09-20T12:30:04 | 45,440,845 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,912 | py | #------------------------------------------------------------------
# Data or MC Sample
runOnMC = False
# runOnTTbarMC == 0, No ttbar
# runOnTTbarMC == 1, ttbar Signal
# runOnTTbarMC == 2, ttbar Background
runOnTTbarMC = 0
#------------------------------------------------------------------
import FWCore.ParameterS... | [
"dygyun@Dooyeonui-MacBook-Air.local"
] | dygyun@Dooyeonui-MacBook-Air.local |
fe613641ae32fcb110bcbb399b2d465ebe57228e | 1ab053667d87389f673c7689b68dbb5c003f85b9 | /dict.py | 7713a2e202b415c6d2a18294a7232deae71528ec | [
"Apache-2.0"
] | permissive | acharyaparag/Compiler | dcf1d3aaf793b4fced7a1672f769caa995747dea | 046f99389d4ce1af46bc4a96a7ac58479986810d | refs/heads/master | 2016-09-05T16:37:20.371806 | 2014-05-14T03:26:27 | 2014-05-14T03:26:27 | 19,764,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,324 | py | reservedt = {
'start': 1,
'prog': 2,
'body': 3,
'declpart': 4,
'decllist': 5,
'decllist-': 6,
'declstat': 7,
'declstat-': 8,
'type': 9,
'procpart': 10,
'proclist': 11,
'proc': 12,
'prochead': 13,
'... | [
"acharyaparag@gmail.com"
] | acharyaparag@gmail.com |
63631d49e64a6f1b69225c61c39177874adf39f9 | cde31c1b90800c241fd30bd143ac117594bd3f0e | /negPos/utils.py | f9012957fa01dfe219acdcdab192f0ec6e0090c6 | [] | no_license | hadarbmdev/interactionAnalysis_thesis | 59d8e6a9cddd9d4761725b67c9c0450c38dedcf7 | d2649462a521de788fcd45d3ddd2ebf885ebc6a6 | refs/heads/master | 2023-02-12T04:20:27.092651 | 2021-01-12T19:37:20 | 2021-01-12T19:37:20 | 272,697,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,913 | py | import enum
from datetime import datetime
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import csv
import json
from operator import itemgetter
import os
import fileinput
from py import global_utils
import math
class BehaviorsEmotions(enum.Enum):
posBposT = 1
posBnegT = 2
negBposT ... | [
"hadarbmdev@gmail.com"
] | hadarbmdev@gmail.com |
ea8340585fbefecf22d761ebd8f68b9adb4a6aab | d2a20d4118dcfadc25ccf8214d1ecb21c3fd8e91 | /ye's model/randomForest.py | 46407bc51989dfa40404e034de8f38636e8079f7 | [] | no_license | jinfy/PopulationSpatialization | b4358e1bb1ca4121583c50736cece392cc1f8c74 | a6c468b32effa3a055bd8cfe7f0ab3eb88d3a895 | refs/heads/main | 2023-08-11T10:24:39.106679 | 2021-09-16T07:09:44 | 2021-09-16T07:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,543 | py | import pandas as pd
import numpy as np
# 100 200 500
RESOLUTION = 500
N_ROW = 0
N_COLUMN = 0
if RESOLUTION == 100:
N_ROW = 1540
N_COLUMN = 1250
elif RESOLUTION == 200:
N_ROW = 770
N_COLUMN = 625
elif RESOLUTION == 500:
N_ROW = 308
N_COLUMN = 250
grid_src = r"..\Data\gr... | [
"noreply@github.com"
] | jinfy.noreply@github.com |
25161b9b4c4e193d64701617854874c8f308c454 | 50af049cd65bc2a421d94e2b8a1b103594053d53 | /montyhall.py | b7db06f68eaf602112702efb064e07c28869f7c6 | [] | no_license | eumesmamente/pequepy | c7daa3f24c3dfbb3a0ba2824df186c823c5d83ec | 74450b4e54fb928a86eb6304ad60e838ae1e8a4f | refs/heads/master | 2021-06-23T17:46:51.181373 | 2021-03-19T00:09:20 | 2021-03-19T00:09:20 | 73,612,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,912 | py | #!/usr/bin/python
# coding: utf-8
# XOGO: O problema de Monty Hall
import random
import os
os.system('clear')
def xogo():
partidas=0
xogando = True
cp=0
ncp=0
while xogando:
os.system('clear')
premio=random.randint(1,3)
print " ___ ___ ___"
print " | 1 | | 2 | | 3 |"
print " | | | | | ... | [
"eumesmamente@riseup.net"
] | eumesmamente@riseup.net |
9af1a39149426ccea6a45e03877fe38cf3480229 | 41be644b55ae630380d73895ccfc4ec173c31e8d | /Huawei_6800_server_access_in.py | e80d4aa89ee4251f70a5bdc0244a5e3b38385f22 | [] | no_license | citywwm/Network-auto-opration | 2a9841640d81b6cd8f0f4e68fc409eba388f6a7c | e335d97609f7950a351ee3654120c1b5f479dc7f | refs/heads/master | 2021-08-27T16:45:32.799376 | 2021-08-18T09:22:21 | 2021-08-18T09:22:21 | 139,856,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,743 | py | #!/usr/bin/env python3
# -*- coding:UTF-8 -*-
import os,sys
#运行此脚本时,需要在后面跟上需要输入的列表名称,例如:python3 XXX.py AAA.csv ,否则程序报错。
#输入的CSV文件,格式应该符合规定格式。
#Read the CSV per line as a dictionary named RowDict
#将CSV文件读入,每行作为一个字典存储,字典的键名为表头名称,键值为表格内容,字典名为RowDict。
#DEVICENAME,sys,phyhostname,interface,isAbideUP,ip,port-channel... | [
"noreply@github.com"
] | citywwm.noreply@github.com |
05ccf6e2d5d1a9e66261f6829dcff9f2468cbea3 | 124bdbf417117fe23168f043dd265f88b3bd6e70 | /lib/datasets/__init__.py | e62bcd2b434d9f62ee2b19a9875c4c64db1d00e6 | [] | no_license | tonyonifo/anytime | 943f56ebd4759f0f5181607d8030d50eabb8d38b | 86bba7a334fc65899da01b30d925437163c1dede | refs/heads/master | 2023-08-02T21:32:42.977184 | 2021-10-05T16:58:35 | 2021-10-05T16:58:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .cityscapes import Cityscapes as cityscapes | [
"email@email.com"
] | email@email.com |
98e69f23ae346f2016310590e40cc654fdf7d26b | 90072552491d0eab6c611286d55a1f5155bdcf29 | /config.py | 42ebf335b0adf231867b97b956dedce3e792dbec | [] | no_license | Xerber/stalker | 8d8287e1296922d61404866f0f7476dd57f0fbed | d097792aa3b4bca4f3a869660e61bcc9e7b05423 | refs/heads/master | 2021-01-04T18:01:34.489084 | 2020-02-15T11:51:56 | 2020-02-15T11:51:56 | 240,700,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | host=''
user=''
password=''
home='/home/snowman/films_script/'
| [
"cherobuk.91@gmail.com"
] | cherobuk.91@gmail.com |
923934d04555b341a1c5a3b1c3b87d95a95a11b7 | 07c1bc9e8d85cecd55f9cb4ce7e8a0767064e394 | /test.py | 6077752e74e79791a9a2072deb1fb0b02ae54077 | [
"MIT"
] | permissive | dblume/wine-tasting | 2868163d3e95f39e6c338f73dfbe0318e3e73794 | 53a4ab6b518fb84b89f6752a8bc764fbf27c4b92 | refs/heads/main | 2021-11-25T10:29:50.903756 | 2021-11-19T18:13:34 | 2021-11-19T18:13:34 | 20,635,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,815 | py | #!/usr/bin/env python
import sys
import unittest
from StringIO import StringIO
import wine_allocator
class Tee(object):
def __init__(self):
self.saved_stdout = sys.stdout
self.stdout = StringIO()
sys.stdout = self
def close_and_get_output(self):
sys.stdout = self... | [
"david.blume@gmail.com"
] | david.blume@gmail.com |
277f5c2929da8f67793af05b2f29f8923a5f57b6 | d1a6270f3752dee9c7cc5e9ab490d2dc1ec264ba | /Code/Preprocessing/utils.py | a1dbb1df4ce086d2d707928e98b4c6ee63f6a021 | [] | no_license | Jasonti0120/Bitcoin-NLP-Project | bc1d567da43907e687920cfcc676080f605fe079 | 17c4beb2bf53b70ce9dc8ef0d3d8863a6230657e | refs/heads/main | 2023-08-21T11:46:10.305022 | 2021-10-14T15:49:36 | 2021-10-14T15:49:36 | 387,865,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,263 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 20 13:38:06 2021
@author: jasonti
"""
# sentiment score
def s_score(df,target,output):
"""
Parameters
----------
df : target dataframe.
target : A string: column name for text
output : A string: column name for sentimen... | [
"cti@drew.edu"
] | cti@drew.edu |
5e0c3d672b3b5efb05aa6b2d2e55bd0e758f27e2 | 7c3ccfe8fdcbe05d04444da071b9b3469b11f351 | /.github/scripts/filter_test_configs.py | 96dff128572d4ee665a4731138827d928f152d84 | [
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | nihui/pytorch | ad4df723672300d5bd4290d6bc4e2e66a5ff2f0f | 999bae0f54108ffc5b7cf2524a02a83901554b16 | refs/heads/master | 2023-07-07T06:35:37.886490 | 2023-05-30T05:07:59 | 2023-05-30T05:07:59 | 177,545,801 | 3 | 2 | NOASSERTION | 2019-03-25T08:33:23 | 2019-03-25T08:33:23 | null | UTF-8 | Python | false | false | 14,809 | py | #!/usr/bin/env python3
import json
import os
import re
import sys
import warnings
from typing import Any, Callable, Dict, List, Optional, Set
from urllib.request import Request, urlopen
import yaml
PREFIX = "test-config/"
# Same as shard names
VALID_TEST_CONFIG_LABELS = {
f"{PREFIX}{label}"
for label in {
... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
2f8373e82d8f6770def3f2102776d72c8c6a834f | 6871c745f82121a26812502f320f0c21741fe42b | /config.py | b802d2b6f4a520a1bf1353db9ec84656c92ee378 | [] | no_license | ericdonnelly/Brick-House | 7fc8a8eadcfdf826963d98cc14825a4bd64b9966 | ad36a35954b37ed211200bb31f3abf402129d599 | refs/heads/main | 2023-02-12T08:50:11.220865 | 2021-01-06T02:35:39 | 2021-01-06T02:35:39 | 320,123,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | # GMAPS API Key
gkey = "AIzaSyA7syV4Z2LAYZ64QqKCcmUrGGN18-PmqX4" | [
"ericdonnelly601@gmail.com"
] | ericdonnelly601@gmail.com |
5a0772e1a8a55625488fe06642e451fb792dad75 | b0129214b1d493bdec6fc4658727775fb4066a5e | /addons/todo_user/__manifest__.py | 373e3f23f73a060a7b0267b94f628db4cc01f954 | [] | no_license | gitstalker/docker_odoo | 9875636e4f1bf60a8e55c7a66e8c85abf5f61661 | c049d93586f1c35300563fc77685da22d9cc4e14 | refs/heads/master | 2020-05-02T01:10:45.705337 | 2018-10-20T12:03:20 | 2018-10-20T12:03:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | {
'name':'Multiuser To-Do',
'description': 'Extend the To-Do app to multiuser.',
'depends': ['website'],
'data':['views/templates.xml'],
'author': 'hdwolf'
} | [
"spacegoing@gmail.com"
] | spacegoing@gmail.com |
e899dce720bec0bd2b1c3742bee19db16187e09a | b9121dcc859563d1e148ab539a47e471f467ede2 | /cvfyblogproj/blog/models.py | e4450dddf449f17ff8e3466dfa8b0818ff5a941d | [] | no_license | VinitK/blog-application | 2a12ce97b794f23a8c6e9a3b810c2756029453e2 | e9cc19ddb9e98f5515ae557fe2b345e907bb9d2a | refs/heads/master | 2020-04-28T01:14:09.706591 | 2019-03-11T03:33:47 | 2019-03-11T03:33:47 | 174,847,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | from django.db import models
from django.utils import timezone
from django.urls import reverse
# Create your models here.
class Post(models.Model):
author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
title = models.CharField(max_length=256)
text = models.TextField()
create_date = models.... | [
"vinit@cutshort.io"
] | vinit@cutshort.io |
0a2f8a83695f5c8c2c2ea926b7914ee08ee6cbdd | 50ab563ae9d4506048a54b99f4f80b5b276c8f3b | /2pointer/16_threeSumClosest.py | 8f4963a35261a37b05078f03b3f5a9a533381172 | [] | no_license | chenpengcode/Leetcode | b403d05bd67b6661d1595136922f77bcb23947cf | 4f92911896c8b92c51650413b998e0bb1edfa4c0 | refs/heads/master | 2021-04-08T13:17:41.482766 | 2020-11-26T17:21:23 | 2020-11-26T17:21:23 | 248,779,182 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | from typing import List
class Solution:
def threeSumClosest(self, nums: List[int], target: int) -> int:
nums.sort()
ans = float('inf')
for i in range(len(nums) - 1):
left, right = i + 1, len(nums) - 1
while left < right:
three_sum = nums[i] + nums[l... | [
"cpcoder@aliyun.com"
] | cpcoder@aliyun.com |
a94191f3db4e9969babddfa2a95463af5918d353 | b1bd44b26db3e81368549bb3b2fddf541630649e | /IMCcalc.py | 4645a74ef8a82e1c1a3761d8f76864c13203ab58 | [] | no_license | josh231101/RGBColorPicker | c8d9e08d1165dad1ac8d6ffbee887491c05356b0 | d9f6251b168a686450604512b493baf33f7ac6e5 | refs/heads/master | 2023-01-16T04:46:08.762524 | 2020-11-23T00:18:07 | 2020-11-23T00:18:07 | 311,843,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | import PySimpleGUI as sg
def calc_imc(p,h):
return p /(h**2)
sg.theme('Topanga')
layout = [
[sg.T('Peso (kh): '),sg.InputText(),],
[sg.T('Altura (m): '),sg.InputText()],
[sg.Button("Clear"), sg.Button("Calc"), sg.Button("Salir")]
]
window = sg.Window('IMC CALCULATOR',... | [
"wiijosue333@gmail.com"
] | wiijosue333@gmail.com |
34f53a507b87e722114310cbe682154ef5b603bf | dbad872a1e1b1e03b76197c330f81dbb678372f3 | /roman_to_int.py | d4a59953c537747491a7343a35fd021f3c9e62df | [] | no_license | rohitandcode/LC_Easy | 6d1e4033af21599e0f49df2fad65239bda3674b2 | d6eb1461cbc1a445deae0126523905916d431c9d | refs/heads/master | 2020-12-03T09:44:52.398403 | 2020-06-24T18:18:49 | 2020-06-24T18:18:49 | 231,270,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | # LC13
class Solution(object):
def romanToInt(self, s):
"""
:type s: str
:rtype: int
"""
dicto = {'I':1,
'V':5,
'X':10,
'L':50,
'C':100,
'D':500,
'M':1000}
lis = list(s)
sums = 0
... | [
"noreply@github.com"
] | rohitandcode.noreply@github.com |
31ef41bd0fca49eeaa48af78dd411fcbfe5cc11f | 5b52b0ea918fbf6160def50541ffbe6aeb5a01ae | /bin/uniprot.prot.py | c7d346f11b2e7773c52fcaa96bef844f247d09c7 | [
"MIT"
] | permissive | cossio/ProteoPy | 74fe3d1fc17f3b91738da90c0aef0e5eb71a311b | a3569dcef34e4d416863c812e90498d749dc288f | refs/heads/master | 2021-09-06T02:43:05.614654 | 2018-02-01T20:06:29 | 2018-02-01T20:06:29 | 111,602,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | #!/usr/bin/env python
import sys
import argparse
import ProteoPy
PARSER = argparse.ArgumentParser(description='Get basic information from Uniprot from a list of Uniprot IDs')
PARSER.add_argument('--prots', type=str, help='list of proteins')
PARSER.add_argument('--out', type=str, help='output file')
PARSER.add_argum... | [
"j.cossio.diaz@gmail.com"
] | j.cossio.diaz@gmail.com |
498098e3792ce0f2613ffa5458596fc7c7d2fd88 | 5027bd2ff21141b6ffd576ec4009eed389acbacb | /audino/backend/routes/users.py | b555f2abc5caa9a063b58f9258f0d767da97cca1 | [
"MIT"
] | permissive | JacobGlennAyers/Audio_Labeling_System_AID | a19dda2b01491359e7fe10357ffa18e4cffff398 | 5ea3ed57d556b7d3a55df74b61909ea8f6c3127a | refs/heads/main | 2023-03-10T10:11:06.317063 | 2021-02-19T23:58:04 | 2021-02-19T23:58:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,003 | py | import sqlalchemy as sa
from flask import jsonify, flash, redirect, url_for, request
from flask_jwt_extended import jwt_required, get_jwt_identity
from werkzeug.urls import url_parse
from backend import app, db
from backend.models import User
from . import api
@api.route("/users", methods=["POST"])
@jwt_required
de... | [
"sean.hyatt.perry@gmail.com"
] | sean.hyatt.perry@gmail.com |
82dd4f49df2007a396a712276cb962ee9c2f9c29 | f62b604587b78733c42e49145d2b79ea06d23374 | /src/main/resources/versionone/getStories.py | 979803ba897e6147b72c44fe8f93f84cecb8f613 | [] | no_license | zvercodebender/xlr-versionone-plugin | e7b41ebee6445325c07be978580d7086825d8873 | 5ca798167fe83f17663ac47c40bd577ea515d47c | refs/heads/master | 2021-01-21T10:45:49.923887 | 2017-10-25T19:14:32 | 2017-10-25T19:14:32 | 83,480,048 | 0 | 0 | null | 2017-02-28T21:17:01 | 2017-02-28T21:17:01 | null | UTF-8 | Python | false | false | 1,064 | py | #
# THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
# FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
#
import sys, traceback
from version... | [
"rbroker@RainSong.local"
] | rbroker@RainSong.local |
32ae94af39dd74b8af3e10ed20e6aa9da09144eb | c70804bf9679944e8718438d86b08c5e296545bc | /extractFotNote.py | 0955b31396b1087c83fef51b5357a85bf2071c36 | [] | no_license | Kamel773/Delve_-Search_Engine- | f74c5b47f896854f3d13bf1a6ab66a8a40bfcfdd | aa0abde34546170a9a9186f895e087d1b60cb614 | refs/heads/master | 2020-05-18T01:08:09.226478 | 2019-09-03T08:09:16 | 2019-09-03T08:09:16 | 184,081,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,676 | py | from bs4 import BeautifulSoup
import re
import nltk.data
import os
import glob
import pickle
import csv
import glob, multiprocessing
from threading import Lock, Thread
import time
'''
"Beautiful code must be short", Adam Kolawa.
'''
pickleFile = open("/home/rashedka/Desktop/FinalExtracting/DelveXML/listXMLfile_Delve_X... | [
"noreply@github.com"
] | Kamel773.noreply@github.com |
ed0fe0703252d2b5008aa85f54c93ebe6c1e81fb | ef662f6e004f29f0c4d9623c8655e7562c9994d1 | /miniblp/market.py | f6946decb698b9cacf743da5bd8ca9f3977e60e3 | [] | no_license | james-atkins/blp-assignment | faf477ebfc56071b295d6d29b134bff368287673 | 5e511420e062765e26a5e0c9e0a42f2f103ce9cf | refs/heads/master | 2023-01-05T08:04:05.261243 | 2020-11-05T10:53:06 | 2020-11-05T10:53:06 | 227,912,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,706 | py | from typing import Optional, Tuple
import numpy as np
from numba import njit
from scipy import linalg
from .common import Vector, Theta2, Matrix
from .data import Individuals, Products
from .iteration import Iteration, IterationResult
class Market:
""" A market underlying the BLP model. """
name: str
in... | [
"hello@jamesatkins.net"
] | hello@jamesatkins.net |
4c72cb0146c753049d6f053bd18d47b06596e152 | 2aad3dc790f288c9ff178b2fb1bd7f86fbc4a47e | /cnbolgs/users/serializers.py | 1994c05602a1b24b8cc84665508834d3e132f1c9 | [] | no_license | Daisy-Yjy/blog | 06e0a616e16736cd3301d295179245afe5530df0 | e107221ebdcd90c2bd93fd3f4ea6ce0e647652b2 | refs/heads/main | 2023-04-06T20:22:34.389756 | 2021-04-17T02:45:43 | 2021-04-17T02:45:43 | 355,381,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,274 | py | import re
from django_redis import get_redis_connection
from rest_framework import serializers
from rest_framework_jwt.settings import api_settings
from itsdangerous import TimedJSONWebSignatureSerializer as TJWSSerializer, BadData
from .models import User, GithubUser
from cnbolgs import settings
class RegisterViewS... | [
"1971141290@qq.com"
] | 1971141290@qq.com |
d2c3e39fff7a8b828b1238645aaf46ce75152fe1 | d15b4a64e3ac1a488a3eae0e0cebe0f215247f09 | /build_image_data.py | 8bc1aa659af8f5805a924b99a7be4ff6f607a385 | [
"MIT"
] | permissive | AlexanderSoroka/CNN-oregon-wildlife-classifier | adbb3d67d2ff4eb46b5e2a9c1d9a0e66388f9e60 | a57bf84322f1fa153e44b6e4209beb09663f4d9e | refs/heads/main | 2023-03-26T09:24:52.989527 | 2021-03-08T16:25:26 | 2021-03-08T16:25:26 | 343,571,381 | 2 | 6 | MIT | 2021-03-09T07:53:41 | 2021-03-01T22:11:28 | Python | UTF-8 | Python | false | false | 12,210 | py | #!/usr/bin/python
# Copyright 2016 Google Inc. 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 a... | [
"soroka.a.m@gmail.com"
] | soroka.a.m@gmail.com |
ea1b01621f36c02bc3965ee91415f198ac0d47b2 | ffc3ebe790a6cb4667c777ca4840358c58723463 | /improveo/settings.py | 4fd85f93142e885d98e43f320af7703ed928b2a5 | [] | no_license | odedahay/django-company-crm | ec480efed790f8a58068fd14b73dd459c88ae3d6 | 97ef246d78b1e25fe61dc28dc2633b94dd51acd7 | refs/heads/master | 2021-01-09T18:52:21.258002 | 2020-03-02T00:51:58 | 2020-03-02T00:51:58 | 242,417,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,572 | py | """
Django settings for improveo project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"odedahay@gmail.com"
] | odedahay@gmail.com |
0a96109443526a53b04bd4318fbadcab27e6ffa7 | 598c5f1f2d2ec805e2f5c9bad107367be56329dc | /SoshikiProject/Soshiki/urls.py | ce714b0b9b42fabb593f7bcc5ae21becc7968dc3 | [] | no_license | HE-Arc/Soshiki | f84c9f4e4fb7294ca00c3056f08e53d5a2a2b2e0 | d0ebca543bd647599090725806d86e4ecf665ecc | refs/heads/master | 2021-03-19T12:26:57.049066 | 2018-04-07T12:46:42 | 2018-04-07T12:46:42 | 122,045,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | """Soshiki 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... | [
"jules007.cesar@hotmail.com"
] | jules007.cesar@hotmail.com |
bbde362c350b48413d134b1fce47ff145dce03bf | 63b3ab7d84f2a2c974da0bb4643b7a3bcaffa23a | /lab3/src/main.py | 5b28478a9c1e505ad65c28ef69604cc9ab2d2918 | [] | no_license | Lukasz1928/NLP | 1506a4062839231f5403a8becde9d7ba41a758b5 | 4f54fad491d75f3a25c69c4b39bfa777d34ceaa7 | refs/heads/master | 2020-04-28T06:24:07.733077 | 2019-06-03T13:40:03 | 2019-06-03T13:40:38 | 175,056,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,150 | py | from elasticsearch import Elasticsearch
from src.es_utils import create_index, load_data
from src.file_utils import get_all_filenames, read_polimorfologik, save_results
import matplotlib.pyplot as plt
import Levenshtein
def aggregate_terms(terms):
words = {}
for doc in terms:
term_vectors = doc['term_... | [
"Lukasz19281@gmail.com"
] | Lukasz19281@gmail.com |
483a613632f81bdf62554edbb2080815498078b6 | 750db6d8fb836a361e7b0d1060e52efd2f2c4c36 | /inference_app/migrations/0016_auto_20200330_1705.py | c58edaa13aa88d37ce24c41cd9d8986030b2893a | [] | no_license | dragosavac/vehicle_detection_app | b1aa2df97b78c4a3b63a1863d1d275e2881ac838 | 394b64161ec40f3389c46839311489b85b3d87bd | refs/heads/master | 2023-01-24T22:47:59.900112 | 2020-11-28T12:46:52 | 2020-11-28T12:46:52 | 251,379,121 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # Generated by Django 2.2.11 on 2020-03-30 17:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('inference_app', '0015_auto_20200330_1626'),
]
operations = [
migrations.RemoveField(
model_name='inferenceinstance',
name='... | [
"rade.dragosavac@symphony.is"
] | rade.dragosavac@symphony.is |
c43c7bcbbad1cac818d700eaac5a23d93dc3d3f6 | f701b45d56964f70d2b1a59d42348bde89f9f80e | /ase_extensions/transformations.py | 48a0c96290e977646de0b7d2a8b5d3aa404be6a5 | [] | no_license | Clyde-fare/ase_extensions | 01c8c2433a65e521a1ba867bfd6878d3e22aea0e | d3295d6306b5cc83fe6f7686c84dc7cc07aa91f8 | refs/heads/master | 2021-01-18T22:47:28.733715 | 2017-01-12T12:31:11 | 2017-01-12T12:31:11 | 27,386,500 | 0 | 1 | null | 2016-09-05T16:13:45 | 2014-12-01T15:49:19 | Python | UTF-8 | Python | false | false | 65,592 | py | #taken from http://www.lfd.uci.edu/~gohlke/code/transformations.py.html
# -*- coding: utf-8 -*-
# transformations.py
# Copyright (c) 2006-2012, Christoph Gohlke
# Copyright (c) 2006-2012, The Regents of the University of California
# Produced at the Laboratory for Fluorescence Dynamics
# All rights reserved.
#
# Redi... | [
"clyde.fare@gmail.com"
] | clyde.fare@gmail.com |
c8e82f2c45977b37051e34e6e452577eb1467a83 | 19da2e0fdea22b5f6db5ac33d5d5e1d9882ab0a6 | /learning_templates/basic_app/urls.py | 001cbb4350dbe92b2c4661bf1acd8c0eb095aeb3 | [] | no_license | Ravi95KB/django-learning-projects | d49d53f1b2e8a892ddd1426e68a23c2061554845 | 19ddba76a0b56af051255a1ccfbca20f289c8208 | refs/heads/master | 2023-02-03T13:45:44.938715 | 2020-12-24T07:34:37 | 2020-12-24T07:34:37 | 324,081,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | from django.urls import path
from basic_app import views
#TEMPLATE TAGGING
app_name = 'basic_app' #The variable name needs to be 'app_name'
urlpatterns = [
path('relative/',views.relative,name='relative'),
path('other/',views.other,name='other'),
]
| [
"ravi25ju@gmail.com"
] | ravi25ju@gmail.com |
80e9e4574ed8693b8553db2e3c96d497209dcf92 | 80b54d0762516cffa9b9c86086a337c004bb4b18 | /main.py | e39ccacf333f0f6e24c2253869e91588e9e07bda | [
"MIT"
] | permissive | Lol3rrr/TicTacToe-AI-NN | d3d3629ba3252ce85473ce4231066764101f45bf | 4cfe30531233e7ffb4411923876244a32fda23cb | refs/heads/master | 2020-05-26T00:56:51.709771 | 2019-05-25T21:33:11 | 2019-05-25T21:33:11 | 188,056,704 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from gameNN import Game
from gameQ import Game
from qLearning import QTable
if __name__ == "__main__":
#runningGame = Game(3)
runningGame = Game(3)
runningGame.run() | [
"34582309+Lol3rrr@users.noreply.github.com"
] | 34582309+Lol3rrr@users.noreply.github.com |
fa4a0e62bf2e2b590e0d76319c06be7d8fa5f3c2 | 8713f974dd88fddd0079315f8b420794953ce91d | /src/utils/crypto_key.py | b6042654c76f9dd954c56dfa99f44d030bb768e5 | [
"Apache-2.0"
] | permissive | dhxie/cosc-learning-labs | 99ec8f190f4d25e6ac8134e807d609d7731b68d8 | 1ae30212e679012be4ac9e72dce7808777e69f9c | refs/heads/master | 2021-01-18T17:16:55.942687 | 2015-07-17T02:42:41 | 2015-07-17T02:42:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,007 | py | #!/usr/bin/env python
# Copyright 2015 Cisco Systems, Inc.
#
# 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 l... | [
"anamatute@hotmail.com"
] | anamatute@hotmail.com |
60edc9040518713f172c1e188db2a0857b8fbf2a | eb431b6e9b4ea2263bc174a7758663abc17c04e1 | /mysite/mysite/settings.py | a57f88cd8effd894e1f39f08035adf7e57696b3f | [] | no_license | dh1p0em/my-first-blog | 13d410fa3b540cfe1eef832caf756d3e4fa93ff3 | 144f0c19233cf749e0a94b35c18a2ea46debffd8 | refs/heads/master | 2020-04-19T18:09:18.746393 | 2019-01-31T09:26:23 | 2019-01-31T09:26:23 | 168,355,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,089 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.10.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
#... | [
"anilefecoban5@gmail.com"
] | anilefecoban5@gmail.com |
a6fbf4d86b6573df70d0ccec4fbe0d3916817e21 | cdd228f719a7db73d710cc6ad638e47740bc93ad | /6_ValidateIP.py | a3235deb4e072fdbac7563b9a21b4842c78f3af4 | [] | no_license | DKanyana/PythonProblems | 3f94a75c00f134e93322eeecdd815ae9ef4ae49e | 602fe53af1268a6fd62913bc3c96ec096f3bce2c | refs/heads/master | 2020-03-27T23:04:01.557524 | 2018-09-04T04:18:51 | 2018-09-04T04:18:51 | 147,287,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | def validate_ip(ip):
len_ip =len(ip.strip())
octet =[]
if len_ip <=0 or len_ip>15:
return False
elif ip.strip().count('.') !=3:
return False
else:
octets = ip.strip().split('.')
for octet in octets:
if not octet.isdigit() or int(octet) <0 or int(octet... | [
"noreply@github.com"
] | DKanyana.noreply@github.com |
192513b2ebb9f2f9c07d84b4cdb0e2c0f10f8099 | 2db7597686f33a0d700f7082e15fa41f830a45f0 | /Python/coding/longestPalindromicSubstring.py | 5b5cc4e5f9239e189fda40d29fb79084b668ae13 | [] | no_license | Leahxuliu/Data-Structure-And-Algorithm | 04e0fc80cd3bb742348fd521a62bc2126879a70e | 56047a5058c6a20b356ab20e52eacb425ad45762 | refs/heads/master | 2021-07-12T23:54:17.785533 | 2021-05-17T02:04:41 | 2021-05-17T02:04:41 | 246,514,421 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | '''
5. Longest Palindromic Substring
注意题目的return是什么
'''
def longestPalindrome(self, s: str) -> str:
if s == '':
return ''
n = len(s)
dp = [[False] * n for _ in range(n)]
max_len = 1
start = 0
for i in range(n - 1, -1, -1):
for j in range(i, n):
if i ==... | [
"leahxuliu@gmail.com"
] | leahxuliu@gmail.com |
72d4ac2a4b4667b29a2e230fe8492dccbfc820b2 | d730acc4921b91ed67d52c31b6a6e12c78397941 | /blog/migrations/0001_initial.py | ac6e4f9594814e457ab4b7e03bcfb9fd27dd0453 | [] | no_license | An-dy1/my-first-blog | 8dbf1b0ee0d0f6175a6b9a9b98e2621e9c5e5bad | ac10cc832cc08e27561ed75fe008a83d25ccb201 | refs/heads/master | 2020-03-23T16:54:11.380012 | 2018-07-21T22:18:12 | 2018-07-21T22:18:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.0.6 on 2018-07-21 16:41
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"andrea_sue2@icloud.com"
] | andrea_sue2@icloud.com |
6aa5472a81eb982be6841fecca028c9450d0bc71 | 64653a5a2a64cd0a18643ea3c537dd21c3122167 | /ohmyeye/urls.py | 5b9c0c4129965443f6f886b43d7f8ad8bd26d616 | [] | no_license | baidoosik/ohmyeye | 52662341701c3905efe5c7cf329fbe6e400022de | 1619f981f9f4e4e84b4577df28e769e9340ba06a | refs/heads/master | 2021-04-27T02:47:45.497702 | 2018-02-24T22:25:37 | 2018-02-24T22:25:37 | 122,702,407 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | """ohmyeye URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"qoentlr37@naver.com"
] | qoentlr37@naver.com |
d4df58f2c24bda82a67205c1ec1ae96f54522fc9 | 1817aca734cda258cbbfd9e13fbf040d76824621 | /aliyun-python-sdk-domain/aliyunsdkdomain/__init__.py | 03e753e73534f3d3d1530c2b89ec0fb5458f2aaa | [
"Apache-2.0"
] | permissive | sdk-team/aliyun-openapi-python-sdk | 4bd770718e70e31f19e1e322727c27ba74d9fb80 | 996cb07bfcf010fe3ab65daa73d26df2f3b6e97f | refs/heads/master | 2022-08-04T13:11:56.729215 | 2022-07-25T10:01:10 | 2022-07-25T10:01:10 | 183,356,741 | 0 | 0 | null | 2019-04-25T04:33:24 | 2019-04-25T04:33:24 | null | UTF-8 | Python | false | false | 22 | py | __version__ = "3.13.0" | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
9ab5ef5a853915ae349e5ac9687669ca151241a2 | c6499f46ff5f9685f3d4e09a0e548a1d81fa4dec | /.upython/stubs/random.py | 281de1a6b0a61b95096d9b32cccac7a8ad6aaa90 | [
"MIT"
] | permissive | vtt-info/upython-samples | 7ffaf77817b2ce1c46d632850528060ac8df545c | c28e9667a22621dd4b62cc64927dfb051f8a84d2 | refs/heads/main | 2023-01-13T11:47:11.018041 | 2020-11-15T06:44:30 | 2020-11-15T06:44:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
Module: 'random' on pySBC 1.13.0 with FW1.0-171
"""
# MCU: (sysname='pySBC', nodename='pySBC', release='1.13.0 with FW1.0', version='v1.13-171-g7720a5aa6-dirty on 2020-10-20', machine='simpleRTK-SBC with STM32F745')
# Stubber: 1.3.4
def choice():
pass
def getrandbits():
pass
def randint():
pass
def r... | [
"tayfunkaran@gmtcontrol.com"
] | tayfunkaran@gmtcontrol.com |
e1994321314f87f666539e6bd8eeacaca4baae6a | 1348fc770c52446b0659cab143fb610641962812 | /Python/Bootcamp_seleksi/2b.3.py | 3c864f7db65aa2fdbf6e7fa060242cfe0afc3a76 | [] | no_license | bryanbernigen/ITBSem1 | 075d41b008741312b3f17ab1c73dd54d65da5be5 | ef10221599f625058cebb706233798010ba3c945 | refs/heads/main | 2023-04-17T19:38:04.215994 | 2021-05-05T04:48:03 | 2021-05-05T04:48:03 | 353,978,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | #2b.3 Lakukan OneHotEncoding pada kolom bentuk. Kolom bentuk yang
# belum diproses dapat dihapus (Hint: Library Sci-Kit Learn)
#template awal
import pandas as pd
import numpy as np
from sklearn.preprocessing import LabelEncoder,OneHotEncoder,LabelBinarizer
from sklearn import preprocessing
df = pd.read_csv("D:\\data_... | [
"bryanbernigen@gmail.com"
] | bryanbernigen@gmail.com |
74f848ad711384a3273598f2f4b68e0141b9e2e9 | 78afda4cc334ea78043fbcc73169bc93ec63392c | /Py_Alergies/settings.py | 9c4758792260dbb1bea51314592acfe896a2e4ee | [] | no_license | GisDJordje/Gis_Projekat | e2debbc3e0e5af9035133fc19df89fa0642238cf | 752a80e494797c6975d878cda608d1a5e5b671a6 | refs/heads/master | 2021-06-27T11:59:21.302590 | 2017-09-13T04:07:20 | 2017-09-13T04:07:20 | 103,349,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,614 | py | """
Django settings for Py_Alergies project.
Generated by 'django-admin startproject' using Django 1.9.12.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import ... | [
"djolesub@gmail.com"
] | djolesub@gmail.com |
9280ac79f4a7935fd8a74c47669555a1ff5abb41 | 058ab1a93f8213f93810c088d65e958a4ec50de7 | /Assignment_2_SourceCode/Unused_FIles/ModelTest.py | b90101f96e4ede829cd0d48817e38771d3cd4a0e | [] | no_license | urube/adv_programming_python_ara_assignment2_2019-2 | 222bef94ca22a0e033bdc437d6f4c3e81918ed93 | e58966c35311a00ec82880d12ea6a07dd6bb1c57 | refs/heads/master | 2020-08-14T12:19:58.097314 | 2019-10-15T04:35:16 | 2019-10-15T04:35:16 | 215,167,222 | 0 | 0 | null | 2019-10-15T00:49:49 | 2019-10-15T00:04:22 | HTML | UTF-8 | Python | false | false | 380 | py | import unittest
class ModelTest(unittest.TestCase):
def test(self):
from drawer_kieran import DrawerKieran
from parser_dang import ParserDang
to_draw = open('test.txt', "r+").read()
parser = ParserDang(DrawerKieran())
s = parser.parse(to_draw)
self.assertEqual(s, '... | [
"noreply@github.com"
] | urube.noreply@github.com |
a3022d74803f2215703054399c88df7a6f9ff4c5 | 79a27d368f117885f072bff493d8fb712faa4479 | /orders/models.py | 8f0f26477215f812060e25cd9914b47f2face847 | [] | no_license | Sultanbek9899/onlineshop | 2e03b4abad39bfbf4ce4c7e9cc5ea2385352812c | 082546cc4ba3bb2ab0f63d293c2521c53fdde651 | refs/heads/master | 2022-12-20T18:44:45.803307 | 2020-09-25T22:00:02 | 2020-09-25T22:00:02 | 291,037,882 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | from django.db import models
# модель заказа для сохранения данных заказа
from products.models import Product
class Order(models.Model):
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
email = models.EmailField()
address = models.CharField(max_length=250)
... | [
"sultanbek9899@gmail.com"
] | sultanbek9899@gmail.com |
cb5f5ea3a6bd11f98432fda3ede902747c891678 | abf29eca06e33fd9a758c41b6f7990f6c2d15970 | /DirProject/DirProject/asgi.py | f0a9708181c3ba14a418b1175fc657cf816c026b | [] | no_license | amireppel/toga | 89c018536d4501f59a880e50b0218d56602d88c8 | 679687ad5d2f0c49d3b03d688bc002095c8fc60f | refs/heads/master | 2023-03-02T05:04:47.376339 | 2021-02-01T13:49:43 | 2021-02-01T13:49:43 | 334,486,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for DirProject project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"amireppel@gmail.com"
] | amireppel@gmail.com |
a5bbfe1cd9b7a9bfcb2c0917f391fc5edc38b94c | fc3bed6b30a1ec5040d01ef8b428f7a34da4f571 | /monitoring/readtemps.py | 33030e796917675f01c589cdee3966404dbd4b3e | [] | no_license | rickroty/igatemonitor | 156f73dbe69d34dc6a89c5cc4538ddad02d88733 | c801becf37010f0968c69fef70aa624618f83bb3 | refs/heads/master | 2021-08-22T02:44:22.414655 | 2017-11-29T04:13:19 | 2017-11-29T04:13:19 | 106,628,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,071 | py | import os
import sys
import time ... | [
"noreply@github.com"
] | rickroty.noreply@github.com |
0d0ea308d017f4b52fbf4a8bf89f384d26247131 | 4e96f383d4703ad8ee58869ed91a0c8432c8a051 | /Cura/Cura/tests/TestBuildVolume.py | 6ccb3d0fb7e1ed0702e8179aad7653553b069d72 | [
"LGPL-3.0-only",
"GPL-3.0-only"
] | permissive | flight7788/3d-printing-with-moveo-1 | b2dba26010c4fa31815bc1d2d0966161a8600081 | 7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0 | refs/heads/Feature_Marlin_with_AlanBoy | 2022-08-30T18:36:44.785058 | 2020-05-30T07:52:58 | 2020-05-30T07:52:58 | 212,583,912 | 0 | 0 | MIT | 2020-05-16T07:39:47 | 2019-10-03T13:13:01 | C | UTF-8 | Python | false | false | 18,454 | py | from unittest.mock import MagicMock, patch
from UM.Math.AxisAlignedBox import AxisAlignedBox
import pytest
from UM.Math.Polygon import Polygon
from UM.Math.Vector import Vector
from cura.BuildVolume import BuildVolume, PRIME_CLEARANCE
import numpy
@pytest.fixture
def build_volume() -> BuildVolume:
mocked_appli... | [
"t106360212@ntut.org.tw"
] | t106360212@ntut.org.tw |
79926eb4ed7b1cb24b624dd9df42ddf2c75ac463 | 6188f8ef474da80c9e407e8040de877273f6ce20 | /examples/docs_snippets/docs_snippets/concepts/assets/asset_input_managers_numpy.py | 41c6a5aa55fde72067e0e687ff7d0816f51b530f | [
"Apache-2.0"
] | permissive | iKintosh/dagster | 99f2a1211de1f3b52f8bcf895dafaf832b999de2 | 932a5ba35263deb7d223750f211c2ddfa71e6f48 | refs/heads/master | 2023-01-24T15:58:28.497042 | 2023-01-20T21:51:35 | 2023-01-20T21:51:35 | 276,410,978 | 1 | 0 | Apache-2.0 | 2020-07-01T15:19:47 | 2020-07-01T15:13:56 | null | UTF-8 | Python | false | false | 1,511 | py | import os
import pandas as pd
from dagster import AssetIn, Definitions, IOManager, asset, io_manager
from .asset_input_managers import (
load_numpy_array,
load_pandas_dataframe,
store_pandas_dataframe,
)
# start_numpy_example
class PandasAssetIOManager(IOManager):
def handle_output(self, context, ... | [
"noreply@github.com"
] | iKintosh.noreply@github.com |
5fc5d33ab5a3e9925b7cd21a3f6b46e5b4456f00 | 501a6115aaad277bbf42fd782965b6387c981b1a | /Chapter_10/01_A_Tale_of_Two_ifs.py | 512ecb8c7597a1bfb3f34a89fce0562304524deb | [] | no_license | dackour/python | 371a12efaeca7e4f1888b12d181c88f010691766 | 82e469a40fc73ed7cc6742e6bb86aea22378ee5d | refs/heads/master | 2020-07-27T02:59:02.945729 | 2020-04-05T10:35:07 | 2020-04-05T10:35:07 | 208,845,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # Statements
x = 2
y = 1
if x > y:
x = 1
y = 2
print(x)
print(y)
if x:
if y:
print()
else:
print()
a = 1; b = 2; print(a + b) # Three statements on one line
mylist = [1111,
2222,
3333]
A, B, C, D = 1, 2, 3, 4
X = (A + B +
C + D)
if (A == 1 and
B == 2 and
... | [
"bartosz.smela@gmail.com"
] | bartosz.smela@gmail.com |
f69d5a2c855b376f97d582465cd8c179d5452fa9 | ad570312a736a84e96c5178bc1af91c6c0b898fb | /pyth/linkedListCoppy.py | 4c1a565b380f1db25973401fb73c746e6d86da3f | [] | no_license | pritamSarkar123/Compitative20_21 | ad813d189b7388ea2179bb96f64eaa88ba75db32 | d5474b02487dc759c47e3da1047154533dc7b641 | refs/heads/master | 2023-01-14T12:04:51.756085 | 2020-11-26T09:31:02 | 2020-11-26T09:31:02 | 296,670,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | #problem description
#https://www.youtube.com/watch?v=xbpUHSKoALg&t=784s
# algorithm:
# #create intermediate nodes
# p=head
# q=NULL
# while p!=NULL:
# q=p
# p=p->next
# t=copy(q)
# q->next=t
# t->next=p
# #connecting new linked list
# p=head
# q=NULL
# while p!=NULL:
# q=p
# p=p->next->next
# ... | [
"pritamsarkar84208220@gmail.com"
] | pritamsarkar84208220@gmail.com |
1e5810523ea93878d26b6ef00317399d8e25aa25 | 1005a4290bca16dcf4c6b3415662e134044305bd | /python/Sources/gensource_Z2Jets_muhad_cfi.py | 1d71fe0e0d4998bc6ab78e9176740d7f2eb3bcf3 | [] | no_license | cms-analysis/TauAnalysis-GenSimTools | 2652bb713107bb1d459882581237662d229d3906 | b787b784ee3598c4428c4883c04cdc525eb54eb6 | refs/heads/master | 2020-12-24T15:58:14.392883 | 2013-06-28T20:10:42 | 2013-06-28T20:10:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | import FWCore.ParameterSet.Config as cms
# The Alpgen Source. It reads unweighted alpgen files
source = cms.Source("AlpgenSource",
# use an input file name without extension unw
fileNames = cms.untracked.vstring(
'file:/home/cbernet/ALPGEN/v213/zjetwork/z2j'
)
)
# The Alpgen Producer.
from GeneratorI... | [
"sha1-5c72da6f595cce9b6b48aff6d56f01e9beb4aad1@cern.ch"
] | sha1-5c72da6f595cce9b6b48aff6d56f01e9beb4aad1@cern.ch |
a4f40a48fe3950b604589a17e731eb39f8c0f317 | 14e434036166c14364f7c6eb5477a225037c4a5b | /src/services/csv_reader.py | 76ae89736a66abbee1267a50aaed0774fbeda0f1 | [] | no_license | kristaloverbeer/ssp | c55bad4982576c7464515a9bb87f34080e6c7d73 | 3f475ae4448f5573540323e185a4ad1b508ed868 | refs/heads/master | 2021-06-13T06:45:04.790045 | 2019-05-13T18:13:41 | 2019-07-29T06:58:37 | 186,472,786 | 0 | 0 | null | 2021-05-06T19:34:19 | 2019-05-13T18:16:24 | Python | UTF-8 | Python | false | false | 6,699 | py | """
Parse CSV to extract addresses
How to use the `csv_reader` script:
1) Save the xls data file as a csv in UTF8 encoding
2) Call the script by specifying the type of source (hotel or people)
```
$ python src/services/csv_reader.py \
-t "hotel" \
-s "/Users/fpaupier/projects/samu_social/data/hot... | [
"brisemeric@gmail.com"
] | brisemeric@gmail.com |
68e264f1175e4500758f875b6b021e66b4625bc8 | 9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7 | /submission - Homework1/HW1 - Alex/index_nested_list.py | bbb999230c523e6e8d132b64459550cc015955c5 | [] | no_license | sendurr/spring-grading | 90dfdced6327ddfb5c311ae8f42ae1a582768b63 | 2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54 | refs/heads/master | 2020-04-15T17:42:10.781884 | 2016-08-29T20:38:17 | 2016-08-29T20:38:17 | 50,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # Alexis Thompson-Klemish
#
q = [['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h']]
# print the letter a
print q[0][0]
# print the list ['d', 'e', 'f']
print q[1]
# print the last element h
print q[-1][-1]
#print the d element
print q[1][0]
#explain why q[-1][-2] has the value g
print "negative indexes count from the ... | [
"sendurr@hotmail.com"
] | sendurr@hotmail.com |
e43990df097eed0fd0d9bf0fd0fbd95e1335b29e | f6dca66d7035845869158c617cad4c3ca74210d1 | /disentangle/topic_disc.py | 2b98dfe6fb67de42c4ea2d83337c29ab10ff5531 | [
"MIT"
] | permissive | anshiquanshu66/SAVED | 6c320d8da7c2ef83e47da48dfb907941fd858491 | 130d3401a0532b6102fe4c9fcba04a85a8169b7c | refs/heads/main | 2023-06-24T22:42:33.211993 | 2021-07-20T11:39:57 | 2021-07-20T11:39:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,125 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import json
import logging
import os
import torch
import engine
from dataset import corpora
from dataset import data_loaders
from models import conv_models
from utils import str2bool, prepare_dirs_loggers, get_time
import gen_utils
arg_l... | [
"noreply@github.com"
] | anshiquanshu66.noreply@github.com |
d5fa428f28b5f72ac1b246b16f8a93091fd13a8b | d2ead5ce523bb5a6c983fe4a4312ad43fe754ac0 | /evaluate_models.py | 6b1fa044133ee5742fbaa16b314e3cd7aeff7ee2 | [] | no_license | SereV94/MasterThesis | b7a0c5f5b40369df378496ce5a6527a4a4991970 | ee7c7b7b3c72d6badec71c617fab8ab6ebe9beca | refs/heads/master | 2022-11-28T09:31:50.985913 | 2020-08-09T17:25:20 | 2020-08-09T17:25:20 | 235,092,436 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 26,026 | py | #!/usr/bin/python
from helper import parse_dot, run_traces_on_model, dict2list, reduce_data_by_label, parse_symbolic_dot, run_traces_on_symbolic_model
from statistics import median
import pandas as pd
import numpy as np
import pickle
import re
import glob
from collections import defaultdict
from operator import add
im... | [
"seredellos@gmail.com"
] | seredellos@gmail.com |
9bf714a6abbcdb0385038e4cdee96b601cece13d | 06a7dc7cc93d019e4a9cbcf672b23a0bbacf8e8b | /2013_adni/MMSE-AD-CTL/01_build_dataset.py | f9049d7b28f1fc1da3d70f12b740317ca04ad28d | [] | no_license | neurospin/scripts | 6c06cd218a5f32de9c3c2b7d1d8bda3f3d107458 | f14a2c9cf2cd7f5fbea767b017c3faf36d170bdb | refs/heads/master | 2021-07-11T22:55:46.567791 | 2021-07-02T13:08:02 | 2021-07-02T13:08:02 | 10,549,286 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,376 | py | # -*- coding: utf-8 -*-
"""
@author: edouard.Duchesnay@cea.fr
Compute mask, concatenate masked non-smoothed images for all the subjects.
Build X, y, and mask
INPUT:
- subject_list.txt:
- population.csv
OUTPUT:
- mask.nii.gz
- y.npy
- X.npy = intercept + Age + Gender + Voxel
"""
import os
import numpy as np
import g... | [
"edouard.duchesnay@gmail.com"
] | edouard.duchesnay@gmail.com |
43769e07cfb176ffe2561227bd4f5b708fadbad3 | e30c23f90c37a45730aaf5366d30ff521d91a28a | /Leetcode 101/深入浅出动态规划/子序列问题/1143-medium-最长公共子序列.py | 08bf11a5a4ed57d1273e53032c75e7aeaaa1ac57 | [] | no_license | MaiziXiao/Algorithms | 0acf8ca5150deb730d32a14ac68dd78ea70d202c | f6a883b4c0d1fe06609f92f7ad8ea5317a567795 | refs/heads/master | 2023-02-13T00:29:01.634488 | 2021-01-14T14:06:45 | 2021-01-14T14:06:45 | 97,946,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,990 | py | # 1.1. 最长公共子序列(Longest-Common-Subsequences,LCS)
# 最长公共子序列(Longest-Common-Subsequences,LCS)是一个在一个序列集合中(通常为两个序列)
# 用来查找所有序列中最长子序列的问题。这与查找最长公共子串的问题不同的地方是:子序列不需要在原序列中占用连续的位置 。
# 最长公共子序列问题是一个经典的计算机科学问题,也是数据比较程序,比如Diff工具,和生物信息学应用的基础。
# 它也被广泛地应用在版本控制,比如Git用来调和文件之间的改变。
# 1.2 最长公共子串(Longest-Common-Substring,LCS)
# 最长公共子串(Long... | [
"linchen.xiao@metronom.com"
] | linchen.xiao@metronom.com |
650652c44475815a610083d2dc1789b0fcc454a7 | 8e5ed733e258f585bec13044cc3381e32a079a47 | /manage.py | 5f0046d2c88b2f70c35f9d0dd9fb53bbcf07644a | [] | no_license | DNA5769/MyAnimeChecklist | dc797eb206e2bf655b668707cd16070a3c862a6f | b523230c84e2f3bde5c9091c91c161aa3e58e22e | refs/heads/main | 2023-04-15T21:32:30.421023 | 2021-05-03T20:09:29 | 2021-05-03T20:09:29 | 325,802,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | 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', 'MAC.settings')
try:
from django.core.management import execute_from_command_line
exce... | [
"dennisthomas2002@gmail.com"
] | dennisthomas2002@gmail.com |
fc5145f0837ea6447b109a85447c1d90938c40d6 | 8f420e1d63d69b21a1d964ae4771fbfe54b2b997 | /Python Session 6.1.1 conditional statements and loops.py | 616d674dc98133e4218c3543328435268f63cd80 | [] | no_license | Jyoti-27/Python-6 | 03eb49037c627442fe3a633f92c1ae4b4e14d801 | dc4a8d2cd65a9e4614ac6fe5c914b8cec6498f2c | refs/heads/main | 2022-12-24T16:42:23.780614 | 2020-10-01T20:01:30 | 2020-10-01T20:01:30 | 300,408,932 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,152 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
# create a variable salary and assign a value to it
salary = 15000
if salary >= 35000:
print('you are eligible for loan')
else:
print('you are not eligible')
# In[1]:
# lets assume that there is a criteria to unlocl the certifications
- rules
- they shoul... | [
"noreply@github.com"
] | Jyoti-27.noreply@github.com |
f81d5965412de401884bc6ee5031ef9a0b341a68 | fbb1550dc5437d672ed0137bd7711eba3290dee3 | /students/thomas_sulgrove/lesson08/assignment/test_inventory.py | b6e6b03a82d2e4a30955d31ed0914aa95134953a | [] | no_license | JavaRod/SP_Python220B_2019 | 2cc379daf5290f366cf92dc317b9cf68e450c1b3 | 5dac60f39e3909ff05b26721d602ed20f14d6be3 | refs/heads/master | 2022-12-27T00:14:03.097659 | 2020-09-27T19:31:12 | 2020-09-27T19:31:12 | 272,602,608 | 1 | 0 | null | 2020-06-16T03:41:14 | 2020-06-16T03:41:13 | null | UTF-8 | Python | false | false | 1,769 | py | """unit tests for inventory.py"""
import os
from unittest import TestCase
from inventory import add_furniture, single_customer
def scrub_test_file(file_name):
"""remove the test file"""
try:
os.remove(file_name)
except OSError:
pass
class TestBasicOps(TestCase):
"""Class for housing... | [
"tsulgrove@gmail.com"
] | tsulgrove@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.