blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0050f422cf7384eadf2e1f2265cdb4f09f00153e | a285c9700a482a5f11fe5915c7bbed10b3dd9674 | /actions/swagger_client/models/survey.py | dc8a0d3ddef8d41a832999304d0d4d858eff9a60 | [] | no_license | ymzust/automation-test | d071f4b83cf58b934ac5ab9d2d46ad7d9209d099 | 55a375cb850dc39c8602f001ffad6a241981727d | refs/heads/master | 2022-12-10T12:19:22.813381 | 2019-11-18T15:46:25 | 2019-11-18T15:46:25 | 221,499,577 | 0 | 0 | null | 2022-12-08T06:52:40 | 2019-11-13T16:07:20 | Python | UTF-8 | Python | false | false | 6,153 | py | # coding: utf-8
"""
CyberProof Platform Backend API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.3.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # no... | [
"Yakov.MandezZaig@ust-global.com"
] | Yakov.MandezZaig@ust-global.com |
cee3bb2b79ae4548832571aa3bda9e4b365dddd3 | 3d747c9a690cdf69def29d6fb178f0ddfcf13ece | /Deployment/app.py | a70dcbfe2dc384f3225ede4a23702e5b755c3759 | [
"Apache-2.0"
] | permissive | direct2subhajit/Machine-Learning-for-Statistical-Arbitrage---Using-News-Media-to-Predict-Currency-Exchange-Rates | 0c472b1fa4597d093262501fc0b96450d83ed4f5 | cdd7acdce087b84fc2e0f202bbb3cee4e9190c1b | refs/heads/main | 2023-02-16T20:39:30.373638 | 2020-12-22T12:33:44 | 2020-12-22T12:33:44 | 329,324,559 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | from flask import Flask, render_template,request, redirect, url_for
from forex_python.converter import CurrencyRates
from forex_python.converter import CurrencyCodes
import datetime
from datetime import datetime
import pandas as pd
from decimal import *
app=Flask(__name__)
@app.route('/')
def FER():
return render... | [
"43459908+UMMEATHIYA@users.noreply.github.com"
] | 43459908+UMMEATHIYA@users.noreply.github.com |
446e2c488db3797b7ff234516253634fc7598bae | 2b117e0a6b615959097cf31789e1e88199e5c35d | /one/Scripts/pip3-script.py | 2a06eff8926270af31baf44a45f65f0163d05235 | [] | no_license | kris1402/GUI_Aplication | 0be910ce9341867fd2a01cd4b3c617af65bea279 | 244d99f0c930507805c41680aff6a89b329cc8ab | refs/heads/master | 2023-05-01T03:26:26.595461 | 2021-05-25T22:10:19 | 2021-05-25T22:10:19 | 265,364,361 | 1 | 0 | null | 2020-11-21T11:36:56 | 2020-05-19T20:54:43 | Python | UTF-8 | Python | false | false | 423 | py | #!X:\41112105\Magisterka\Praca_MAgisterska\SQL\Apka\one\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',... | [
"kosciszkrzy1@gmail.com"
] | kosciszkrzy1@gmail.com |
89f4146561c56d0504a3b5de2c40702303da6711 | a497893edd0ec40a25a20eb69aae157360faabd7 | /venv/Scripts/easy_install-script.py | e7596fe85c68bb6708e5afec9a5188f542e9cfb3 | [] | no_license | DineshNanda13/List-is-in-inc-or-Dec-order- | 9d6834ef33f2ba133a18a498d7805c1f6c5939fb | d889a25edd9b8672edc0e3ee0b76da17810d9f4a | refs/heads/master | 2020-04-20T18:12:20.208757 | 2019-02-04T01:01:43 | 2019-02-04T01:01:43 | 169,012,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | #!C:\Users\danny\PycharmProjects\is_sorted\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|... | [
"dannynanda76@gmail.com"
] | dannynanda76@gmail.com |
902670d3e6fcde0c581c9d702d2083f1f82d3b26 | e6e2433a6b26b11bb741f65f906bdfa081a2dd8f | /Algorithms/Numbers/primes.py | ca81cf6233dfa23e02e7362c0f9eb86cf1e6d725 | [] | no_license | aavinashjha/IamLearning | 47a6946dfe8b04cd2694ce11337b09e7b09d0bb9 | fa9257b58e02b57208fc0af59c22fe7d416161a0 | refs/heads/master | 2021-11-11T18:37:49.311300 | 2021-10-28T18:34:52 | 2021-10-28T18:34:52 | 82,289,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import math
def primes(n):
p = [True] * (n+1) # Initially all are primes
for m in range(2, int(math.ceil(math.sqrt(n)))):
if not p[i]: continue
for i in range(m, n+1, m):
p[i] = False
p[0] = False
p[1] = False
print(p)
return [i for i in range(n) if p[i]]
print(prim... | [
"avinash.jha2493@gmail.com"
] | avinash.jha2493@gmail.com |
ec39f36408bc828cb3003430794d6d972ffe2c43 | d5212bc7d131dafab16ec3fb0885491d24cad878 | /Factorial Finder.py | 6e25653fe0e395b131c5c1c6df9878dce8bb5bef | [] | no_license | shaynelyj/Python | 5e839e79eaa60d4e1b8f1766b3cbe187b04de69a | 3c551768d0354e2b15c9a566de8848cee27a2ac9 | refs/heads/master | 2020-06-18T06:40:54.065714 | 2019-07-10T12:54:28 | 2019-07-10T12:54:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | #Find the factorial of a number. Eg. 5! = 54321 = 120
def factorial_input():
while True:
try:
q = int(input("Factorial of: "))
except:
print ("Please input an integer!")
else:
return q
def factorial_finder(q):
w = 1
for e in range(1,q+1):
... | [
"noreply@github.com"
] | noreply@github.com |
4b9dafbf0bd7aeaaeae2610fd5341de8334e7002 | 64d6a2fe3e3a55fd9553a250455c39db7afb5724 | /app/definitions/repository/base/sql_base_repository.py | 89e3a3b8bcbae3a88a8c262dde254876aca605c1 | [] | no_license | rachitkumar4564/nova_be_distributor | dace5e6e6db5743c5c26cb9112523763fdb3b8c2 | 1b3c402ed22b8c0fc6e29e4159ac39be4a97ac12 | refs/heads/master | 2023-06-24T06:54:59.048696 | 2021-07-24T12:17:34 | 2021-07-24T12:17:34 | 388,857,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,976 | py | from sqlalchemy.exc import IntegrityError, DBAPIError
from app import db
from app.definitions.exceptions.HTTPException import HTTPException
from app.definitions.exceptions.app_exceptions import AppException
from app.definitions.repository.base.crud_repository_interface import (
CRUDRepositoryInterface,
)
class S... | [
"rachit.kumar@neosoftmail.com"
] | rachit.kumar@neosoftmail.com |
cb956e36592b649175435d5930cb2876868caed5 | 6321e98eafae70f2c6ac8b7cc4158213cfd00959 | /0x11-python-network_1/4-hbtn_status.py | d379486883a8d1023d3c65b9e6d8d487fb693a0d | [] | no_license | nsforero10/holbertonschool-higher_level_programming | 61e4f578ab9bc1c4de5cc15b556a39b203e1cb21 | a69c2cce4701c0415effe8e9d8f13bccdf782471 | refs/heads/master | 2022-12-17T06:22:47.306536 | 2020-09-25T03:01:43 | 2020-09-25T03:01:43 | 259,382,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | #!/usr/bin/python3
'''
fetches https://intranet.hbtn.io/status
'''
if __name__ == "__main__":
import requests
res = requests.get('https://intranet.hbtn.io/status')
text = res.text
print("Body response:")
print("\t- type: {}".format(type(text)))
print("\t- content: {}".format(text))
| [
"ns.forero10@gmail.com"
] | ns.forero10@gmail.com |
cde419e9379a9e254d38e86422ba0e27329822af | 0e0f3b2dfd4a256217814c9fe3cc6d503abd14f9 | /reader/sbu/SBUFeatures.py | 158baa7249779c22bdbdc113125161c6e33f158b | [] | no_license | tmanh/srnn | c4d2943354b54cb8b95b62866e114244f3d67dc3 | 58f24dab895bc86e1604d4038b7822a1cdd17b85 | refs/heads/master | 2021-09-06T16:15:59.793584 | 2018-02-08T13:28:38 | 2018-02-08T13:28:38 | 106,096,001 | 2 | 0 | null | 2017-10-24T14:40:00 | 2017-10-07T12:25:20 | null | UTF-8 | Python | false | false | 11,427 | py | import numpy as np
import math
import itertools
class SBUFeatures(object):
def __init__(self):
pass
# ske1: frame t ~ ske2: frame t+1
@staticmethod
def joint_displacement(ske1, ske2):
return ske2 - ske1
# ske1: person 1 ~ ske2: person 2 ==> joint distance
# ske1: person 1 fra... | [
"tmanh93@outlook.com"
] | tmanh93@outlook.com |
51f2b3c70763ec2c0eae169ef31a20b8bdcc1dc2 | 081b33ead95b323e77bdce3717af0a5790e34a1e | /backend/apps/league/migrations/0001_initial.py | 791e1d76b4e75f218d5bd9686461819c8acd89b0 | [] | no_license | alexmon1989/afliga | 81ea3b32b18040bb8baa4e8af14a73003fb9a89f | 661da30c0a5aa6b9975eb7dea9c9a031529d2dbb | refs/heads/master | 2023-02-23T11:12:45.608118 | 2023-02-11T12:12:41 | 2023-02-11T12:12:41 | 105,630,198 | 0 | 0 | null | 2023-02-15T20:50:12 | 2017-10-03T08:36:15 | Python | UTF-8 | Python | false | false | 7,519 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-26 09:05
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operatio... | [
"alex.mon1989@gmail.com"
] | alex.mon1989@gmail.com |
4223b0187db79d015ca5cf23a3b44f14829c3cb5 | 6fa1898dcad12ab6933768b9668079f053d62fac | /manage.py | 9274f04cf0c88af4b332d7f17605c134ba854c28 | [
"Apache-2.0"
] | permissive | RuggeroFabbiano/Questio | 88bd949ca75372a4befe1676a808fb37b3558cc6 | d43ef88a2b96916e61f0bb1b6fd94f2cf96d8e48 | refs/heads/master | 2023-01-31T19:35:23.004887 | 2020-12-15T14:47:47 | 2020-12-15T14:47:47 | 298,911,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | 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', 'questio.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Import... | [
"ruggero.fabbiano@gmail.com"
] | ruggero.fabbiano@gmail.com |
b001cda52cbff8cef8635b8d8147922a5bd2366d | 2edfce2b15b792d946d77982cc4574b2f92da3fc | /docs/conf.py | 24945c12fd5fb955881f551c91afad357a26bd90 | [
"MIT"
] | permissive | 1011-1-000/SQLBatis | b52b098e5a088cdad0c81ff25553cae411a2bd2a | 0943acfe7990fc47278c9e8b3531c044cdf7769c | refs/heads/master | 2023-08-18T15:04:12.570306 | 2021-09-22T17:36:52 | 2021-09-22T17:36:52 | 270,334,824 | 3 | 2 | MIT | 2021-09-23T18:20:39 | 2020-06-07T14:41:43 | Python | UTF-8 | Python | false | false | 5,501 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"273775401@qq.com"
] | 273775401@qq.com |
d596367c0f250a62cc08c33f60a4634a63bf40e7 | 51f9b131386f268f0f051011a3fc8c9b16e2ffb6 | /main.py | a2ad2d720942ff83d2a96b668be0c1c0ee410cfa | [] | no_license | kz-ab-rahman/projek_badak | f9dfbd61dc5474fe3b73318c72384c53f8b68108 | b1cc3151e62dc5e47ed819f6406d6163d37ed6a5 | refs/heads/master | 2020-04-14T02:21:49.172365 | 2019-01-28T05:54:08 | 2019-01-28T05:54:08 | 163,581,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,470 | py | #!python3
# goto https://myaccount.google.com/lesssecureapps, turn on less secure app access
import imaplib
import time
import sys
import getpass
from datetime import datetime, timedelta
import global_param
import data_processing
import data_extraction
import email_scraper
import msg_generator
arg_list = sys.argv
# ... | [
"46260054+kz-ab-rahman@users.noreply.github.com"
] | 46260054+kz-ab-rahman@users.noreply.github.com |
5a0b924bcfba650b7cd1d25257ad56ba3afa18c5 | 1fa4e101a9db6994b35faab11e3bb3a072addbaa | /prototype.py | d517e1b04404419b85d6ccf06c662616f56dbf09 | [
"MIT"
] | permissive | jpbarto/cluster_python_eval | 95a7ebbacaa804d734c6eecd801ae951b6b94a29 | 1f3163dccaab33b7dfec1ed422146f18c2294242 | refs/heads/master | 2021-01-10T09:23:58.634513 | 2016-04-08T22:27:26 | 2016-04-08T22:27:26 | 55,813,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | import zmq
import time
import threading
import json
import socket
from cluster import ClusterManager, Node
def stop_all ():
clusterManager.stop ()
ctx.term ()
def print_status ():
print "Local node: {}, running: {}, connected: {}".format (clusterManager.node.name, clusterManager.running (), clusterManager... | [
"jason.p.barto@lmco.com"
] | jason.p.barto@lmco.com |
d98d97669a7b86775dbd90256721206ed8d38766 | 01bebbdaa4f6febcb225dc43568080fb47c88419 | /lolrecsys/lolrecsys/urls.py | b3df4f155e705bf20ae7b2c9e0971b8489d94a01 | [] | no_license | seok0704/lol-recsys | 52554aa8aab8bbbcea8f1659e8eb204d7ede2019 | e5df43bf75179b378e49f9b7a1449c5a158ffa4d | refs/heads/main | 2023-06-26T22:26:45.992571 | 2021-07-28T18:57:14 | 2021-07-28T18:57:14 | 363,002,539 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | """lolrecsys URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"seok0704@gmail.com"
] | seok0704@gmail.com |
1eb118f5187ab4a3c4a08f6e93c8c1611df906d2 | 7b4cf9df77a8f5f716dece430c9465b1de137a30 | /src/rubricsampling/short_answer_test.py | 392581f97870dcfcb6c025aa236fdcdf982e71d0 | [] | no_license | willcrichton/generative-grading | b440074e64c36a1fd982b4331e2d4ea36cbd57e4 | a36e0c91f778817f8b79d36a06e4b982b1f30245 | refs/heads/master | 2020-06-06T16:27:02.103847 | 2019-07-04T21:22:40 | 2019-07-04T21:22:40 | 192,791,584 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,536 | py | #!/usr/bin/env python
import pickle
import os.path
import sys
import generatorUtils as utils
from pprint import pprint
from tqdm import tqdm
from engine import Engine
from engineTempered import EngineTempered
from engineGuidedInference import EngineGuided
from src.datasets.citizenship_labels import CitizenshipLabels
... | [
"malikali@stanford.edu"
] | malikali@stanford.edu |
dedfb1d33115d91728996501c76df18a4c9b57b9 | 4c5cbde4ff3af3a74aec4ecef3048c93dcd2e5e1 | /alphamind/data/engines/sqlengine.py | 9208a3c4821f3eff6c9e11b21af4b1cf02c0157a | [
"MIT"
] | permissive | GehirnW/alpha-mind | 7a6f049d65f5250b52440b35be9b673f03bbddad | 6eccbae8f9dadfabcbbf79e567a8d9ba53a9deaf | refs/heads/master | 2021-08-22T07:44:21.487565 | 2017-11-29T17:12:33 | 2017-11-29T17:12:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,890 | py | # -*- coding: utf-8 -*-
"""
Created on 2017-7-7
@author: cheng.li
"""
from typing import Iterable
from typing import List
from typing import Dict
from typing import Tuple
from typing import Union
import numpy as np
import pandas as pd
import sqlalchemy as sa
import sqlalchemy.orm as orm
from sqlalchemy import select,... | [
"scrappedprince.li@gmail.com"
] | scrappedprince.li@gmail.com |
43c33309ccced89d49211dc1029a296d823cd9cf | d69a933c30e45d2bf97d4e01ca0a7956daebb089 | /src/rdfextras/sparql2sql/bison/QName.py | 90844bfe5fe52ca3574aa9b05adf6c9b94e334f9 | [] | no_license | agarrido/ro-manager | d83af466abbf9bb27952f238f4e036810a45e447 | 9229b435d67825ce71bb2a7bd9855119d4f02c58 | refs/heads/master | 2021-01-17T11:58:32.133634 | 2011-10-19T12:33:50 | 2011-10-19T12:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | from rdflib.term import Identifier
class QName(Identifier):
__slots__ = ("localname", "prefix")
def __new__(cls,value):
try:
inst = unicode.__new__(cls, value)
except UnicodeDecodeError:
inst = unicode.__new__(cls, value,'utf-8')
inst.prefix,inst.localname = val... | [
"gk-github@ninebynine.org"
] | gk-github@ninebynine.org |
5e33527c73b96fa1dda579ea110b818a94798312 | b5a3c32abbb1ca486cc09db94fa39fba9ee0d251 | /Artificial Intelligence/Homework/HW1.py | 8a4b4b0f520b8032c73c0c106d8052a613e5aeab | [] | no_license | FryyGuy/Projects | 2c48c84a5ba80196d102185b9c53402241688772 | 56277e39d75101fa9b7ea3924c479b26fa9dcec3 | refs/heads/master | 2021-01-17T06:11:39.549587 | 2018-12-09T23:23:49 | 2018-12-09T23:23:49 | 37,995,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | #!/usr/bin/python
import os
import sys
import random
from Gamestate import GameState
from Move import Move
from Coordinates import Coordinates
from searching import BreadthFirstSearch
from searching import DepthFirstSearch
from searching import Node
user_level = ""
n_walks = 0
if len(sys.argv) < 3:
... | [
"mrf77@drexel.edu"
] | mrf77@drexel.edu |
1a9f1d1eaa41aac50fca2dd046290d626618343d | 047b0c80590d867671810042a20d2a44c1260214 | /chapter04_lists/05_conway_02_book_v.py | d4f07ceca8a3e1c14aefd3a74d2552242204be81 | [] | no_license | ifeLawal/learningAutomateTheBoringStuff | d9a8795513a55b0d8856a403ca7f221f772c9cff | 8d5b654f47b35ab5b6c044b6353f7beeea164145 | refs/heads/master | 2023-07-13T00:26:27.821170 | 2020-06-27T02:47:15 | 2020-06-27T02:47:15 | 253,107,940 | 1 | 0 | null | 2023-06-30T22:20:48 | 2020-04-04T22:09:49 | Python | UTF-8 | Python | false | false | 3,119 | py | # Conway's Game of Life
import random, time, copy, sys
WIDTH = 10
HEIGHT = 10
# Create a list of list for the cells:
nextCells = []
for x in range(WIDTH):
column = [] # Create a new column.
for y in range(HEIGHT):
if random.randint(0, 1) == 0:
column.append('#') # Add a living cell.
... | [
"il693@nyu.edu"
] | il693@nyu.edu |
632790b439080504bbc33318cb295162d2d2b3c7 | e68659216eb40abc3a85d1493272388d35db22e5 | /lambda/prepareChangeset/index.py | 0b84003097111db7c96afe9932ff137a85960c50 | [] | no_license | Olo8612/LambFormation | 467072f879fabf7c83fbd43db83340ac3ae8f3db | 646deed6effa5b73a3ab5c6eb8ac6e4fa6f8757d | refs/heads/master | 2020-12-20T22:52:06.812036 | 2020-01-30T16:57:21 | 2020-01-30T16:57:21 | 236,231,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,798 | py | import boto3
import yaml
import os
import json
from getStateFromAWS import getStateFromAWS
from getStateFromFile import getStateFromFile
from prepareChangesetList import prepareChangesetList
CREATE_USER_LAMBDA = os.environ['CREATE_USER_LAMBDA']
DELETE_USER_LAMBDA = os.environ['DELETE_USER_LAMBDA']
CREATE_USECASE_LAMBD... | [
"aleksander.rekawek@gmail.com"
] | aleksander.rekawek@gmail.com |
883097afdecb7313634ef783d44450e75c64944e | 3bd0f3dccf0d0ddb6af3647e88b0493f9f149886 | /Labs/Lab5/GensimW2V/GensimW2V_Notebook.py | ac216b5ec44da1e4bf585bd5e3aadef112a5742f | [] | no_license | dejohansson/D7041E_Artificial_Intelligence | 02fb5ef7221d9c753a0a8c9f400b8d9c7d948895 | 4825e17318467eeac1eb33bd73d23bf0725f0fd1 | refs/heads/master | 2020-04-18T12:36:11.660088 | 2019-03-20T14:13:22 | 2019-03-20T14:13:22 | 167,538,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,586 | py | #%% Change working directory from the workspace root to the ipynb file location. Turn this addition off with the DataScience.changeDirOnImportExport setting
import os
try:
os.chdir(os.path.join(os.getcwd(), 'Labs\Lab5\GensimW2V'))
print(os.getcwd())
except:
pass
#%%
# import modules & set up logging
import gensim, ... | [
"davjom-5@student.ltu.se"
] | davjom-5@student.ltu.se |
4345e22242d87bfb9e1689eb5037458e7e60cf6c | a1a339dadbe125773db531fbdb1e66c1d00b4770 | /fact_conditions/conditions.py | 0d9ed094f5b1156338e9f66f12e1a32e91cb8588 | [] | no_license | fact-project/fact_conditions | 15ea45c9fa31520c0cb5e2ee7848d5122c81276f | d8ab74f02702b71da1b24f97d39efdbb763e3fc9 | refs/heads/master | 2021-09-15T02:59:25.207415 | 2018-05-24T15:28:39 | 2018-05-24T15:28:39 | 125,867,154 | 0 | 0 | null | 2018-05-24T11:49:28 | 2018-03-19T14:05:03 | Python | UTF-8 | Python | false | false | 2,142 | py | import pkgutil
import yaml
import os.path
def create_condition_set(conditionset=['@standard']):
"""
given a list of conditions create a condition set
If a given condition start with '@NAME', process NAME as a set of conditions defined in a yaml file
with the filename NAME or with the
"""
... | [
"michael.bulinski@tu-dortmund.de"
] | michael.bulinski@tu-dortmund.de |
1ca683547437674bf5d5f76e7114ff272e379d08 | 3bb301688bfd5b31f762dbe3ffead0a345a09401 | /main.py | 7e1582dfd4c9db3de14ebdd93f488c96c0b2f990 | [] | no_license | wudangqibujie/3.-24 | 5a03ef051dfaf543d788382215610016a4514e44 | d29a0ed76ef5bb8c2b253f775d2ad0dad0b93f4c | refs/heads/master | 2021-04-15T14:39:11.034821 | 2018-03-24T12:38:13 | 2018-03-24T12:38:13 | 126,597,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | import master
import redis_or
import slave
from lxml import etree
# a=master.Master_Spider("shenzhen")
# html = a.get_html("https://www.xin.com/beijing/benchi/i3/")
# urls=a.get_detail_url(html)
q = redis_or.Redis_Data()
# for url in urls:
# q.set_into_data("test_car_urls",url)
for i in range(1,11):
... | [
"noreply@github.com"
] | noreply@github.com |
a9b1421809818a57810ce42c5b458c0686040d19 | 2760effda15d884af413ca2a35809d03fabea377 | /lc-94.py | d3a1d65ec14db010713ce89de3a52e712e346568 | [] | no_license | UtsavRaychaudhuri/leetcode | 31943b98ad89d96d72ee4b6b1d1c8d70429d1e1f | 77a13580fd6231830558b1cf8c84f8b3b62b99d0 | refs/heads/master | 2020-11-27T18:02:23.712639 | 2020-09-29T19:39:49 | 2020-09-29T19:39:49 | 229,552,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def __init__(self):
self.my_list=[]
def inorderTraversal(self, root):
"""
:type root: TreeNod... | [
"utsav@pdx.edu"
] | utsav@pdx.edu |
e5f75c282a91efceab67452309899a392be1f731 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/304/68337/submittedfiles/testes.py | ef1b112bb914f1155a9ca8d3cbd194b2db577544 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
########AULA DO DIA 06/09/2017########
"""
idade = int(input('Digite sua idade: '))
print('A idade do indivíduo é',idade,'!')
if int(idade) < 18:
print('Você tem menos de 18 anos')
elif int(idade) == 18:
print('Você tem 18 anos')
else:
print('Você tem... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e1c77a2d0b8f06a83ef2a11dbfb21d51589e4ba3 | 77ab53380f74c33bb3aacee8effc0e186b63c3d6 | /5180_constrained_subset_sum.py | 323b9c395febde884a579570cf9771cc9a0c10dc | [] | no_license | tabletenniser/leetcode | 8e3aa1b4df1b79364eb5ca3a97db57e0371250b6 | d3ebbfe2e4ab87d5b44bc534984dfa453e34efbd | refs/heads/master | 2023-02-23T18:14:31.577455 | 2023-02-06T07:09:54 | 2023-02-06T07:09:54 | 94,496,986 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,829 | py | '''
Given an integer array nums and an integer k, return the maximum sum of a non-empty subset of that array such that for every two consecutive integers in the subset, nums[i] and nums[j], where i < j, the condition j - i <= k is satisfied.
A subset of an array is obtained by deleting some number of elements (can be z... | [
"tabletenniser@gmail.com"
] | tabletenniser@gmail.com |
098a19b480464b71fd30f91f96b12deccd2b1286 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/MT5_ID4146_for_PyTorch/transformers/src/transformers/models/hubert/__init__.py | ee06be214ac55b024c5eba4b6ae5f0f737581f55 | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,332 | py | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
85c0f14b868a22e23e5e3fd51fe3cc1e84759e72 | 5d3a6f5d1731d32479c3cd65748c58eefa614b07 | /tests/test_models.py | 8bef9f492bb207d37d8955f5b49e2f5693b413af | [] | permissive | timgates42/django-rest-localflavor | fde435f0f07775ccf48187f68e7f29ad9d2a793f | 844f86dbed5be126706b8d65678ed7e1fc9cfed0 | refs/heads/master | 2023-03-17T08:04:59.020065 | 2020-12-30T12:25:36 | 2020-12-30T12:25:36 | 246,013,020 | 0 | 0 | BSD-3-Clause | 2020-03-09T11:04:03 | 2020-03-09T11:04:02 | null | UTF-8 | Python | false | false | 377 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_django-rest-localflavor
------------
Tests for `django-rest-localflavor` models module.
"""
from django.test import TestCase
from rest_localflavor import models
class TestRest_localflavor(TestCase):
def setUp(self):
pass
def test_something(s... | [
"me@gilsondev.in"
] | me@gilsondev.in |
021870ba7e83cd49d113645f14d918b18cc9157b | a9063fd669162d4ce0e1d6cd2e35974274851547 | /test/test_inline_response20072_plan_base.py | a7ee91720c79393327a18f8d2b9bb2083c8bfc00 | [] | no_license | rootalley/py-zoom-api | 9d29a8c750e110f7bd9b65ff7301af27e8518a3d | bfebf3aa7b714dcac78be7c0affb9050bbce8641 | refs/heads/master | 2022-11-07T14:09:59.134600 | 2020-06-20T18:13:50 | 2020-06-20T18:13:50 | 273,760,906 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | # coding: utf-8
"""
Zoom API
The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the [Zoom App Marketplace](http://marketplace.zoom.us). To learn how to get your credentials and create private/public appli... | [
"github@rootalley.com"
] | github@rootalley.com |
9902137daa03e62171db7da62cf5724dc7d8e42f | 317c9ddfe48589c46939d9bab574ff8341f5cce8 | /multi-level-overfitting.py | 033560bff67a60e83c4122c38a3d5337bf6781ba | [] | no_license | ZixuanJiang/improved-dataset-condensation | 632f40f39ec3a2eec4bece6c5c865839b0b09ddc | be1be336a4e3a6a7e46f45fc38310e61e087c07c | refs/heads/master | 2023-07-14T00:41:48.978536 | 2023-06-29T19:13:22 | 2023-06-29T19:13:22 | 346,900,284 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,434 | py | import os
import copy
import argparse
import numpy as np
import torch
import torch.nn as nn
from torchvision.utils import save_image
from utils import get_loops, get_dataset, get_network, get_eval_pool, evaluate_synset, get_daparam, match_loss, get_time, TensorDataset, epoch
def main():
parser = argp... | [
"zixuan@utexas.edu"
] | zixuan@utexas.edu |
ba139b91da3b1c9b90d16903405e283f9fc3ed5e | 63b364ad79288be56c55c83b7d78785b60be3a2e | /ssm/core.py | 67c2527f8918067c2a1d811cbbe165edf9664ffd | [
"MIT"
] | permissive | quliuwuyihmy/ssm | 65b69ce0e62ac65a3b99f1d20fc92a99b6769492 | 7d4e8830cfc7f30f8e1429149e239b823478cc14 | refs/heads/master | 2020-04-01T22:42:07.580301 | 2018-10-17T19:55:51 | 2018-10-17T19:55:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,937 | py | import copy
import warnings
from functools import partial
import tqdm
import autograd.numpy as np
import autograd.numpy.random as npr
from autograd.scipy.misc import logsumexp
from autograd.misc.optimizers import sgd, adam
from autograd.tracer import getval
from autograd import grad
from ssm.primitives import hmm_nor... | [
"scott.linderman@gmail.com"
] | scott.linderman@gmail.com |
11f6b03dd2cfb4b3fc94a3ab544cdc1255206da5 | acceb80c69a6757c8d177b3a95406bdf4aa9f9a1 | /service/spotify_screen/tester.py | a78516d5fb7e6302debe7b96309c0080cfa2cc15 | [] | no_license | zpeleg/SpotifyScreen | 4485dcda03d96f813b5e2b97f0a7063558fe1088 | 350982314ef0d6363743dbbb6604ba37e4db2ff4 | refs/heads/master | 2021-01-18T22:41:22.891583 | 2017-05-17T11:52:42 | 2017-05-17T11:52:42 | 87,066,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | from spotify_screen.communicator import SerialCommunicator
from spotify_screen.keyboard_proxy import KeyboardProxy, LinuxKeyboardProxy
from spotify_screen.screen_controller import ScreenController
from spotify_screen.spotify_authenticator import SpotifyAuthenticator
from spotify_screen.spotify_client import SpotifyClie... | [
"zivpeleg@gmail.com"
] | zivpeleg@gmail.com |
1fccb8fb07eda6f838b5b01854800df046dde04d | 01548099ec20976d31cca7a720102c11c56fc9be | /scripts/handle_mysql.py | e9b295986da2e42b703e109bceae62db0fa7fd71 | [] | no_license | OMEN001/Lemon_Api_Test | 6a27a9a9ccf28623006b465a107d53b17ad30404 | 373c9f1a1f1f3160bbe8edcc4b5740f9779947ae | refs/heads/master | 2023-02-25T22:31:39.824908 | 2021-01-24T14:22:52 | 2021-01-24T14:22:52 | 329,324,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,651 | py | # -*- coding: utf-8 -*-
# @Time : BaLiang
# @Author : 86187
import pymysql
import random
from scripts.handle_yaml import do_yaml
class HandleMysql:
def __init__(self):
# 创建连接对象
self.conn = pymysql.connect(host=do_yaml.read('mysql', 'host'), # mysql服务器ip或者域名
u... | [
"1668317403@qq.com"
] | 1668317403@qq.com |
f888127847dfdb5b90f9b27914ecf9b58f5aad22 | 0370b132a09c92f3706009b8937de8b37bd681f6 | /leetcode/123. Best Time to Buy and Sell Stock III.py | 9551182804fe7829cba07ca718c1d54c374058e1 | [] | no_license | mamhamed/coding | d39c3845ad091679fb619cb9cb432e3bef01b931 | 0ea610971bca7e9e3ea9c49aa407bfca84da037a | refs/heads/master | 2020-03-11T17:39:18.131817 | 2018-05-04T04:44:10 | 2018-05-04T04:44:10 | 130,153,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
n = len(prices)
if n <= 1:
return 0
dp1 = [0] * n # dp1[i] gain by first time selling stock at i
hold = [0] * n
dp2 = [0] * n # dp2[... | [
"noreply@github.com"
] | noreply@github.com |
71e42ff15bf81a8a0022b9c476884ad75f9c2e4e | 4bb9b07c33605e47b1d6f7227d1891a2839dda81 | /api.py | 87c965463319a2a33247e035c09918ddca93de83 | [] | no_license | abyarth7/falcon-chassis | 65c1afcdedb1917fdb586474927f52bfded07922 | 6b3700c2537678a99f4e376b71f2a14efe2945ea | refs/heads/master | 2020-04-09T02:20:58.572924 | 2018-12-09T22:28:03 | 2018-12-09T22:28:03 | 159,937,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | import falcon
from wsgiref import simple_server
from app.controllers.images import Resource
from app.controllers.Order import Order
from app.controllers.GetOrderDetails import GetOrderDetails
from app.controllers.GetUserHistory import GetUserHistory
# from app.middlewares.db_session_manager import SessionManager
# from... | [
"abyarth.behera@pharmeasy.in"
] | abyarth.behera@pharmeasy.in |
98b4b2532a77dd9b1e432c03931de214cb38db7a | a8f57e4b833b8ad2c7e98088daa0bdc95d49704a | /StrukDat[ Semi Final ].py | 37d81855c7068bc553ac63a8b45e98cacc296160 | [] | no_license | SaktiDw/Python | 714f0552bbc65d78d4f4ac826c927fb9ce23653a | 38be491a32d8f27d7555b903d3e29ab8518bef88 | refs/heads/master | 2020-09-26T12:01:12.952810 | 2019-12-07T19:28:42 | 2019-12-07T19:28:42 | 226,250,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | myDick = [
{
"name" : "Sakti",
"nim": 11181077,
"ipk": 4.0
},
{
"name" : "Habib",
"nim": 11181010,
"ipk": 4.0
},
{
"name" : "Tegar",
"nim": 11181058,
"ipk": 4.0
},
{
"name" : "Risna",
"nim": 11181080,
"ipk": 4.0
}
]
def quick(lst):
if ... | [
"noreply@github.com"
] | noreply@github.com |
108db20b5291a63a97d7f6131a6423d6024b6670 | 4cac35d19960e92611c06e0d9cf329409e156880 | /Adafruit_I2C.py | e021a58a812ec6e7f21d836006bc5006f16f4104 | [] | no_license | mackstann/juiceinformant | 00fc4b48e0663792d4d8212070741d8cc0ddf918 | 3945ea0628a075c8b63a4dcb4a33be52fac6c079 | refs/heads/master | 2016-09-03T07:34:01.682843 | 2016-02-02T01:31:32 | 2016-02-02T01:31:32 | 15,817,548 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,288 | py | #!/usr/bin/python
# Copyright (c) 2012-2013 Limor Fried, Kevin Townsend and Mikey Sklar for
# Adafruit Industries. 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 cod... | [
"nick@incise.org"
] | nick@incise.org |
1a4c6c3b18e1ea05bf1a9c64b19f4b8065eaf2c7 | fcac3f9fa9fe778d500e9f78063217dae03f2ad3 | /m02c01-arrays-linked-lists/i04e04_hamming_distance.py | ac5c29320689faba7199b3dd02f111ace85b2c8a | [] | no_license | thehimel/data-structures-and-algorithms-udacity | c1de71da90e260edb1f27376e62f203b2deaa551 | 51cee866ccaba6070fe5cef99ba48b77e1b3f436 | refs/heads/master | 2023-06-16T12:35:37.344151 | 2021-07-11T22:08:59 | 2021-07-11T22:08:59 | 267,092,745 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | """
Exercise 4. Hamming Distance
In information theory, the Hamming distance between two strings of equal length
is the number of positions at which the corresponding symbols are different.
Calculate the Hamming distace for the following test cases.
Calculate the hamming distance of the two strings
Args:
str1(str... | [
"himelhub@gmail.com"
] | himelhub@gmail.com |
d44385c6d812d0828273f0c81abfc9ed2538bddb | 4b2ddd9d8238c0a62da5685c7ee8998f439a4dec | /mysite/urls.py | 8939cea2ae22926826c9fdec4ddb5e3c1afce145 | [] | no_license | errorfixie/django_tutorial | 1c17dd3f7696a4c78987b50c45584104bc8ecb73 | 3e90e4a17bda311563eaed95b7d0f56149b15082 | refs/heads/practice | 2023-07-18T16:55:44.290938 | 2020-07-09T08:14:43 | 2020-07-09T08:14:43 | 275,982,773 | 0 | 1 | null | 2021-09-22T19:27:24 | 2020-06-30T03:03:24 | Python | UTF-8 | Python | false | false | 94 | py | from django.urls import path,include
from django.contrib import admin
urlpatterns = [
]
| [
"65066542+errorfixie@users.noreply.github.com"
] | 65066542+errorfixie@users.noreply.github.com |
20a45297f07f0bdd5d3d6f430e3a4dacca7c2d74 | 22e74ef0ed5d7c865aaf89dafcc9568c8ba1ea92 | /NLP/json_reading.py | 9f6d42199e449196f2c0c475e847c21ea3dc5c8b | [] | no_license | tanmay2298/Tensorflow-Specialization | b2e1f4237db83f7d15617057914e05bcbdfb7e91 | bdcd617f799b46d293560a71cb9a10c17997a8e7 | refs/heads/master | 2020-05-21T18:48:35.814917 | 2019-09-21T07:56:04 | 2019-09-21T07:56:04 | 186,139,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | import json
with open("sarcasm.json", 'r') as f:
datastore = json.load(f)
sentences = []
labels = []
urls = []
for item in datastore:
sentences.append(item['headline'])
labels.append(item['is_sarcastic'])
urls.append(item['article_link']) | [
"Tanmaygulati@gmail.com"
] | Tanmaygulati@gmail.com |
ce7df5c689a6258973a60dffa2e591b8563af30e | 61f5032f7e0cc8bf4f9459008671d60302150a13 | /code/run_q4.py | cc04ea55ebc21ef9d0d5c234f1e01a46cc40ea89 | [] | no_license | Aarati21/Deep-Learning-Concepts-and-Framework-implementation | 23f66f23d061cbc3517f2cd8576e63beeb6db325 | 401913611811f352545594d819645e3e4602bbe6 | refs/heads/master | 2022-07-13T10:31:34.295200 | 2020-05-18T23:16:00 | 2020-05-18T23:16:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,376 | py | import os
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches
import skimage
import skimage.measure
import skimage.color
import skimage.restoration
import skimage.io
import skimage.filters
import skimage.morphology
import skimage.segmentation
from nn import *
from q4 import *
# do not include... | [
"noronha.aarati@gmail.com"
] | noronha.aarati@gmail.com |
f0093b745a771064c9bf658d7caf0707c586f6be | 3133b3dd33b20b8dfc96110e1b72da07bd773621 | /pages/views.py | 2edcb7d16b639149e75973f73073e9c438bb1719 | [] | no_license | vanlongtran/Newpaper | dcbab2de62417399d6454a54538a7a91cad70bc8 | b0fa656fd5ea1f3d127fb08119b86282b8c6493f | refs/heads/master | 2020-03-24T19:39:42.886231 | 2018-08-07T13:01:37 | 2018-08-07T13:01:37 | 142,938,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | # pages/views.py
from django.views.generic import TemplateView
class HomePageView(TemplateView):
template_name = 'home.html' | [
"vtran.llm@gmail.com"
] | vtran.llm@gmail.com |
4c13faa671fd700c8419444afb248d7877483936 | bb938c976de8f997459696d3525d9b69c4ac8957 | /blog/migrations/0001_initial.py | 753615695dfce1bdcc35cfa01760aee2c4cb37d1 | [] | no_license | boruspetra/my-first-blog | bd4ed5cc09b7b64372dd40d716be16c2c4ecd3d1 | ec3636a82e0b3254479964c6c75690cc815ef2b3 | refs/heads/master | 2020-03-31T02:47:50.260470 | 2018-10-06T15:22:57 | 2018-10-06T15:22:57 | 151,839,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.0.9 on 2018-10-06 10:31
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... | [
"boruspetra@gmail.com"
] | boruspetra@gmail.com |
bf5e5f4ac0464f0fdf8ddeb89bab172eac8c6220 | 7dd3e0f55bb3d73ed2206c2956609cda450595f1 | /si/apps/siprof/migrations/0001_initial.py | 243d2f9d9fdcb019cd858e59517b0b70f9c01fe2 | [] | no_license | sigfrido64/asc-si | 2f1a7acb6a32d7b70b4e4f10518ac0e3b8fbfd87 | db35b679b35c60f309a390044ede9413b68d1efd | refs/heads/master | 2021-01-17T11:35:05.364084 | 2017-06-29T09:25:48 | 2017-06-29T09:25:48 | 30,244,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-26 11:09
from __future__ import unicode_literals
from django.conf import settings
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial =... | [
"pilone@scuolacamerana.it"
] | pilone@scuolacamerana.it |
04e767af70cf366e721e4722e9b532c838c86940 | e75588d080f30adc482325be40e1ef51066b5208 | /data_prep.py | 21e6dd59b7618ddf805e801d09e66b6a0beb2764 | [] | no_license | niraj1234567890/entity_extraction_spaCy | 2c63c9138e0f1d7b173445f1076b2e93377559df | 40a2fb5387d62dba5c173a013a9163cbf2f26cd0 | refs/heads/master | 2021-05-25T17:41:42.948301 | 2020-04-08T15:36:58 | 2020-04-08T15:36:58 | 253,850,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from data import processing
path = r'data_csv/ner_dataset.csv'
processing(path_to_data=path) | [
"23nirajsinh@gmail.com"
] | 23nirajsinh@gmail.com |
52ada6edf1b3aa170fb3fff2cbca5c5286d9264c | 69d1f4f7de5163c46ccce23132b6dc5100439fdc | /celestia/gui/loading.py | 430998d6789474ddce21d9f18c3d4bd2f916ee94 | [
"BSD-2-Clause"
] | permissive | lwd-temp/CelestiaSunrise | 93835b14b2c4a2f6bb42115b8bdbb0315bd74f4b | a2dcc5e905114705cd4a93dd37b5fd8a9858c467 | refs/heads/master | 2022-03-14T07:26:17.060230 | 2016-08-07T18:48:53 | 2016-08-07T18:48:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,035 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# File: loading.py
# by Arzaroth Lekva
# lekva@arzaroth.com
#
from __future__ import print_function, absolute_import, unicode_literals
import binascii
try:
# py3
import tkinter as tk
import tkinter.ttk as ttk
from tkinter.constants import N, S, E, W, NSE... | [
"lekva@arzaroth.com"
] | lekva@arzaroth.com |
1644cc8eed28893ea0314b6a735bb23190e45faa | 8a38bb4e40a78afc69eed06c3d88d45e5995a336 | /jax/experimental/gda_serialization/serialization.py | 438f108293d7b1dc0bc9a3f97dc7ce9aad711ed9 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | MichaelMarien/jax | 979a808ab6ea1698d2f03b1e9aeb826f59955543 | bf3c658114703e955f0b06642c53c6b64c5b2df3 | refs/heads/master | 2023-02-13T00:45:04.056207 | 2022-02-15T19:25:26 | 2022-02-15T19:25:26 | 216,413,853 | 0 | 0 | Apache-2.0 | 2023-02-06T07:02:48 | 2019-10-20T19:13:38 | Python | UTF-8 | Python | false | false | 4,185 | py | # Copyright 2021 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"no-reply@google.com"
] | no-reply@google.com |
05bab9289aae54474f3815c2af18b2d76c614ffa | c93a0b82627679a904f792668880cefffe801353 | /ml/m12_pipeline.py | 37c2d833036abc1e613905f01ff2b6b26beaa97a | [] | no_license | Eunah-Kim/keras | b52f29b90c858263c606b61877678d7223821f59 | 40f58f5aeb6d38db1b6c81455d0911bb547239f5 | refs/heads/master | 2020-12-18T18:29:02.334063 | 2020-02-26T09:20:40 | 2020-02-26T09:20:40 | 235,483,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | import pandas as pd
from sklearn.model_selection import train_test_split, KFold
from sklearn.model_selection import KFold, GridSearchCV
from sklearn.model_selection import RandomizedSearchCV
from sklearn.metrics import accuracy_score
import warnings
from sklearn.utils.testing import all_estimators
from sklearn.svm impo... | [
"keunah1016@naver.com"
] | keunah1016@naver.com |
a6a52f00039ac3a7521c5f81e2c32c6912a45997 | 529e80e3127eb823275239cba240418aabc62bd2 | /20190609/hw/hw.py | 73d33ab4092b63ce6369d0f090258cbb9cbc027b | [] | no_license | blackli/101 | eebf74f06dd15a61e65fcdf63c4f346156852374 | e26a7305f7d6076e5932793c822ffe4e09092922 | refs/heads/master | 2020-05-29T16:02:32.793325 | 2019-09-05T15:58:38 | 2019-09-05T15:58:38 | 189,237,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | str = ['h', 'w', '\n']
for letter in str:
print letter
| [
"lihaho@gmail.com"
] | lihaho@gmail.com |
0d9e4f240924950fccdc714b2ee6c3ea58925290 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/parso/py3/tests/normalizer_issue_files/E12_not_second.py | e7c18e0ec02551cd850caca5c428ce65c19565d2 | [
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"MIT",
"Apache-2.0"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 7,385 | py |
def qualify_by_address(
self, cr, uid, ids, context=None,
params_to_check=frozenset(QUALIF_BY_ADDRESS_PARAM)):
""" This gets called by the web server """
def qualify_by_address(self, cr, uid, ids, context=None,
params_to_check=frozenset(QUALIF_BY_ADDRESS_PARAM)):
""" Th... | [
"grag.oganes@gmail.com"
] | grag.oganes@gmail.com |
ba0cab75d451fa276a76a794a407b0198283487c | 400e70a9985e08e4032e40d31ba58d39965773db | /urllib_learn.py | 2c330fd1645bbcb458c35397a669595d2d2cffa0 | [] | no_license | lisawei/director_to_python | 2f5d986509d8eb93065cec4127a7f769be1bcd8e | a34264c0e19eaf7c75546502a7068fc59f785cda | refs/heads/master | 2020-04-16T16:16:48.962208 | 2014-01-14T08:10:07 | 2014-01-14T08:10:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | import os, sys
import urllib
import json
if __name__ == '__main__':
url = 'http://163.com'
fd = urllib.urlopen(url)
#print fd.read()
url2 = "http://api.douban.com/book/subject/1220562?alt=json"
fs=urllib.urlopen(url2)
data = fs.read()
print type(data)
d=json.loads(data)
print d
... | [
"187055815@qq.com"
] | 187055815@qq.com |
ec8d0e44746734f030582f0107c4c34d0dc6ba96 | 71661c23c7434aadf71f578eb2d0849790e887ce | /manage.py | 4b1fb25e0678a8d3ae7438130702d2ab415580ec | [] | no_license | lwardlegit/Fake_Planets_Api | e747c52ad658f4af651b47461b1679643e904cb6 | f8647a41b8f366dd6664dbd7861a1e15701b577f | refs/heads/main | 2023-07-13T18:43:02.722700 | 2021-09-02T05:34:58 | 2021-09-02T05:34:58 | 402,301,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | 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', 'geoapi.settings')
try:
from django.core.management import execute_from_command_line
except Impor... | [
"webcraftapps@gmail.com"
] | webcraftapps@gmail.com |
6658fb6f56dc5bf5fb43ea7f23f03b85f7bdc8bd | 70078b7b4a012fffb87def391cba71b66e0ebd38 | /polls/views.py | 16779d6cc3adcbec4b331c4e78f8efd6e045a8a0 | [] | no_license | YOOSANGLEE/polls_example3 | 1caa12e7b1e2fa0fbfe911e9a06ee1e7930108a9 | 330120d2b04bec3e6d7c1832b4f72dd24952991c | refs/heads/master | 2022-07-27T17:52:38.781207 | 2020-05-20T05:50:28 | 2020-05-20T05:50:28 | 265,464,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | from django.shortcuts import render, get_object_or_404
from polls.models import Question, Choice
from django.http import HttpResponseRedirect
from django.urls import reverse
def index(request):
latest_question_list = Question.objects.all().order_by('-pub_date')[:5]
context = {'latest_question_list': latest_que... | [
"ppprotoss@naver.com"
] | ppprotoss@naver.com |
091d0815444fe4b2524f004da01034a74850c752 | 55fd44e3f537c7c401f689437e66dd6760ea9109 | /Python/chompArt.py | 981e468aba01616822882ff4a31f540c2bffad98 | [] | no_license | nkzarrabi/chomp | 51bc128579a360c8037da942b8119b490d05f63f | c27d2396c6c7b688bdaf4b6b295cbbc709f41147 | refs/heads/master | 2020-08-14T01:36:02.152754 | 2019-07-18T11:59:20 | 2019-07-18T11:59:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 20 11:13:02 2017
Creates art for the chomp game
@author: dan
"""
import scipy as sp
import numpy as np
from chomp import Bar
a = Bar()
states = a.allStates
r = a.rows
c = a.cols
sqr = sp.misc.imread('Art/ngcmSquare.png')
bad = sp.misc.imread('Art/... | [
"djw1g12@soton.ac.uk"
] | djw1g12@soton.ac.uk |
f1be1d0aa53bdcb0774f26452bdc969b0a05c8d3 | 985b7525343a1118747e14b864a447d649172e3b | /CVAE.py | 34e69cd7e200b9a954d01f29dadc8f099090d211 | [] | no_license | gchoi/tensorflow-generative-model-collections | 4ffa6f452d68caae1edc5bc743337a338370daa8 | 7676876c5aaad9156caf3c47d2ebf2a3eef6269b | refs/heads/master | 2021-01-20T22:22:59.031973 | 2017-11-02T09:49:38 | 2017-11-02T09:49:38 | 101,817,869 | 0 | 0 | null | 2017-08-30T00:00:53 | 2017-08-30T00:00:53 | null | UTF-8 | Python | false | false | 12,654 | py | #-*- coding: utf-8 -*-
from __future__ import division
import os
import time
import tensorflow as tf
import numpy as np
from ops import *
from utils import *
import prior_factory as prior
class CVAE(object):
def __init__(self, sess, epoch, batch_size, dataset_name, checkpoint_dir, result_dir, log_dir):
s... | [
"hwalsuk.lee@gmail.com"
] | hwalsuk.lee@gmail.com |
a90ffed28c935b9ab40dc4f1a753b342afe4f0b1 | 467904052cf3c59c9dbd44e8425b3d479996c5df | /frontend/cstar_perf/frontend/lib/server.py | 8f3f8466079570f13d2e481444f5c2e60236be64 | [
"Apache-2.0"
] | permissive | mubarak/cstar_perf | 455d820625201eba6e407096c9fc4e0dfc7745f3 | d975acc3cc67fdb52df72a464c8fcd4b85a0e5b8 | refs/heads/master | 2021-01-15T15:05:21.852352 | 2014-09-09T15:51:15 | 2014-09-09T15:51:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | import os, os.path
import signal
import sys
import shlex
import subprocess
import argparse
from cstar_perf.frontend.server.util import create_app_config
from cstar_perf.frontend.lib.crypto import generate_server_keys
def run_server():
# Initialize database before gunicorn workers startup:
from cstar_perf.fron... | [
"ryan@enigmacurry.com"
] | ryan@enigmacurry.com |
886384f5fe9658802220794f6818c172f276cdd5 | e1c520d37f50236d0f73a2de3c0ff53579276b6c | /get_host_elms.py | 9f4b2e27b368f8c01c34e433ab30529ca94acf1a | [] | no_license | JudoWill/flELM | 2768bfe51860c348a0af8c8254c46aa2c8b5cd76 | 092fc085cd4d39d180f82628e8b877856e9ed367 | refs/heads/master | 2020-05-14T03:15:14.215761 | 2010-08-19T01:55:08 | 2010-08-19T01:55:08 | 567,025 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | """Find ELMs that are conserved on
mammal flu protiens for all
years and strains. Also do this
for ELM sequences."""
import os, global_settings, utils_motif, utils, sys
from collections import defaultdict
out_file_elms = sys.argv[1]
out_file_seqs = sys.argv[2]
out_file_simpleELMseqs = sys.argv[3]
host = sys.... | [
"samesense@gmail.com"
] | samesense@gmail.com |
470ebbe9d5632fee06fa2b94dd5f97cfe4fa1596 | 145de348d9768e294cb01f8eacab6549d3417c43 | /docs/source/conf.py | 5f40b7507cc93b1b4e7eee110c206380cbd138b9 | [
"MIT"
] | permissive | tadodotcom/CoAPthon | a714d92ecd775003a2a24072355e0768ee878293 | de257518fe03548d981af06c7b6a00c06822213a | refs/heads/master | 2021-05-08T22:06:19.112720 | 2019-07-22T10:51:15 | 2019-07-22T10:51:15 | 119,662,255 | 0 | 4 | MIT | 2019-07-22T10:51:17 | 2018-01-31T09:05:39 | Python | UTF-8 | Python | false | false | 8,252 | py | # -*- coding: utf-8 -*-
#
# CoAPthon documentation build configuration file, created by
# sphinx-quickstart on Sun Dec 6 14:50:08 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | [
"giacomo.tanganelli@for.unipi.it"
] | giacomo.tanganelli@for.unipi.it |
5d8433435bfdcf5f87e885ef711187b442bf55db | ecd9cbfa2c30e1bc39cf442e3302c4cb3cf1ea03 | /bin/calculate_phylocsf.py | 767ee44799121f64903399942d84fbb0d1288a98 | [] | no_license | lixin856/proteogenomics-analysis-workflow | 087c84971ab8386ef06d031244da37fd895e82f5 | 0b0a02dfb93cc5806ef9c951d1674d82f454ec29 | refs/heads/master | 2023-05-01T17:13:44.293272 | 2021-05-11T07:23:14 | 2021-05-11T07:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,579 | py | #!/usr/bin/env python3
'''
the script is modified from Mikael Hussius @ SciLifeLab, https://github.com/hussius/gff-phylocsf-human
download the following bigwig files first
# wget https://data.broadinstitute.org/compbio1/PhyloCSFtracks/hg19/latest/PhyloCSF+0.bw
# wget https://data.broadinstitute.or... | [
"jorrit.boekel@scilifelab.se"
] | jorrit.boekel@scilifelab.se |
d45ee182d35723fd5361fb75bd461054b10ae281 | aab9b68da6502ec290d0603af515d18ac69c7465 | /Feast-Freedom/venv/Scripts/easy_install-script.py | 119ff2f3bc7f409de00254d450655c483aa0a1f5 | [] | no_license | noah22567/feastfreedom | bedc05a12a8063cf7ccc5b0bef67a0f1fd7638b1 | a89b5565a3778d13d4354294a02d8d359508b714 | refs/heads/master | 2020-06-05T00:25:17.992837 | 2019-06-20T21:48:54 | 2019-06-20T21:48:54 | 192,248,427 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | #!C:\Users\19198\Desktop\feastfreedom\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe... | [
"thenoahsalas@gmail.com"
] | thenoahsalas@gmail.com |
61297ee47ef71698740fad57842b731d416486b2 | 618780e662d86b2208d5a71b4b3f4e785d9242a1 | /bruter/sources/source.py | 27a5c53d0da3e5bf9a4ec18547087b051232a5ef | [] | no_license | aymanalqadhi/PyBruter | 1d7dad62b8c26d11546889fc97bc3acd74e8046a | e4a2efc42eecbd2737c661f0bbca6193d993e733 | refs/heads/master | 2023-01-31T01:42:22.158722 | 2020-12-10T22:20:37 | 2020-12-10T22:20:37 | 139,115,235 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | class WordsSources():
""" Words Source Base Class """
def __init__(self, length, prefix = 0, suffix = 0):
self.length = length
self.prefix = prefix
self.suffix = suffix
def Next(self):
""" :: Virtual Next Method :: """
return None | [
"aymanqadi2012@gmail.com"
] | aymanqadi2012@gmail.com |
4057c9e72f1f60ce6f8af52384a0b76855e13b93 | 75b0946e35ecba65062940abdbab065ea197c83d | /command_parser.py | 9bf9fad0735e4fb5c323142584ba4f06bc37750c | [] | no_license | miltonizer/quakeworld_records_mvdparser | 73c098fc25096ce2b6be0356dd9e39cd2918e8c1 | 5ac7375c4f43949060b7f6f9290feae1dfb4cd04 | refs/heads/main | 2023-01-30T22:13:10.936054 | 2020-12-04T23:22:35 | 2020-12-04T23:22:35 | 318,644,613 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,934 | py | import constants
import util
import statistics
from health_info import HealthInfo
from datetime import datetime
def parse_svc_damage(net_message, mvd):
armor = net_message.read_byte()
blood = net_message.read_byte()
from_coords = [None] * 3
i = 0
while i < 3:
from_coords[i] = net_message.r... | [
"joni.sivula@gmail.com"
] | joni.sivula@gmail.com |
6f82e9bad32719de9ad22be3ed2e506afda59207 | f05392db324363edf731e691e4d185ee6398f121 | /Curso em Vídeo/Python/Desafio74_aula 16 Maior e Menor valor em uma tupla.py | e99361d8d782a2791fc0db82bdd68e5258265c10 | [] | no_license | brenonorberto/Cursos | 080d5f1799a17804cb022826488c377bdf9644f8 | 45c67ca6d58cc96bd7a328c3a1349f9d0a0a4478 | refs/heads/main | 2023-02-16T19:54:28.972038 | 2021-01-20T13:08:33 | 2021-01-20T13:08:33 | 255,355,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | print('='*12, 'Desafio 74', '='*12)
print()
from random import randint
numeros = (randint(1, 10), randint(1, 10), randint(1, 10), randint(1, 10), randint(1, 10))
print('Os valores sorteados são: ', end='')
for n in numeros:
print(f'{n} ', end='')
print(f'\nO Maior número sorteado foi: {max(numeros)}')
print(f'O ... | [
"brenonorberto@gmail.com"
] | brenonorberto@gmail.com |
d2fb80d1fd5783a0beab8161ab2a6e8699bc7c4f | 720929b3e4f6222a78404f63055337c6a58a5a46 | /.history/api/main_20210609133007.py | 93fbda09d8c0b8c321ead7977767bb4deb3c3963 | [] | no_license | Zolds403/images-gallery | e1b4d267e2dbbc0ecadafb8539eb042187ef8460 | e8a87c0971e470068ba9101a95fea74638945fcb | refs/heads/main | 2023-06-02T06:24:47.496268 | 2021-06-20T21:26:12 | 2021-06-20T21:26:12 | 373,235,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from flask import Flask
print(__name__)
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello, World!"
| [
"zolds403@gmail.com"
] | zolds403@gmail.com |
490c3ff06f2d1f0ec763b0b33cbe461f3ce4c015 | c5c95aee3c04ab89f1aa3505f45768d15994be53 | /myScript.spec | bac2683370cf6c59b42d84e6187d2d5590501df2 | [] | no_license | snagavamsi123/Banking-Bot | 16f55a9cad523ca63fb1bf47a1a802236adcd164 | 9745e51a2c3c8a2cf614d3052a3577fce40a74c0 | refs/heads/master | 2023-03-27T18:54:35.585541 | 2021-04-03T11:31:49 | 2021-04-03T11:31:49 | 354,273,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['myScript.py'],
pathex=['C:\\Projects @tp\\Banking Bot\\BankingBot (1)\\BankingBot'],
binaries=[],
datas=[],
hiddenimports=['pandas._libs.tslibs.timedeltas'],
hookspath=[],
... | [
"snagavamsi123@gmail.com"
] | snagavamsi123@gmail.com |
45da202ab2bb858bfea6267365bc17ea97e3ef40 | d1683ed18c0459255a65da368c887b60224ab491 | /worldCloud.py | 65a85dcbe96acf93ae8e44e5b8febc061725b09f | [] | no_license | Wu-jiaming/wordCloud | 3138c65e602f1a94104f9a57128c116051e5687f | cc05307f9c443bf3708fe8d83a1ee15c10cd9edc | refs/heads/master | 2020-03-26T23:46:18.187425 | 2018-08-21T15:44:58 | 2018-08-21T15:44:58 | 145,566,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,833 | py | from os import path
from wordcloud import WordCloud, STOPWORDS
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
import random
import os
#生成一张词云颜色是由灰色往白色随机
def grey_color_func(word, font_size, position, orientation, random_stata=None, **kwargs):
#颜色HSL(色度、饱和度、亮度),亮度随机... | [
"754205661@qq.com"
] | 754205661@qq.com |
01b6c16866f7d951d868a09da26d851af1772b6c | 23d38e22055c2600b6c4d207ca3f830bc77e57d2 | /fangtianxia_rent/items.py | c5c5784070c7c1cbc9d93aff68f3136f4183d5db | [] | no_license | SukitZhang/fangtx | 7d57072e4e7e1abc803c0f01e14763609a90ac08 | f1e9ca607269779be6e25274d91bd20bacfad30f | refs/heads/master | 2020-03-08T02:36:50.415262 | 2017-10-12T09:01:10 | 2017-10-12T09:01:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class FangtianxiaRentItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
name = scrapy.Field()
city_... | [
"chenjw@jpush.cn"
] | chenjw@jpush.cn |
1a8534c747ce64a7d53d310af6a6610ca5a802de | b7dd07413c05a13207988535b755b7d28dbc5663 | /Chapter_11/name_function.py | ff49f2a5f8b4c33b8d0e85a0b57ace81dc09e227 | [] | no_license | GrnTeaLatte/AlienInvasion | b671a87cd730c3d4b31a8e8d760d2d02d576cfb3 | d60e8e65adb79e54a1e1c579825827355a7e85ea | refs/heads/main | 2023-02-26T03:55:26.799446 | 2020-11-03T00:42:06 | 2020-11-03T00:42:06 | 336,111,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | def get_formatted_name(first, last, middle=''):
"""Generate a neatly formatted full name."""
if middle:
full_name = first + ' ' + middle + ' ' + last
else:
full_name = first + ' ' + last
return full_name.title()
| [
"audreyfu14@gmail.com"
] | audreyfu14@gmail.com |
76e7802e9dd9160acd1e64769b89a2688543cc71 | f0dbd29e9851a68e224a220eef8d13d896146d6c | /eiger_io/fs_handler2.py | 8e2edf0c2c7234b3847354f5827cb54dc74115d6 | [] | no_license | yugangzhang/eiger-io | 68a6b36a292570357cda3be4c99361a7ebbeb734 | 8c3bb99e014ac7da35ff287da4199597c62cacf7 | refs/heads/master | 2021-01-24T01:46:28.562894 | 2017-01-31T15:16:26 | 2017-01-31T15:16:26 | 44,404,392 | 1 | 1 | null | 2015-10-16T21:29:54 | 2015-10-16T18:46:26 | Python | UTF-8 | Python | false | false | 3,269 | py | import numpy as np
import h5py
from pims import FramesSequence, Frame
from databroker import db
class EigerImages2(FramesSequence):
def __init__(self, master_filepath, images_per_file, *, md=None):
self._md = md
self.master_filepath = master_filepath
self.images_per_file = images_per_file
... | [
"yuzhang@bnl.gov"
] | yuzhang@bnl.gov |
c4a3968ee5ada4f1e6b77cfc69beebec9125f573 | c8027026ecebc5492857fefe039edca83d33b39f | /is_user_in_group/is_user_in_group_tests.py | 562e3713343e400595cb7f2c2bd9a8edb694dc8a | [] | no_license | george-marcus/show_me_the_data_structures | 2afef1a1d56c8521b8b5c45f296addb9b9de295d | 4337bf95719f7cc510cb0d6f2a89f165fb20ceda | refs/heads/main | 2023-04-12T23:42:28.068845 | 2021-04-12T16:03:41 | 2021-04-12T16:03:41 | 353,742,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | from group import Group
from is_user_in_group import is_user_in_group
parent = Group("parent")
child = Group("child")
sub_child = Group("subchild")
sub_child_user = "sub_child_user"
sub_child.add_user(sub_child_user)
child.add_group(sub_child)
parent.add_group(child)
print(is_user_in_group(sub_child_user, None)) ... | [
"george.marcus.ph@gmail.com"
] | george.marcus.ph@gmail.com |
494970626e046ba086e9f9147e5adae928f73dd6 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2464487_1/Python/Andrew510/prob1.py | c9fc74984a7c57248747efda818c0b13b2a96b5c | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | #!/usr/bin/python
import math
import sys
infile = sys.stdin
T = int(infile.readline())
for n in range(T):
r, t = map(int, infile.readline().split())
b = 2*r - 1
xx = int(math.sqrt(b*b + 8*t))
sol = (-b + xx) / 4
#XXX
need = 2*sol*sol + sol*b
#print need, t
while need > ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
d103f044e4b88a589318d2a3495451a5c29d7e4e | b19f1a0ed3b26f0b5cbc2a0b7db2141edc955901 | /auto_test/Case_rbm/ftp_check_user/message.py | b6bd2eb9ef1d8977d9c1f2fee0b164c6ac7656c4 | [] | no_license | wangqian0818/auto_test_platform | 5a1f04cbf6007e6ff3dbb74e838981de53491526 | 64e32099ac2d79fb70d3727b085465aac0e49d3f | refs/heads/master | 2023-04-26T23:39:04.232001 | 2021-05-22T12:23:02 | 2021-05-22T12:23:02 | 368,116,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | import time
from common import baseinfo
from ftp_check_user import index
datatime = time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))
proxy_ip = baseinfo.gwServerIp
ftp_ip = baseinfo.ftp_ip
username = index.username
case2_allow_user = index.case2_allow_user
addftp = {
'AddAgent':{
"MethodName":"AddAgent"... | [
"wangqianjob0818@163.com"
] | wangqianjob0818@163.com |
f82c71cf18dcf5772f4b12a6654b5be066ce780d | fbb544fda7b5b90162ef7b86ccb38f71e6f07c02 | /src/ai/sandbox/chatbot_ros_node/human_input.py | cfe62f7b655776637d366a3dd805c08d5a4799fe | [] | no_license | RingOfFireOrg/PyroKenHumanoidAI | 5979ae72f21544273b17c9c6593b24d681ed02e6 | 94feaca1d60fa4eb04098e49f9add76a2fad6188 | refs/heads/master | 2020-03-13T17:53:51.103728 | 2018-04-27T01:06:43 | 2018-04-27T01:06:43 | 131,226,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | #!/usr/bin/env python
#===================================================================
# Run this program to send typed messages to the recognized_speech
# topic, to which the robot A.I. will be listening. Later this
# program can be replaced by the hearing node from the Speech and
# Hearing team.
#
# Copyright 201... | [
"daniel.w.mcdonald@gmail.com"
] | daniel.w.mcdonald@gmail.com |
e6ae459d82ec9769209bd74bee89e9c96513cd3d | ec1b2654bc30fa3801d16bd7d045b8355900d13b | /src/Blue_green_channels_dehazing_and_red_channel_correction/getAdaptiveSceneRadiance.py | dd6edcf82dde3cc3d13e9347767f689db6483ff4 | [] | no_license | ashray-00/Underwater-Image-Enhancements | 82e8a21866c2cee03e793c1759538383d8f2837b | fb9d273dcf5060d636299bcf0a53c63eb64cdc7e | refs/heads/main | 2023-04-25T09:21:16.935866 | 2021-05-12T16:21:00 | 2021-05-12T16:21:00 | 351,670,288 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | import numpy as np
def AdaptiveSceneRadiance(sceneRadiance,S_x):
sceneRadiance = np.float64(sceneRadiance)
sceneRadiance = sceneRadiance * S_x
sceneRadiance = np.clip(sceneRadiance, 0, 255)
sceneRadiance = np.uint8(sceneRadiance)
return sceneRadiance | [
"adhikariashray@gmail.com"
] | adhikariashray@gmail.com |
e2f0e0a455998b82bca1374c4223cf64db8934f9 | d6f838ee136c309d9e7e38af4f4611f9bd74506a | /HLXweb/HLXweb/wsgi.py | 58ce99b2e8e96f2e00473336123a3dac26ab23f5 | [] | no_license | libowen594/HLXweb | 10b86e093699af421f9a1a359813d7bded66cdef | b5d4a7536c76afa82f5cca681a72cffdc4a9da11 | refs/heads/master | 2023-05-10T04:36:28.508766 | 2021-06-01T10:15:55 | 2021-06-01T10:15:55 | 372,462,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for HLXweb 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"823443971@qq.com"
] | 823443971@qq.com |
a5c453f75d7903ec9ef3bcb609a794a51d4b58e7 | 8e5899d1f9848052d5069c9e3332ceff519addc1 | /assignment9_GitHub.py | cd6493cb6a109e7c2769f0893f70b5d5551b1e26 | [] | no_license | acastillosanchez/Foothill-CS3A-Python | daa6345c062702761d93ecec6aad6ed1f957d832 | 5a061e5f92dbd7132f62ba987090c3bfad7c8c17 | refs/heads/master | 2020-12-26T23:59:06.540773 | 2020-07-12T06:06:40 | 2020-07-12T06:06:40 | 237,697,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,225 | py | """
03/29/2020
This is an object oriented program, with instance variables, and class variables. The class has five methods. The program
has a defined class where one object of the class represents one playing card. The program executes code and test a reusable
class. This program calculates a comment for the PlayingC... | [
"noreply@github.com"
] | noreply@github.com |
1ed10f6431b4d45c26bf93bb63433f98dbc18d1a | e6304b9e9989bc54f66896b371f63eac41cc1405 | /06 while/8.py | e42fb036a0801d19ea68f423468cb4125b048fca | [] | no_license | Bytamine/ff-olymp | ece2f8f28a44c16f379c8e1b7ea3cacc65fbb032 | 3b3ffbf602f1099f1a2e9f817a094d3e98863f61 | refs/heads/master | 2022-09-27T12:25:56.835132 | 2020-06-03T17:33:49 | 2020-06-03T17:33:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | #!/usr/bin/env python3
a = int(input())
ans = ''
while a > 0:
ans += str(a % 2)
a //= 2
print(ans)
| [
"andrey.romanchev@gmail.com"
] | andrey.romanchev@gmail.com |
29184f2a570de834d3f16d17d083f7b5cf8776a2 | e4e9ab21f5388f11ddf6b212641cb71558b667fa | /Python_abandoned/ATM/atm/log/transactions.py | 300ef7000d6eed7b81edfebb0f820292a56b5ed8 | [] | no_license | Julian0912/UnclassifiedCodes | c800f78edc66232c839ed9d11f217be190957dfe | 431f11466ea4b18f1b58af11075d0ce9f148d0be | refs/heads/master | 2020-08-01T01:38:45.044601 | 2019-09-25T10:53:00 | 2019-09-25T10:53:00 | 210,815,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | # 所有的交易日志
| [
"noreply@github.com"
] | noreply@github.com |
34b38243a9ae7891641d3cd4728e68f73bc8e20e | 9c081a0d2b1c92ac6236cbe838ee7c8b7ca7de83 | /old phython/week3.py | 03f69516387d1a96383d5c08ce1632798ef18014 | [] | no_license | poondang11/python | a9dd915e1ddc1c6a2d9221d4be41915167608aca | edd27c3f4d2a7c6d6e0a55898bd88a63a50205a1 | refs/heads/master | 2023-03-03T01:57:06.354298 | 2021-02-15T20:30:48 | 2021-02-15T20:30:48 | 336,190,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | print("choose your menu")
print("#"*25)
print("choose 1 for rent ")
print("choose 2 for pay extra")
C=int(input("choose:"))
if C==1:
M=int(input("meter?:"))
if M <= 25:
print("you pay 25 bath")
elif M > 25:
print("your pay 55 bath")
if C==2:
M=int(input("meter?:"))
if M <= 25:
... | [
"chadchalidh.i@kkumail.com"
] | chadchalidh.i@kkumail.com |
7f596800443d9b6d3a72fd9bd51dc26aaf39c935 | c478214b7be319d7c16ecf6576b1b2e43cb880b7 | /function/6.py | 9c68c0a15f7ab38f0de27043b7e04cfea5d498de | [] | no_license | EricSeokgon/PythonTutorial | f80ec03c655026f437b2cbd34e43b114ebb1c96d | 3aed0e6dc55cbcf4be70e981a8f2d538a8ecc5dd | refs/heads/master | 2021-05-30T11:47:15.858760 | 2016-01-29T18:10:36 | 2016-01-29T18:10:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | __author__ = 'sklee'
def a3():
print('aaa')
a3() | [
"leesk55@gmail.com"
] | leesk55@gmail.com |
918149151da12b2023074e43ea5a65a32eb097d2 | 66bdfe2b9305beaa72dc22d4a1c49810573eec7a | /tasks/migrations/0001_initial.py | 2a45bdaf98641a5af2c685e64328ce89d1e11653 | [] | no_license | MarioAP/todo | bd17baee1b05001622cfabd3a847c8cf0a9c195c | cdf8002d3feaf13a670c2ae70731875f4e64b33b | refs/heads/main | 2023-04-11T02:51:37.398764 | 2021-04-16T13:50:06 | 2021-04-16T13:50:06 | 326,134,053 | 0 | 0 | null | 2021-04-16T13:50:07 | 2021-01-02T07:44:00 | JavaScript | UTF-8 | Python | false | false | 932 | py | # Generated by Django 3.1.6 on 2021-04-15 17:45
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"mario@catalpa.io"
] | mario@catalpa.io |
20cf1f986e3b744e88dd5b2341ce4a3614507d1d | 8c15bb9d8a25a3fb649a1e1469b67f81a012db1b | /Python/Classificação/emergencia_classificacao_agosto_refit_triagem_pos_defesa.py | 9c03ef0507bbb6f66730c80bb4962670022ea682 | [] | no_license | mscesar/MestradoPPGESP | 4016e17ab28e277837073dbbbc04c7a0e005727c | c2f9438fbd95ccc88d90ed3f89c35bdc4226c6cd | refs/heads/master | 2022-12-01T13:53:57.906246 | 2020-08-09T13:15:06 | 2020-08-09T13:15:06 | 203,414,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,617 | py | #Setup da Pasta de Trabalho
import os
os.chdir('C:/Users/Mauricio/Dropbox/MauricioPessoal/Pós-Graduação/PPGESP/Projeto Final/Estudo Python/Bases Cárdio Pulmonar')
import warnings
warnings.filterwarnings("ignore")
#ETAPA 03: PREDIÇÃO
Y_agosto_19_triagem_refit_pred_lgbm = classifier_lgbm.predict(X_agosto_19_triagem)
... | [
"mscesar@gmail.com"
] | mscesar@gmail.com |
a7645c3e43208ea02dc67ed2a2e51264842cfefa | 2c058166c78b68136ad654d13983ada45fddf7bf | /ask2.py | 77734bca1a6978987bbacf6d8e221dbf8b7b1264 | [] | no_license | Ekotoumpas/thymios111 | daad340e1f7e8a7e6a5037c4ae129fb2b15b6665 | 43d905820c7b8e02373f1a089a15a75a28cd26c4 | refs/heads/master | 2022-05-24T15:09:19.337546 | 2017-02-13T21:47:49 | 2017-02-13T21:47:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | import sys
a = raw_input("Give the sentence: \n")
left = 0
right = 0
canClose = 0
for i in range (len(a)):
if a[i]=='(':
left+=1
canClose+=1
elif a[i]==')':
right+=1
canClose-=1
else:
continue
if canClose < 0:
print "false"
sys.exit()
if left == right:
print "true"
else:
print "false" | [
"thymiosk@hotmail.com"
] | thymiosk@hotmail.com |
a10c8be9d095b06793736a72cd962847dd4a8f66 | dfbf10b5b6f926cebfd99966a0264da4393dd23d | /manage.py | 799aace990df45c9ba0aa442712692485c032f83 | [] | no_license | codesandcocoa/Personally | 07f159f7a0854640d3761cf79d0d91b5b47114fb | 10d7ed9ec768e8f9f475598ba6ec815002c8cbc0 | refs/heads/master | 2023-04-16T18:15:29.678222 | 2021-03-11T15:26:38 | 2021-03-11T15:26:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | 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', 'personally.settings')
try:
from django.core.management import execute_from_command_line
except I... | [
"sanjayipscoc@gmail.com"
] | sanjayipscoc@gmail.com |
871561865e03698797d42883bb07cf251563f87b | 34f67be447984f43f568a07ba70fe4a36c1933b9 | /main.py | 5965e94f90a037b6098b7d3e83bad2c00aa128c4 | [] | no_license | chrisonntag/hfs-rhino-backend | f9ca9cf1e5cdc8b1f61df61cdc63950afdecca64 | 3c9ea5ce395681a12943670c7ab393d4b405f2ac | refs/heads/master | 2021-06-29T03:43:42.442515 | 2017-09-17T03:20:59 | 2017-09-17T03:20:59 | 103,707,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | import sys
import traceback
from flask import Flask, request, jsonify
from controllers.theweathercompany import WeatherRegion
from controllers.knowledge import KnowledgeBase
app = Flask(__name__)
version = 'v1.0'
project_name = 'rhino'
pre = '/%s' % project_name
@app.route('/')
def index():
return jsonify({'mess... | [
"sonntagc@fim.uni-passau.de"
] | sonntagc@fim.uni-passau.de |
6292454bd0fecb3d1309be938164502edb41d800 | 9270ae4af402e7286fc09c456c67aa92996c6af5 | /NOC_06_03_StayWithinWalls/NOC_06_03_StayWithinWalls.pyde | 7b98482193607af2fe8920af698abc04bb3d11ff | [] | no_license | cin-ufpe-in1116-2020-1/nature-of-code-agents | 43230cb14ef8b152ecafda8d1123e78835e4ce7f | 9ad69de4ceebfe6d25a4f66bf0b168db9504f2e3 | refs/heads/master | 2022-11-07T05:42:12.535823 | 2020-06-23T12:35:32 | 2020-06-23T12:35:32 | 274,237,610 | 0 | 5 | null | null | null | null | UTF-8 | Python | false | false | 543 | pyde | # The Nature of Code
# Daniel Shiffman
# http://natureofcode.com
# Stay Within Walls
# "Made-up" Steering behavior to stay within walls
from vehicle import Vehicle
debug = True
d = 25
def setup():
global v
size(640, 360)
v = Vehicle(width / 2, height / 2)
def draw():
background(255)
if debug:... | [
"filipe.calegario@gmail.com"
] | filipe.calegario@gmail.com |
8a3240dd4912d714f1b093941c011621f9e39570 | 1ee3dc4fa096d12e409af3a298ba01f5558c62b5 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/statistics/statistics.py | dc0d25842e6752902a80cfea75ca7c0ec4747a1a | [
"MIT"
] | permissive | parthpower/ixnetwork_restpy | 321e64a87be0a4d990276d26f43aca9cf4d43cc9 | 73fa29796a5178c707ee4e21d90ff4dad31cc1ed | refs/heads/master | 2020-07-04T13:34:42.162458 | 2019-08-13T20:33:17 | 2019-08-13T20:33:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,933 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
49ddd274a9c8562c1cb9e1fedb9abbbc9ea96f2f | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp190_1000.py | 7fa715a9823977e00b8a404e111fa2054431a5e0 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,714 | py | ITEM: TIMESTEP
1000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-1.6496218340970648e+02 2.1216218340975081e+02
-1.6496218340970648e+02 2.1216218340975081e+02
-1.6496218340970648e+02 2.1216218340975081e+02
ITEM: ATOMS id type xs ys zs
1671 1 0.804029 0.0718461 0.000845276
868 1 0.414143 0.0913991 0.00812121
131... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
c7f922357b318a315051c6829e6e8fbadac86869 | d4a9b072f9c12f52ccf9d90c0a1546b86c0ab740 | /env/bin/jupyter-trust | 6fcc086f94d79d00b3f8d316954ae6da0ec838cf | [] | no_license | andreeamonu/FSND | 198596082336603c225e871dbbdcf9c61b94af16 | 0e2db9ce2f32086cac4889205a19ed50511c09c1 | refs/heads/master | 2023-03-27T16:32:23.297210 | 2021-03-26T17:58:21 | 2021-03-26T17:58:21 | 350,149,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | #!/Users/andreeamonu/dev/code/udacity-nanodegree/FSND/projects/04_casting/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from nbformat.sign import TrustNotebookApp
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(TrustNotebookApp.launch_instance(... | [
"arctic.sensation@yahoo.com"
] | arctic.sensation@yahoo.com | |
2b9b40f66db0109751d1524878bc6dcfae93bb05 | 48294a0ce3ce31b57cd341f0bc88f949b12c3980 | /func/Beam.py | 278aefda1590d42c017c2eff65ad6b3d648ed5ae | [
"MIT"
] | permissive | WERimagin/torch_QuestionGeneration | 0189f1970e16a433e0332febd82a2bdfe422b405 | cb23d3c720b043c14e6458227007c61c52784731 | refs/heads/master | 2020-04-07T19:32:30.905899 | 2019-03-21T06:54:54 | 2019-03-21T06:54:54 | 158,652,741 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,276 | py | """Beam search implementation in PyTorch."""
#
#
# hyp1#-hyp1---hyp1 -hyp1
# \ /
# hyp2 \-hyp2 /-hyp2#hyp2
# / \
# hyp3#-hyp3---hyp3 -hyp3
# ========================
#
# Takes care of beams, back pointers, and scores.
# Code... | [
"werimagin@gmail.com"
] | werimagin@gmail.com |
45795a8a0db8c32e24ceaf9de8e09eb4046a524d | 5238b5257c95aa4293760c935b28084e6874f531 | /geeksrus/analytics/wordcloud.py | 6f5cf9178ef436a0e68c0f600a2346335cf63b2d | [
"MIT"
] | permissive | mayur-khatri/droidcon-twitter-analytics | 3935ad04716fb0b114f135da4b12b6ae346d1ec2 | c8f734dc7c18e7f980dc26daf19c7071a6e09d39 | refs/heads/master | 2021-01-21T09:53:47.220067 | 2016-11-13T04:13:41 | 2016-11-13T04:13:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,714 | py | from datetime import datetime
import traceback
import re
from operator import itemgetter
import pandas as pd
import nltk
from nltk.corpus import stopwords
from geeksrus import LOGGER
from geeksrus.utils.dbconn import read_mongo, write_mongo, read_mongo_projection, find_and_sort_desc
from geeksrus import dbcon
from ge... | [
"nischal.hp@gmail.com"
] | nischal.hp@gmail.com |
56d88d349b0421885907877c1c6c9c6a282bc076 | 71f78e1471d0cbbf487a044fd5b3821f43c2176e | /rango/migrations/0002_auto_20180811_1409.py | 84908da5df3f08dfc5889325e6357be8911f18ae | [] | no_license | icaka98/rango_project | a6cad120d030be42fe81d9353b2974800062b97d | d394c724e6c527ac2318671b6bd92f68c9ca0cde | refs/heads/master | 2020-03-26T00:40:31.823059 | 2018-09-13T17:02:17 | 2018-09-13T17:02:17 | 144,331,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # Generated by Django 2.0.7 on 2018-08-11 11:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rango', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='category',
options={'verbose_name_plur... | [
"minkov.h@gmail.com"
] | minkov.h@gmail.com |
7cd000559400fe32194070d58464cca0aa9ce297 | bdc0b8809d52933c10f8eb77442bd0b4453f28f9 | /build/nav_msgs/rosidl_generator_py/nav_msgs/msg/_map_meta_data.py | df3dc46c9436798500483901a5ad8cffd380adde | [] | no_license | ClaytonCalabrese/BuiltRos2Eloquent | 967f688bbca746097016dbd34563716bd98379e3 | 76bca564bfd73ef73485e5c7c48274889032e408 | refs/heads/master | 2021-03-27T22:42:12.976367 | 2020-03-17T14:24:07 | 2020-03-17T14:24:07 | 247,810,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,517 | py | # generated from rosidl_generator_py/resource/_idl.py.em
# with input from nav_msgs:msg/MapMetaData.idl
# generated code does not contain a copyright notice
# Import statements for member types
import rosidl_parser.definition # noqa: E402, I100
class Metaclass_MapMetaData(type):
"""Metaclass of message 'MapMe... | [
"calabreseclayton@gmail.com"
] | calabreseclayton@gmail.com |
6fbbb1d32a1ecd4c1c62ab9f8a17f1c71e317c4f | 604bd2c5d0f74cd9db4f36a574ae0071a4aecf99 | /packaging/fts-repo-manager.py | 95ff905486f549bebabfff19f3a74120b80093a5 | [
"Apache-2.0"
] | permissive | cern-fts/fts3 | 9030359d79c0e2aa49ff48c2ef8e75dc555bf7ca | 775908e6b52a9ae000b2e7524b66dbd173a83162 | refs/heads/master | 2023-08-17T11:35:44.150225 | 2023-08-14T13:42:21 | 2023-08-14T13:43:05 | 138,748,767 | 16 | 7 | null | null | null | null | UTF-8 | Python | false | false | 7,356 | py | #!/usr/bin/env python3
# Author: Georgios Bitzes <georgios.bitzes@cern.ch>
import argparse
import errno
import os
import re
import shutil
import subprocess
import sys
DRY_RUN = False
NO_CREATE_REPO = False
def sh(cmd):
# poor man's subprocess.check_output, not supported on SL6
process = subprocess.Popen(cmd,... | [
"mihai.patrascoiu@cern.ch"
] | mihai.patrascoiu@cern.ch |
7825a08c2d72f9da47c98ed286c99094866e50c2 | b0063a9af07e807905b10ed6401a21d69fae86c6 | /20200307PAF/model/model_provider.py | 04a808b1de0e3554b2513a8680cccf319f9e93ef | [
"MIT"
] | permissive | JohnnyHopp/Pose-Estimation-Part-Affinity-Field-Mobilenetv2- | 4144948621346d94ddc3f87d2fde9f70b1f62f6e | c636b007e5424b77ec671ebad624ede1e1e69522 | refs/heads/master | 2022-04-08T10:26:52.095022 | 2020-03-08T13:44:22 | 2020-03-08T13:44:22 | 245,789,974 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | from .vgg import VGG
from .mobilenet import MobileNet
from .paf_model import PAFModel
import torch.nn as nn
import torch
def parse_criterion(criterion):
if criterion == 'l1':
return nn.L1Loss(size_average = False)
elif criterion == 'mse':
return nn.MSELoss(size_average = False)
else:
... | [
"40733001+JohnnyHopp@users.noreply.github.com"
] | 40733001+JohnnyHopp@users.noreply.github.com |
fe464ac5b360f982dd7e65eb0bbded553f4417b3 | 674a48ab817fb841417d72de7197a84b2d2b71b7 | /wav_mixed/wavelet_composite_no_overlap_parallax_dominant.py | 935c279e67758e93f07bf6484059e2f43710e447 | [] | no_license | cornkle/proj_CEH | 0d1556bbb5992e663257841ada333f32e6da3e22 | 790ad1aa7e7a8c6593a21ee53b2c946b2f7a356b | refs/heads/master | 2023-09-01T01:26:58.669089 | 2023-08-23T14:22:47 | 2023-08-23T14:22:47 | 55,054,763 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,560 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 10:15:40 2016
@author: cornkle
"""
import numpy as np
import xarray as xr
from wavelet import util
from utils import u_arrays as ua
from scipy import ndimage
import matplotlib.pyplot as plt
import matplotlib
from eod import tm_utils
import matplotlib as mpl
import mul... | [
"cornelia.klein@gmx.de"
] | cornelia.klein@gmx.de |
0d5062f7149f38e1368622127bb70520e9bed024 | 39504012208f5c79dddad2f92066c87747088a30 | /analyzer.py | 679e8b92a3b08f9e1b162b7cfc0acb0b684546d3 | [] | no_license | asiakaczmar/Gopher | f7879a78c0ceeece9fdcf3abfb2ca71dce4cc00f | a1397b64eb9985346817828755ec4db71a0d9acb | refs/heads/master | 2020-05-20T12:42:29.825772 | 2012-11-22T01:22:46 | 2012-11-22T01:22:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,636 | py | import pickle
import logging
import networkx as nx
import matplotlib.pyplot as plt
from downloader import TweeUser
import settings
logging.basicConfig(level=logging.DEBUG)
logger = logging
def load_user(id):
with open(settings.BASIC_PATH + 'user' + str(id) + '.txt', 'r') as f:
return pickle.load(f)
de... | [
"asia.kaczmar@gmail.com"
] | asia.kaczmar@gmail.com |
8cf6fd89ee600098c8692b913af978be39e9889e | da9a5b53d41474dfc588e7b8a14e0192e81bdb47 | /GUI Programming with Python and Kivy BOOK/slugrace107/accident.py | 5dc107fe1f66fade5a6c85d846a0a1bddf0a81bc | [] | no_license | prospero-apps/python | 1c0bdded512c8e73360511118f7ba643772af774 | 67719d8c25f6f13f21ba0c260aadf43beb8de99d | refs/heads/master | 2021-11-28T16:22:55.108106 | 2021-11-17T22:13:24 | 2021-11-17T22:13:24 | 173,511,053 | 5 | 8 | null | null | null | null | UTF-8 | Python | false | false | 10,139 | py | # File name: accident.py
from abc import ABC, abstractmethod
from kivy.core.audio import SoundLoader
class Accident(ABC):
intro = 'BREAKING NEWS: '
def __init__(self, name,
headlines,
sound,
position = 0,
slug = None,
... | [
"noreply@github.com"
] | noreply@github.com |
075ab43e3a0a41cba1a3ddc5516d4f2be053423a | bb2120075f05463160e7ad9a3986f18848733563 | /tests/test_vec2d.py | aabcdfc7d592e0bd89fc791e9d20daec1d79e802 | [
"MIT"
] | permissive | pablodiegoss/pytaon | b443d6a86773c691383aa607b7b1497bcfa7bc3b | 0c5def531249331871197377338471521cf8de2c | refs/heads/master | 2022-12-31T10:51:13.762691 | 2020-10-07T18:09:24 | 2020-10-07T18:09:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,504 | py | """
Módulo de testes para a classe Vec2d.
Utiliza os vetores u = <3,4>, v = <1,1>, ii=<1,0> e jj=<0,1> definidos em conftest.
"""
import pytest
import random
from math import pi, sqrt
from pytaon import Vec2d
def similar(x, y, tol=1e-6):
return abs(x - y) <= tol
class TestVec2d:
def test_angle(self, u, v)... | [
"fabiomacedomendes@gmail.com"
] | fabiomacedomendes@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.