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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
219b1c4a3c79fe2ac43fe7d4043507bcca9d6cbb | 9754b781d751c63dfa5358ad14c91cb82f450acd | /bentoml/server/open_api.py | eed555bd9322d91f10679562f954145b091c917b | [
"Apache-2.0"
] | permissive | iancoffey/BentoML | d91f6116797c65a5eb735b2fa8edc8257e5a2e20 | 13cbd0ab7ab8d3b51da251264cc3ae0aab8f2d72 | refs/heads/master | 2023-01-07T20:06:41.994863 | 2020-06-16T15:12:08 | 2020-06-16T15:12:08 | 272,819,054 | 0 | 0 | Apache-2.0 | 2020-06-16T21:49:26 | 2020-06-16T21:49:25 | null | UTF-8 | Python | false | false | 2,896 | py | # Copyright 2019 Atalaya Tech, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | iancoffey.noreply@github.com |
748c75b040df983ab508d2ae5d65dc6daf4fbe25 | 48269b11620cc2d39e466f70a906d0db86687bdd | /docs/exts/docs_build/fetch_inventories.py | e9da26442bd5458cdb9d8210a8d8979361e99052 | [
"Apache-2.0",
"BSD-3-Clause",
"Python-2.0",
"MIT"
] | permissive | spkjess/airflow | 505a2511e1fe99fdffa3455e912655cfdbcc8ace | 1efb17b7aa404013cd490ba3dad4f7d2a70d4cb2 | refs/heads/main | 2023-04-01T16:07:36.959821 | 2021-03-15T20:42:36 | 2021-03-15T20:42:36 | 359,291,601 | 1 | 0 | Apache-2.0 | 2021-04-19T01:18:45 | 2021-04-19T01:18:44 | null | UTF-8 | Python | false | false | 3,840 | 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"
] | spkjess.noreply@github.com |
ea52ceb8295baeb2c4c315b6c127e89d6e0b1584 | c4114eca345fa2c650c9069efc3648ac1c090d05 | /app/models.py | f5233bf6e3fe0c254793724d1079c793217b4629 | [
"MIT"
] | permissive | eruiz67/django-adminlte | b57007fdca75c4594881a1846cd856363389847d | ed8cbaa219bf3754d4413f1e629445c28b714f69 | refs/heads/master | 2023-06-26T01:42:04.148117 | 2021-07-25T22:32:14 | 2021-07-25T22:32:14 | 389,435,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,354 | py | #from typing_extensions import Required
from django.db import models
from django.contrib.auth.models import User
from django.conf import settings
from django.db.models.fields.related import ManyToManyField
from django.utils.translation import gettext_lazy as _
from django.utils.timezone import now
from django.core.vali... | [
"ernesto930526@gmail.com"
] | ernesto930526@gmail.com |
1a84703126717aa7ed485aec20504c8540c4f3fb | 1b41f589d7b594c805a02e480a073055683170d2 | /models/tridentnet/resnet_v2.py | 31d8889c12279c4e855a7647b8c13f4dbfcce7b2 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | KaihuaTang/simpledet | d8278cba93a9e737c08ae824b312c63de84ae2a0 | 87b881ec0855445977aabe0e571c006c59a05a60 | refs/heads/master | 2020-05-18T17:26:01.855916 | 2019-05-03T12:40:26 | 2019-05-03T12:40:26 | 184,555,756 | 0 | 0 | Apache-2.0 | 2019-05-02T09:40:12 | 2019-05-02T09:40:11 | null | UTF-8 | Python | false | false | 12,495 | py | from __future__ import print_function
import mxnet as mx
import mxnext as X
from mxnext.backbone.resnet_v2 import Builder
bn_count = [10000]
class TridentResNetV2Builder(Builder):
def __init__(self):
super(TridentResNetV2Builder, self).__init__()
@staticmethod
def bn_shared(data, name, normaliz... | [
"chenyuntao08@gmail.com"
] | chenyuntao08@gmail.com |
bfbd99cadf44f02a58515815d840f07f151da9c5 | e62133933fab8fe15af62280e1a63aed571fb518 | /elementary/python/ej8.py | 270c9cc766c1c48178ca89d31001a93cc52cb0ce | [
"MIT"
] | permissive | keyduq/programming-practices | 95a37087cc563f98090818b42ca9bf18b4ee6941 | 56b99db86d74d441c4c88cd313844e4e39c86872 | refs/heads/master | 2021-01-17T20:53:16.409770 | 2016-08-14T05:32:00 | 2016-08-14T05:32:00 | 65,651,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | print("""\
Write a program that prints all prime numbers.
(Note: if your programming language does not support arbitrary size numbers, printing all primes up to the largest number you can easily represent is fine too.)
Created By Keyvin Duque <thkeyduq@gmail.com>
""")
n = int(input('Ingrese la cantidad de numeros pri... | [
"thkeyduq@gmail.com"
] | thkeyduq@gmail.com |
fbd3495eb1889511b26d78ebe8fb5d8f63fa8a5a | 5e11cbf593a9793359e1ca4f8e4a18af38e32738 | /backend/mobilech_dev_14269/wsgi.py | 15db35e2d85f5f7d4d97682b4b31b7671c76cc1e | [] | no_license | crowdbotics-apps/mobilech-dev-14269 | 6c76edca03e7d48c428d081afc055a9cba358d04 | 50752c0b633d7077ced903c9caccd2aec2f04520 | refs/heads/master | 2023-01-01T15:59:38.895266 | 2020-10-30T17:51:48 | 2020-10-30T17:51:48 | 308,691,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for mobilech_dev_14269 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('D... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3abae9787cb41ba76f77728eeaea9b1d2c1e33dc | 70de6e336682acb00b8d8115590eaf1b21a70df6 | /python/evenorodd.py | d5ece6a1d97350f8b4d6e8a0abe2e1d729408585 | [] | no_license | deepthi93k/icta-calicut-fullstack | 1bd42fba0803ef4e173ad1278ac9f50da8bd708d | 8e5e5e4f69ff51ab49ab7ccc391f160661adac41 | refs/heads/master | 2020-04-05T03:04:23.194393 | 2018-11-13T11:14:17 | 2018-11-13T11:14:17 | 156,500,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | num=int(input("enter a number"))
if(num%2==0):
print(num,"number is even")
else:
print(num,"number is odd") | [
"noreply@github.com"
] | deepthi93k.noreply@github.com |
da3ae45886b2907ae82b1cfa4a5950a21bdd6b21 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_25090.py | f38847da08bed8417de659027272d8e0da3b17e8 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | # Django and postgres: Not connecting
postgresql.conf
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
51dd1aa02b840a5de1eae0dced48d9f62fdd6f11 | c0a30d0b75f1b09c52b57e696c3b9d1e30c9ebaa | /KPIactivityCus.py | 79bfa1e78e7a451bd9acbaa45d5b8553d5c18c7c | [] | no_license | mbmarcin/other | bfe37116ee415be34f4a52b77f3f492f86f4ae57 | 3db4f77b252d26186c3cb838342f4fa61aa5ed5d | refs/heads/master | 2020-11-27T22:25:22.441027 | 2019-12-22T20:35:06 | 2019-12-22T20:35:06 | 229,627,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,151 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 2 11:49:07 2019
@author: aspr323
"""
import pandas as pd
file = "tableInput.txt"
def getData(nameFile):
"""idCus dateSales"""
dataSet = pd.read_csv(nameFile, sep=';', low_memory=False, dtype={"idCus":'str'})
return dataSet
mainFrame = ... | [
"noreply@github.com"
] | mbmarcin.noreply@github.com |
15801ee24f13903766a377d675ec340fd3a7fc8f | 706a2b167febb7b453aa540e7eaba07536fbe7ec | /venv/bin/pip | 1bebb9435e9b1aef0b9a064f0110e72744ab1a95 | [] | no_license | rmclean98/GroceryGoat | 2397b10f3752f5ee675cd3cc4f396d6481d747c4 | acb5c7c1143b4897466a887457d07fdc1cf0149a | refs/heads/main | 2023-07-07T09:31:46.959175 | 2021-08-03T19:29:04 | 2021-08-03T19:29:04 | 353,079,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/home/rmclean98/Documents/GroceryGoat/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ryan@mcleandigital.com"
] | ryan@mcleandigital.com | |
14e95b30fef502d2d37a1c6b893748e10fd62be7 | c361a25acecd016677bbd0c6d9fc56de79cf03ed | /PTM/CassandraHost.py | ab3d48ce871b5a763384f888edaa60579991175f | [] | no_license | danielmellado/zephyr | f8931633045959e7e9a974de8b700a287a1ae94e | dc6f85b78b50e599504966154b927fe198d7402d | refs/heads/master | 2021-01-12T22:31:24.479814 | 2015-10-14T05:39:04 | 2015-10-14T06:24:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,469 | py | __author__ = 'micucci'
# Copyright 2015 Midokura SARL
#
# 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 ... | [
"micucci@midokura.com"
] | micucci@midokura.com |
503d33f8240c23a69126ea4072031c1de03cd986 | 32827a6d5a4fcfc7607f4edad5d7b7a9ae676989 | /main.py | e96f2cd9d27114579fb00358454a7af9044b7e62 | [] | no_license | todayfirst/pv_prediction | 9e9d32457a5f800f0a1c8af1626e72cb09919569 | 6107ce6c839409cc92e35dbed955937b004fd639 | refs/heads/master | 2021-01-07T17:39:27.084930 | 2020-02-20T08:16:39 | 2020-02-20T08:16:39 | 241,770,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,620 | py | # -*- coding: utf-8 -*-
import os
import config
from part import make_blank
from part import import_data
from part import import_coms
from part import make_multitemporal_data
from part import make_multitemporal_coms
from part import erase_skip_and_time
from part import erase_coms
from part import min_max_0to1... | [
"todayfirst@snu.ac.kr"
] | todayfirst@snu.ac.kr |
674ad278b8389b1ced92bde0524545521cefaa48 | c0c7656a638abe35811bb62f86b3698a0772396f | /manage.py | 63ba1ce9cad2bf67a00e2df75de16bd581dced19 | [] | no_license | RoksolanaD/my-first-blog | 641e38aeb8e9895f207a88c1d344da7f62a4ec82 | 8f4e7520165abe061e47466569fdf8d50cb223b3 | refs/heads/master | 2020-12-24T21:00:29.558958 | 2016-04-30T22:48:42 | 2016-04-30T22:48:42 | 56,911,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pinguiblog.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"rdesyatnyk@gmail.com"
] | rdesyatnyk@gmail.com |
8a827fa5eee6c58cb752bbec439cf755e712d491 | fc90124d5c44cc5fefb200ecb762110976e747d8 | /Portfolio Construction & VaR Backtesting/main.py | 4fb0a6a5241e3fd8e86550975b941b4811c6472c | [] | no_license | brooksgod/CQF | a162605b238474e212c57d54fe6500d9ba412344 | 031e165de52fa42875cdbb0f8d736cf761899f25 | refs/heads/master | 2023-07-16T05:51:30.855764 | 2021-05-22T12:18:41 | 2021-05-22T12:18:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,349 | py | import Portfolio, RiskMeasures
from helpers import *
import os
import pandas as pd
import numpy as np
import datetime as dt
import matplotlib.pyplot as plt
plt.style.use('ggplot')
os.makedirs('Results/', exist_ok=True)
# Q1/Q2 Data
mu = np.array([0.02, 0.07, 0.15, 0.20])
sigma = np.array([0.05, 0.12, 0.17, 0.25])
... | [
"samuel.forster@cantab.net"
] | samuel.forster@cantab.net |
d69722adf3f19c7b6fd6eb8bed4b49be91b7ff34 | 4d3100a82f778c0fbc4d2b400196bb240c094fd2 | /citeulike/spiders/user.py | 4db736466be4b2df25140387b1f9c6d828ddbd73 | [] | no_license | ziaoang/citeulike | 1ae004bd9985bccbd5c111bd530d3b4880bddf14 | 87f3035e23ee36cd8e0c4d347d198cef1cd49efd | refs/heads/master | 2021-01-21T06:59:23.252846 | 2017-02-27T10:53:39 | 2017-02-27T10:53:39 | 83,300,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.http import Request
from collections import defaultdict
class UserSpider(scrapy.Spider):
name = "user"
start_urls = []
max_level = 3
user_ids = set()
user_papers = defaultdict(set)
def __init__(self):
for line in open('data/user_root.t... | [
"ziaoang@gmail.com"
] | ziaoang@gmail.com |
78ebb71e9354b081c36b8ba559d6be8edc3adca6 | c36d16a1bcdc9b529a43b27c67c73a9a02bcb824 | /PVC-tester-3.5.py | 7eaf6842fa28e66db7967330c8f39dddb401c7e8 | [
"MIT"
] | permissive | groovytron/tsp | 033f0adb958b5a12a70d54715066a273e12d5f3b | 9498d3e4a89a7fadeddc267116bd0a4b6eb1af15 | refs/heads/master | 2020-06-12T04:11:16.912668 | 2017-01-15T20:25:57 | 2017-01-15T20:25:57 | 75,606,959 | 1 | 0 | null | 2017-01-15T20:26:07 | 2016-12-05T09:01:23 | Python | ISO-8859-1 | Python | false | false | 4,516 | py | # coding: latin-1
''' Module permettant de tester systématiquement une série de solveurs
pour le problème du voyageur de commerce.
Permet de lancer automatiquement une série de solveurs sur une série de problèmes
et génère une grille de résultats au format CSV.
v0.2, Matthieu Amiguet, HE-Arc
v0.3, hatem Ghorbel, HE... | [
"joaquim.perez@he-arc.ch"
] | joaquim.perez@he-arc.ch |
761252bd30193498dcf9bcf5795732eb9495d84a | 08aec07b5db889e586a56e36efea31c21c5695f2 | /day006/ex45.py | a41816142a84e473b30dc6e134437aa140bbef9b | [] | no_license | nileshnegi/hackerrank-python | 7bb19929d2b963f02b37259c06b893c6520f33dc | 0d2ab9ee40156e81b568ab4d5a6d5cd4f6ca7385 | refs/heads/master | 2023-01-07T07:20:44.859336 | 2020-11-11T14:30:21 | 2020-11-11T14:30:21 | 279,877,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | """
The Captain's Room
Mr. Anant Asankhya is the manager at the INFINITE hotel.
The hotel has an infinite amount of rooms.
One fine day, a finite number of tourists come to stay at the hotel.
The tourists consist of:
→ A Captain.
→ An unknown group of families consisting of ```K``` members per group
The Captain has a... | [
"nilesh_negi@yahoo.co.in"
] | nilesh_negi@yahoo.co.in |
cc8f664cee314b4175de6b85a3ffebc73361d0cf | 4f51aa8e60ca340e6c5a5832438e7d7c9eee8fb5 | /wrapi/endpoints/account.py | 230ed3fde30794f2f9b403cf8de958c963f06ae3 | [
"MIT"
] | permissive | junqed/wrapi | 457e58f3814c5ef6de3cc47c335601e847688da4 | c2b6efab8b7065c7936e0e6f0b806ed2fd00f77d | refs/heads/master | 2023-03-02T02:47:55.794054 | 2021-02-11T08:58:29 | 2021-02-11T08:58:29 | 324,379,318 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | from __future__ import annotations
from typing import Optional, Sequence
from pydantic.fields import Field
from ..api import (
BodyParams,
EndpointData,
WrApiQueryParams,
)
from ..types_.endpoint import BaseEndpoint
from ..types_.inputs import AccountOptionalFields, Metadata
class Account(BaseEndpoint)... | [
"eugene.fominykh@team.wrike.com"
] | eugene.fominykh@team.wrike.com |
17057251ad5e6a6db3b8bbf55d6daf24d7be92ef | 434ec954a1c481f17dbb41d82f814405c2bd1e6e | /__init__.py | 9dcc5b7d4b2f8a9eb1377764f50e3d764a314fc5 | [] | no_license | pytsite/plugin-comments_odm | 83ae106529c68e995ff3f9414ffb8b76d64b9704 | d07906d2c57ff0b750cb580c5f2c0e3867b04ac6 | refs/heads/master | 2022-02-11T21:56:59.371544 | 2019-08-06T00:31:59 | 2019-08-06T00:31:59 | 82,923,156 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | """PytSite ODM Comments Plugin
"""
__author__ = 'Oleksandr Shepetko'
__email__ = 'a@shepetko.com'
__license__ = 'MIT'
from . import _widget as widget
def plugin_load():
"""Hook
"""
from pytsite import events
from plugins import comments, odm
from . import _model, _driver, _eh
# Register ODM ... | [
"a@shepetko.com"
] | a@shepetko.com |
a419f17e8f448960359d04f1206ecd8b48fac4f7 | 88c8dc51713753b7a36dce80ca936b2933575845 | /week07/class_code/w7_creative_task_code_start.py | 8c1fdb2f9546ee089a3f5c20570395591fc0e5fc | [] | no_license | previtus/cci_python | 210e9e4314fb65c2b5542131167a75ece07ad2a9 | ddab2697fc960355ac9e5fac7fc7d462db8b50f4 | refs/heads/master | 2021-05-23T13:25:46.661735 | 2020-01-15T18:11:33 | 2020-01-15T18:11:33 | 253,309,644 | 1 | 0 | null | 2020-04-05T18:57:21 | 2020-04-05T18:57:20 | null | UTF-8 | Python | false | false | 571 | py | infile = open("dracula.txt", "r")
filestring = infile.read()
infile.close()
# in words ==========================================
words = filestring.split()
#for word in words:
# print(word)
# in sentences ==========================================
sentences = filestring.split(".")
# dark magicks!
#import re
#s... | [
"previtus@gmail.com"
] | previtus@gmail.com |
f6914286d5c2dd47ef6130c4c5c30b1b76713a6c | 8df093bb73c491e8d8141864a85afae28b5db45a | /pst/validation_tfidf.py | 478db41c628a82bea823b998a4264e672dfc41dd | [] | no_license | nishthaa/persuasive-style-transfer | 885fb634b187f8fa007298fbe7b3ea4696dc5956 | 998a8001e9858e8723dca6c06de0b276e47b48a7 | refs/heads/master | 2022-12-11T18:07:19.040828 | 2018-07-07T17:20:36 | 2018-07-07T17:20:36 | 132,045,695 | 0 | 0 | null | 2022-12-08T02:13:34 | 2018-05-03T20:24:23 | Python | UTF-8 | Python | false | false | 9,377 | py | import numpy as np
import pandas as pd
import nltk
import re
import os
import codecs
from sklearn import feature_extraction
import mpld3
from sklearn.feature_extraction.text import TfidfVectorizer
from nltk.stem.snowball import SnowballStemmer
from sklearn.metrics.pairwise import cosine_similarity
from sklearn.cluster ... | [
"aditya16217@iiitd.ac.in"
] | aditya16217@iiitd.ac.in |
f9dbea843b41c244816397512fdb08114b940630 | 19e21d108aea71e086444ff7df3c41d297691863 | /rango/migrations/0003_category_slug.py | b9d5d669e2efa0d01089e1bd8db959956f68d7db | [] | no_license | VioletLover/tango_with_django_project | df3bb3e8dadb846270021b43965ea6f9aac19fbd | a8ecbc04b0d72c6958c6bd244e1a98d86d505611 | refs/heads/master | 2021-06-14T09:36:08.540666 | 2017-05-11T15:49:20 | 2017-05-11T15:49:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # Generated by Django 2.0.dev20170318191452 on 2017-05-02 17:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rango', '0002_auto_20170502_1615'),
]
operations = [
migrations.AddField(
model_name='category',
nam... | [
"piaoia@163.com"
] | piaoia@163.com |
daec4324015b87354213497f374e4473de978001 | 3d9c7b91ee6410d60078ed59f36f3f7f597b96b8 | /env/bin/twitter-archiver | 5d22d98167874069c1d78a108b0fd719daa15c4a | [] | no_license | lbriones/SentimentalTweets | 77f387f0175ec90963fbbfa1518206f96302e9a8 | 8d61e800514690cd4ea6fea9b8cb49bad16e5862 | refs/heads/master | 2021-01-10T09:16:30.227495 | 2015-10-21T21:18:39 | 2015-10-21T21:18:39 | 44,298,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | #!/home/lbriones/dev/django/socialab/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from twitter.archiver import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"lbriones.tic@gmail.com"
] | lbriones.tic@gmail.com | |
c5c302080432b8dbb820d4fce47b288f5c518ca9 | c016ed237862591c42fd00b973fced791247be37 | /src/garage/tf/algos/rl2ppo.py | 6526b5c052efcbfb0912dbf1d9965f8d37bd2f62 | [
"MIT"
] | permissive | thanhkaist/garage | 726766a1e6fd465f776c42dc006f331a3b98cbd7 | 1d840df357282a675b8fce839bb0e5f72a8abba9 | refs/heads/master | 2022-11-05T23:40:08.057025 | 2020-06-21T16:59:15 | 2020-06-21T16:59:15 | 274,142,146 | 1 | 0 | MIT | 2020-06-22T13:18:14 | 2020-06-22T13:18:13 | null | UTF-8 | Python | false | false | 5,654 | py | """Proximal Policy Optimization for RL2."""
from garage.tf.algos import RL2
from garage.tf.optimizers import FirstOrderOptimizer
class RL2PPO(RL2):
"""Proximal Policy Optimization specific for RL^2.
See https://arxiv.org/abs/1707.06347 for algorithm reference.
Args:
rl2_max_path_length (int): Ma... | [
"noreply@github.com"
] | thanhkaist.noreply@github.com |
1ca21c5fbe3c345731bc9b168b49f3f7ab94392d | bde6ed092b7b29703737e11c5a5ff90934af3d74 | /hackerrank/data-structures/array/sparse-arrays.py | e092d90c7f10b803449a5336206aab0c80288509 | [] | no_license | takecian/ProgrammingStudyLog | 2ab7ea601e0996b3fa502b81ec141bc3772442b6 | 94485d131c0cc9842f1f4799da2d861dbf09b12a | refs/heads/master | 2023-04-28T16:56:18.943574 | 2023-04-18T06:34:58 | 2023-04-18T06:34:58 | 128,525,713 | 4 | 0 | null | 2022-12-09T06:15:19 | 2018-04-07T12:21:29 | Python | UTF-8 | Python | false | false | 792 | py | # https://www.hackerrank.com/challenges/sparse-arrays/problem
#!/bin/python3
import math
import os
import random
import re
import sys
# Complete the matchingStrings function below.
def matchingStrings(strings, queries):
return [strings.count(query) for query in queries]
if __name__ == '__main__':
fptr = ope... | [
"takecian@gmail.com"
] | takecian@gmail.com |
5639c3dae3a4081d6ebc7dbe8458ef0dd3b62426 | b8297c40b7d9bd262782bbff5f1093d9218180df | /leetCode/06_Remove_Duplicates_from_Sorted_Array.py | 7068136fd4169c840643753ff698920966eb1a4b | [] | no_license | sweetherb100/python | fbb24682cd7098c0bcf85cfd4dc3cce62352e10b | b4ad4d7e1537cc630cfab7110097a2326e3347a3 | refs/heads/master | 2021-01-25T13:58:08.362808 | 2021-01-08T01:58:57 | 2021-01-08T01:58:57 | 88,394,776 | 0 | 1 | null | 2017-04-16T07:19:49 | 2017-04-16T06:08:40 | Python | UTF-8 | Python | false | false | 1,151 | py | '''
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this by modifying the input array 'in-place with O(1)' extra memory.
Example 1:
Given nums = [1,1,2],
Your function should return l... | [
"sweetherb0411@hotmail.com"
] | sweetherb0411@hotmail.com |
b34f356a30af80027d2c29078af6a0f66263e7db | dc8a337ea1d8a285577d33e5cfd4dbbe846ee1a0 | /src/main/scala/MinCostToConnectAllPoints.py | dea7dced11cb113cb91c76a28ba30e756b63194f | [] | no_license | joestalker1/leetcode | 8a5cdda17abd33c3eef859732f75d7bec77a9d0e | ae392ddbc7eb56cb814b9e9715043c98a89a6314 | refs/heads/master | 2023-04-13T22:09:54.407864 | 2023-04-09T19:22:54 | 2023-04-09T19:22:54 | 131,803,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py | class UnionFind:
def __init__(self, n):
self.par = [i for i in range(n)]
self.rank = [0] * n
def find(self, p):
if self.par[p] != p:
self.par[p] = self.find(self.par[p])
return self.par[p]
def union(self, n1, n2):
p1 = self.find(n1)
p2 = self.fin... | [
"denys@dasera.com"
] | denys@dasera.com |
a010ee33b56ae50fc7517776239307ad230c7ab7 | a48b42a2e677357162bffc882008dea44041ea2b | /convex_hull.py | 2f9d0c417a2b031ef9ca95d4e10f8361cbd74bcf | [] | no_license | jackylee1/ml-project | 254548479f973817d8ad69e9fb9b26877486787f | 6bad5ff5201befcce013b6ebb3189a457f679f0c | refs/heads/master | 2020-03-28T18:13:27.550881 | 2013-06-11T14:48:50 | 2013-06-11T14:48:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | #!/usr/bin/python
def cross_product( u, v, w ):
return ( v[ 0 ] - u[ 0 ] ) * ( w[ 1 ] - u[ 1 ] ) - ( v[ 1 ] - u[ 1 ] ) * ( w[ 0 ] - u[ 0 ] )
def monotone_chain( xdata, ydata ):
if len( xdata ) != len( ydata ):
return
points = []
for i in range( len( xdata ) ): points.append( ( xdata[ i ], ydata[ i ] ) )
poi... | [
"sr.vinay@gmail.com"
] | sr.vinay@gmail.com |
0f782922b34c17a3438dc8c3bef2ffb403a6b2d4 | b5dd8d1b798c94731a84c02d98aafb9147200a85 | /sentence_classification/SABaselineSYNTree/data/Dataloader.py | 8cf5123e195ed3ba7bddf8695827662dae8e3f59 | [] | no_license | zhangmeishan/DepSAWR | 1ae348dd04ec5e46bc5a75c8972b4bc4008528fe | 104f44fd962a42fdee9b1a9332997d35e8461ff4 | refs/heads/master | 2021-07-09T20:56:56.897774 | 2020-10-27T05:41:08 | 2020-10-27T05:41:08 | 206,974,879 | 15 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,903 | py | from collections import Counter
from data.Vocab import *
from data.SA import *
import numpy as np
import torch
def read_corpus(file_path):
data = []
with open(file_path, 'r') as infile:
for line in infile:
divides = line.strip().split('|||')
section_num = len(divides)
... | [
"mason.zms@gmail.com"
] | mason.zms@gmail.com |
999fb90e65b6fc2b48dff1808aacdc58a61fa753 | 7a8f6f7a032e026007228b6223763ff046fc457a | /NeoBoot/ex_init.py | 4c0c7866dc4aff5ebed778402b2f0f291f4e3121 | [] | no_license | VARAVAN1/neoboot | 189fb8c5fa6bca1d52dd07e5143fb86d1cc2bced | b316149f7ade85491d3f719cdd3fec8eae4a07aa | refs/heads/master | 2021-08-08T22:37:01.083721 | 2017-11-11T13:44:35 | 2017-11-11T13:44:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py |
import sys, extract
if len(sys.argv) < 11:
pass
else:
extract.NEOBootMainEx(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5], sys.argv[6], sys.argv[7], sys.argv[8], sys.argv[9], sys.argv[10], sys.argv[11]) | [
"noreply@github.com"
] | VARAVAN1.noreply@github.com |
1e8824e78e6d976e7d8d77973b0743614bcb2f5b | 8faab10608767d340d7b689047b8b95a321043b7 | /backend/access/project.py | 5774c3747bd97e9c9fa27da4db9155ef6b7a64ec | [] | no_license | EFFY017/project_management | 2676bf59c853db6e725a4b104732f8317aa5c13a | b6e18ecc09eed7bf257f824f79c6c91107310315 | refs/heads/master | 2022-04-17T15:38:19.240199 | 2020-04-12T08:51:57 | 2020-04-12T08:51:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,215 | py | import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__) , '..'))
from flask import json, Blueprint
from logic import project, user, work_time
from util.access import *
import config
project_access = Blueprint('project_access', __name__)
@project_access.route('/mine', methods=['GET'])
def project_... | [
"scsse_hqh2016@126.com"
] | scsse_hqh2016@126.com |
a5dc9e10e3560336547353d465ffefd2b64758c2 | 418d5e85e8271949e4119c2e24b68e88a1c240f8 | /web/admin.py | 9fb8cd436e4341e0486e4e4c3cade436067d7348 | [] | no_license | codeartisanacademy/learnwith | 22b856ec3b00494bf706bb08e168db8c97abed62 | 5422c08a3706d9087fad367caa183708ddbae9c8 | refs/heads/master | 2023-01-11T21:45:47.329651 | 2020-11-14T06:29:37 | 2020-11-14T06:29:37 | 293,010,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from django_summernote.admin import SummernoteModelAdmin
from django.contrib import admin
from .models import Profile, Topic, Subject, LearningDate, SubjectSubscription
# Register your models here.
class SubjectAdmin(SummernoteModelAdmin):
summernote_fields = ('additional_information')
admin.site.register(Profile... | [
"wahyudi.coding@gmail.com"
] | wahyudi.coding@gmail.com |
bab84011c59fb43b74ce36be6c18a2045a9d1973 | 3aa507bf530d1b96cbc7b300f3c9ecc8f75a5df4 | /project_1/past_examples/Star_Wars_Manish_Singh/Star Wars.py | 4010551ce66c1977d876bb2c7068ac89cc0852a0 | [] | no_license | endrianasy/MIDS_python_showcase | aa4bc9a5bf388708322839852b758cbf63d93ebe | 69d155522823c8497eb8258291bd425e087bcca7 | refs/heads/master | 2023-03-25T23:45:33.861697 | 2021-02-28T04:49:14 | 2021-02-28T04:49:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,200 | py | #STAR WARS ADVENTURE GAME!
#Manish Singh
import os
import time
import numpy as np
import sys
class item:
def __init__(self, properties, name):
self.properties = properties
self.name = name
def used(self):
self.properties = None
class player:
def __init__(self, character):
if character == "Luke":
self.nam... | [
"gunnarkleemann@Gunnars-MacBook-Pro.local"
] | gunnarkleemann@Gunnars-MacBook-Pro.local |
9f2b55e49ea1a8e02acd278b0316e91f06980ded | b0e7b52598587558a37338dc35c76cabae40ea6e | /postscoring_eda.py | d4a1db6ab57228956f446086752b3ddc98a0139a | [] | no_license | sanjeevgadre/Kaggle-RiiiD | c82030ad376799c6e467429fd5ae6dfc32650a53 | 5e97c847440c20f8c1d5dbbc1dc4598e46257968 | refs/heads/master | 2023-02-09T08:44:35.914968 | 2021-01-01T08:55:02 | 2021-01-01T08:55:02 | 312,560,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,478 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 27 08:40:43 2020
@author: sanjeev
"""
#%% Libraries
import numpy as np
import matplotlib.pyplot as plt
from sklearn.decomposition import PCA
#%% Helper variables
DATAPATH = './data/'
#%% Userscores from mean run
userscores = np.genfromtxt(DATAP... | [
"sanjeev_gadre@hotmail.com"
] | sanjeev_gadre@hotmail.com |
f1232d4f83383a9e34a6614c7c7bf33ef983e353 | b24d392755dabd84fb773c90a3bf1e03d0cd11c5 | /Microsoft/SubarraySumEqualsK.py | 35bf3f4d1cdfc0d96cf9e71411f63a675a7eff14 | [] | no_license | Shivani161992/Leetcode_Practise | 5b884268707c19cc1a3012c0fb2321c58d5147c0 | dd6f9a9ac3365562c606947c082f043e5100df05 | refs/heads/master | 2023-08-16T06:34:22.010913 | 2021-09-16T02:01:58 | 2021-09-16T02:01:58 | 279,668,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | nums = [1, -1, 0]
k = 0
from typing import List
class Solution:
def subarraySum(self, nums: List[int], k: int) -> int:
if len(nums) >0:
totabSubarray=0
for i in range(0, len(nums)):
subArr= 0
for j in range(i, len(nums)):
subArr= su... | [
"shivani@Shivanis-MacBook-Pro.local"
] | shivani@Shivanis-MacBook-Pro.local |
140ce789863a4667d8df69e670d9b4130ad34c0c | c50fd00072603c18c0e17eba1b087e2e5e1b1816 | /trainer/trainer.py | 152eab0f39d1eed74acce37d7ab52a1cee22c87b | [
"MIT"
] | permissive | wzhiyuyu/Wave-U-Net-for-SpeechEnhancement | de934dc83572729a573cb2225e4f98b2cf2f6f45 | 308a2be9d91d931f09e873b19c3d67315b9b5962 | refs/heads/master | 2022-09-26T06:08:34.870718 | 2020-05-29T07:26:19 | 2020-05-29T07:26:19 | 266,736,246 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,962 | py | import librosa
import librosa.display
import matplotlib.pyplot as plt
import numpy as np
import torch
from trainer.base_trainer import BaseTrainer
from util.utils import compute_STOI, compute_PESQ
plt.switch_backend('agg')
class Trainer(BaseTrainer):
def __init__(
self,
config,
... | [
"wzhiyuyu@gmail.com"
] | wzhiyuyu@gmail.com |
96604c74722e0f980e80c30363a5108a1675cce7 | 0cb4ee4094ab54000eadb1788527db5d40f12f2b | /camp_materials/008_functions.py | c4ce9684932e386a74884802a66050977c858f80 | [] | no_license | wirelessjeano/learnpython | a821fbbf0bd0c191d8b0575e0569fbeb18d3419d | 522c072ada6ac8664dbdf462ac396c364e39b10a | refs/heads/master | 2022-01-22T06:51:29.651576 | 2019-02-23T19:22:16 | 2019-02-23T19:52:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,623 | py | # FUNCTIONS
'''
Provide example of complicated program ppl use everyday.
Explain that it's made up of multiple modules of code, breaking a big problem into smaller problems,
each with its own purpose to fulfill a certain task. And once you've made a module for a specific task,
it's easy to use it again and again in di... | [
"omkar.konaraddi@gmail.com"
] | omkar.konaraddi@gmail.com |
9a1f84ef383d0d3a742276e3b41b88ab05eb18a3 | c83d9f38678d76018a5930fb31e938157e637460 | /Services/Userservice.py | d38eef132192e5ef8302eee3d162015e104ad259 | [] | no_license | PaiEllen/Weibo | 7a155d39f00ff7b86249afb9ae29292a836f07a5 | 6c401affafa5c7f299598983968cb33d8b6d9271 | refs/heads/master | 2020-02-26T15:41:00.744011 | 2016-10-12T03:30:05 | 2016-10-12T03:30:05 | 70,659,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import abc
class Userservice:
def check_login(self):
pass
def register(self, username, password, email):
pass
def get_user_info(self, nid):
pass
def get_fans_follow_count(self, userid):
pass
class IUserRepertory(metacla... | [
"ellen_pai@163.com"
] | ellen_pai@163.com |
90fa9d60a31619b8f6dcc62b48a721e9613e2b11 | 596e92d0d484b6e7eee6d322e72e52748fdeaa5d | /test/test_nba_odds_betting_market.py | f8b473cf4cf0f70b059897d47f0677fe275d8489 | [] | no_license | scottypate/sportsdata | f5f61ddc7eb482883f93737c6ce73dd814ed4336 | a07955ab50bf4fff1ce114ed9895095ff770c473 | refs/heads/main | 2023-08-18T16:51:56.452678 | 2021-10-22T12:44:08 | 2021-10-22T12:44:08 | 420,062,350 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | # coding: utf-8
"""
NBA v3 Odds
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unitt... | [
"scotty.pate@auth0.com"
] | scotty.pate@auth0.com |
42485305a6f8fb5ff0005ce27a19470c43a61309 | 08ae1e5065ce3c3931356f4db6b54a82a5da1ebe | /other/cj_project/Pra_tools/week_return_可变基准临时版.py | 44ad917629fd9bace508512ac140bb879a7a7042 | [] | no_license | superman666ai/cj_data | d1f527b9bc49a38f2cc99ef3849d13408b271f2d | f4b0e9ec3be02c8900d0300e09df8e52088efc68 | refs/heads/master | 2020-06-21T14:57:30.285849 | 2019-07-22T00:54:15 | 2019-07-22T00:54:15 | 197,486,121 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,300 | py | # encoding=utf-8
"""周收益率相关查询"""
from sql import sql_oracle
from time_tool import Time_tool
import logging
import math
import pandas as pd
import numpy as np
from sklearn.linear_model import LinearRegression
from season_label import SeasonLabel
sl = SeasonLabel()
class Week_return:
"""周收益率相关类
对外接口:
zho... | [
"keepingoner@163.com"
] | keepingoner@163.com |
ada171b8de4f52b845ee161416f13bcbc3d876b7 | 40b9bb17a66ae95d46a932091f74c66642d27534 | /Phases/Phases/Mesh/Generation/MeshGenerator.py | 7b3b4a3c06877aba139501e6cbe0cfee7c3cce62 | [] | no_license | liamlong01/PhasesGit | 041c1213ecd25755f02966989f016167b494ff97 | ab8830aa524400bd66439cff9dd6065f57eade1e | refs/heads/master | 2021-05-14T12:21:54.124316 | 2020-02-18T22:38:44 | 2020-02-18T22:38:44 | 116,406,354 | 0 | 1 | null | 2018-01-30T17:43:59 | 2018-01-05T16:45:44 | C++ | UTF-8 | Python | false | false | 4,791 | py | from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from .NodeGenerator import NodeGenerator
from .EdgeGenerator import EdgeGenerator
from .RectGenerator import RectGenerator
#from .MeshCreator import MeshCreator
from math import log
from Phases.Mesh.Mesh import Mesh
class MeshGene... | [
"liamlong01@gmail.com"
] | liamlong01@gmail.com |
e3b35314a33165821de87d87bffb5fdb98e137d6 | a1515d99a951d0ad9d3533b8117c4c9de6c43375 | /todos/migrations/0001_initial.py | 2a51d34bce9725c3c1cfa2998e7d36eec249938f | [] | no_license | Almyk/todolist | 42743955170ae03b0de9e4bbda24f3f0eb9b2efb | db5b18d61f96bf48547acb9ecc3e9c8dffae0eb0 | refs/heads/master | 2021-09-10T20:14:43.831104 | 2018-04-01T13:29:11 | 2018-04-01T13:36:59 | 108,864,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-27 06:13
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"hansentommy92@gmail.com"
] | hansentommy92@gmail.com |
19c1b60effc30ea4675492687497dea42615bc19 | d5c54cb9739fe0931deb19f1ddc283d9d7dce152 | /tensorflow/fully_connected/mnist_app.py | 1ef4cf224d51417c2b5b06b71d735e99b9464176 | [] | no_license | interestudy/pythonstudy | 6542c5b43c94c39c8f6182da08710421506a8fe8 | be0b524b9a3e037598e3c1ad947b5ed554d9479f | refs/heads/master | 2021-07-09T17:54:20.941253 | 2020-07-12T23:14:58 | 2020-07-12T23:14:58 | 161,978,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,473 | py | # _*_ coding:utf-8 _*_
# @Author :ran
# @time :2018-12-15 19:30
# @File :mnist_app.py
# @Software :PyCharm
import tensorflow as tf
import numpy as np
from PIL import Image
from fully_connected import mnist_backward, mnist_forward
# 恢复模型
def restore_model(test_pic_arr):
with tf.Graph().as_default() ... | [
"ran@qq.com"
] | ran@qq.com |
f21b03c6db9441eb6e25be828561ed5b5d1373eb | e30df1530f2a61620e223d35abaea48b3595a01d | /python_assignment_partA/question_9_mainfile.py | b2fac73b6fc874ce80e35dcc5ffd556af1178bad | [] | no_license | Aditya149349/lab | e5c8fcf450d9c149b4b69d2e2337a3cac74dce55 | 635b716a7a9eab9ebd3792b1ff464ba6189529be | refs/heads/master | 2020-07-25T05:06:01.625429 | 2019-12-05T04:56:32 | 2019-12-05T04:56:32 | 208,174,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | from file import atomic1
atomic1()
| [
"noreply@github.com"
] | Aditya149349.noreply@github.com |
d8a784d4cc3814c72d3f1c2f31291a37067a93cc | bf902add6952d7f7decdb2296bb136eea55bf441 | /YOLO/.history/pytorch-yolo-v3/video_demo_v1_20201106013910.py | 956c4cf76b2215cc7d0d756950fe68064a06bcd4 | [
"MIT"
] | permissive | jphacks/D_2003 | c78fb2b4d05739dbd60eb9224845eb78579afa6f | 60a5684d549862e85bdf758069518702d9925a48 | refs/heads/master | 2023-01-08T16:17:54.977088 | 2020-11-07T06:41:33 | 2020-11-07T06:41:33 | 304,576,949 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 16,591 | py | from __future__ import division
import time
import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
import cv2
from util import *
from darknet import Darknet
from preprocess import prep_image, inp_to_image
import pandas as pd
import random
import argparse
import pickle as pkl
import r... | [
"73480314+ryo-jpg@users.noreply.github.com"
] | 73480314+ryo-jpg@users.noreply.github.com |
9aa5e4ce73d948f7cc44b13bac66cdc3226ff951 | 002f474f18f72b90d4fea892c01b8f02a8fe3fb7 | /main.py | c8e32dae005431fca7a4bec2df71b5c853b2e43a | [] | no_license | nhhdmr/fluxP | 834562b7ffb2f79692ebe99a90b7f9060ce56c8b | d5512f9a4d77ee1c58562affbb2a666c17e099ac | refs/heads/master | 2023-03-31T15:57:11.721222 | 2021-03-31T10:22:59 | 2021-03-31T10:22:59 | 337,989,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from GUI import GUI
# Fonction principale
if __name__ == '__main__':
UI = GUI()
UI.window.mainloop()
| [
"nhhdmr@gmail.com"
] | nhhdmr@gmail.com |
6b1a21e187c9c79f07f14c5b2f5a3a03fcf94808 | c7b4baa2779a0fc02e363f07c88b4d1d8cc33ffe | /gahtc/website/migrations/0017_auto_20151121_2057.py | 000afaafe3f0c79142b2d2f5dc90553177043f8f | [] | no_license | NiJeLorg/GAHTC | 6d5c8b2d4b9244c8874ad60c16cd7d55a3535075 | 8ba3360f6e2a8ad0b937a60c3c022eaac4a7cd46 | refs/heads/master | 2022-12-08T19:26:05.800635 | 2018-06-07T02:31:43 | 2018-06-07T02:31:43 | 41,111,268 | 2 | 0 | null | 2022-11-22T01:43:36 | 2015-08-20T18:07:02 | HTML | UTF-8 | Python | false | false | 1,262 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('website', '0016_bundlelecturesegments'),
]
operations = [
migrations.AlterField(
model_name='lecturedocuments',
... | [
"jd@nijel.org"
] | jd@nijel.org |
52952ae7085befabbe68130215600bca6fed3043 | 4157041d17b74aa183677ce51a341f8e2324d1ac | /one_agent.py | cadc1dcaa18ee6736da9e1f486a7cc7b8eac759b | [] | no_license | chengbinyao98/all | 5caadfd332187e6de7a4e15ac4d43bfc12b1a584 | cc5a1094ac5f54a4e2d791b227c5a06351bfbab5 | refs/heads/master | 2023-04-25T10:48:01.372718 | 2021-05-17T08:28:44 | 2021-05-17T08:28:44 | 367,523,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,941 | py | import tensorflow as tf
from agnet1.main1 import Main1
from agent2.main2 import Main2
from tool import Tools
from environment import Env
from draw import DRAW
import matplotlib.pyplot as plt
import numpy as np
if __name__ == '__main__':
env = Env()
tools = Tools()
draw = DRAW()
g1 = tf.Graph()
ma... | [
"chengbinyao98"
] | chengbinyao98 |
147cfb6b4aa8fb2ea34805eecb5b84ce208f37dd | 4111d229790c4e60ea968631d26c3774d77f5324 | /leetcode/geek-time/rename.py | cb7c6500ff7ad2555e0ba88db6a12d91109a44d9 | [
"MIT"
] | permissive | EricLi404/nb | a6a3e90b79bd8ee2e35d93285dea5650b804e3da | bdfa24db288df791320b5f610981b53aa7963fac | refs/heads/master | 2020-09-12T11:36:33.043546 | 2020-07-31T07:44:59 | 2020-07-31T07:44:59 | 222,411,259 | 0 | 1 | MIT | 2019-12-25T09:14:25 | 2019-11-18T09:31:09 | Python | UTF-8 | Python | false | false | 345 | py | import os
import sys
from glob2 import glob
def rename(d):
f = glob(d + "/*")
for i in f:
if "[" in i and "]" in i:
nm = i.replace("[", "")
nm = nm.replace("]", "_")
os.rename(i, nm)
if __name__ == '__main__':
if len(sys.argv) != 2:
exit(-1)
d = s... | [
"liyuyang@huami.com"
] | liyuyang@huami.com |
ebee42568d28a2df75386d1e81674a87850e8c27 | f41a34987028eb8a8c41972303833719072c5a28 | /application/core/generators/math_add_medium.py | 2dd5e2e43b757c22bb9e53d99eef79d2742e2f48 | [
"MIT"
] | permissive | opencbsoft/kids-worksheet-generator | c31e1b379c1e6a79e5d55b7396460773f83db43e | be2c020fa3d0646f7fdd36298019c935b7a47f3f | refs/heads/master | 2023-03-06T00:21:01.610352 | 2022-10-26T10:38:39 | 2022-10-26T10:38:39 | 249,153,087 | 1 | 0 | MIT | 2023-02-15T20:02:07 | 2020-03-22T09:44:13 | HTML | UTF-8 | Python | false | false | 1,030 | py | import random
from core.utils import Generator
class Main(Generator):
name = 'Fast medium addition in one minute'
years = [5, 6, 7]
directions = 'Afla cat de multe operatiuni poti rezolva in maxim 1 minut.'
template = 'generators/math.html'
def generate_data(self):
small_numbers = list(ra... | [
"cristi@cbsoft.ro"
] | cristi@cbsoft.ro |
a82aec7794729478a6d3132d942364c73ac5861b | 42870f8603ea29fdd2c4f39cdfef383f2b04868e | /chapter5/ch5FileExample2.py | a4237351c27d1def3900dcd4ced343fb17eade16 | [] | no_license | NortheastState/CITC1301 | 7de1b575e5c29f6fc8dbfa85d25c48b1e830c8dc | 7641d82cff2652d4dd9459a52125835ba3a50e30 | refs/heads/master | 2021-09-12T21:00:08.790425 | 2018-04-20T17:47:47 | 2018-04-20T17:47:47 | 116,075,069 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | # ===============================================================
#
# Name: David Blair
# Date: 03/10/2018
# Course: CITC 1301
# Section: A70
# Description: Read in a file one line at a time or
# read a file into a list
#
# ============================================================... | [
"dlblair@northeaststate.edu"
] | dlblair@northeaststate.edu |
bdd3bf6fba4bd626f99d89450d76ac05362a99e1 | a0afdd22430c9324278e21cb2ec71172fa9d9136 | /mango/notification.py | 036c84e556a09be80caaae29c9b60e7b56373f54 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | jeromeku/mango-explorer | 8e00cdc5f9154184004afb02637dd10bb98be089 | 5d26b782e25886d794b1f90cbf761fb9ce3100b7 | refs/heads/master | 2023-07-18T05:08:21.882520 | 2021-08-16T21:42:38 | 2021-08-16T21:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,379 | py | # # ⚠ Warning
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
# LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIA... | [
"geoff@knife.opgeek.lan"
] | geoff@knife.opgeek.lan |
1fbca8a60b71a90686126ab10fe2745039344b6c | 84a5c4c2e0977d42425771098f5f881c750da7f0 | /neomodel_constraints/fetcher/constraints/v4_1.py | 3bb76bcc8e48273575a33bd210c5b02c050d2956 | [] | no_license | SSripilaipong/neomodel-constraints | 6c3023ba156275e48f5f7ebcbdd283ce8d41f9a1 | 4b91185ba9eec993c58e9ae770fd3d0e90f915ae | refs/heads/main | 2023-07-15T09:58:41.451631 | 2021-08-29T13:19:38 | 2021-08-29T13:19:38 | 390,312,509 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,883 | py | import re
from typing import List, Dict
from neomodel_constraints.connection import ConnectionAbstract
from neomodel_constraints.constraint import ConstraintSet, TypeMapperAbstract
from neomodel_constraints.fetcher.abstract import FetcherAbstract
from .data import Neo4jConstraintQueryRecord
from .util import convert_... | [
"santhapon.s@siametrics.com"
] | santhapon.s@siametrics.com |
c93bc33909a5cb0e08e9a0adcc37eb65b8cf5039 | e2f1c508c9433ce276643a23f1de3148b4e9397f | /tests/engine.py | ccac11fc360c2cf932cf1e384230946b118a222e | [
"BSD-3-Clause",
"MIT"
] | permissive | nausicaaa/Coding_Buddy | dff706f76dc2053d00a071baa2281b9b67bd710f | 770b0078f6e4cede4498a38ea5cc3fe819d32b4b | refs/heads/master | 2021-01-18T07:23:59.985308 | 2016-05-15T19:46:06 | 2016-05-15T19:46:06 | 55,987,993 | 0 | 0 | null | 2016-04-11T16:16:27 | 2016-04-11T16:16:26 | null | UTF-8 | Python | false | false | 5,459 | py | from subprocess import call
from os import path
import hitchpostgres
import hitchselenium
import hitchpython
import hitchserve
import hitchredis
import hitchtest
import hitchsmtp
# Get directory above this file
PROJECT_DIRECTORY = path.abspath(path.join(path.dirname(__file__), '..'))
class ExecutionEngine(hitchtest... | [
"anetka.wlodarczyk@gmail.com"
] | anetka.wlodarczyk@gmail.com |
ed954de276156e95166db50f4039b934494a89b8 | 0fff2c2f14abe9ebcdf788a2d222876510a4ae3d | /python_tkinter_study/tk之文本框明暗文输入及网格布局.py | 43c5412b8f938c5555951a44df588bcf07afd396 | [
"MIT"
] | permissive | 4ever-blessed/Github_python3_code | 0899551d1382a8699cf6ecf3884d374dd3a7e6e4 | 789fa427b6f1b7996804c0f2d5ad7043607910c0 | refs/heads/master | 2020-03-14T06:30:38.559199 | 2018-07-24T09:12:18 | 2018-07-24T09:12:18 | 131,485,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | # conda_python3_code
from tkinter import *
from PIL import Image,ImageTk
# PIL is used for decode the JPG PNG format
# Clear text display
# def show():
# print('Your name is %s'% e1.get())
# print('Your id is %s'% e2.get())
# root = Tk()
#
# Label(root,text='name:').grid(row=0,column=0)
# Label(root,text='ID... | [
"is_my_logo@icloud.com"
] | is_my_logo@icloud.com |
73aaf88a3f4bf55ce3928acdfa3759d141ca5256 | 43ce77ad778dcb0816acfb613ae945689342cd46 | /config.py | 5d779b4ee910f37bf3e14d2770b463b03792202d | [] | no_license | vpdesai21/SimulationProject | 45558de4f115002680cec21d76bd831f4a0aca9e | e5781fdefa3a0e54e57bfdda7a349e934cecc223 | refs/heads/master | 2021-01-09T07:12:35.682320 | 2015-06-22T00:19:07 | 2015-06-22T00:19:07 | 35,399,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | __author__ = 'root'
simulation_time_factor = 1
| [
"vishwa.desai@sjsu.edu"
] | vishwa.desai@sjsu.edu |
a22b262b8040abcc8a2c816cafca92d9d7a2eb41 | 4f3f2ae204a2c709bffde8e3ae478339f743c3e8 | /main/migrations/0011_adminusermodel.py | 358b2995f8e3c29292eb3f3f37b5a02ff519c72b | [] | no_license | Anupam124jain/ICO | a9d5f02d2cd1680c5a4545439238f7325c601373 | 5faf27c7e25bfc3d4fa7cfc3f8dff10583dddaad | refs/heads/master | 2022-12-15T17:37:11.193927 | 2019-01-21T13:39:24 | 2019-01-21T13:39:24 | 166,819,535 | 0 | 0 | null | 2022-12-08T03:00:50 | 2019-01-21T13:33:33 | Python | UTF-8 | Python | false | false | 1,001 | py | # Generated by Django 2.1 on 2018-10-03 10:07
from django.conf import settings
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auth', '0009_alter_user_last_name_max_length'),
('m... | [
"anupam124jain@gmail.com"
] | anupam124jain@gmail.com |
f155d5c7c4b74b8ecf84d3a1d6f02fcc2b3ade6b | 6fefd215a7b7e38e53a8e012b890e8fbfde1dbe2 | /logic.py | ced7ab5b8beb4f36cde2b78162d67636573837e7 | [] | no_license | alskgj/rankit_papperlacart | d90e429fd62e46b618b5b52cae34f9fbb5052bea | 50a0183fc41c255dda64302a5d74aad7a2217054 | refs/heads/master | 2021-01-01T16:37:27.661735 | 2017-07-22T16:17:44 | 2017-07-22T16:17:44 | 97,874,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,056 | py | from json import loads, dumps
from elo import Match
def write_to_db(name: str, score: float):
"""Writes a new eloscore to memory
:param name: playername
:param score: eloscore
"""
score = float(score)
with open('db.json') as fo:
data = loads(fo.read())
data[name] = score
wi... | [
"d@vis.ch"
] | d@vis.ch |
cc344ab268871e68262997bb1a4edd0560a0baf8 | 9467f3a54b19098766a3b0341eaac51617fc321b | /utils/build_batch.py | 7fafcc95dbe491be9a2c7c8f0a11100d7a88fc38 | [] | no_license | liangjies/Sentiment-Analysis | 1eedaa583d68536f92944b59ee6f8b6dedbc4a99 | beca6c6612cc3b38b28d711eb39eb72424bdde00 | refs/heads/master | 2020-11-24T05:25:56.081258 | 2019-12-19T08:21:32 | 2019-12-19T08:21:32 | 227,983,207 | 0 | 0 | null | 2019-12-14T07:24:42 | 2019-12-14T07:24:41 | null | UTF-8 | Python | false | false | 6,387 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: python3.6
@author: 'zenRRan'
@license: Apache Licence
@contact: zenrran@qq.com
@software: PyCharm
@file: build_batch.py
@time: 2018/10/15 10:44
"""
import random
class Build_Batch:
def __init__(self, features, opts, batch_size, pad_idx, c... | [
"824203828@qq.com"
] | 824203828@qq.com |
7b121b785157322394491e6bc5bb951878921106 | f57124c12c8bcb1612b3baba1dcaeb57aa80cd0d | /test/test_laodao.py | 9ae8c6b2248276e4c8350164d41db472e2150563 | [] | no_license | ovc1024wz/ovc1024 | 20751ef82f93d6aec4bf1cfd31bd3b6487366f25 | 1933f9ad667535a18547254bdc86593424f3b435 | refs/heads/master | 2020-06-02T20:58:26.772645 | 2019-06-25T07:27:45 | 2019-06-25T07:27:45 | 191,308,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | #encoding=utf-8
import unittest,time
from coffee.webdriver import driver
from utils.loginpage import LoginPage
from pageobject.laodao import LaoDao
class MyTestCase(unittest.TestCase):
@classmethod
def setUpClass(cls):
email = "2589240188@qq.com"
password = "123456"
LoginPage().open_and_... | [
"2589240188@qq.com"
] | 2589240188@qq.com |
e22507c0de31cec909fd15ecdd02ceb23b3f3f64 | 99556451586f1f2fc56823c320ed0e8feb3a5f34 | /cronjobs/ios/checkCouchReplication.py | c0585280ba404c9106644ef2422586465ac331b0 | [] | no_license | snoplus/SNOPlusSlowControl | 72c4d71711109b317dd224426198d5db82d8e4a7 | ca633e1cbd3de96c06258cc7706b67f549964054 | refs/heads/master | 2020-05-19T21:48:00.364826 | 2020-04-22T20:25:07 | 2020-04-22T20:25:07 | 185,233,679 | 1 | 0 | null | 2020-04-22T00:50:56 | 2019-05-06T16:31:11 | Python | UTF-8 | Python | false | false | 3,562 | py | #!/usr/bin/python
#This script checks that data stored in the IOS's local couchDB is being
#Replicated to the couch.snopl.us database properly. If not, an alarm
#E-mail is sent to the slow control alarms list.
from __future__ import print_function
import sys
import socket
import json, httplib2, couchdb, string, time,... | [
"pershint@github.com"
] | pershint@github.com |
c8d33300ad770d352447e92bf47f589d16f4bfe1 | c38d45d315ccb20c3656029c41081ef6a40f1f35 | /ade-programme-utils/adeProgrammeUtils.py | c600bdc4228eb0a146a1d4b470561891651fd9bf | [] | no_license | petronny/aur3-mirror | 3e12eed4901a807354a46399bdfd82763ec9f1b3 | 4279d4dcfcd6585fabd8b52d40d78d7db06c97ad | refs/heads/master | 2020-06-30T06:47:24.836321 | 2019-07-29T09:45:08 | 2019-07-29T09:45:08 | 74,439,663 | 1 | 0 | null | 2016-11-22T06:00:49 | 2016-11-22T06:00:49 | null | UTF-8 | Python | false | false | 11,543 | py | #!/usr/bin/ent python
# -*- coding: utf-8 -*-
""" Imports """
import os
import user
import xml
import xml.dom.minidom as dom
import string
import re
from base64 import b64decode, b64encode
from urllib import URLopener, urlencode
from urllib2 import build_opener... | [
"gostrc@gmail.com"
] | gostrc@gmail.com |
5aa0c3741468196957ffba57ea37b13e03fee079 | 1eab574606dffb14a63195de994ee7c2355989b1 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/capture/currentpacket/stack/stack.py | 584e79fdba6258677a42f35e8cbaf4e10d7896e7 | [
"MIT"
] | permissive | steiler/ixnetwork_restpy | 56b3f08726301e9938aaea26f6dcd20ebf53c806 | dd7ec0d311b74cefb1fe310d57b5c8a65d6d4ff9 | refs/heads/master | 2020-09-04T12:10:18.387184 | 2019-11-05T11:29:43 | 2019-11-05T11:29:43 | 219,728,796 | 0 | 0 | null | 2019-11-05T11:28:29 | 2019-11-05T11:28:26 | null | UTF-8 | Python | false | false | 3,235 | 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 |
2661bc5f8553f6cccf0516f15fda9c6515b2d032 | d387119f1139b12c7a7a2c1edb0d9c2973e70a2b | /yolo3/utils.py | 95ae0d008d84706e7c27e267199aea05ad0a1ca1 | [] | no_license | ant1pink/logo-detection | fdbaf1462621601322c144d6dd52468a212c33d7 | 50685a6c9cb35c75ddc42da8383445dce5d83bd7 | refs/heads/master | 2020-04-29T17:26:09.049787 | 2019-03-20T17:37:34 | 2019-03-20T17:37:34 | 176,296,794 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,922 | py | from functools import reduce
from PIL import Image
import numpy as np
from matplotlib.colors import rgb_to_hsv, hsv_to_rgb
def compose(*funcs):
"""Compose arbitrarily many functions, evaluated left to right.
Reference: https://mathieularose.com/function-composition-in-python/
"""
# return ... | [
"ruizheli.ryze@gmail.com"
] | ruizheli.ryze@gmail.com |
efa11e39b3443d2c2ecd4ad33280e4250b1217f1 | b2067744a72f3409a4235f796c8e64b32b922e4d | /task/urls.py | a627a646db5fed2019448710f4d56f4d5bb0473c | [] | no_license | rsanjoseestepar/tempmed3Dmod | 4b1238f3a49bf22f1cddd3a29dfb0b90bf9ca581 | 14e11673a6298bee3f90f2f635384b7693fa84a1 | refs/heads/master | 2020-05-17T17:29:27.463948 | 2015-10-22T06:45:33 | 2015-10-22T06:45:33 | 42,532,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py |
from django.conf.urls import url
from main import views
from django.contrib.auth import *
from django.conf.urls import patterns, url, include
from django.contrib import admin
from task import views
from django.conf.urls.static import static
from med3Dmodel import settings
from django import forms
from main import fo... | [
"rsanjoseestepar@gmail.com"
] | rsanjoseestepar@gmail.com |
1259b25afb75ee0bfcc7c6e204f0ba8394d94744 | 1e82a5c6145fbd6861b863f95613e9406f434559 | /function_scheduling_distributed_framework/publishers/base_publisher.py | 8febd4bc61059b4b42707d4b0f36cee56e8a3ab1 | [
"Apache-2.0"
] | permissive | leiyugithub/distributed_framework | e6c83cf09faa5ee0d6d0ccc1e38fb6729a260c9b | 7a9c74e807f51680c25a9956e49ab319a8943a37 | refs/heads/master | 2020-12-07T13:23:24.354917 | 2020-01-08T08:18:47 | 2020-01-08T08:18:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,941 | py | # -*- coding: utf-8 -*-
# @Author : ydf
# @Time : 2019/8/8 0008 11:57
import abc
import atexit
import json
import uuid
import time
import typing
from functools import wraps
from threading import Lock
import amqpstorm
from pika.exceptions import AMQPError as PikaAMQPError
from function_scheduling_distributed_framew... | [
"909686719@qq.com"
] | 909686719@qq.com |
cf4d178f248c85eea2e81d4251ed313da8f55968 | 183df02c0ceb38a891408039fb604846023b663a | /irasutoya/boot.py | aa5ae98025430a0eacd02d02c129680cd2a7e622 | [] | no_license | Yasu31/m5stickv-playground | 625ae7c5097907151ef49cc57592796611fc899d | 3fe602563958f2203ae422dddfe19d7ca725b181 | refs/heads/master | 2021-03-17T17:26:16.544111 | 2020-03-25T08:21:30 | 2020-03-25T08:21:30 | 247,005,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,821 | py | import audio
import gc
import image
import lcd
import sensor
import sys
import time
import uos
import KPU as kpu
from fpioa_manager import *
from machine import I2C
from Maix import I2S, GPIO
#
# initialize
#
lcd.init()
lcd.rotation(2)
i2c = I2C(I2C.I2C0, freq=400000, scl=28, sda=29)
fm.register(b... | [
"yasu@Yasunoris-MacBook-Pro.local"
] | yasu@Yasunoris-MacBook-Pro.local |
b9bf4b475ff8fa6fb6ff1205d3217c81700fc851 | 155d10b5a6556d2b7f0d3878832f4f102e6cd8cd | /src/sensors/srf02.py | 370138c7998abc79f45fecaf92c44a61d18023d7 | [] | no_license | leedowthwaite/rpi-uav | 51d8dbce8e4ef09d52038f02ea50a86dc0271ca2 | bce999ae0c8b0831a927f69c53b90ef0ba23bcb7 | refs/heads/master | 2021-01-22T06:58:45.395273 | 2013-04-15T15:07:01 | 2013-04-15T15:07:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | #!/usr/bin/python
import time
from Adafruit_I2C import Adafruit_I2C
# ===========================================================================
# SRF02 Class
# ===========================================================================
class SRF02 :
i2c = None
# Default I2C address
__I2CADDR ... | [
"leedowthwaite@gmail.com"
] | leedowthwaite@gmail.com |
b7db7de04e278983dbf36f898e9d6f2f0d0d62f4 | 8875142059d8a353c7c5db1f6ca08bf6556a3cc8 | /arp_spoof.py | bcc84a9002a1d649ca7e512b0ca737e2e378f0a1 | [] | no_license | danlarsson/Ethical-hacking | 640b0382bcdadc975db80553f431a487bf63ca4c | 75f7ba56bb16ff77dea08585702b1021ac35412b | refs/heads/master | 2020-04-10T05:46:31.148432 | 2019-01-04T13:49:20 | 2019-01-04T13:49:20 | 160,836,809 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | #!/usr/bin/python3
# Does a man in the middle attack.
# echo 1 > /proc/sys/net/ipv4/ip_forward
import scapy.all as scapy
import time
from configparser import ConfigParser
parser = ConfigParser()
parser.read('config.ini')
def spoof(target_ip, spoof_ip):
# op=1 = Request, op=2 = Response
# pdst = IP of target... | [
"dan.m.larsson@gmail.com"
] | dan.m.larsson@gmail.com |
849ca1c32aa8848b9a468e99ea240724f0d82aad | c726b783bbbeb71801d8db17095b35ed7ba8742c | /code/task_2/sterioCalibrationRectification.py | ff74e37a5142c0990bd9591ae690edfad2c5a1ff | [] | no_license | suchitj2702/Understanding_camera_model_and_stereo_depth_sensing | a57fd2ace45def46c3b848e2292920df25ec26fd | 6506f85dfae48dc28dc239b6900d39272829b0d4 | refs/heads/main | 2023-07-18T17:38:15.223528 | 2021-08-26T23:55:49 | 2021-08-26T23:55:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,172 | py | import os
import cv2
import numpy as np
import matplotlib.pyplot as plt
import transformations as t
CalibrateImagesDirectory = "../../images/task_1"
TestImagesDirectory = "../../images/task_2"
UndistortedNotRectifiedDirectory = "../../output/task_2/UndistortedNotRectified"
UndistortedAndRectifiedDirectory = "../../out... | [
"suchit@asu.edu"
] | suchit@asu.edu |
37251f91b138c8ef98d57d8e1e0107a83c10e7d2 | 361756a29c63961fd02bd335aca629322b7989a7 | /Week 3/code/q1/spark-app.py | 459713353fa52e4fc715b7874ad7111b09db3b46 | [] | no_license | bbengfort/introduction-to-hadoop-and-spark | 67eadf923028cd53cfcec21fd1a521f6d5fe3569 | 14b9ebd87984277b2a02cdffad0db27082b4d3e9 | refs/heads/master | 2022-12-02T08:00:46.975122 | 2015-12-01T20:37:59 | 2015-12-01T20:37:59 | 46,567,192 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,402 | py | #!/usr/bin/env python
# spark-app.py
# A Spark application that computes the MSE of a linear model on test data.
#
# Author: Benjamin Bengfort <benjamin@bengfort.com>
# Created: Thu Nov 12 07:29:58 2015 -0500
"""
A Spark application that computes the MSE of a linear model on test data.
"""
########################... | [
"benjamin@bengfort.com"
] | benjamin@bengfort.com |
4bf1ae5633fdc3997c406cd68914e0913d8ca8bc | 40046dc3ddd6458b5d00259430b9ed283c396bb6 | /polls/views.py | f8ded8831b31784ddcea5e9ffbb98be562a58de0 | [] | no_license | mayela/mysite | 6050f465e66a30149f42d14a14ae39868c7f29ac | c06e96789fe8e6eff3f9dc823834857eadfb09b0 | refs/heads/master | 2020-02-26T15:45:13.970320 | 2016-10-14T01:17:11 | 2016-10-14T01:17:11 | 70,834,365 | 0 | 1 | null | 2016-10-13T18:33:45 | 2016-10-13T18:07:42 | Python | UTF-8 | Python | false | false | 1,498 | py | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponseRedirect, HttpResponse
from django.urls import reverse
from .models import Question, Choice
def index(request):
latest_question_list = Question.objects.order_by('-pub_date')[:5]
context = {'latest_question_list': latest... | [
"msanchez@nyxtechnology.com"
] | msanchez@nyxtechnology.com |
4ed043179eca6f4607079e4daf5b02187ec1c8c9 | 0a8bcc7ffdc143d82a351c84f46676a7b4564d1c | /app/config/settings.py | 9f887d232fa278cc393cb78be4e73a11b8807bb1 | [] | no_license | orca9s/ex_class | 354339aaddd882f4f294c3941784d3378769d084 | 0e4c76326226f6bb397c16d94c37aa45ec2973a6 | refs/heads/master | 2020-04-16T01:23:12.751879 | 2019-01-19T09:35:43 | 2019-01-19T09:35:43 | 165,171,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,095 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"sang93423@gmail.com"
] | sang93423@gmail.com |
8d3e89f29ab6f0f26aaa91f1761c77fcda05d345 | cb89e1ae18b2934df42264b9361fc5c80a76c8f8 | /March-LeetCoding-Challenge-2021/Set Mismatch.py | 321d57a661b7fcd983816ca235fea747938c3841 | [] | no_license | chintanaprabhu/leetcode | 3f4fab58c5c0f282a444a8b19c6ceeb372c07627 | fbf78cd0fe0a4b0f3feb86b3ce81495f70165eda | refs/heads/master | 2021-10-30T15:48:36.197553 | 2021-10-22T00:08:20 | 2021-10-22T00:08:20 | 220,151,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | class Solution:
def findErrorNums(self, nums: List[int]) -> List[int]:
if not nums:
return
maximum = nums[0]
actualSum = 0
numTable = {}
for num in nums:
if num in numTable:
dup = num
else:
numTable[num] = 1
... | [
"noreply@github.com"
] | chintanaprabhu.noreply@github.com |
ddcb81b7107bc2f0f5e4137a87c2a92e27eb7225 | 65df38059db317f87a37337c7c7eec8bf2a6cc2f | /ind.py | 9298ac24140c7424b7ccc658a05c0cc27c1e6ffa | [] | no_license | cujeu/quantocean | 10a5a5b24343433504e5847e455f7dedeeca82fa | 85f5f08192b136b65136d0cb145026cb81b3f56c | refs/heads/master | 2021-06-27T13:02:28.305045 | 2019-06-18T03:10:51 | 2019-06-18T03:10:51 | 137,292,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,465 | py | """
Indicators as shown by Peter Bakker at:
https://www.quantopian.com/posts/technical-analysis-indicators-without-talib-code
"""
"""
25-Mar-2018: Fixed syntax to support the newest version of Pandas. Warnings should no longer appear.
Fixed some bugs regarding min_periods and NaN.
If you find any bugs... | [
"noreply@github.com"
] | cujeu.noreply@github.com |
bc6fc44f74c3620fd9e7b7d0a2ee996258b7e087 | 2346aac932096d7161591afc8f07105eba6de558 | /chapter25_maskrcnn/object_detection_example.py | ea42017f0adf198b95c31e44d4fdb41ffd878eae | [] | no_license | cheeyeo/deep_learning_computer_vision | 3436ac568539bd9ad060c9d81542e82c42e40ff2 | 44fb74e70e7d40717214cd2a0ac2aa6d3bbf5b58 | refs/heads/master | 2020-07-17T00:17:14.112988 | 2019-10-29T15:39:18 | 2019-10-29T15:39:18 | 205,898,970 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | # Example on object detection using Mask R-CNN Library
# Uses a pre-trained Mask R-CNN model trained on MSCOCO dataset
from keras.preprocessing.image import load_img
from keras.preprocessing.image import img_to_array
from mrcnn.visualize import display_instances
from mrcnn.model import MaskRCNN
import os
import argpa... | [
"ckyeo.1@gmail.com"
] | ckyeo.1@gmail.com |
549cc65c2506f0da66011a56b9a6366d3337f073 | 228deb8ea529813fc2d850b1595bd6a71616ce18 | /gamemap.py | 34aa374363b0a1239fac45a8eb11038990ea3fa7 | [] | no_license | johnyburd/hull-breach | a4ddee7b9b8f8557eaf7b439182099ea22a242f0 | 38b374ce3f75169caa667bae8e540bf6fa30d169 | refs/heads/master | 2020-04-14T06:45:51.283424 | 2019-01-04T21:32:09 | 2019-01-04T21:32:09 | 163,695,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | import random
from entities import Entity
class Tile(Entity):
def __init__(self, image, name, x, y):
super().__init__(name, x, y)
self.image = image
class Level(object):
"""basically one level is one screen"""
def __init__(self, width, height):
self.height = height
self.width = width
self.array = []
se... | [
"stevenman42@gmail.com"
] | stevenman42@gmail.com |
71de1566bbaa47c6045df19df096ec489fc4644d | 61bbf24bd02dd52bbb03339cf62fc22a71f9e6be | /addresses/models.py | 9d14291c6edb8e560194318027132bea8270c67c | [] | no_license | stradtkt/Django-Ecommerce | 6bd90f47295439ba92c5a105592aed9fd494affd | afba9f2a5abf979ca5ed4338f0f6ae028928d441 | refs/heads/master | 2020-04-06T15:56:58.198223 | 2018-11-15T20:56:25 | 2018-11-15T20:56:25 | 157,598,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | from django.db import models
from billing.models import BillingProfile
ADDRESS_TYPES = (
('billing', 'Billing'),
('shipping', 'Shipping'),
)
class Address(models.Model):
billing_profile = models.ForeignKey(BillingProfile, related_name="profile")
address_type = models.CharField(max_length=120, choices... | [
"stradtkt@gmail.com"
] | stradtkt@gmail.com |
f742e2b05ad7d83f7a083d3085ad260e52a54a8b | 5bb4a8ca63d2a6230145c431991086e4dca2238d | /static/img/views.py | 5218d812a96ff2c6825b426cdbd6b02acb2e8891 | [] | no_license | netlabreal/agency_s | ee8f8e01125a1097ca1d78812d6709d93db9e838 | d3a3efd1e1bf22d130a898ae46e43559b0f4f89d | refs/heads/master | 2020-04-21T12:25:11.025955 | 2019-02-05T23:27:40 | 2019-02-05T23:27:40 | 169,561,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,718 | py | from django.shortcuts import render, HttpResponse, render_to_response
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from .models import Object, Types, Typ, Rayon, News
from django.views.generic.list import ListView
from django.views.generic import DetailView
import random
def index(request)... | [
"vasa@example.com"
] | vasa@example.com |
7808d0a8114536dd7636e0b310a0f8808eca4bc5 | e88ec2df4fe8b9e233d4a41066a052be2fde77ad | /assignment4/A4latex/extractLinksSnippet.py | 55678d28dd4063b560b48dfa11965a54c00440d2 | [] | no_license | anwala/cs595-f14 | c837061c6ac908ba5ef59c2b39c7150988562ef7 | 064053e20c9fbb6f2ebf03b8102ebf50d143ea86 | refs/heads/master | 2021-01-21T19:20:39.656116 | 2014-12-12T12:21:42 | 2014-12-12T12:21:42 | 23,893,100 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | #extract all children URIs
...
deleteIfFileEmptyFlag = True
for link in soup.find_all('a'):
potentialURI = link.get('href')
try:
if( timeoutValueInSeconds > 0 ):
response = urllib2.urlopen(potentialURI, timeout=timeoutValueInSeconds)
else:
response = urllib2.urlopen(potentialURI)
... | [
"anwala@cs.odu.edu"
] | anwala@cs.odu.edu |
4b564031e62fdef5ccdfa2a64f3c21ed58f7a6b4 | f16dbf2fbb7b51f91cd63c942108d66f014667d8 | /venv/Lib/site-packages/tencentcloud/drm/v20181115/drm_client.py | 97f93c8461aad7c0e0cd8bc06d6e63adb81ab766 | [] | no_license | gtinlian/txcloud_eip | 34c2fafc785a0e9b87cc82418d1ccd44155f42e4 | fdf64343443dd5bea165bdb6eaea7d1612536932 | refs/heads/master | 2021-01-27T03:11:27.894700 | 2020-02-27T08:45:13 | 2020-02-27T08:45:13 | 243,471,635 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,383 | py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses... | [
"gtinlian@sina.com"
] | gtinlian@sina.com |
4ce8ec9202b8397fa82b809428c17b9b50ed4cfa | 501ca55431b019c057dff9659a6928f1f1434187 | /model_builder/TWASFormat.py | 08f43e5daccaf93e20acd0954e88b8559c0329f8 | [] | no_license | Heroico/CStuff | aa9dc00da62109e6842b56034ebaa1283d2e455f | 0aae3912ce40e6a7fb4c2fa4ed342f43a1d9e09f | refs/heads/master | 2020-04-13T22:13:02.357431 | 2017-08-04T15:38:44 | 2017-08-04T15:38:44 | 51,172,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | import numpy
import os
def build_subpaths(folder, subfolder):
sub_path = os.path.join(folder, subfolder)
sub_path = os.path.join(sub_path, subfolder)
return sub_path
class MTF(object):
snp=0
pos=1
a1=2
a2=3
def load_map(path):
snps = []
with open(path) as file:
for i, line... | [
"soyunheroe@gmail.com"
] | soyunheroe@gmail.com |
2dcf86b8d3b334a27a7962ae098f62af4a037e83 | e0cfb71a4268367fab77253a2460714a16e830aa | /doctorbot/website/views.py | 32da7106dfec332ef5bf99c76e01b6ff6d1f540a | [
"MIT"
] | permissive | zuxfoucault/DoctorBot_demo | 79b40548dfd5f34b0f2ccb7857e9377610394608 | 82e24078da4d2e6caba728b959812401109e014d | refs/heads/master | 2020-04-24T01:10:17.010551 | 2019-02-20T02:57:57 | 2019-02-20T02:57:57 | 171,589,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from django.http import HttpResponse
from django.shortcuts import render_to_response
from rest_framework import generics
from rest_framework import permissions
from rest_framework.decorators import api_view, permission_classes
# Create your views here.
@api_view(['GET'])
def index_view(requests):
return render_to_... | [
"zuxfoucault@gmail.com"
] | zuxfoucault@gmail.com |
1bb353798bb598808d70858c162b571ce8670bb6 | 1441ff8d0c6cac31fb6c2477569ea7ab74288a6d | /jiabin/admin.py | 5ce38c68eb13c1b48066fd04278864b46cde6509 | [] | no_license | hooops/jinbin_plus | 9a899a81f020ec190737e845553a5c7320f83229 | 01d6915d45b9e39236da91e83172c62c1ccf4c7d | refs/heads/master | 2016-09-06T08:15:52.894005 | 2015-07-03T07:25:08 | 2015-07-03T07:25:08 | 38,478,851 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,739 | py | #! -*- coding:utf-8 -*-
from jiabin.models import jiabin_m,send_guest_invitation
#from new_event.models import NewEventTable
from admin_self.common import NewformatEvent
from django.contrib import admin
class jiabin_mAdmin(admin.ModelAdmin):
search_fields =('id','username','cat_event_id')
def id(self,obj)... | [
"hooops@qq.com"
] | hooops@qq.com |
8679ba4c0ea19491ac5b5e1d286512c8175a31c0 | 52261a4a48af2d10fa04057c8bed2006b3f8c897 | /ex7_k_means_pca/kMeansInitCentroids.py | ce75a4b727e77a94ba099f68f54e62dec949dccb | [] | no_license | oribro/MLCoursera | fec8f2dd81117a8b741b509b15310a033532f7e6 | f45773a011932be1ee256ebe480b89885dcd0485 | refs/heads/master | 2020-03-27T10:44:54.876080 | 2018-10-19T22:05:39 | 2018-10-19T22:05:39 | 146,442,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # %KMEANSINITCENTROIDS This function initializes K centroids that are to be
# %used in K-Means on the dataset X
# % centroids = KMEANSINITCENTROIDS(X, K) returns K initial centroids to be
# % used with the K-Means on the dataset X
# %
#
# % You should return this values correctly
# centroids = zeros(K, size(X, 2));... | [
"orib@pcentra.com"
] | orib@pcentra.com |
d135c72038a9c0c01be8b4b8ae588403decf6726 | a9b05f3de50bf287b914d4786537cc81a208eaf8 | /preprocessing/migrations/0001_initial.py | 6d47579c623896aa6d24f9f404c75fbffc4f2935 | [] | no_license | 15101538237ren/AccidentsPrediction | 21b23ee60ca1bf8f7aee12f515db046f0bd94799 | b0248c9fc8c1c5018f79083adc4c2b8130e2dba0 | refs/heads/master | 2018-11-04T18:27:54.049460 | 2018-01-09T13:25:48 | 2018-01-09T13:25:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,709 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='App_Incidence',
fields=[
('id', models.AutoFiel... | [
"renhongleiz@126.com"
] | renhongleiz@126.com |
39f20b69aac765749dce3c577325b4782d937cad | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03855/s443395866.py | 9abfb8ce858f7f0b73fac8a310592f783ae12145 | [] | 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 | 1,472 | py | from sys import stdin
import sys
import math
from functools import reduce
import functools
import itertools
from collections import deque,Counter
from operator import mul
import copy
n, k, l = list(map(int, input().split()))
road = [[] for i in range(n+1)]
rail = [[] for i in range(n+1)]
for i in range(k):
p, q ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b1e24074f03e48083803e0356c0db6a3cca3b954 | 0ef1a852f052879fb7733ce02c3722fa97324c80 | /cogs/chucknorris.py | 0be66903acddf2c4dcda0d4169b70ff075c40ae6 | [
"MIT"
] | permissive | mwestdev/globalbot | 4805f27a209d5717aa79bb36cb3bfd734108d746 | 827c567ada94e63f34c87174f00d2444f716f0a0 | refs/heads/master | 2021-06-18T11:27:03.931739 | 2017-06-15T09:51:28 | 2017-06-15T09:51:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | from discord.ext import commands
import discord
import aiohttp
class Chucknorris:
def __init__(self, bot):
self.bot = bot
self.session = aiohttp.ClientSession(loop=bot.loop)
def __unload(self):
self.session.close()
@commands.command()
async def chucknorris(self):
url... | [
"michaelwest299@gmail.com"
] | michaelwest299@gmail.com |
fdc1b9e8da163ba9319d0fc55672ce11631fe1e1 | f37e90775a158ea0ae644e334eac5bba341f4989 | /Python+/Python3/src/core/asterisk.py | 8a4deea474bab401f168aa3a316d4d96fcd53119 | [] | no_license | Aleks-Ya/yaal_examples | 0087bbaf314ca5127051c93b89c8fc2dcd14c1e3 | ec282968abf1b86e54fc2116c39f2d657b51baac | refs/heads/master | 2023-09-01T07:40:44.404550 | 2023-08-27T15:24:34 | 2023-08-29T22:01:46 | 14,327,752 | 4 | 2 | null | 2021-06-16T20:39:19 | 2013-11-12T09:26:08 | Java | UTF-8 | Python | false | false | 561 | py | # Using asterisk function (*) in front of variables
# Asterisk as a function
t = (1, 2, 3)
print(t)
print(*t)
# Single asterisk - any number of arguments AS A TUPLE
a = 1
b = 2
c = 3
def print_args(*args):
print(args)
print_args(a, b, c)
# Double asterisk - any number of arguments AS A DICTIONARY
def print_... | [
"aleksei_iablokov@epam.com"
] | aleksei_iablokov@epam.com |
5aebe0dd77ae7fc145f1a804051dd72cff2b484f | ac51f8ce39ad09183cc48d9ad07bae11e400b06d | /backend/news/migrations/0002_auto_20180520_2148.py | d2d27573f22b6bc56a74b31d5ce8a8714e70e1fd | [] | no_license | koinot-markazi/healing.github.io | d7118a6e03c8edb9a3d05998b5fcec194d2a0ffd | 301b7becc8a801d29cf78ce38fbd8a781fa0dd97 | refs/heads/master | 2020-03-17T23:26:21.281198 | 2018-05-25T07:28:34 | 2018-05-25T07:28:34 | 134,045,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-05-20 16:48
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('news', '0001_initial'),
]
operations = [
migrati... | [
"the.phenomenon@mail.ru"
] | the.phenomenon@mail.ru |
5c9c62c3aa48e5a6db377c6d30804071a57f9151 | abbb1e132b3d339ba2173129085f252e2f3311dc | /model-optimizer/extensions/back/CorrectName.py | 1d1e9c0dd5231d964e8ac163b9be70176224efee | [
"Apache-2.0"
] | permissive | 0xF6/openvino | 56cce18f1eb448e25053fd364bcbc1da9f34debc | 2e6c95f389b195f6d3ff8597147d1f817433cfb3 | refs/heads/master | 2022-12-24T02:49:56.686062 | 2020-09-22T16:05:34 | 2020-09-22T16:05:34 | 297,745,570 | 2 | 0 | Apache-2.0 | 2020-09-22T19:03:06 | 2020-09-22T19:03:04 | null | UTF-8 | Python | false | false | 1,807 | py | """
Copyright (C) 2020 Intel Corporation
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 wri... | [
"alexey.suhov@intel.com"
] | alexey.suhov@intel.com |
0699c6935eb3618c4450c5e89f3ea0ee05bf01ae | cb35df97989fcc46831a8adb8de3434b94fd2ecd | /tests/benchmarks/bm_point_mesh_distance.py | bc1da12883da43fa792ce14d561ae6af072b7a70 | [
"MIT",
"BSD-3-Clause"
] | permissive | facebookresearch/pytorch3d | 6d93b28c0f36a4b7efa0a8143726200c252d3502 | a3d99cab6bf5eb69be8d5eb48895da6edd859565 | refs/heads/main | 2023-09-01T16:26:58.756831 | 2023-08-26T20:55:56 | 2023-08-26T20:55:56 | 217,433,767 | 7,964 | 1,342 | NOASSERTION | 2023-08-25T10:00:26 | 2019-10-25T02:23:45 | Python | UTF-8 | Python | false | false | 1,106 | py | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
from itertools import product
from fvcore.common.benchmark import benchmark
from tests.test_point_mesh_distan... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
3c1129fdec13db55c9f782c4b1035505754349ac | cd8fdf0408e64763605a8064dc6beb7d91b64a32 | /stud_profile/views.py | 4a7065661f6812d99ca3e3b9e42dd04bf0d0f033 | [] | no_license | SPSPRANAV/shodh_swc | 05b66fa453c969cbdda41a89e0386f2f3c5d0156 | 2f51f303dd398cc318b90112eae4ab1a40d87e6c | refs/heads/master | 2020-09-06T18:13:54.444372 | 2019-11-08T16:31:47 | 2019-11-08T16:31:47 | 220,505,823 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | from django.shortcuts import render
from django.db import models
from .models import student
from django.template import loader
from django.http import HttpResponse
from django.forms import modelformset_factory
# Create your views here.
from .forms import UpdateProfile
def userdetails(request):
glo... | [
"phani18@iitg.ac.in"
] | phani18@iitg.ac.in |
1a0c68fc136cb8faba43b827a4977ac6ec13bb9f | b059c2cf1e19932abb179ca3de74ced2759f6754 | /S20/day29/server.py | 02b38215230e14e190eb4dd508011026298f47aa | [] | no_license | Lwk1071373366/zdh | a16e9cad478a64c36227419d324454dfb9c43fd9 | d41032b0edd7d96e147573a26d0e70f3d209dd84 | refs/heads/master | 2020-06-18T02:11:22.740239 | 2019-07-10T08:55:14 | 2019-07-10T08:55:14 | 196,130,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,022 | py | # import json
# import struct
# import socket
#
# sk = socket.socket()
# sk.bind(('127.0.0.1',9001))
# sk.listen()
#
# conn,addr = sk.accept()
# num = conn.recv(4)
# num = struct.unpack('i',num)[0]
# str_dic = conn.recv(num).decode('utf-8')
# dic = json.loads(str_dic)
# with open(dic['filename'],'wb') as f :
# cont... | [
"1071373366@qq.com"
] | 1071373366@qq.com |
54bbd3324b9403964b93eccaad3a8775e18570ed | 90edd7f110d41042b5c0eb2a190835c2dbea5f4c | /phb.py | fa4d0c281cc7d41a1310b40a27d01e3182cf5a58 | [
"MIT"
] | permissive | ochinchina/my-tools | 0b0eacfd88321741a2721b3ae2182dd6461cea52 | 93b5c54582a50a0039c1c1c8238e2689b351afd0 | refs/heads/master | 2023-04-03T00:12:59.725568 | 2023-03-15T09:06:55 | 2023-03-15T09:06:55 | 119,659,568 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,515 | py | #!/usr/bin/python
import urllib2
import argparse
import time
import threading
import traceback
import sys
import logging
import logging.handlers
logger = logging.getLogger( "benchmark" )
class RequestManager:
def __init__( self, total ):
self.total = total
self._lock = threading.Lock()
sel... | [
"noreply@github.com"
] | ochinchina.noreply@github.com |
4aec4fadd2e1ec390a996939d14e31b075f7e94d | bce4b8f79da5523500ffb62f7584a18ff3f5e6b1 | /BlogpostProject/forms.py | cf87339bec5ac9f62db6b2eec568f88659b2f683 | [] | no_license | inder0198/ID99 | c5b355b18f35ac459c0830efbdc297ac89a2c98d | d77fb51e65e690183b8bab8557189bd4577220e9 | refs/heads/master | 2023-06-15T05:05:59.259889 | 2021-07-10T07:00:54 | 2021-07-10T07:00:54 | 384,633,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from django import forms
from .models import *
class BlogPost(forms.ModelForm):
class Meta:
model=Post
fields="__all__" | [
"inderjeet0198@gmail.com"
] | inderjeet0198@gmail.com |
cc9eb4599731978fb386ca905f1334da94eac5f0 | 77ea03e7b7b47070b7bbfb84d61501b84e82221c | /pa4_submission_wrt6af/OnTimePerfReducer.py | 885f3b0c2a60f531371ff7a98ed0adb78ab7bcd2 | [] | no_license | williamtonks/Clouad | 466697bea460a02913f086ece48eb53925279ee8 | cdce1219b8cfe019d9a6bf70cf977507c8c46414 | refs/heads/master | 2023-04-08T02:44:21.270813 | 2021-04-10T20:48:47 | 2021-04-10T20:48:47 | 344,595,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | #!/usr/bin/env python3
from operator import itemgetter
import sys
current_operator = None
operator = None
current_total_delay = 0.0
current_number_of_flights = 0.0
# input comes from STDIN
for line in sys.stdin:
# remove leading and trailing whitespace
line = line.strip()
# parse the input we got from m... | [
"ubuntu@ip-172-31-79-202.ec2.internal"
] | ubuntu@ip-172-31-79-202.ec2.internal |
1a68a54751c29227235113a80caaf9dcdf1b4762 | 90caabd74e9f266ce1ec40975853493aa5ab76d1 | /server.py | 616780ffdff735ab61a19034f822181ce8387d94 | [] | no_license | hkorzeniewski/ECG-ESP32-acquisition | 069aaf0d44a84b72affb4f3dc5082a6458fcb967 | 1c50595beb603c32d40dddbdc437477b5275fa8f | refs/heads/main | 2023-04-09T05:54:03.823965 | 2021-04-22T11:38:59 | 2021-04-22T11:38:59 | 360,493,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | import socket
from datetime import datetime, timedelta
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import csv
import time
s = socket.socket()
s.bind(('192.168.0.29', 8082 ))
s.listen(0)
print("hello from server")
ekg_content = list()
times = list()
czas_pobrania... | [
"56238495+hkorzeniewski@users.noreply.github.com"
] | 56238495+hkorzeniewski@users.noreply.github.com |
2c2989a1b9ed23d38d4520ec0a8daa91d6453622 | cd8eb02ef94cdb36ff20060049562c4e232d949c | /PythonSession-2/Code/HelloPython.py | 5086c171c9b6db1c6c8eed041feed2a1aafd307f | [] | no_license | aaryajahagirdarGITHUB/Anirudh-Gaikwad-comp-Python-Tutorial | d669e55527f0bfd5381bfa0ae83444162b43b8a2 | 9ac43faa58d4135eea5bec270543abbfea06e7f7 | refs/heads/master | 2022-12-16T12:48:18.099117 | 2019-06-20T04:53:45 | 2019-06-20T04:53:45 | 294,915,221 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | # Python First Program Hello Python
# For Execute this program open IDLE (Python Version)
# Go to File--->New File--->
# This file save with .py extention(HelloPython.py)
x="Hello Python"
print(x)
y=input("Press any key to Exit") | [
"noreply@github.com"
] | aaryajahagirdarGITHUB.noreply@github.com |
8d8b659f31f0b33986e1d7bd43984a45e18577ac | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/virtual_network_tap.py | 93c6e03ece13f3201e81b3d067b4e9c1753d2d04 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 4,312 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.