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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
df3b159fcb643903c95d367dee0173bd363b6814 | 685dbb4416caf20f3e7e9c701df35088cb308d98 | /pen_blink_detection/haar_face&eyedetection.py | b30f660c73698ceaca1c7994ef464cb5163f5785 | [] | no_license | cseho67/2020_senior_project | e4469afa9ee488c5d406c5bd037c20542133ff9d | a653c9751315cfb5d6a8713ea46e13cae964aa67 | refs/heads/master | 2023-03-23T09:55:31.328411 | 2021-03-12T11:28:22 | 2021-03-12T11:28:22 | 297,645,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | py | import numpy as np
import cv2
def detectAndDisplay(frame) :
frame_gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
frame_gray = cv2.equalizeHist(frame_gray)
faces = face_cascade.detectMultiScale(frame_gray)
for (x,y,w,h) in faces :
center = (x + w//2 , y + h //2 )
frame = cv2.rectangle(... | [
"48603413+cseho67@users.noreply.github.com"
] | 48603413+cseho67@users.noreply.github.com |
0fa10e1e12f2045d34d5cda669f06aa86c592aa5 | 4c1f87b0830debf0363e12c3c97c9d3b75b645e3 | /day8/day8.py | 6aeeac631bfbd3f1b13b534b3d5f55b40f73743c | [] | no_license | EricRoe/advent_of_code_2018 | 06e2777c78b60a08ae90147695447f660434ab3c | f12feccdc38446bd0eaa70171800f4479c6e6da4 | refs/heads/master | 2020-04-09T10:46:19.520667 | 2019-07-25T05:47:40 | 2019-07-25T05:47:40 | 160,282,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | with open('./input.txt') as f:
d = f.readline().split()
d = [int(i) for i in d]
#test = [2,3,0,3,10,11,12,1,1,0,1,99,2,1,1,2]
def get(tree):
#print(tree)
if not tree[0]:
# print('base ', tree[2:tree[1]+2])
return (2 + tree[1], tree[2:tree[1]+2]) # skiplen, meta
else:
skiple... | [
"eric.roe@outlook.com"
] | eric.roe@outlook.com |
26f81f4eba18c5a190446ffa466434e3ef381ba3 | 41047972c9becb8ae49249b01947f4c9b97f30ed | /VPN/NTU_gcnn_Loader.py | 0c2993db0a6a15eb2956f1171ede1bb45b76641a | [] | no_license | tranminhduc4796/vpn_action_recognition | c25a5ce397268f7088ec4aade6cdb2d951829d93 | 6c2e78f2bf0b312e047ba73eb585e660e96f60d3 | refs/heads/main | 2023-02-22T19:57:59.188150 | 2021-01-20T08:34:52 | 2021-01-20T08:34:52 | 327,543,723 | 3 | 3 | null | 2021-01-19T15:29:36 | 2021-01-07T08:03:19 | Python | UTF-8 | Python | false | false | 5,367 | py | import os
import numpy as np
import keras
import glob
from random import randint, shuffle
from keras.utils import to_categorical
import cv2
from sklearn.preprocessing import LabelEncoder
os.environ['KERAS_BACKEND'] = 'tensorflow'
seed = 8
np.random.seed(seed)
class DataGenerator(keras.utils.Sequence):
def __in... | [
"ductm21@vingroup.net"
] | ductm21@vingroup.net |
ff904f46d578f25e760593eff96a4f1ec4b5dd35 | cef5a68531e6ebf90803c1ec95c21572ac13c139 | /places/__init__.py | 361279f1f8fe8dad090ef98e9e0ac753dd486822 | [] | no_license | ARAVINDBALAN/django-places | 3b4846a7797283349e15b9947d0db6d9fa544edf | 78c488638ecc639249837d51415075653a6bd6bb | refs/heads/master | 2020-03-27T16:23:25.388574 | 2017-09-10T00:33:24 | 2017-09-10T00:33:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sys
# Weird encoding python2 hack :'(
if sys.version_info < (3,0):
reload(sys)
sys.setdefaultencoding('utf8')
from decimal import Decimal
default_app_config = 'places.apps.PlacesConfig'
__version__ = '2.0.0'
class Places(object):
... | [
"om.cortez.2010@gmail.com"
] | om.cortez.2010@gmail.com |
5946ceacec2ae4a3be3c157b5b5d605114c3ed7c | e0f0379c84b858959950fa25c19a80c453ec05b5 | /main.py | 8a3fea249dc3b5421d5da29f208a66712c538d0b | [] | no_license | fuwalab/popular-noun | 26e87362f58dae0b2447cd1e8580115d075c0bc6 | 0d4964938ea8a4a2a9c946fe60de7abab0ae7911 | refs/heads/master | 2020-04-14T23:44:53.671033 | 2019-01-08T14:49:04 | 2019-01-08T14:49:04 | 164,214,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | #!/usr/bin/env python
from scraping import Scraping
from datetime import datetime
from lib.analyze import Analyze
from joblib import Parallel, delayed
def main():
providers = [
'naver',
]
"""スクレイピングした内容をテーブルに保存する"""
# Parallel(n_jobs=1, verbose=0)([
# delayed(Scraping.run)(Scraping(),... | [
"ryo.tsugawa@gmail.com"
] | ryo.tsugawa@gmail.com |
aef44472f047aceb84b2c449b00ba97e0e4eeca1 | 6f160f5bb400a3a8cf01079320c8a4e5290f21e0 | /detect_stutter.py | 8e47ebe6c6c99df3adbb7b1e7392cc310e9b2464 | [] | no_license | mansi-k/Stutter-Therapy | 96729729028164124a98fb4dc6c4c218f11b6d48 | 4339bbe4a2c01b340548f8f3d58190ea358651a3 | refs/heads/master | 2021-08-28T11:36:16.945067 | 2021-08-20T14:23:09 | 2021-08-20T14:23:09 | 240,598,327 | 15 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,432 | py | import librosa
import numpy as np
import tensorflow as tf
from pydub import AudioSegment
from keras.models import load_model
import os
model_rep = load_model('/home/mansi/anaconda3/beproject/stutter_det/models/best_model_rep.h5')
model_pro = load_model('/home/mansi/anaconda3/beproject/stutter_det/models/best_model_pro... | [
"noreply@github.com"
] | mansi-k.noreply@github.com |
1a5b1416d35a4f87113659da2f108d396f184d69 | ab5a01f0fef7f3d824aa2adead9d3e5ed4e48037 | /UtilitySplit/venv/bin/flask | 444bb9f13ad9e69a8a712bcde7a829a81d8f3a93 | [] | no_license | bob7479/UtilitySplit | 41ee0dc94a10dfcd6ab46a336709df82da046051 | 3837984b13ffbd55b5a327ea95d33748d500fb96 | refs/heads/master | 2020-08-03T18:06:44.517823 | 2016-12-23T04:10:24 | 2016-12-23T04:10:24 | 73,541,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/Users/macbook/Documents/CalHacks/flaskr/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"macbook@airbears2-10-142-157-15.airbears2.1918.berkeley.edu"
] | macbook@airbears2-10-142-157-15.airbears2.1918.berkeley.edu | |
6890538b1bc2e5cf2c76206fe2ff95cbc574e301 | 40ba7074036d7834543764ae5e1c37985ffd4335 | /main_blindPnP.py | e76c6ebe82ab7170fede3278d8dedffb6434465c | [
"MIT"
] | permissive | Liumouliu/Deep_blind_PnP | 47d54c09db4f5e3ebff6875507e2a0b42430fc0d | 0e3e679ffa58c4d0824abf138d0254744dce37da | refs/heads/master | 2022-06-08T03:02:25.109027 | 2022-05-11T12:34:11 | 2022-05-11T12:34:11 | 221,364,258 | 129 | 18 | null | null | null | null | UTF-8 | Python | false | false | 2,754 | py | import os
import random
from easydict import EasyDict as edict
import json
import logging
import sys
import torch.backends.cudnn as cudnn
import torch.utils.data
from config import get_config
from lib.data_loaders import make_data_loader
from trainer import BlindPnPTrainer
# logging
ch = logging.StreamHandler(sys.std... | [
"panpanfei@outlook.com"
] | panpanfei@outlook.com |
d8514be79f7861f9ae195854ba1d64ed810716ea | 3724a1b95e95e611cdd793d1af685f72dfea6b3e | /cloudcafe/networking/lbaas/lbaas_api/listener/client.py | ae712a2a12cef2e37f97dda90670c5fa142ac8e3 | [
"Apache-2.0"
] | permissive | kurhula/cloudcafe | 1b1e41994959cf959a49e19fea5cbda893d9c9df | 7d49cf6bfd7e1a6e5b739e7de52f2e18e5ccf924 | refs/heads/master | 2021-01-20T22:45:27.425724 | 2015-02-20T16:49:35 | 2015-02-20T16:49:35 | 31,156,531 | 0 | 1 | null | 2015-02-22T07:56:08 | 2015-02-22T07:56:07 | null | UTF-8 | Python | false | false | 6,979 | py | """
Copyright 2014 Rackspace
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 agreed to in writing, software
dist... | [
"franklin.naval@RACKSPACE.COM"
] | franklin.naval@RACKSPACE.COM |
bd879dda1376bcb95331072006ffddb2e26bf6e4 | e0c176d11c7582158f1ab9722b3d1e71761f6b1a | /src/eqc/zholkovskij.py | 59e5d6d7f9eeb80d339ecabc602302f6803570c7 | [
"MIT"
] | permissive | robbje/eis | 93a199cfa52460707a84c037c7cb9ea0ad27732a | a7e0cac9e00e57f605cd9d9536d385a3f632e506 | refs/heads/master | 2021-01-18T22:24:42.178465 | 2016-07-11T08:55:55 | 2016-07-11T08:55:55 | 38,840,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | import numpy as np
# Implements parts of the analytical transmission line models found in
# "Irreversible Thermodynamics and Impedance Spectroscopy of Multilayer Membranes" - E. Zholkovskij
# http://dx.doi.org/10.1006/jcis.1995.1034
def tanh(x):
np.seterr(all='raise')
try:
y = np.tanh(x)
except:
... | [
"robert.femmer@avt.rwth-aachen.de"
] | robert.femmer@avt.rwth-aachen.de |
35fe46be42a9c480e91d066a081e4accf192032f | 423a41dadbacb77339a45e2741ae27b334d31f4f | /web/contactx_web/settings.py | 518ac011ef49490bf09c5b92d95fc443f69b03ae | [] | no_license | tathagata/contactx | 6594ad84caaa5be2d24a40670d30260fca829e1a | 4f5cbdbd16e77829a6b1ab11542cc020e046e167 | refs/heads/master | 2020-05-30T23:06:01.461539 | 2012-08-22T21:23:33 | 2012-08-22T21:23:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,043 | py | # Django settings for contactx_web project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NA... | [
"tathagatadg@gmail.com"
] | tathagatadg@gmail.com |
9a047c55dc1dbee0270501e4c076765c88d3e4a8 | fe9a0558e78666150ca26fe7b8b2781061cf987e | /txtl/components/cds_tetr.py | 0190a5cf7985da94cb3c385eac8860899748ef62 | [
"BSD-3-Clause"
] | permissive | BuildACell/txtlsim-python | 8c3587b1a0356e6617da6b67a8554a7697776e8e | 5284a5477f38bbc8a956dc9608b0264ca672a331 | refs/heads/master | 2018-10-09T18:34:59.520569 | 2018-09-19T01:53:44 | 2018-09-19T01:53:44 | 111,568,117 | 4 | 4 | BSD-3-Clause | 2018-09-19T01:53:45 | 2017-11-21T15:38:53 | Python | UTF-8 | Python | false | false | 559 | py | # cds_tetr.py - TetR protein definition
# RMM, 11 Aug 2018
#
# This file contains the model for the TetR protein.
#
# Copyright (c) 2018, Build-A-Cell. All rights reserved.
# See LICENSE file in the project root directory for details.
from ..dna import ProteinCDS
#! TODO: decide if this should be CDS_tetr
class cds_... | [
"murray@cds.caltech.edu"
] | murray@cds.caltech.edu |
8a22a2ebe3c3159834157d2ebcd45a43c447d69a | 1a73c506a7528026f9215ccbf0bba55d4a322346 | /python/mail/SMTP-Header邮件.py | 4110e72e8bd0590d1152a48060c133dc47441fad | [] | no_license | clearLoveKang/myPython | c3b533553067fddaac26d5341e307b521de55944 | 33d437629db498db4e41b48cd233e81a1cb5eaaa | refs/heads/master | 2021-04-09T10:40:08.266133 | 2018-12-10T02:10:37 | 2018-12-10T02:10:37 | 125,455,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # -*- coding:utf-8 -*-
import smtplib
from email.mime.text import MIMEText
from email.header import Header
msg = MIMEText('小可爱,起床吃饭饭啦', 'plain', 'utf-8')
from_addr = input('form')
from_pwd = input('password')
to_addr = input('addr: ')
msg['From'] = Header('大佬康<*******@qq.com>', 'utf-8')
msg['To'] = Header('小宝贝<****... | [
"952472388@qq.com"
] | 952472388@qq.com |
69b06c5b9f0fa6a1d49e873a6054d2f98d73199e | 580daee0cc0a961664cae1dbce027f09aa1b1ebc | /Lab4/mysite/mysite/settings.py | 2ad06674b7af1f9a705f3038978ad089066442ce | [] | no_license | nmrchvz/cmput404-labs | a50cf115067adf842ddd73df308444e33c682d67 | 06d2ed47c59eb042ca76dc017606b2128fd288cc | refs/heads/main | 2023-08-06T10:34:51.408572 | 2021-10-05T00:13:40 | 2021-10-05T00:13:40 | 404,498,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,092 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.1.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"npchavez@ualberta.ca"
] | npchavez@ualberta.ca |
5d00ff9e5462a42bd1845fa9ba16d12841903f29 | 3e4912fd783063e5f2c7a8f41e1daf8ddb607670 | /employees/serializers.py | ceff0c92ab6758257c4e3ada1874f6f9625ee453 | [] | no_license | Puja0708/multi-tenant-system | 6adad0993d7c5dc4e295e4a244a8e23506dbcaf1 | 25c325b5e5c9d6eaa31e5d4df516cfa7a23d8ce5 | refs/heads/master | 2020-03-27T22:35:35.115455 | 2018-09-10T11:55:49 | 2018-09-10T11:55:49 | 147,244,530 | 1 | 0 | null | 2018-09-10T05:11:31 | 2018-09-03T19:20:11 | Python | UTF-8 | Python | false | false | 820 | py | from __future__ import unicode_literals, absolute_import
from rest_framework import serializers
from employees.models import EmployeeRoles, Employee
class EmployeeRoleSerializer(serializers.ModelSerializer):
class Meta(object):
model = EmployeeRoles
fields = '__all__'
class EmployeeViewSeriali... | [
"puja@metarain.com"
] | puja@metarain.com |
b2be71e62e17a50fa0a9622b560930e5da02e4ef | 3f928eaab094902a37f1c282f8fea9064769a3f0 | /proxy_check.py | d6a32569a935ea14a9059a26b2efde6a660f8916 | [
"MIT"
] | permissive | HimanshuNayka/YouTube-Viewer | f5e77ddf4bac5148e2944b2b0c9ca7cf8f988c2d | adf9f196a9ec8e681e4f94558e0ff55804ac9dd2 | refs/heads/master | 2023-04-09T06:19:34.677733 | 2021-04-17T08:44:13 | 2021-04-17T08:44:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,998 | py | """
MIT License
Copyright (c) 2021 MShawon
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | [
"shawonk440@gmail.com"
] | shawonk440@gmail.com |
167bfeaee564f8d3e016763b63baeb7fb6fca90f | 96537900c2170dab239d9c3f13e3c11fd262646f | /introducao_a_ciencia_da_computacao_com_python/primalidade.py | 74ee662d7f67078db88997d458d25981556376f6 | [] | no_license | lucasvini92/cursos | 31be37c17417acc0b19e0dc263f0245bc9ac7ac5 | cbba4b3efa328b0a05fad3f36bf6850c39962d08 | refs/heads/master | 2023-07-11T05:33:03.064262 | 2021-08-28T16:32:46 | 2021-08-28T16:32:46 | 376,107,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | num = int(input("Digite um número inteiro: "))
div = 1
cont = 0
while num>=div:
if num % div == 0:
cont = cont + 1
div = div + 1
if cont <=2:
print("primo")
else:
print("não primo") | [
"lucasvsteofilo@gmail.com"
] | lucasvsteofilo@gmail.com |
0c3e715c31ed237c300f584fd1ce6e4102a51274 | f4c9e202ff98983702e7f6d132b70398fc81ab93 | /stb.py | 2b3ddcd72e32018b1f5402e9446589a33dbfe87e | [] | no_license | MrCheeze/skywardsword-tools | 5989f19bbc1a3c1f8fb37da91ad75ce6011adf01 | b69c7a3ad3805906a2dc6965666a9a356a8bf979 | refs/heads/master | 2020-05-30T13:30:52.045344 | 2019-06-22T18:46:08 | 2019-06-22T18:46:08 | 189,759,599 | 1 | 2 | null | 2020-01-04T21:01:39 | 2019-06-01T17:22:39 | Python | UTF-8 | Python | false | false | 1,404 | py | import glob
import collections
import struct
from util import *
for fname in glob.glob('Stage/**/*.stb', recursive=True):
print(fname)
f = open(fname,'rb')
f.seek(0x20)
parsed = []
while True:
seg_header = f.read(0x8)
if len(seg_header) <= 0:
break
seg_len, seg... | [
"fishycheeze@yahoo.ca"
] | fishycheeze@yahoo.ca |
569c0fe40b397c4990eb34ce4716eead233cf51f | e0ede722874d222a789411070f76b50026bbe3d8 | /practice/solution/0040_combination_sum_ii.py | 522d0209dcadd27bc9829d15d2270d94bb200cd4 | [] | no_license | kesarb/leetcode-summary-python | cd67456cb57bdff7ee227dab3930aaf9c2a6ad00 | dc45210cb2cc50bfefd8c21c865e6ee2163a022a | refs/heads/master | 2023-05-26T06:07:25.943854 | 2021-06-06T20:02:13 | 2021-06-06T20:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | class Solution(object):
def combinationSum2(self, candidates, target):
"""
:type candidates: List[int]
:type target: int
:rtype: List[List[int]]
"""
self.res = []
self.dfs(0, sorted(candidates), target, [])
return self.res
d... | [
"weikunhan@g.ucla.edu"
] | weikunhan@g.ucla.edu |
f37779ca9fecf3ff431fdb243d8bdb30859f1a21 | e70cc9ce5bf94d11d7c5d030abed5a0de26debb3 | /biocellion_frontend/bin/biocell/solver.py | 8c03f467ea6fa0093144599bfdf8361d90ba2d74 | [] | no_license | boaguilar/biocellion_python | 1c9f200142ee8892825fcdab90c68803da987742 | 0b3b48480436f21d9b46d07bd8f4da63b3e7a950 | refs/heads/master | 2021-01-11T18:44:51.924718 | 2018-05-02T21:15:24 | 2018-05-02T21:15:24 | 79,614,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,157 | py | from biocell import *
class Solver( ParamHolder ):
def __init__( self, name ):
self.mName = name
self.mEnumToken = "SOLVER_%s" % ( name, )
ParamHolder.__init__(self)
self.setPrefix( "SOLVER" )
self.addAttribute( Param( "name", "str", "", True ) )
self.addAt... | [
"larsen@dixie.edu"
] | larsen@dixie.edu |
dd5fcde7a9d2b752ffd11fa2e08293aa5ca7e1d2 | ec1460fe71ed7669dc86cf3fabad60a54704c275 | /main.py | 5c73e430eed95479923d46aee1d6c50ef9c0bf35 | [] | no_license | michoy/techathon_tellolib | 948d5c42ee895045788bf4191aad924068197507 | d2d606fd7fa4d956be8ea5ea2ac45977d6eca5f5 | refs/heads/master | 2020-08-11T08:15:11.820703 | 2019-10-12T09:25:24 | 2019-10-12T09:25:24 | 214,525,118 | 0 | 0 | null | 2019-10-11T20:40:20 | 2019-10-11T20:40:19 | null | UTF-8 | Python | false | false | 467 | py | from dronelib.dronelib_tello import TelloDrone
from dronelib.util import *
from time import sleep
def main():
drone = TelloDrone()
drone.activate()
drone.takeoff(1.0)
drone.set_target(0, 0, yaw=1.57)
print(drone.position)
print(drone.yaw)
image = drone.camera_image
save_image(image)... | [
"michael.hoyer3@gmail.com"
] | michael.hoyer3@gmail.com |
1f6bb93da2698a8ef381c0b71b36dd2085b09945 | a8b2e3623533d454e484598024eac7b0d27b34a3 | /cosmoslik/cosmoslik_plugins/models/classyAACF.py | 758fdc5aa0356cfd881d9b25dcf44bb6dad625bd | [] | no_license | andy16777216/FiniteInflation | 087f08762cec62864871682508b14d2b9c97ab8d | 900b402124af30d7b1b5a13af6d1232708f55788 | refs/heads/master | 2016-09-06T01:27:02.289672 | 2015-07-16T18:48:42 | 2015-07-16T18:48:42 | 26,138,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | from __future__ import absolute_import
from cosmoslik import SlikPlugin
from numpy import arange, pi
class classy(SlikPlugin):
"""
Plugin for CLASS.
Credit: Brent Follin, Teresa Hamill, Andy Scacco
"""
#{cosmoslik name : class name} - This needs to be done even for variables with the same name (be... | [
"ajscacco@ucdavis.edu"
] | ajscacco@ucdavis.edu |
b7f7294d6eed3c6580709c80a3bbdedfde794b91 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03767/s342121711.py | e279603e0ad4d33f1c70bcc3c868122d20a4b586 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | n = int(input())
a = list(map(int, input().split()))
a.sort(reverse = True)
list = []
for i, j in enumerate(a):
if i % 2 == 1:
list.append(j)
answer = sum(list[0 : n])
print(answer) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b756c6d0e4cc938e243af0395a0c6bc9ec64ea18 | 31e71ffe0a7d283db1bc35509cc1e87bbc1ffb11 | /exercise/exercise29.py | 4d1f35041cead990dd8d4ce618b8b0a7210c4a8e | [] | no_license | dayadaoshanghai/Learn-Python-the-hard-way | 879d3435e3651481728e6e3a919ad25413cf4466 | cc635d5a752074c04e74b704b55b4b88ac9005b3 | refs/heads/master | 2021-01-01T17:24:47.118273 | 2017-07-31T12:42:34 | 2017-07-31T12:42:34 | 98,064,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | people = 20
cats = 30
dogs = 15
if people < cats:
print("Too many cats! The world is doomed!")
if people > cats:
print("Not many cats! The wolrd is saved!")
if people < dogs:
print("The world is drooled on!")
if people > dogs:
print("The world is dry!")
dogs += 5
if people >= dogs:
print("Peop... | [
"noreply@github.com"
] | dayadaoshanghai.noreply@github.com |
33e3d04f28f29015f75634a2bf0fb461acc8a6cc | fe85e3675c1d665dcc09fb9814003fc1030aa5c2 | /utils/metrics.py | 3903650d448783ce5b7f7eb0108ff508904bf13e | [] | no_license | nik1806/coco-segmentation | ef25bf721f5f65f64f1fc32ea7abe1243deaaa64 | b6f94c8cef13660183483617c74373071022a78a | refs/heads/main | 2023-06-14T15:15:47.188118 | 2021-07-09T09:17:16 | 2021-07-09T09:17:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | py | import numpy as np
class Evaluator(object):
def __init__(self, num_class):
self.num_class = num_class
self.confusion_matrix = np.zeros((self.num_class,) * 2)
def Pixel_Accuracy(self):
Acc = np.diag(self.confusion_matrix).sum() / self.confusion_matrix.sum()
return Acc
def ... | [
"290806078@qq.com"
] | 290806078@qq.com |
e80586d7b73647ff3cab136e14a4b886a1f83e38 | e6789e78f86279eb1bda423aee5d6fffed23ae2d | /Source/Travel/app.py | f4dd6ac98d3ee596e13821aa9ef04498b60dc3b5 | [] | no_license | frankli0324/LCTF2018 | 4b4872db2c2c6ee75d8672c02000cc1b8eec9257 | b8d95312b534258c85e9bb2e34a0ce85f3858192 | refs/heads/master | 2022-11-15T02:50:08.902822 | 2020-07-12T06:47:25 | 2020-07-12T06:47:25 | 278,698,725 | 2 | 0 | null | 2020-07-10T17:50:07 | 2020-07-10T17:50:06 | null | UTF-8 | Python | false | false | 1,106 | py | # -*- coding: utf-8 -*-
from flask import request, render_template
from config import create_app
import os
import urllib
import requests
import uuid
app = create_app()
@app.route('/upload/<filename>', methods = ['PUT'])
def upload_file(filename):
name = request.cookies.get('name')
pwd = request.cookies.get('... | [
"tundrawork@gmail.com"
] | tundrawork@gmail.com |
79e21cfbaa2d7f08d3295fa45bba76eb09349b63 | 8c82d71c8d8edb259405787e010b943f921214c5 | /job/urls.py | 2ace98de5728d5d4b084b6ea651457d9d6fe5817 | [] | no_license | Yossef-Dawoad/JOB_FINDER-django_demo- | 14f4358c396479d1a8a862688fa6210d61f025df | 8aacbcf3a1e269b0f2b2605093559476ca1674d7 | refs/heads/main | 2023-08-31T15:46:25.272822 | 2021-03-25T07:08:45 | 2021-03-25T07:08:45 | 351,337,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | from django.urls import path
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns=[
path('',views.job_list),
path('<int:id>',views.job_detail),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_UR... | [
"yossefdawoad15@gmail.com"
] | yossefdawoad15@gmail.com |
b92ba34be5084acd5dfdc2bbc230067045fbcdc5 | cc5dc60b5c343962bf7425865af8371b7e12e529 | /MagnitudeCalculator/Tester.py | a66bbb50a665010fc279ac775b2bd3b715d6641c | [] | no_license | debjyoti385/quakeanalysis | 044aa5f5a9429090ab7bd42370ea4b43d36c18d0 | 4e3225f1a20ae1f05e6be532836e4ff9ee405071 | refs/heads/master | 2021-05-04T11:31:50.052098 | 2017-02-28T00:35:36 | 2017-02-28T00:35:36 | 48,445,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,854 | py | '''from obspy.fdsn.client import Client
from obspy import iris
from obspy import arclink
from obspy import UTCDateTime
client = Client("IRIS")
iClient = iris.Client()
arcClient = arclink.Client(user="sed-workshop@obspy.org")
timeSeriesClient = iris.Client()
t1 = UTCDateTime("2012-04-12T07:15:49.1700")
#t1 = UTCDateTi... | [
"zinniamukherjee@Zinnia.local"
] | zinniamukherjee@Zinnia.local |
3a9a38abf83a67d5c4027f92a3dfc99fa6246173 | a60732108767b0da186463d2ad834821da01750e | /PDF-reader/app.py | ae75f891ab42b54cc51e1e7020c995cc07424e98 | [] | no_license | Luke943/QuickApps | 23c58db13094860cfdc595475e79fa8f433e7605 | 8aa6e2768f9c97e9235338499b937d29399341d1 | refs/heads/master | 2023-08-03T14:09:53.265624 | 2023-07-27T15:49:18 | 2023-07-27T15:49:18 | 329,692,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | import tkinter as tk
import PyPDF2
from PIL import Image, ImageTk
from tkinter.filedialog import askopenfile
# initialise
root = tk.Tk()
root.title("PDF Text Extractor")
canvas = tk.Canvas(root, width=600, height=300)
canvas.grid(columnspan=3, rowspan=3)
# logo
logo = Image.open("logo.png")
logo = ImageTk.PhotoImage... | [
"luke.hartley05@gmail.com"
] | luke.hartley05@gmail.com |
41b0b6ae8bf47a9965ce80c9f09a4a499ded45fb | 51320b2d4101f347229227495762a646f4d41ad8 | /DDPG Agent - Continous Reacher Environment/a_memory.py | 0d786c87f67d03b62314438012e20ea985ee199c | [
"MIT"
] | permissive | szemyd/deep-reinforcement-learning | 805533eb9653c8b35009fcea00fc552d0bf99920 | 2dc2ab8511bcf3975c51dc057b66d2d500e2cf80 | refs/heads/main | 2023-04-11T12:51:56.732555 | 2021-04-26T11:20:23 | 2021-04-26T11:20:23 | 337,783,645 | 0 | 0 | MIT | 2021-02-10T16:30:51 | 2021-02-10T16:30:50 | null | UTF-8 | Python | false | false | 1,946 | py |
import numpy as np
import random
from collections import namedtuple, deque
import torch
import torch.nn.functional as F
import torch.optim as optim
from constants import *
class ReplayBuffer:
"""Fixed-size buffer to store experience tuples."""
def __init__(self, action_size, seed):
"""Initialize... | [
"szemy2@gmail.com"
] | szemy2@gmail.com |
9233296ae37437b00a31b248c98072ae1ac1daeb | 3ed9e1c43f8560ad08ce7ffff83bdae8aaa0992a | /superset/datasets/commands/importers/v1/utils.py | c21c66ff18077bb2fed9927fb56fc49fc3a1d27e | [
"Apache-2.0",
"OFL-1.1"
] | permissive | sekikn/superset | 7e07b3a6f494ead275b43909a2f8990cf67e170c | 45020860d5c65f08c73f550054166ba1089fecef | refs/heads/master | 2022-12-22T13:25:37.095102 | 2021-05-25T21:59:05 | 2021-05-25T21:59:05 | 92,110,168 | 0 | 0 | Apache-2.0 | 2022-12-19T00:52:32 | 2017-05-23T00:03:38 | Python | UTF-8 | Python | false | false | 5,394 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | sekikn.noreply@github.com |
5e9075f5cad527f8659449177fea32357ade4ad8 | 96a91d882e73cff97da43eb92e79826570678ad0 | /done/county_process.py | afc3d40850b409a05a415f65e05ddbed2603f389 | [] | no_license | carrickdb/FakeNews | a7dea0b537709bfd3134c83c1a57391d95472596 | cc96e0b07f70e62ecc7525c65cbe71cdd465fb0d | refs/heads/master | 2021-10-21T18:38:05.596102 | 2019-03-05T17:48:29 | 2019-03-05T17:48:29 | 167,854,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | import csv
"""
Converts file with votes by county and party to a pivot table with each county only listed once
"""
counties = []
with open("county_votes.csv", 'r') as f:
with open("processed_votes.csv", 'a') as g:
reader = csv.reader(f)
writer = csv.writer(g)
header = next(reader)
... | [
"carrickdb@gmail.com"
] | carrickdb@gmail.com |
9b76cc3e5a3c0554ecc498d1baca0cc45673e406 | b99e57154208f6ac74d40fdebf4416edc7b51a36 | /coding_challenge_6.py | bfb0a253361b075d1475f6f90be499448d0c0e3e | [] | no_license | Shaletanu/avodha_code_challenge | 1103186f84290e0b6451bb4759376f9df645286f | bac6a8f93c4a5bf51da95f884718578e0fc69458 | refs/heads/master | 2023-02-12T22:41:27.106797 | 2021-01-14T14:56:00 | 2021-01-14T14:56:00 | 326,682,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | file1 = open("demo.txt", "w")
file1.write("Hello, I am Anu Shalet Philip.")
file1 = open("demo.txt", "r")
content = file1.read()
print(content)
file1 = open("demo.txt", "a")
file1.write("I am from Kottayam.")
file1 = open("demo.txt", "r")
content = file1.read()
print(content)
file1.close() | [
"shaletanu0@gmail.com"
] | shaletanu0@gmail.com |
fcc07437f6183ea5ca1b7698be6bd8ec4aa4f8a1 | 6b62ec48d3772e3422053bc3d7eca2959b7fb88f | /platforms.py | 9b1ab27164c7c95f1cf3cf12acbdac633c44f1ff | [] | no_license | SueFolkerts/Python2InfinitePlatformerPhase5 | 89a6f4eee402e7a165b5f6dc0ed20f94b60f65f0 | 903be21ef091ea23c5ae3e0d78aaf3e02c48531c | refs/heads/master | 2020-03-23T13:11:40.634618 | 2018-07-20T19:16:49 | 2018-07-20T19:16:49 | 141,604,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | import pygame, random
class Platforms(pygame.sprite.Sprite):
def __init__(self, pos, img_path, width=70, height=70):
super().__init__()
self.image = pygame.Surface([width, height]).convert()
self.image.blit(pygame.image.load(img_path).convert(), (0, 0), (0, 0, width, height))
self.im... | [
"sfolkerts@coinstar.com"
] | sfolkerts@coinstar.com |
dfaffdcd61d7a94c5ada0c487c4730ac16adde76 | ac1a206541472b3fd096c928e511e7b13cf97733 | /python/src/cph.py | 3dc2f4a969eb45d7547b7a5e80731790b4417f53 | [] | no_license | ScorpioCPH/code | 2979d1e00476ae181cd979d81ba2a8f82a875d72 | faeef3383633d11f9f3e533c817b4bfac3c6d701 | refs/heads/master | 2021-01-19T09:52:09.721808 | 2017-12-08T11:42:59 | 2017-12-08T11:42:59 | 82,145,392 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | # coding=utf-8
def print_str(str):
print(str)
| [
"scorpiocph@gmail.com"
] | scorpiocph@gmail.com |
533aa898ba74cdb427d7bac5c8d8a70e01eee588 | dba1be9c35a2044fb9d07a55f52b3740147b467e | /tests/bam2msa.py | 47cf401d9e5c528613aa6ab5a9fddb116f012c18 | [] | no_license | 849189526/BioExt | 2279cb2d76f158266a08b29d2e31b8300b411b89 | e36c3b4a118fb73281ae4f068fceb046f35ab1f6 | refs/heads/master | 2020-06-25T08:18:37.373893 | 2019-01-11T18:00:58 | 2019-01-11T18:00:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | #!/usr/bin/env python3
import nose
import functools
import os
from Bio import SeqIO
from BioExt.io import BamIO
from BioExt.args import (
add_alphabet,
add_reference,
add_scorematrix
)
from BioExt.uds import _align_par
from BioExt.misc import compute_cigar, gapless
from BioExt.scorematrices import ... | [
"sweaver@temple.edu"
] | sweaver@temple.edu |
6df06f09484f86ee27ca27323878d76a2cc016fc | c4c068b02899e333fb6d7d735bece664d257c563 | /pset8/mashup/helpers.py | e4858d86ab07cb1cccca30737499e3a730ef69be | [
"CC-BY-3.0"
] | permissive | eqmvii/CS50 | 442290ea91d6352617beaf8319e3c338bbf1d103 | 0024ea50131abefa4e87fc1b90cee8430a648575 | refs/heads/master | 2021-01-20T04:50:43.719740 | 2017-04-28T20:37:10 | 2017-04-28T20:37:10 | 89,742,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | import feedparser
import urllib.parse
def lookup(geo):
"""Looks up articles for geo."""
# check cache for geo
if geo in lookup.cache:
return lookup.cache[geo]
# get feed from Google. !!! CURRENTLY TO AVOID SPAM BOT J'ACUSE FROM GOOGLE !!!
# http://news.google.com/news?geo=22044&o... | [
"coelomate@gmail.com"
] | coelomate@gmail.com |
798efca679f2d54fa6c1a967b92fe1d157e03f55 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnfaulti.py | 0db9ec8c46bcffabd20b375fd10825d23728bee3 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 624 | py | ii = [('CookGHP3.py', 1), ('SadlMLP.py', 2), ('MartHSI2.py', 1), ('LeakWTI2.py', 1), ('KembFJ1.py', 1), ('WilkJMC3.py', 1), ('WilbRLW5.py', 1), ('GellWPT2.py', 1), ('SeniNSP.py', 1), ('LyttELD.py', 1), ('AdamHMM.py', 1), ('ClarGE.py', 3), ('DaltJMA.py', 1), ('NewmJLP.py', 3), ('CoopJBT.py', 1), ('LeakWTI4.py', 1), ('Me... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
b7c74db336e873841c529bfce999bb9f261be520 | 01e7b0d71126597de316e95858c54267ee30d3f5 | /data_utils/video_utils.py | d4e3ded1253752a0f6949ab56e3df9664f1adf80 | [
"MIT"
] | permissive | Sapphirine/201912-13-video-object-segmentation | 0604aaf8457e68139aef4cc6f56c324b6557b669 | cfd36f502385f99b39e309ae39309d5e1785cfc8 | refs/heads/master | 2020-11-26T17:09:53.467432 | 2019-12-19T14:59:01 | 2019-12-19T14:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | import os
TMP_FOLDER = "tmp"
MODEL_FOLDER = "models"
cached_video = set()
cached_model = set()
for f in os.listdir(TMP_FOLDER):
if os.path.isdir(os.path.join(TMP_FOLDER, f)):
for i in os.listdir(os.path.join(TMP_FOLDER, f)):
if os.path.splitext(i)[1] == ".mp4":
cached_video.add... | [
"1178869226@qq.com"
] | 1178869226@qq.com |
3c156345bff5b954c74eae0c7acbc51069a76b7c | 67af82e4e3e654fd59dc8e14479907c084d68e4b | /LeetCode-Python/677. Map Sum Pairs.py | 638b4bab681c819d3d5830cb2219593a060b123b | [] | no_license | KaranJaswani/Codes | 6ba3f90cc3a0908ccfa4cf4c9b4794f5de6c63a6 | 0a833b8f666385500de5a55731b1a5590827b207 | refs/heads/master | 2020-05-30T07:12:37.383960 | 2017-12-30T14:06:45 | 2017-12-30T14:06:45 | 68,880,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | class TrieNode(object):
def __init__(self, char, value):
self.character = char
self.value = value
self.isWord = False
self.children = [None] * 26
class MapSum(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.root = T... | [
"karanjaswani123@gmail.com"
] | karanjaswani123@gmail.com |
aa95ecd48c26cdc6d818087c90547e93aabb6d85 | a1662bb69ffb305c5182b41f102a17ec259b143a | /src/triangles/hashed_edge_iterator.py | 309bf35421ebdcaf3a4ecbaea597a536ec9e1b4b | [] | no_license | AndersHqst/SAAS-2014 | d5df874d835e6253e05f9b1d79f132297c24dbfb | 28b48e448baf678a8c954b78f70b8e6eed1de6fb | refs/heads/master | 2016-09-05T13:46:30.356794 | 2015-05-01T14:17:05 | 2015-05-01T14:17:05 | 34,905,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,700 | py | import utils
from time import time
# TODO: clean up
def print_stats(G):
edge_list_lengths = []
_max = 0
_min = 9999999
for key in G:
l = len(G[key][0])
if l < _min:
_min = l
if l > _max:
_max = l
edge_list_lengths.append(l)
avg = sum(edg... | [
"ahk@e-conomic.com"
] | ahk@e-conomic.com |
b2bc2b0ea9c43e023c7ac3dd9a00da3a702d32f6 | 69d0dfacdbff0d7aeee16ad590ef18b7bacdbd0c | /app.py | b14ff69cc1da8ea9ed6af4b2019e8d5dd88f79d5 | [
"MIT"
] | permissive | ybangaru/wallstreetbets-sentiment-analysis | 0a628c84f2229e5df2700ae76883e94c4df4735c | dc5a632f93f2c3a4454b45f96f9e6b580c6c4be5 | refs/heads/master | 2023-05-12T15:03:47.594562 | 2021-05-24T21:18:07 | 2021-05-24T21:18:07 | 333,496,347 | 11 | 0 | null | 2021-05-04T20:35:43 | 2021-01-27T16:50:25 | Python | UTF-8 | Python | false | false | 7,250 | py | import streamlit as st
import numpy as np
import pandas as pd
import datetime
import os
import matplotlib.pyplot as plt
from wordcloud import WordCloud, STOPWORDS
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
import plotly.graph_objects as go
from sqlalchemy import create_engine
from sqlalchemy.p... | [
"yaswanthbangaru13@gmail.com"
] | yaswanthbangaru13@gmail.com |
6bfa1fa52e42430692f0306be410aa035a39fb92 | 811acdfdd52a56a8440ca72c889bec850280b5ba | /libro/funcion_print.py | 1c05f5886b660b6b11ea36481ef57465e3a3e9eb | [] | no_license | josselinereyes841/CYPJosselineRM | ca36e4acbb242a290682c07234f3e7cf864e9114 | db42ec10b4529424c975f9dc4dcf53eef896efee | refs/heads/master | 2021-06-30T13:19:13.001339 | 2021-01-15T23:16:44 | 2021-01-15T23:16:44 | 207,672,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | #print tiene 4 formas de uso
"""
1.- Con comas
2.- con signo '+'
3.- con la funcion format()
4.- es con una variante de format()
"""
#Con comas , concatenar agregando
# un espacio y haciendo casting de tipo
edad = 10
nombre = "Juan"
estatura =1.67
print(edad , estatura , nombre)
#Con '+' hace lo mismo pero no hace el c... | [
"josselinereyes35@outlook.es"
] | josselinereyes35@outlook.es |
87ac431ed770aef0ee07763a3f61bd864ed4841c | 092227c7e85555a5f2b547629a7e9639c34b7417 | /personal_portfolio/urls.py | 47fbf7302c14ab33b45f3cde91812f4ff657f2f7 | [] | no_license | Shibly10/django-personal-portfolio | d4093ebad23b04f6380009f56a55b5aeeb662a59 | b6618c09a21d121da64b1426cdd375b16f7ad99a | refs/heads/main | 2023-01-05T22:03:09.295517 | 2020-10-29T17:08:51 | 2020-10-29T17:08:51 | 308,362,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | """personal_portfolio URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"shibly.ar@gmail.com"
] | shibly.ar@gmail.com |
ea9f4f343b6d8e2a0a698b51ce3bb7b4ef6f0749 | d749ebc7b7f0a686cf04f31bf59abb82a5ea28e4 | /sourceful/MusicMatcher.py | 4e26db72f55c8ebf7e209d190b477b76debaa87c | [] | no_license | ssa11200/python_warmup | c780a97fe823ce61512bf34d8434b339a14943b1 | 507285405fe4f7d43e1eecca9eb5ec5cdd217e74 | refs/heads/master | 2023-03-24T13:15:27.060823 | 2021-03-23T20:27:04 | 2021-03-23T20:27:04 | 343,135,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | from .api_modules import (
analyse_feeling_polarity,
find_music_for_feeling,
find_lyrics_for_music,
)
class MusicMatcher:
def __init__(self, feeling):
self.feeling = feeling
self._music = None
self._lyrics = None
self._polarity = None
def _analyse_feeling(self):
... | [
"ssa11200@gmail.com"
] | ssa11200@gmail.com |
05a3ec96169afb4787eb493000b49e279c8e524a | b6fe842749ca288b5e7f048c149b04f035f62b93 | /mydb/pymongo_sort.py | 04d1b772002037998bc33da0a68299c6aeb45b5f | [] | no_license | zxcvbnm123xy/leon_python | c8fa74dd0186402b9edf7466f9a28a6fa586b17c | b68f5d5e8240c5a99ec7c155fb85f816ac0d54d1 | refs/heads/master | 2020-03-27T03:03:43.610701 | 2018-11-14T09:17:15 | 2018-11-14T09:17:15 | 145,836,887 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | # 加载依赖
import pymongo
# 创建连接
myclient = pymongo.MongoClient("mongodb://localhost:27017/")
# 定位到数据库mongo_python和集合sites
##use mongo_python
mp = myclient["mongo_python"]
sites = mp["sites"]
#按照alexa降序,name升序 db.sites.find().sort({"alexa": -1, "name": 1})
siteList = sites.find({}, {"_id": 0, "name": 1, "alexa": 1})\
... | [
"737878501@qq.com"
] | 737878501@qq.com |
37d16ddeb7663fc42eb684c9fd238cc1286dc69c | 6c202bfadef2d80242567be70e2437e384a96b20 | /IO/IO.py | b7ef9cb9e50b01ac979792f2d15848dbfe3327fd | [] | no_license | hoylemd/Python | 257acecc1bc6c0e21d7c9bffc2d3b8861add9dab | 39e3863c87d83883d15e5db39a5fd5ce605b6ebb | refs/heads/master | 2018-12-28T20:33:16.497465 | 2012-10-15T02:44:36 | 2012-10-15T02:44:36 | 1,898,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | # read a string from the terminal
str = raw_input()
# print it back out!
print str | [
"hoylemd@gmail.com"
] | hoylemd@gmail.com |
04e81eb61b7efc691cb29caabfe5ffa22242caf9 | 0d0ba103050607a7e4994ee5253140f3e9c13f6f | /8-5.py | 8c2870cec98c8f81bebb1d51d146a603532b999d | [] | no_license | yinyangguaiji/yygg-C1 | ac30d8ae5fd3a51985723acd527844860e658dd6 | 08ef81785a44715680b2f8543ac665424f8ce63b | refs/heads/master | 2023-03-12T09:25:22.747657 | 2021-02-19T07:24:33 | 2021-02-19T07:24:33 | 332,170,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | def describe_city(city,country='China'):
print(city + ' is in '+ country + '.')
describe_city('Chengdu')
describe_city('Beijing')
describe_city('London','Britain')
| [
"noreply@github.com"
] | yinyangguaiji.noreply@github.com |
0d497de579e262500807394359bad38278397bee | 90ea49bb872623a0fc117632df0232f26e078033 | /redis_main.py | 6e22c3d257bc2ca5b18745dc8e70d73601aefcc6 | [
"MIT"
] | permissive | JX-Wang/Redis-servcie-T | e4612967a30c8c18ba5fa51aac91482e5f4f591a | 26005d0b15defa8628220512046aadc94765bd5b | refs/heads/master | 2020-06-17T04:39:28.779495 | 2019-07-09T12:35:38 | 2019-07-09T12:35:38 | 195,799,949 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | # usr/bin/env python
# coding:utf-8
"""
redis Notes
============
Date@2019/7/9
Author@Wangjunxiong
"""
import redis
try:
r = redis.Redis(host="39.106.165.57", port=6379, db=0)
r.get("msg")
except Exception as e:
print "Connect Error as -> ", str(e)
| [
"1411349759@qq.com"
] | 1411349759@qq.com |
d7cb7e3d8b6e6939858dfba41a52bad6f3ce5423 | fc9dcc3d291f1c4f7e419cdf06ca1b56ec0fe94c | /Quiz_Age - 4.py | 6853b1d94ec828a607ef933220179bff0c9c5983 | [] | no_license | WilliamStacey/GeneralKnowledgeQuiz | d4d1020fb96ffc03b263ebbeae28be70cdf27f02 | 4a22fb0143b6e9bd3967c17a848b71fea87d74be | refs/heads/main | 2023-08-16T02:06:29.596529 | 2021-10-21T23:14:19 | 2021-10-21T23:14:19 | 357,341,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #ask age
def age():
age = ''
while True:
try:
age = int(input("Enter your age: "))
if age < 10:
print("You are too young to take this quiz.")
raise SystemExit
elif age > 18:
print("You are too old to take this quiz.")
rai... | [
"noreply@github.com"
] | WilliamStacey.noreply@github.com |
3c07bcfba5b64326ebbc13e40028b85a23b263a6 | 0d0fc8fbe57a2ea04e4c8b1193f7a222b4885c0d | /guppypy/x86_64.py | 28359221129c6d2386d71238d824fe5c16d3443b | [
"MIT"
] | permissive | alexpatel/guppypy | 350ccabfe3419e381fb8ca12aaa853958c2fd09a | 99e8cee2bceaa39922dfef047ae631e5e6cac941 | refs/heads/master | 2021-01-01T17:11:16.838570 | 2017-08-01T00:16:07 | 2017-08-01T00:16:07 | 98,016,177 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | from pysmt.shortcuts import Symbol, Int, And, GE, LE, LT
from pysmt.typing import INT
# x86_64 BarrelfishOS user-space system call argument conventions
machine_description = lambda regs: And(
# each register in regs has to be loaded from user stack
And(reg.has_valid_stack_slot() for reg in regs.values()),
... | [
"patelalex02@gmail.com"
] | patelalex02@gmail.com |
ec85b4f9323253ff48527e8e39cfd5d87818c3b9 | 2b01bc8e7af1cecbb9fcc19003e39cac34302824 | /backend/backend/settings.py | 60771b66ca8921eb1aa87be8d6b52d26174f3ec6 | [] | no_license | pushp1997/django-react-ToDo | 19db10806c1f84214fc0661cda4df40ede9af5a1 | b4347ab10b97860881028eebeb11a3eb68066f6e | refs/heads/master | 2020-07-06T14:31:37.702231 | 2019-08-19T14:10:18 | 2019-08-19T14:10:18 | 203,050,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,322 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 2.2.4.
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
#... | [
"pushptyagi1@gmail.com"
] | pushptyagi1@gmail.com |
dfab13a39ba70b6e52dbdf34305264365e154d8a | e4b7348387bbda5e4b44b69cfd015f52db892e5a | /Scripts/Workflow/make_1d_vmodel.py | 63f087d378942f64a32d6aaf8fb7d5f1f88e3624 | [] | no_license | calum-chamberlain/kaikoura-aftershocks | 9199e6949a08cf7cbd1f810faaf85325e86b736f | ec0ae1f100bc2e686f42c32fefeb18805d19ccfb | refs/heads/master | 2023-04-14T02:55:31.928872 | 2021-06-25T23:47:11 | 2021-06-25T23:47:11 | 310,416,172 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,182 | py | """
Script to extract an average 1D model from Donna's NZ3D model.
"""
import numpy as np
import pandas as pd
MODEL_FILE = "vlnzw2p2dnxyzltln.tbl.txt" # NZ3D 2.2 from https://zenodo.org/record/3779523#.YCRFaOrRVhF
def extract_one_d(
min_x: float = 72.0,
max_x: float = 110.0,
min_y: float = -100.0,
... | [
"calum.chamberlain@vuw.ac.nz"
] | calum.chamberlain@vuw.ac.nz |
a2098e532178626c84dfc0a6903f249677bf9452 | 66c959e86bc9e44134f905411dcfca772111727c | /read_serial.py | e2542d445cb1b428315d864e69adf5d445cdb4a1 | [] | no_license | Rohan1997/Heat-Map | 18a71c258e6da0c2995b77ae3b2bd59bc7380402 | ba1f1b3cd7dfe8bc20c6716182e9bbb338dc706f | refs/heads/master | 2020-03-09T17:51:54.515814 | 2018-04-21T12:19:44 | 2018-04-21T12:19:44 | 128,918,123 | 0 | 0 | null | 2018-04-10T12:12:20 | 2018-04-10T10:53:23 | Python | UTF-8 | Python | false | false | 2,707 | py | # Basic working code for reading data directly into python
import serial
import time
# This port address is for the serial tx/rx pins on the GPIO header
SERIAL_PORT = '/dev/rfcomm0'
# Set this to the rate of communication between PC and HC-05
SERIAL_RATE = 115200
def char_to_float(units, tens, hundreds, thousands)... | [
"noreply@github.com"
] | Rohan1997.noreply@github.com |
a351f9a383b7908bc81f7ee0129447f3b5624fb0 | ff652d85c1b2a6a22cea6bbd84e5d9f96b43c64b | /Final Deliverables/Code/ResultsVisualizer.py | b679753a857d9e45de272e3cd3c6c4c59cf537d9 | [] | no_license | ironhide23586/Map-Matcher | a3b9ecb7103e9500473eafbc6d62dc44093a7ca2 | c838ed59db9c3987913a669bb7204505dd4640d4 | refs/heads/master | 2021-03-24T12:05:19.572010 | 2018-11-10T05:22:47 | 2018-11-10T05:22:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | import numpy as np
import matplotlib.pyplot as plt
import csv
def show_hist(arr, title_name, xlabel, show_plot=True):
hist, bins = np.histogram(arr, 30)
bins = bins[:-1].astype(np.int)
if show_plot == True:
ind = np.arange(1, bins.shape[0] + 1) # the x locations for the groups
maxs = hist
width = 0.... | [
"sbiswas7@hawk.iit.edu"
] | sbiswas7@hawk.iit.edu |
f6e16e606ad5e19332738646c1e75716288366be | a462e55dceb569502bb7c9e4460522af296f49b6 | /code/lisa-caffe-public/examples/new_lrcn/data_verify.py | c3391d21b202bd9d718f12b6a9597bc30dafdd2e | [
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-public-domain"
] | permissive | giserh/cluster_video | 1e83ff130cf80e409815ba5fe8e89f2715422591 | 8c5f4157b76f768138b7c19261d396cdf9122866 | refs/heads/master | 2021-01-24T12:36:18.183421 | 2017-03-13T01:22:43 | 2017-03-13T01:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | import numpy as np
import scipy.io as io
import cv2 as cv
import sys, os
import caffe
import pdb
model_path = os.path.join( '/cs/vml2/xla193/cluster_video/output/UCF-101/snapshots_lstm_RGB/_iter_2500.caffemodel' )
print "Start loading network.."
# load net
net = caffe.Net('/cs/vml2/xla193/cluster_video/code/lisa-caffe... | [
"xla193@sfu.ca"
] | xla193@sfu.ca |
f5ece496682064b3b75d259ee4b9a085cfcd7867 | 3333ed6da323c4dc3a4dab7f6a82f5d84db53f62 | /quiz_tests/quiz_1.py | 1fc684cac42394b07352042560b453a45436e68e | [] | no_license | NateOwl1108/assignments | 4823d49852eb2dad62b11d6be502cdb1f60a85fd | 4238420f262bcb0fc39b0e80ed08e5ddf97a26d3 | refs/heads/master | 2023-05-09T18:14:59.726344 | 2021-06-19T21:46:09 | 2021-06-19T21:46:09 | 291,084,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | def separate_into_words(sentence):
return sentence.split(' ')
print(separate_into_words("look the dog ran fast"))
separate_into_words("look the dog ran fast")
def reverse_word_order(sentence):
words_list = separate_into_words(sentence)
reverse = words_list[::-1]
reverse_sentence = ''
reverse_sentence += reve... | [
"natedog112004@gmail.com"
] | natedog112004@gmail.com |
ed377733d23fb5c6cc2ea478a613ec2ca714d70f | 8ea915b38738ec717e2ac763786005877cfc0064 | /Practice/practice02.py | 7726d69d700c832ee7b92bfdac92b968faa4571a | [] | no_license | jimmy43333/Python_Learning | 374e3c2695200ab3020e423d02513a6866530adb | 01672e23838827ac77dcf1c49034bde015d14be5 | refs/heads/master | 2023-08-14T17:54:18.630258 | 2023-07-12T14:07:28 | 2023-07-12T14:10:07 | 104,288,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | import random as rd
def helper(member_list, team_list):
# print(best_friend)
best_friend = "TK"
score = [ rd.randint(1, 100) for ele in member_list ]
score.sort(reverse=True)
print(score)
def is_team_member(who):
if who in team_list:
return (0, who)
return (1, who)
... | [
"jimmy43333@gmail.com"
] | jimmy43333@gmail.com |
dc3441675e94bea8afa0085dc88c1917551088d9 | 18c0511cdaef2d09f07ed071e4f300a78368900f | /graphs/cases_per_admin_region_overtime.py | 210d828332e9dac41fba44f56b4128f0f5f5cc2a | [
"CC0-1.0"
] | permissive | ElNiak/covidbe-opendata | 3bcaca2ebf4a345d0529e5c69249ae0d83d0768f | 115883d379da91c72a260c66d4ae49b241b111f5 | refs/heads/master | 2023-04-09T12:59:11.414369 | 2021-04-21T04:40:43 | 2021-04-21T04:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,122 | py | from datetime import datetime, date
import geopandas
import plotly.express as px
import pandas as pd
import numpy as np
from flask_babel import gettext
from pages import get_translation
import plotly.graph_objects as go
from graphs import register_plot_for_embedding
geojson = geopandas.read_file('static/json/admin-u... | [
"pschaus@gmail.com"
] | pschaus@gmail.com |
2376aebcad3f0702f3a564e5846c0a36edd5a57b | 2bbf7151418e9272da01440626b6a6c1e6aa1944 | /code/utils/tools.py | 353f7fc3cf498c6e392805ca0c7b48332638a7fe | [] | no_license | aliparac/AIMOS | b458c3c213095601cb38ac5ab109413f57278ea8 | 579b239f9ce3650c8f924c034128bfe9e7f67bdf | refs/heads/master | 2023-03-16T08:13:39.109936 | 2021-01-26T11:04:14 | 2021-01-26T11:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,985 | py | import numpy as np
import torch
from torch.nn import functional as F
from utils import architecture
#%%
def choose_architecture(config):
if( config['architecture'] == 'Unet64'):
model = architecture.UNet64(num_classes = len(config["trainingCIDs"]) + 1)
elif(config['architecture'] == 'Unet128'):
... | [
"noreply@github.com"
] | aliparac.noreply@github.com |
bf7f467480751bd795551a06f18da4ced2b45588 | bbba463ab46369d22adc35dd1a819d4c8a994973 | /preprocess.py | 5a0c2d376fdec3bfcf3176859f651b99d9a65a5d | [] | no_license | ajdapretnar/SegTra | f74a7c13cbe8569a87193f160d70fc91b205ebeb | 76747824283dbf2f674f39e5a0e7ef10d5191d19 | refs/heads/master | 2020-04-02T17:29:13.797909 | 2019-05-24T09:27:22 | 2019-05-24T09:27:22 | 154,659,337 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,343 | py | import re
import pickle
import json
import lemmagen
from lemmagen.lemmatizer import Lemmatizer
from nltk.tokenize import RegexpTokenizer
import ufal_udpipe as udpipe
def remove_comments(corpus):
regex = "\\((.*?)\\)"
corpus['Questions'] = corpus['Questions'].apply(lambda x: re.sub(regex, '',
... | [
"ajdapretnar@gmail.com"
] | ajdapretnar@gmail.com |
7125de95fee231cb947372fc2fdf2d5816aca876 | 649cd51d3ce32dd4a89f781a14741d19b703350f | /server/clients/mfcClient.py | 73185ec8c1c16005d6c0e1ad2116c10ebff66a27 | [] | no_license | flybrains/clm | 03ff00c11c49e89f0adc9c2f801d8102fe0577fb | 2b6cfa66175d4d875baefc7a9c0497d912a988d0 | refs/heads/master | 2021-01-08T09:58:36.181550 | 2020-03-12T21:51:42 | 2020-03-12T21:51:42 | 241,995,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,046 | py | import time
import socket
import json
class MFCClient(object):
def __init__(self,lookup_table=None, oob_option=None, replay=True):
self.load_json()
self.host = self.config_data['local_host']
self.port = self.config_data['local_port']
self.replay = replay
#print('Started MFC... | [
"pstock@rockefeller.edu"
] | pstock@rockefeller.edu |
2912d2a93ef0093a5fc03526ab6241d7cb22a290 | 5f4a544e4903bc8fcfcd67e18a8a615e76b36974 | /dog.py | 5bb3af7c0a7e6898df925d697416d2ed0d61731b | [] | no_license | tkkohei/hangman | a6d4fbbccd0c5a2c4488206649cf662a04c13dac | 6e4d20366fae171fd5fa8391c93ceceedd29eebb | refs/heads/master | 2020-09-07T00:08:23.779349 | 2019-11-10T03:39:28 | 2019-11-10T03:39:28 | 220,597,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,136 | py | class Dog:
def __init__(self, name, age, weight):
self.name = name
self.age = age
self.weight = weight
def bark(self):
if self.weight > 29:
print(self.name, 'says "WOOF WOOF"')
else:
print(self.name, 'says "woof woof"')
def human_years(self)... | [
"kenjimitana@gmail.com"
] | kenjimitana@gmail.com |
36ae4bf7acd0fbbd49bef683b159f3a04f225313 | 9c395cde750544f92eaaaa7e2c38981ee05c023b | /tetris.py | 7726ba1a31a3036f7d6e8e6f40654cf5400f8730 | [] | no_license | MukulBarai/Block-Puzzle | a4c39e703d7393b1dbade71a9067f4fbd3f5bd0f | eb16527ca159906bf688e9439c6bcc8baf6e0bc7 | refs/heads/master | 2020-12-21T20:44:09.937514 | 2020-01-29T10:13:02 | 2020-01-29T10:13:02 | 236,554,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,363 | py | import pygame
import time
import random
import copy
#Declaring Variables
col = 20
row = 40
blockW = 15
width = col * blockW
height = row * blockW
gameOver = False
matrices = []
#Variable for clock
startTime = time.time()
clockTime = 0.25
nTime = 0
#Initializing pygame
pygame.init()
window = pygame.display.set_mode... | [
"mukulbarai82@gmail.com"
] | mukulbarai82@gmail.com |
77e62c1c823d2937af521648a473b6f93b4731f7 | 2834298c6a50ff7cfada61fb028b9fd3fc796e85 | /desenvolvimento/programas/magic_square.py | bc855866757b1a2961b256809c6df378cdebb02e | [] | no_license | ernestojfcosta/IPRP_LIVRO_2013_06 | 73841c45d000dee7fc898279d4b10d008c039fd0 | a7bb48745ad2fbfeb5bd4bc334cb7203d8f204a4 | refs/heads/master | 2021-01-22T05:00:57.868387 | 2013-06-07T11:00:55 | 2013-06-07T11:00:55 | 10,548,127 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,291 | py | # =============
# magic_square_
# =============
#
# *Simple operations with magic squares.*
#
# Copyright (c) 2007 `Alec Mihailovs`_ <alec@mihailovs.com>
# All rights reserved. Licensed under the `MIT License`_ .
#
# .. _magic_square: http://mihailovs.com/Alec/Python/magic_square.html
#
# .. _`Alec Mihailovs`: htt... | [
"ernesto@dei.uc.pt"
] | ernesto@dei.uc.pt |
cc693a128105938fd7647af5527a511855e80f4c | abcfd07772ce75f34e51592189c29cf84d1a3611 | /flask/lib/python3.6/site-packages/whoosh/util/times.py | aded78f78b30e1d657ebea53c144a87c93bb6d1c | [] | no_license | yuhaihui3435/p_mc | 66d89bcccf214e53729b26a0f80ddee8797e9e3e | 3039a5c691b649fc88e941a2553b1a7e0aac2a0a | refs/heads/master | 2021-06-28T18:52:00.111385 | 2017-09-15T00:26:02 | 2017-09-15T00:26:58 | 103,524,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,948 | py | # Copyright 2010 Matt Chaput. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the... | [
"125227112@qq.com"
] | 125227112@qq.com |
73be6368949f3dee451811616a66cda102ccc108 | abf3a3712cf12d1de4b2657e7dd38063d2f83534 | /ephys_functions.py | e226c6fab775ff3e3d34363aa91a2e2de9a52221 | [] | no_license | anupgp/ephys_analysis | 2876ca4371c5ced8b7d3db4e6c068bdf284b54b1 | 888ace8a440509de6007bd8e8cacdf6f0e5ddf81 | refs/heads/master | 2021-08-11T06:33:37.531018 | 2021-08-08T00:16:06 | 2021-08-08T00:16:06 | 246,890,724 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | import pandas as pd
# contains all the accessory functions for ephys data analysis
# ---------------------------------------------------------
# joins values from multiple columns into a single column
# input: dataframe and the columns to combine
# return: a single column with joined values from the other columns
def... | [
"anupgp@gmail.com"
] | anupgp@gmail.com |
35cb7793738f6b54b9ee1b5787d61123bef9078c | e65a4dbfbfb0e54e59787ba7741efee12f7687f3 | /devel/py-plex/files/setup.py | 8dd6df636fa7769ec66d39646010d04752d975bc | [
"BSD-2-Clause"
] | permissive | freebsd/freebsd-ports | 86f2e89d43913412c4f6b2be3e255bc0945eac12 | 605a2983f245ac63f5420e023e7dce56898ad801 | refs/heads/main | 2023-08-30T21:46:28.720924 | 2023-08-30T19:33:44 | 2023-08-30T19:33:44 | 1,803,961 | 916 | 918 | NOASSERTION | 2023-09-08T04:06:26 | 2011-05-26T11:15:35 | null | UTF-8 | Python | false | false | 124 | py | from distutils.core import setup
setup(
name = 'plex',
version = "%%PORTVERSION%%",
packages = ['Plex'],
)
| [
"perky@FreeBSD.org"
] | perky@FreeBSD.org |
69e9bebc4513c00a473c70457e1a049832307ad5 | 8ebb138562884f01cae3d3ffaad9501a91e35611 | /dbCruiseKeywords/insertKeywordsAMT09.py | df5628bef408fcbba07deedb761444ed58a7b142 | [] | no_license | simonscmap/DBIngest | 7b92214034e90f8de88b06c17b48f83c769d8d35 | 9ae035cbf7453df375f0af5e920df3880a419107 | refs/heads/master | 2021-07-16T07:12:31.749027 | 2020-08-13T16:28:24 | 2020-08-13T16:28:24 | 200,295,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,128 | py | import sys
import pycmap
sys.path.append('../')
import insertFunctions as iF
import config_vault as cfgv
import pandas as pd
sys.path.append('../dbCatalog/')
import catalogFunctions as cF
"""-----------------------------"""
""" AMT09 CRUISE KEYWORDS"""
"""-----------------------------"""
cruise_name = 'AMT09'
server... | [
"norlandrhagen@gmail.com"
] | norlandrhagen@gmail.com |
e03ff8873d0460764ab6c955459e2d3a0795df63 | 7c654433dca32f65dba5986f25e7f34d28a7535e | /virt3/lib/python2.7/warnings.py | 14229a2e4f26e2c5e25308d9952ea1fba0ac149f | [] | no_license | albertan3/virtualenv_test | 3bfab23d3465b530728421a6bd7aa688be905a29 | 72603b1f070ee9b0faeb7adaa26a39e1793234f4 | refs/heads/master | 2020-06-10T07:40:00.269911 | 2017-04-27T23:12:54 | 2017-04-27T23:12:54 | 75,987,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | /Users/alban/anaconda/lib/python2.7/warnings.py | [
"alban@visa.com"
] | alban@visa.com |
6e241b8e71c9f1a3e79f351f9de5ef956299d76c | c6081127387caef35500075f57b01b4ee30f348e | /data/recall.py | 3848f187eaedf61b2bd585004d5c9e23b0478b9c | [] | no_license | yuyanlebond/pytorch_solov2 | 561048bfd56828f6d0d52bc9100f1735b9235f1f | c171850244cc767290e0fd585ee03c67271ab10a | refs/heads/master | 2023-06-03T11:19:49.069454 | 2021-06-15T15:06:53 | 2021-06-15T15:06:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,073 | py | import numpy as np
from terminaltables import AsciiTable
def bbox_overlaps(bboxes1, bboxes2, mode='iou'):
"""Calculate the ious between each bbox of bboxes1 and bboxes2.
Args:
bboxes1(ndarray): shape (n, 4)
bboxes2(ndarray): shape (k, 4)
mode(str): iou (intersection over union) or iof ... | [
"liujiangkuan.test@gmail.com"
] | liujiangkuan.test@gmail.com |
4fb8058533804c25fc812504e99f7c776b0d6bf3 | 590757ded91424c1216ec5027870b9e06d17e436 | /tests/test_figure.py | 13305a8b41a8cc9de62be13b954e57c5e524566a | [] | no_license | mkile/Figures_Class | 63c8b078c9fd5c9d8b979898a6d4fd2edab03856 | ec49ecd3525a2b2cbe5162417010a37871c619c9 | refs/heads/main | 2023-04-09T19:21:29.706139 | 2021-04-17T18:38:40 | 2021-04-17T18:38:40 | 355,606,945 | 0 | 0 | null | 2021-04-17T18:38:41 | 2021-04-07T16:07:52 | Python | UTF-8 | Python | false | false | 145 | py | import pytest
from source.classes import Figure
def test_baseclass_create():
with pytest.raises(Exception):
Figure('name', [1], 1)
| [
"mkiles81@gmail.com"
] | mkiles81@gmail.com |
da2897495af6a0514b4c1cc5803cd5a24e8c543c | 548b89cb1f7d9c953dedc61674525a0d1eadaf86 | /fdp/services.py | e79e13901564d42437bd4c42fdcd55299ab9ca95 | [
"BSD-2-Clause"
] | permissive | ScottishCovidResponse/fdp | c5a0b8ee8df9874f40fc6c20e376cc2fa1d410a8 | 5d67649048fffd19b9bf46e85545490001eb0b05 | refs/heads/main | 2023-04-25T00:24:01.565036 | 2021-05-13T15:57:57 | 2021-05-13T15:57:57 | 359,503,677 | 0 | 0 | BSD-2-Clause | 2021-05-21T13:59:29 | 2021-04-19T15:13:49 | Python | UTF-8 | Python | false | false | 865 | py | from pathlib import Path
import requests
from data_pipeline_api.registry.download import download_from_config_file
def registry_installed():
user_home = Path.home()
scrc_dir = user_home.joinpath(".scrc")
return scrc_dir.exists()
def registry_running():
try:
r = requests.get("http://localho... | [
"nathan.cummings@ukaea.uk"
] | nathan.cummings@ukaea.uk |
cc844affbd029334ae04e31e99055fa06ee0a668 | d7c9392aab11ffa4e94846198e4793015e22d48c | /ApproximatePatternCount.py | a45b6fc1e967aee52a73aecc9596717b4819e709 | [] | no_license | vk208/BMP | 46fb787339e53eb851b87baffa0b2f626ec5eff0 | 83cd09fb8d7ef463eb5b6cc6eefb564dc86a1bf8 | refs/heads/master | 2021-01-17T12:26:04.476703 | 2016-03-04T14:36:11 | 2016-03-04T14:36:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | __author__ = 'Mohammad Yousuf Ali, aliyyousuf@gmail.com, fb.com/aliyyousuf'
# Our goal now is to modify our previous algorithm for the Frequent Words Problem in order to find
# DnaA boxes by identifying frequent k-mers, possibly with mismatches. Given input strings Text and
# Pattern as well as an integer d, we exte... | [
"aliyyousuf@gmail.com"
] | aliyyousuf@gmail.com |
0a6acd4a14f06588baa4f0bdf0b0b56f25938617 | f2993f5bebdcd5ac38b38c283e1027f134250963 | /DataValue.py | 296c489578982688bbadec64d9e086007111f040 | [] | no_license | ButtrmlkPncakes/MIS-5400-Final-Project | 883f010da41c9e904c35a40259148c66c4e8e1bf | a41764f6c475e01474f7f41f359b37d791740d3a | refs/heads/master | 2020-04-10T19:31:51.969438 | 2018-12-14T04:58:38 | 2018-12-14T04:58:38 | 161,238,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,859 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 3 17:07:43 2018
@author: Test1
"""
import pandas as pd
import pyodbc
from sqlalchemy import create_engine
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
import GetCredentials
User,Pass = GetCredentials.GetCreds('its me, dummy','... | [
"noreply@github.com"
] | ButtrmlkPncakes.noreply@github.com |
f73c9d617c1cf558ba76fd96c0a0973f40d43195 | ddca95269478743a9697c1c3224b8a983c5eb3b9 | /LintCode/50. 数组剔除元素后的乘积.py | 7deeffc910413d6da36c74bf61b47e2a69b479b6 | [] | no_license | hijkzzz/leetcode | d265bd4b6548b84cc91ca65d2e50f500eea33100 | 135003500fa25f47a45ded87f360ab40ed9cc35f | refs/heads/master | 2021-10-23T20:55:21.334513 | 2018-08-25T08:58:48 | 2018-08-25T08:58:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | class Solution:
"""
@param: nums: Given an integers array A
@return: A long long array B and B[i]= A[0] * ... * A[i-1] * A[i+1] * ... * A[n-1]
"""
def productExcludeItself(self, nums):
if len(nums) < 2:
return [1]
# write your code here
left = nums[:]
... | [
"janhu9527@gmail.com"
] | janhu9527@gmail.com |
fdb85ea027d97f7491476a2ab44e654498f4b677 | da64a4bc36fd794cebce4fd527440b5e1a823a24 | /paging-tlb/homework/tlb_script.py | 0cb52f363747f5172314a0f144356cb1772afec9 | [] | no_license | prolific-dev/Betriebssysteme | 8f3f08feae1ad33231588fd2c84e2eb60d428b40 | a642fb448744653807349105eb3627a43512e86f | refs/heads/main | 2023-08-16T15:53:43.695940 | 2021-09-26T01:15:18 | 2021-09-26T01:15:18 | 349,684,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | from numpy import *
import matplotlib.pyplot as plt
import subprocess
if __name__ == '__main__':
print("Anzahl an Veruchen: ")
nr_trials = int(input())
max_pages = 4096
print("Starte mit {} Versuchen... (Bitte warten)".format(nr_trials))
subprocess.run(["gcc", "-O0", "-o", "tlb.out", "tlb.c", "-Wal... | [
"de391ago@htwg-konstanz.de"
] | de391ago@htwg-konstanz.de |
e9ff71e25c72bde3be187a7d428d1bc7887ae72e | c3e0f2d7e9a96c30a8ebeeebbad13a45b1ad0410 | /deepcheckpe.py | 78f7b3dcbc2206e59f50778d858b133e4eae375d | [
"MIT"
] | permissive | rahulremanan/deeplearning_AV | 7ea6c3b59c207991434456eadd78662c59394c5a | b4f2a65e445ad1d0f9a6357bd63cea7f2125f210 | refs/heads/master | 2021-01-20T10:18:10.888102 | 2017-05-05T05:59:45 | 2017-05-05T05:59:45 | 90,341,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,764 | py | #! /usr/bin/python2
import pefile
import os
import array
import math
import pickle
from sklearn.externals import joblib
import sys
import argparse
def get_entropy(data):
if len(data) == 0:
return 0.0
occurences = array.array('L', [0]*256)
for x in data:
occurences[x if isinstance(x, int)... | [
"noreply@github.com"
] | rahulremanan.noreply@github.com |
70a3cc57b63eaa1a001d1e47f6d3bb9473736a5c | f1ab57ae527f434dfb4a8db8f8242d67514d104c | /setup.py | 79119d9913116d04a8460dc8b142f6db6d4fbd5e | [] | no_license | abookStore/bookStore | f6de9c00297fe1290f3630a392ec5e2c0786d0b5 | 2c6b478c4c0aad217617b4260b27cf91078d5d08 | refs/heads/master | 2021-05-12T07:31:59.100221 | 2018-05-30T16:20:26 | 2018-05-30T16:20:26 | 117,246,596 | 0 | 3 | null | 2018-01-30T16:27:18 | 2018-01-12T13:52:37 | JavaScript | UTF-8 | Python | false | false | 273 | py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='bookStore',
packages=find_packages(),
install_requires=[
'Flask',
'Flask-SQLAlchemy'
],
setup_requires=[],
tests_require=[
'pytest'
]
)
| [
"zhou.xun@qianka.com"
] | zhou.xun@qianka.com |
5f6f23a6e9cdb54c79639f0bfb90bd8b840c903a | 169d83d58bee9581a59bebfdeaa5c479f681222e | /cart_pole.py | 8fe219f55458ffbb984caa81a7df0c5aebcb8c14 | [] | no_license | Ronnypetson/DQN | c62a9cc829d863e864591de2dab422e45f886dbc | 53662d6e44fe4524285293765d869c7667c6537f | refs/heads/master | 2018-10-24T15:27:43.313302 | 2018-08-21T03:11:48 | 2018-08-21T03:11:48 | 120,924,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,121 | py | import tensorflow as tf
import gym
import numpy as np
import os
import random
from collections import deque
env_name = 'CartPole-v0'
state_dim = 4
ob_frames = 1
num_keys = 2
learning_rate = 0.01
batch_size = 64
replay_len = 100000
oldest_mem = 0
default_action = 1
empty_obs = np.zeros((ob_frames,state_dim))
mem = repl... | [
"rsronnypetson4@gmail.com"
] | rsronnypetson4@gmail.com |
acc50216c2e161d88c476973b950167d90d80243 | 7123affac23f7e35dcbf0e6e2d8bb31000b55cc5 | /hooks/reviewboard/check-approvers | 661c2887af76e501f8aaac50219c0dc50d4fb1e7 | [
"BSD-2-Clause"
] | permissive | mdxp/git-hooks | cea923d47dd74cae6a77a88054020f99eb288531 | df4a0a5bec1b8449175e76a153c99b8852e77b42 | refs/heads/master | 2021-01-15T20:52:39.919377 | 2012-02-17T00:42:17 | 2012-02-17T00:42:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,175 | #!/usr/bin/python2.6
#
# Copyright (c) 2012 by Delphix.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# - Redistributions of source code must retain the above copyright notice,
# this list of ... | [
"zubairkhan1@gmail.com"
] | zubairkhan1@gmail.com | |
78153155db6499ffdfa49e388d2356abe41433ff | 131df00f8a34cec9326fae86a452d85a93784e5f | /matcherapp/apps.py | bd11e5f47ac208434f3d99c0bf256d65bb3a6848 | [] | no_license | ZetaZeta/dictmatcher | a2c8cc1823d3a0fe071eac1cf36123585d966716 | df8bac38316e472eb9b61deae9bef6c90b36aaee | refs/heads/master | 2020-04-26T22:47:32.895064 | 2019-03-05T06:22:37 | 2019-03-05T06:22:37 | 173,883,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class MatcherAppConfig(AppConfig):
name = 'matcherapp'
| [
"MatthewSCarson@gmail.com"
] | MatthewSCarson@gmail.com |
c013deed8361d585c85ccfe355c7c1dc549354c4 | e29f9878cbb84f135e95645c93e5a9fbf0ec5f37 | /node_modules/fsevents/build/config.gypi | 349fb041904c4311865b97e3299489870d574cfd | [
"MIT"
] | permissive | ishdaddy7/trip-planner-static | 9d0f1f3b6aa434a9d629e632a98dc3e6505e4550 | 3bcafae4b5ad818890eb371303e36e8522ee36e7 | refs/heads/master | 2021-01-19T05:31:29.252952 | 2016-06-27T20:47:37 | 2016-06-27T20:47:37 | 62,087,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,431 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"host_arch": "x64",
"icu_data_file": "icudt56l.dat",
"icu_da... | [
"seanhan1@gmail.com"
] | seanhan1@gmail.com |
6dbbd47ba3700bf7e791869bf7e6824c6fdb295c | 03d7dccd9417c1a901ab7e8974216a0c7dce6d5e | /pylti1p3/tool_config/dict.py | fc4b01e39c13d8e015815917afc695dd94d5c7ab | [
"MIT"
] | permissive | ziegenberg/pylti1.3 | 7dbcf83c376b8a50b267f342ef5aa771f6cd7795 | acb10c9b932683593ab6172c648105239f81308c | refs/heads/master | 2022-10-24T22:14:56.458373 | 2020-05-04T17:25:24 | 2020-05-04T17:25:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,633 | py | from .abstract import ToolConfAbstract
from ..registration import Registration
from ..deployment import Deployment
class ToolConfDict(ToolConfAbstract):
_config = None
_private_key = None
_public_key = None
def __init__(self, json_data):
"""
json_data is a dict where each key is issue... | [
"dmitry.viskov@webenterprise.ru"
] | dmitry.viskov@webenterprise.ru |
f704899af782cf07017450df852c1d1f05a0a89d | 3717822e2dc62100125906b7610c09aac0ef669e | /hw_3/lesson/server.py | 45e64de2b469405994a5c31828fc681346686da4 | [] | no_license | Nlegion/ClSe | d3fd5879becf0b85aa2b5da04077801afa2e6423 | 47a25518a4431693ba4768669f41fd4de95c1cfb | refs/heads/main | 2023-06-16T15:11:23.073744 | 2021-07-11T08:34:54 | 2021-07-11T08:34:54 | 377,102,136 | 0 | 0 | null | 2021-07-11T10:20:17 | 2021-06-15T09:08:18 | Python | UTF-8 | Python | false | false | 549 | py | from socket import *
import time
s = socket(AF_INET, SOCK_STREAM)
s.bind(('', 8888))
s.listen(5)
while True:
client, adr = s.accept()
# print(f'Подключение по адресу{adr}')
# time_str = time.ctime(time.time())
# client.send(time_str.encode('utf-8'))
data = client.recv(1024)
decoded_data = data... | [
"nparanoid@gmail.com"
] | nparanoid@gmail.com |
321fb15794d5e2e00771737a5237693b81c6223c | 9d5522c21b60fa64111b54d1c31a442d755ddd2a | /Problem Solving/Hackerrank/SockMerchant.py | a5c1394641a679af17aac0c2f6e4aea8f17ec86b | [] | no_license | faiyazkhanwif/ProblemSolving-Python | 8e156ac95e5a78f3ab7af74710934570964856ee | 56b897c29cdc1ffcd3f6638d608f63aff1d7e46e | refs/heads/master | 2022-12-29T06:07:18.429488 | 2020-10-14T04:31:16 | 2020-10-14T04:31:16 | 303,902,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the sockMerchant function below.
def sockMerchant(n, ar):
pairs = 0
checklist=[]
for i in range(len(ar)):
if ar[i] in checklist:
continue
else:
elcount = ar.count(ar[i])
i... | [
"faiyazkhanwif@gmail.com"
] | faiyazkhanwif@gmail.com |
8be08dd6874505f2e4e7c8249bc1f549985c0504 | e19cbb9869a79fa1af1063a9291cd5624a5edd6f | /Stack:Queue/프린터.py | 67532af370e4dbce2618ecf2c5c7846e503ed09f | [] | no_license | YNNJN/Programmers | c62194163a085231cd22c946c320a2937d69e478 | 434a62a91a1dc5e16b32f4e64c77fd15776d51e1 | refs/heads/master | 2023-02-08T11:14:15.399122 | 2021-01-03T13:27:17 | 2021-01-03T13:27:17 | 256,219,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | #M1 인쇄 목록과 인덱스를 함께 기억 -> enumerate()
#M2 어차피 인쇄되는 건 우선순위가 가장 큰 값이니, 해당 값을 기준으로 조건을 분기
def solution(priorities, location):
ans = 0
m = max(priorities)
while True:
v = priorities.pop(0)
if m == v:
ans += 1
if location == 0:
break
else:
... | [
"dbswls1014@naver.com"
] | dbswls1014@naver.com |
c32489949c21f1d787027432e415ed51734417f1 | aef92848de596e2477a97e27437438e3ccdca9ae | /languagegames/wsgi.py | 05d3b555d9301e4200d73208a1b34d0f14933fcd | [] | no_license | DeasDeas/lang_games_dev | 5007a5a81751b052d6df0aba9fcc09b6349405fe | bc2e5857f0da24e55c7d1c4fe37e8ee5ea27d14a | refs/heads/master | 2023-04-19T06:12:23.030456 | 2021-05-02T11:28:52 | 2021-05-02T11:28:52 | 348,166,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for languagegames 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"mikenic30@gmail.com"
] | mikenic30@gmail.com |
4d7795fb58f8e3398f796892e22306053d589308 | 6d681b03f6345141da76296fed568dd404ab3124 | /mylib/performance.py | e7e8112373e35ab9ff6eabee92b4f9cc81c40f63 | [] | no_license | germank/mylib | 44596da38edecd1a174a1dfe86791c2095a169f8 | 5317035df039d90474916d118bfc569a67b2ce69 | refs/heads/master | 2016-09-08T02:41:22.676133 | 2015-01-21T16:34:33 | 2015-01-21T16:34:33 | 29,599,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | import math
#y correct class
#cls predicted class
def get_performance_measure(y, cls, perform_measure):
tp, tn, fp, fn = 0.0, 0.0, 0.0, 0.0
for label, pred in zip(y,cls):
assert label == 1 or label == 0
assert pred == 1 or pred == 0
if label and pred:
tp += 1
elif lab... | [
"german.kruszewski@unitn.it"
] | german.kruszewski@unitn.it |
2c07153d4d45ae259056bf66322d03559d0835bf | 38bf7319caa9033f5a7a432d2fe3914692e3e17d | /tools/viz/check_group.py | 997805dcc3a21576131ab019fa82bf4be5f466f9 | [
"MIT"
] | permissive | XinGuoZJU/gc-horizon-detector | 6e9fe7893637b9267cb0a9f32348736fa722fd07 | c41f5606aca756281fb518987652403aec7d6ed3 | refs/heads/master | 2020-07-02T21:02:19.133389 | 2019-11-16T03:36:30 | 2019-11-16T03:36:30 | 201,664,806 | 0 | 0 | null | 2019-08-10T17:54:58 | 2019-08-10T17:54:58 | null | UTF-8 | Python | false | false | 2,512 | py | import os
import json
from skimage import io
import numpy as np
import matplotlib.pyplot as plt
def imshow(im):
plt.close()
sizes = im.shape
height = float(sizes[0])
width = float(sizes[1])
fig = plt.figure()
fig.set_size_inches(width / height, 1, forward=False)
ax = plt.Axes(fig, [0.0, 0... | [
"xg5@head.ionic.cs.princeton.edu"
] | xg5@head.ionic.cs.princeton.edu |
3f1212e0ae34cf0e0cbc7f81b7c67f782074169c | 8597d43d7990e1b93cda47646e7abffe565f9bbd | /constants.py | 60d81a9cac2ea8f4b15ac897e00fcd4cb0a69c7f | [
"Apache-2.0"
] | permissive | tkim949/REST_API_GCP | a34c55b3a43bc0ecd3f01f3b36fe2247c924df53 | a103af6d7a50484a03e12dfe8d4949ead4fce714 | refs/heads/master | 2023-05-11T02:52:29.728280 | 2020-06-16T02:27:28 | 2020-06-16T02:27:28 | 272,573,382 | 0 | 0 | Apache-2.0 | 2023-05-01T21:41:49 | 2020-06-16T00:36:24 | Python | UTF-8 | Python | false | false | 49 | py | shelf = "shelf"
product = "product"
user = "user" | [
"noreply@github.com"
] | tkim949.noreply@github.com |
00fb0b2202d07d72ab8075b038f6426190d4d82e | de01cb554c2292b0fbb79b4d5413a2f6414ea472 | /algorithms/Hard/1449.form-largest-integer-with-digits-that-add-up-to-target.py | fde6df1309dddc7154ccfbf41d760c6ba9bd1dbe | [] | no_license | h4hany/yeet-the-leet | 98292017eadd3dde98a079aafcd7648aa98701b4 | 563d779467ef5a7cc85cbe954eeaf3c1f5463313 | refs/heads/master | 2022-12-10T08:35:39.830260 | 2020-09-02T23:12:15 | 2020-09-02T23:12:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,868 | py | #
# @lc app=leetcode id=1449 lang=python3
#
# [1449] Form Largest Integer With Digits That Add up to Target
#
# https://leetcode.com/problems/form-largest-integer-with-digits-that-add-up-to-target/description/
#
# algorithms
# Hard (42.08%)
# Total Accepted: 6.5K
# Total Submissions: 15.5K
# Testcase Example: '[4,3... | [
"kevin.wkmiao@gmail.com"
] | kevin.wkmiao@gmail.com |
42d77cdb15f7031c1d699412730a8035bd7e471a | 367d2670c75d385d122bca60b9f550ca5b3888c1 | /gem5/env/lib/python3.6/site-packages/kombu/asynchronous/http/__init__.py | e776977dd40d3fa99f91d5b31d93c25a7d36b580 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | Anish-Saxena/aqua_rowhammer_mitigation | 4f060037d50fb17707338a6edcaa0ac33c39d559 | 3fef5b6aa80c006a4bd6ed4bedd726016142a81c | refs/heads/main | 2023-04-13T05:35:20.872581 | 2023-01-05T21:10:39 | 2023-01-05T21:10:39 | 519,395,072 | 4 | 3 | Unlicense | 2023-01-05T21:10:40 | 2022-07-30T02:03:02 | C++ | UTF-8 | Python | false | false | 591 | py | from kombu.asynchronous import get_event_loop
from .base import Request, Headers, Response
__all__ = ('Client', 'Headers', 'Response', 'Request')
def Client(hub=None, **kwargs):
"""Create new HTTP client."""
from .curl import CurlClient
return CurlClient(hub, **kwargs)
def get_client(hub=None, **kwarg... | [
"asaxena317@krishna-srv4.ece.gatech.edu"
] | asaxena317@krishna-srv4.ece.gatech.edu |
a8a2f2d6780286dc62bb90f963f992dd1007ffe1 | ea19fbe94b9a3e54a02f52408409f98073923e06 | /manage.py | 153d0d1866b1be07e0cabe53a0e15a2d40902b42 | [] | no_license | i-sharmashubham/slambook | 415fef1dd3a4f65c7ff4db43c475229a0132a50e | 2a6f356e39d991ae0066857029b6f28926a0abcb | refs/heads/master | 2020-08-08T01:28:22.121288 | 2019-10-08T14:03:51 | 2019-10-08T14:03:51 | 213,657,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'slambook.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"noreply@github.com"
] | i-sharmashubham.noreply@github.com |
6c657d68c1dd56e03c8efa7e27ee1ef0eb9d352a | 574c7a1a8a905b2e5751d4aae48c8f24f354a328 | /mfdw_root/quotes/urls.py | 349cc97da9feed9f564a5e9d059c8c59c42f7fed | [
"Apache-2.0"
] | permissive | mohammadasim/mfdw_project | 45584674bed3988652f3891fd6f775edf9e5f779 | 5e610ebc34b98695083c6e65ff080abc769cb312 | refs/heads/master | 2021-09-28T14:21:18.841893 | 2020-03-01T06:36:30 | 2020-03-01T06:36:30 | 240,715,976 | 2 | 0 | Apache-2.0 | 2021-09-22T18:37:28 | 2020-02-15T13:21:05 | Python | UTF-8 | Python | false | false | 291 | py | from django.urls import path
from . import views
from .views import QuoteList, QuoteView
urlpatterns = [
path('', views.quote_req, name='quote-request'),
path('show/<int:pk>', QuoteView.as_view(), name='quote-details'),
path('show', QuoteList.as_view(), name='show-quotes'),
]
| [
"asimayub81@gmail.com"
] | asimayub81@gmail.com |
621e29b29dc1192e480ec4fab3f0a6e5b0c78b37 | 4e214e3bd8cc413753603701a259416ced37aa25 | /debris/20170630.py | 6e0e3bfcde38ba991fc5788fad2d9140fb82f03b | [] | no_license | repose1019/MST | 149ebaa85cb985fbf9c394f4936b78d42f5f4b73 | 98b0b573939f84dc8c2ec1bae927b92e41a89ddc | refs/heads/master | 2020-12-02T16:16:46.253342 | 2017-08-11T10:43:27 | 2017-08-11T10:43:27 | 96,528,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | # -*-coding:utf-8-*-
# @author: 'Repose'
# @date: 2017/6/30
import numpy as np
import pandas as pd
data = np.random.randn(4,4)
print(data)
print(len(data)) | [
"846776066@qq.com"
] | 846776066@qq.com |
ae4a090e21da024645d11c315cc632f99f3bb14c | c5046ff113dce225974a86601b7195d2ef7950a1 | /FourthGen/Bprime_B2G/step0/BprimeToBZinc/BprimeToBZinc_M_825_TuneZ2star_8TeV_madgraph_cff_py_GEN.py | fce05c53d8920628074e34a19adb5514d5b8cf22 | [] | no_license | dmajumder/cms-UserCode | b8c340f889a119f33be0b169c61308536a0fae78 | f519a221dc0d4e8634f7eab7a1a8c802a2708210 | refs/heads/master | 2020-03-26T10:16:49.305776 | 2013-08-15T03:21:17 | 2013-08-15T03:21:17 | 13,921,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,123 | py | # Auto generated configuration file
# using:
# Revision: 1.372.2.3
# Source: /local/reps/CMSSW.admin/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v
# with command line options: Configuration/GenProduction/python/EightTeV/Bprime_B2G/BprimeToBZinc_M_825_TuneZ2star_8TeV_madgraph_cff.py --filein lhe:6... | [
""
] | |
1c016fb55113529b8bfed2ec15edfaa96e64c745 | 7918d00a8235c1252fdd75e2db6de4d323740318 | /env/bin/easy_install-2.7 | 7a324fbf1f470f876325975cfe88a987d9231b97 | [] | no_license | tom-sb/Mayorista | 92e1a68402a35785f355fe11ad935071cc7264d3 | 635f26aae073da42ea58d3f056959a35e08a4bd3 | refs/heads/master | 2020-11-24T16:46:46.271448 | 2019-12-19T11:14:27 | 2019-12-19T11:14:27 | 228,254,669 | 0 | 2 | null | 2019-12-19T11:14:29 | 2019-12-15T21:22:34 | CSS | UTF-8 | Python | false | false | 285 | 7 | #!/home/tomsb/Escritorio/ing_soft2/IS2CS_PY/Mayorista/env/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"fvillanuevanut@gmail.com"
] | fvillanuevanut@gmail.com |
95a65891632e1c526dfe49cd5b082b05a23fb3a0 | d80173b86be50c7b8c8dec265bfe4e9b66575f7c | /objects.py | 80305cbd3829557b6a79312bc8f6e6372c6c0d8e | [] | no_license | Pk13055/bomberman | 11450bb673ab1ffbb827d9dddeac3583742ce7e5 | 5e4d4413f9572e520de5604174123393f4463e86 | refs/heads/master | 2021-01-19T06:02:39.774474 | 2017-10-20T14:08:16 | 2017-10-20T14:08:16 | 100,589,676 | 6 | 4 | null | 2017-10-20T14:08:17 | 2017-08-17T10:03:18 | Python | UTF-8 | Python | false | false | 3,723 | py | '''
contains the structure of each object
'''
import config
from config import x_fac, y_fac
import numpy as np
class Object:
'''# bombs, walls, bricks all will be of this type'''
def __init__(self, x, y, ch=config._empty):
'''# the x and y coords wrt top left of board'''
self._x = x
... | [
"pkrockstar7@gmail.com"
] | pkrockstar7@gmail.com |
a1c45b2d5e7c3c0c8691e443597d313e63999089 | dcae274bf977460d90cde490df9cc9254ae0070e | /holon/settings.py | ebc0a93616142a4025a8d8181d85b005c1f77fe3 | [] | no_license | muneson/holon | 78cd68ac337944ecff7ae5dfb71c0c21b7522b46 | 9db28ed25aa8828a44492e1b190ef5eea6d43a83 | refs/heads/master | 2021-01-24T15:53:32.219254 | 2013-04-27T10:16:02 | 2013-04-27T10:16:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,747 | py | # -*- coding: utf-8 -*-
import os
gettext = lambda s: s
#Dubble dirnames due to project dir
PROJECT_PATH = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
# Django settings for holon project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Eirk Günther', 'egu@mensa.se'),
)
MANAGERS = ADMINS
DATAB... | [
"erik.gunther@gmail.com"
] | erik.gunther@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.