blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
921f4651ee6466ce82a741db262bc976b571d208 | 160b5031162be3741adf1f35bbcf24717789df85 | /tools/c7n_azure/tests/test_subscription.py | 35250407a8a9886da5ff1d4695b96d436209d3dd | [
"Apache-2.0"
] | permissive | FireballDWF/cloud-custodian | 62437b797c26a6b893be1eb5afcffd9c13b56b52 | e3b57f794adee48a8ec5e0585ef9184f30e76ab6 | refs/heads/master | 2021-01-01T16:47:02.592577 | 2019-08-03T14:13:34 | 2019-08-03T14:13:34 | 97,913,779 | 3 | 0 | Apache-2.0 | 2018-12-10T16:18:54 | 2017-07-21T06:26:50 | Python | UTF-8 | Python | false | false | 3,735 | py | # Copyright 2015-2018 Capital One Services, 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | FireballDWF.noreply@github.com |
25d7024a3f721b5139b7b411e7d035a562642b33 | a17b30a9ed9e18e89433aadbb54ac94e7ea12045 | /tests/test_feature.py | 79ae55a811979865532f3a906c12e46cbdee7443 | [
"BSD-3-Clause"
] | permissive | HuttleyLab/mutationorigin | b327fcbc9d9403006f2e9f8166b73185698d7dca | 614aa0bc25531a1a0bc24f94ad0ca0fc101aa88a | refs/heads/develop | 2021-06-30T01:37:05.359810 | 2020-02-10T02:26:55 | 2020-02-10T02:26:55 | 210,751,092 | 1 | 3 | BSD-3-Clause | 2021-01-14T03:22:40 | 2019-09-25T03:53:11 | Python | UTF-8 | Python | false | false | 3,705 | py | from unittest import TestCase, main
from mutation_origin.feature import (isproximal, get_feature_indices,
feature_indices_upto, seq_2_features,
seq_feature_labels_upto)
__author__ = "Gavin Huttley"
__copyright__ = "Copyright 2014, Gavin Huttley"
__credits__ = [... | [
"Gavin.Huttley@anu.edu.au"
] | Gavin.Huttley@anu.edu.au |
a1b141af4ba230218919729b33b632177e99a36d | 6f240997d985414511d70ac12437f423f670d924 | /kk.py | 5c8b461320a10a911af1f5a6360d13585d80e8c1 | [] | no_license | Neeraj-Palliyali/chegg_python | 50be001159339364a3ab1783e43e71d67fa3b686 | 6f6450b6681d23af68d2c8c9aa79a04ea9614081 | refs/heads/master | 2023-05-01T01:54:59.874564 | 2021-05-20T11:45:34 | 2021-05-20T11:45:34 | 369,188,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | def main():
cases=int(input())
for j in range (cases):
l,r=map(int, input().split())
print(l,r)
main() | [
"palliyali.neeraj@gmail.com"
] | palliyali.neeraj@gmail.com |
795ec40d82facc4a10e3d73ed0687def41955f1e | 816efac2849e4507136cc792bdd47fa242577e5d | /app/__init__.py | cd4c267527ac011f7603f723ab950611140830ed | [] | no_license | ange123ux/pitches | 9ddc28544d5e73df1268f91b823e7434e8fc5c79 | 0b29c1b2e00860e2bcdf4e12986d712db3a3a268 | refs/heads/master | 2023-01-30T11:22:05.159520 | 2020-12-10T08:18:39 | 2020-12-10T08:18:39 | 320,083,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | from flask import Flask
from flask_bootstrap import Bootstrap
from config import config_options
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_uploads import UploadSet,configure_uploads,IMAGES
# from flask_migrate import Migrate
# export FLASK_APP=flask_app:app
bootstrap = Boot... | [
"uuwange@gmail.com"
] | uuwange@gmail.com |
2428e1a61c9fd51e2da3f7e2c376685f9ab6ef46 | 5614a303cd6bd20413c7b6a7ba2ce297b9a2ebc0 | /climlab/model/stommelbox.py | 0db1bb78de9a83e2e03af501f2e4b3aaaad4cda6 | [
"MIT"
] | permissive | rodrigo-caballero/climlab | ee507459678529e3d8696fc449b325b6f721e8d0 | a64fd4a29cd0071ea56cd6bbe8adcdda30c879d2 | refs/heads/master | 2020-04-06T06:26:26.448850 | 2015-11-19T02:50:55 | 2015-11-19T02:50:55 | 48,176,455 | 3 | 0 | null | 2015-12-17T13:40:38 | 2015-12-17T13:40:37 | null | UTF-8 | Python | false | false | 1,055 | py | ## NEED TO FIX THE PASSING OF INITIAL PARAMETERS
# especially timestep
# how easy is to implement the Stommel 1961 box model in climlab?
# currently... it still requires a fair bit of code:
import numpy as np
from climlab.process.time_dependent_process import TimeDependentProcess
from climlab.domain import domain, ... | [
"brose@albany.edu"
] | brose@albany.edu |
cbf1f286a5a4755ed26a3aaa819a549740375fc2 | eabe529cbf8a6ae6b0ae476961d69182a1827842 | /parlai/agents/transformer/transformer.py | ce9abbe9b750f545c764a0768d25d9e79a20ed29 | [] | no_license | JiaQiSJTU/ResponseSelection | b3ce8a15129e23830ba3a7311d0b2eb831217163 | 660732f7cc9c0c419a3cf26c85430eb258e5f1f0 | refs/heads/master | 2023-07-04T18:59:47.498626 | 2021-09-01T08:04:54 | 2021-09-01T08:04:54 | 297,997,764 | 28 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,111 | py | #!/usr/bin/env python3
"""
Transformer Agents.
"""
from parlai.core.agents import Agent
from parlai.utils.torch import padded_3d
from parlai.core.torch_ranker_agent import TorchRankerAgent
from parlai.core.torch_generator_agent import TorchGeneratorAgent
from .modules import TransformerMemNetModel
from .modules impor... | [
"Jia_qi_0217@163.com"
] | Jia_qi_0217@163.com |
812a806619b07f027b5ad0c8a799f47953cab872 | 6ba6952aae1a945cea53242cc6e414d5a71e6e39 | /flask/bin/migrate-repository | af39cdef9427b5487aa4cd8eafac275861fae435 | [] | no_license | brianrli/ydc2 | 086e0d4a221846cefd98ec6097fc2a5f20fc85cf | 4ba8d902a16ce0b383ef08d489150b502543db02 | refs/heads/master | 2021-01-10T22:11:27.960101 | 2014-09-26T15:02:21 | 2014-09-26T15:02:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | #!/Users/brianli/Desktop/Fall2014/research/ydc2/flask/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'sqlalchemy-migrate==0.7.2','console_scripts','migrate-repository'
__requires__ = 'sqlalchemy-migrate==0.7.2'
import sys
from pkg_resources import load_entry_point
sys.exit(
load_entry_point('sqlalchemy-migrate==0.7.2', 'c... | [
"brian.rusong.li@gmail.com"
] | brian.rusong.li@gmail.com | |
daf5ddaf79a420807d84ffaf5df3a045e1ae6f25 | 817dcc0d9cb83b26e59fcb06039ad274916c50b2 | /metagenomics/util/fragmenter.py | 396697b09dea5dc4e244e552c748705bf2923c41 | [] | no_license | jetjr/Bioinformatics | 58cfd542a63cac6715f394b75d68075e53511d75 | 53ccdc58afb533cb9ddac9ce498ee9be6f93d4b7 | refs/heads/master | 2021-01-17T18:04:31.652125 | 2017-12-14T20:43:07 | 2017-12-14T20:43:07 | 62,658,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | #!/usr/bin/env python3
import math
import sys
from Bio import SeqIO
args = sys.argv
if len(args) < 3:
print('Usage:', args[0], 'FASTA', 'Size')
sys.exit(1)
header = 1
size = int(args[2])
for seq_record in SeqIO.parse(args[1], "fasta"):
seq_len = len(seq_record.seq)
num = range(math.ceil(seq_len / ... | [
"jamesthornton@email.arizona.edu"
] | jamesthornton@email.arizona.edu |
521bd785819288401810a2cb4f6a8459705241a9 | a61f5a5210ea92d580ef8b65d1239a8408b70465 | /LinkedLists/LinkedList1.py | a881dcc62a4c41c02d7d9070131712c73a93bf39 | [
"Unlicense"
] | permissive | shaurtoonetwork/Data-Structures-Implemented-In-Python | 5c0cd5850e5fc5cc83b190890aa5f74f89c28663 | 31f770165d535547e6ab3973ca92944cd4d93e11 | refs/heads/main | 2023-04-27T15:19:00.528237 | 2021-05-10T09:02:35 | 2021-05-10T09:02:35 | 343,165,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | class Node:
def __init__(self,data):
self.data=data
self.next=None
class Linkedlist:
def __init__(self):
self.head=None
def printlist(self):
cur_node=self.head
while cur_node:
print(cur_node.data)
cur_node=cur_node.next
def append(self,d... | [
"chaturvedi.shaurya7@gmail.com"
] | chaturvedi.shaurya7@gmail.com |
4d5086b818c1fb9361ec25f76458bec8522a1403 | 00a6176368af73cc67c5a0ba641f0f407618ee11 | /src/logic/raid_composition/NaxxRaidCompositionEvaluator.py | f8a70319ac51d59bf976730babc57295a52e8dc0 | [] | no_license | sudo-rm-rf-star/WeeklyRaidComp | 84864908195e255472de07af4f7771c905c5b19b | 79f679b9fbea9588efeff151c95e681ba9e0b559 | refs/heads/master | 2023-02-23T09:50:15.246923 | 2021-07-19T16:00:18 | 2021-07-19T16:00:18 | 244,476,658 | 0 | 0 | null | 2023-02-16T02:26:16 | 2020-03-02T21:13:31 | Python | UTF-8 | Python | false | false | 489 | py | from logic.Character import Character
from typing import List
from logic.raid_composition.RaidCompositionEvaluator import RaidCompositionEvaluator
class NaxxRaidCompositionEvaluator(RaidCompositionEvaluator):
"""Evaluates a raid composition. Methods can be overrides for specific raids. """
def __init__(self, ... | [
"jarre.knockaert@gmail.com"
] | jarre.knockaert@gmail.com |
cbabdd66e0ef8264c518dd059d5082cbbf6e3ede | 63454cc5dfb47aa4014370867081de5362bfee54 | /Basico 2/Potencia.py | 63e139ee6ce3771b5b970fd8ae34f14b2b5e3350 | [] | no_license | Oswaldoivann/Python_Basico | 355940e9ec9dc3107f831c6a831d3779bba064ae | c6f9a639bbd0987a75d0a2213350bab8ed1fe48d | refs/heads/main | 2023-07-12T02:46:08.203661 | 2021-08-20T01:41:08 | 2021-08-20T01:41:08 | 398,105,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 1 23:47:48 2020
@author: Oswaldo Ivann
"""
#Funcion de Potencia: a^b = a_1 * a_2 * ..... a_b
a = int(input("Ingresa el numero base: "))
b = int(input("¿Cual es la potencia?"))
def potencia(a, b):
if b == 0:
return 1
if a == 0:
ret... | [
"noreply@github.com"
] | Oswaldoivann.noreply@github.com |
b6f089fb800c513c3cb4f93981120b475dfeb471 | f2582296555659d17cf6060cc3566e67e57a5239 | /Python/sets/set-difference.py | c484cf58aef02d1c99d41085efc3efa857345a68 | [] | no_license | RanchoCooper/HackerRank | 0687c3d1bc7b742c654797a766aac2122758e0d2 | d19fd34e004c103275234940c5e9f78e374cd39f | refs/heads/master | 2020-01-23T21:42:53.385805 | 2019-09-17T09:45:47 | 2019-09-17T09:46:55 | 74,686,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author : Rancho Cooper
# @date : 2016-11-28 11:49
# @email : ranchocooper@gmail.com
_, a, _, b = [set(input().split()) for _ in range(4)]
print(len(a - b))
| [
"ranchocooper@gmail.com"
] | ranchocooper@gmail.com |
1c2402fe653b36707a8713f3b06887ee305038b6 | 53f0feb1dcfeef00fb63c6449ca6a6260a9abbbd | /posts/migrations/0004_auto_20190213_1331.py | cc84ddde57c30a6cad1e32dd3a003703e561f9c7 | [] | no_license | colindunn109/Ravr | 5fa05a4b2235a960ad34d051b04abecefdc57596 | 51929c267fcc2479a6c91cdcf1c2160888af54bd | refs/heads/master | 2020-04-22T14:17:35.986142 | 2019-02-19T20:52:39 | 2019-02-19T20:52:39 | 170,438,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # Generated by Django 2.0.7 on 2019-02-13 21:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0003_post_created_at'),
]
operations = [
migrations.AlterModelOptions(
name='post',
options={'ordering': ['... | [
"cjdunn109@gmail.com"
] | cjdunn109@gmail.com |
f63f7d7ab8b3f4fb1748cbbe745d5c6a0d5014a2 | eae1e933cc78ffd8b7524a191dec44bce913c361 | /helpers.py | 2d0eaf9bca26d6f3664d27bf88bf76a237cdc8fe | [] | no_license | BehnamTaki/CapsNet-Visualization | f68c1e2a26c6500717caf7e24db1060c7c3a8d3d | e0f62eb504ff3e537b109dae02f2e3ecd897dd5e | refs/heads/master | 2020-04-08T16:52:59.995531 | 2018-11-26T12:51:41 | 2018-11-26T12:51:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,286 | py | import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from keras.models import *
from keras.losses import *
from keras.metrics import *
from keras.layers import *
import keras.backend as K
from capsulelayers import *
matplotlib.rcParams['figure.figsize'] = (20.0, 10.0)
def generate_two_class_linear_d... | [
"shshemi@gmail.com"
] | shshemi@gmail.com |
e1efa8bc8601a1e8b754fdbf5a237799f7158b1e | 446561f3ca9dafed8b889d2b1ba0a63f70c12ea3 | /coderedcms/__init__.py | 8346d82aa9fe8ed21b28b93eae041735b4e25bb3 | [
"BSD-3-Clause"
] | permissive | FlipperPA/coderedcms | eb3aafa2b43c136933f96a30fb7e979b6e90da0e | a807b2bb30c8d8f0bc9988b4e2c683af53672ce5 | refs/heads/master | 2021-07-17T12:37:00.661433 | 2019-02-06T20:00:08 | 2019-02-06T20:00:08 | 159,682,307 | 0 | 0 | null | 2018-11-29T14:52:51 | 2018-11-29T14:52:50 | null | UTF-8 | Python | false | false | 159 | py | release = ['0', '11', '0']
__version__ = "{0}.{1}.{2}".format(release[0], release[1], release[2])
__shortversion__ = "{0}.{1}".format(release[0], release[1])
| [
"cjs110@zips.uakron.edu"
] | cjs110@zips.uakron.edu |
ccc08696bb1af782a16f12ab9b1ff3d1aa5fa18e | 8eebf844c95adcc6d969e19a6d5335b25f7024e7 | /tenancy/models.py | b261d02af299d8ba7c77ac3d4d51bd97e098a55b | [] | no_license | ape-goku/django-tenancy | a6508926f7f974a459057b3c80d3a3c546cc7870 | d52383c7f3a220b8c463dec82ac8502b3c8095c6 | refs/heads/master | 2021-01-15T16:28:34.681513 | 2014-12-04T22:14:32 | 2014-12-04T22:14:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,770 | py | from __future__ import unicode_literals
from abc import ABCMeta
# TODO: Remove when support for Python 2.6 is dropped
try:
from collections import OrderedDict
except ImportError:
from django.utils.datastructures import SortedDict as OrderedDict
import copy
from contextlib import contextmanager
import logging
... | [
"charette.s@gmail.com"
] | charette.s@gmail.com |
8f90c43fdb9608255f7aee58ef6c166d69b5e865 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p00001/s858862768.py | ef31f0508caf06e2a57f4dcb7d9882d5a5cb5fd8 | [] | 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 | 137 | py | #coding: utf-8
temp = []
for i in range(10):
N = input()
temp.append(N)
temp.sort()
print temp[-1]
print temp[-2]
print temp[-3] | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1aece47b2e3ac6f10e5639dc6cb4c83423d6d772 | d01a8a10cb6b5bdde50e5f522cb8bd5012910393 | /footfolder_25603/wsgi.py | 615846566d9480ca8e337c50ac41ebfff8a07680 | [] | no_license | crowdbotics-apps/footfolder-25603 | 7231ab4c4db7f082ff1488bc69e00f637950b3a6 | 82be1f77f7f2658ab6244a1913b0a8b8109452b4 | refs/heads/master | 2023-04-02T20:48:15.819920 | 2021-04-09T21:13:24 | 2021-04-09T21:13:24 | 356,399,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for footfolder_25603 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('DJA... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
90f51bda9748dbaf04ac10395e80bfc9dc869487 | 9fb7df549d33b3b3d854d60873b8047c885eedf4 | /lib/pycbio/stats/__init__.py | 87dcb27c11a9defeb6845711a66e8fe5f831dc67 | [] | no_license | strbean/pubMunch-BRCA | 3a24199440b71469d3fb0135e1d3a9d3823d39b5 | b7eb1270a2f69a262747d1366e0cd16e5b222b5d | refs/heads/master | 2020-03-22T22:57:41.558632 | 2018-09-25T04:59:47 | 2018-09-25T04:59:47 | 140,781,441 | 0 | 0 | null | 2018-07-13T01:29:13 | 2018-07-13T01:29:12 | null | UTF-8 | Python | false | false | 112 | py | # Copyright 2006-2012 Mark Diekhans
from pycbio.stats.Venn import Venn
from pycbio.stats.Subsets import Subsets
| [
"max@soe.ucsc.edu"
] | max@soe.ucsc.edu |
49bd6524126156c839d6eb82e31016176c1cf8a4 | b6789a6f048da6b5e2d31f950cc394567c88804b | /vlocale/vlocale/asgi.py | 6ce2eb0d5e00a3f91a5a658630c554290f83e481 | [] | no_license | prasad-tale/WebSocial | 18b08df16f15205a15ada54813eeb6c45310ce2d | 13628e36fe272266a2bdc53a3eb3c3b49bb69215 | refs/heads/master | 2023-01-13T06:39:36.104286 | 2020-11-06T11:34:38 | 2020-11-06T11:34:38 | 310,575,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for vlocale project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"official.prasad11@gmail.com"
] | official.prasad11@gmail.com |
5c7980057f56083a6b790de232f9a5040fd2ee2a | 577851cc3f9af021381f8d23b5a3ef6928f3a382 | /fill-in-tw-tags-field-from-twlink-address.py | 0e3c15095f6911e96ed415eef361ccb256a9f85b | [
"MIT"
] | permissive | PhotoNomad0/unfoldingword-scripts-to-work-with-data | 96bdc6786e36022bac14a5e6792417e60e910f14 | a2028a5e6fda37272cfabb6e365920d75b97239d | refs/heads/main | 2023-07-13T14:25:42.005972 | 2021-08-27T20:41:44 | 2021-08-27T20:41:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | import io
# CHANGE THIS to the path to your TWL file, it might be in your downloads directory
filename = "C:/Users/benja/Google Drive/scripting/twl_EXO.tsv"
with io.open(filename, encoding='utf8') as f:
with io.open(filename.replace('.tsv','-new.tsv'), 'w', encoding='utf8', newline='\n') as newFile:
for l... | [
"benjamin.wright@unfoldingword.org"
] | benjamin.wright@unfoldingword.org |
af4406e8f04f0d49dac094fd67349329a66308ce | e53da83feaa87f47b55541dd3ff0fdc02150a1cc | /env/bin/celery | 21dbed426f0b2eeede98917dde69bcdb2c5c1ec3 | [] | no_license | cemilesari/e-ticaret | 7e1e180b9022b82f8a65697c52ee5fb6765ff1d3 | ecb3ba25c0daddf502fe33edf77174979799b3d3 | refs/heads/master | 2022-12-10T16:37:03.309744 | 2020-08-25T13:10:58 | 2020-08-25T13:10:58 | 290,192,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | #!/home/c/yemekkalmasin-web/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from celery.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"me@cemilesari.com"
] | me@cemilesari.com | |
3387579eae5907f14972f12d46745a852c4c39c3 | 641161b0c29f8f06372bd1b3d9173d3818bb8856 | /annotateSurvivorMerged.py | a1754c505ace983616b6d02456d7ff6dd419798c | [] | no_license | aganezov/Jasmine_utils | 57417bc822cbe0f1b73252ca864153f36195d50d | a52773cd50ba41f2f5c4e836e441b3a3b9d4c299 | refs/heads/master | 2023-01-08T20:18:27.530802 | 2020-11-18T16:06:54 | 2020-11-18T16:06:54 | 267,444,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,620 | py | import argparse
from cyvcf2 import cyvcf2
class Sample(object):
__slots__ = ('idx', 'chr1', 'coord1', 'chr2', 'coord2', 'strands', 'is_specific')
def __init__(self, idx, chr1, coord1, chr2, coord2, strands, is_specific):
self.idx = idx
self.chr1 = chr1
self.coord1 = coord1
se... | [
"aganezov@cs.jhu.edu"
] | aganezov@cs.jhu.edu |
7cd3a46aa130301b87765c0e3860204021d7d27c | 98ec04660a37a6d0acd806cb263185bd7b296203 | /manuscript/resources/code/OutGameBots/3DesUdpSender.py | 16fd8d989370acade5e0d758343e83c2e42547d6 | [] | no_license | miseax/video-game-bots-ru | 904b9759fef7c8b7200a8ca74f6022ab6485bd3e | 18885355ae2e7059203ffbe58b6e82f87ff8074b | refs/heads/master | 2022-03-07T17:52:40.031146 | 2019-11-18T20:53:13 | 2019-11-18T20:53:13 | 272,967,657 | 1 | 0 | null | 2020-06-17T12:25:49 | 2020-06-17T12:25:48 | null | UTF-8 | Python | false | false | 461 | py | import socket
from Crypto.Cipher import DES3
from Crypto import Random
def main():
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0)
s.bind(("127.0.0.1", 24001))
key = b"The secret key a"
iv = Random.new().read(DES3.block_size)
encryption_suite = DES3.new(key, DES3.MODE_CBC, iv)
cipher_text = iv + e... | [
"petrsum@gmail.com"
] | petrsum@gmail.com |
03e81ca2b65853869b3c82f32c0a5025d22b0183 | b99d44bc1eea1681185429dab0c238e9fa45dc2e | /datatypes/Data/Functor/pure.src.py | 11f50c806d872d8946d83dd63337787f3565129f | [] | no_license | Testing-PureScript-Python/datatypes | 0933218ed21329be440a0218ee996b206b9ecf50 | 838cbca1a87cb4eea8a22c796799fb7fad69191d | refs/heads/master | 2021-01-05T21:33:40.556174 | 2020-02-24T05:02:32 | 2020-02-24T05:02:32 | 241,143,733 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,528 | py | from py_sexpr.terms import *
from py_sexpr.stack_vm.emit import module_code
res = block( "No document"
, assign_star( "$foreign"
, call( var('import_module')
, "datatypes.ffi.Data.Functor" ) )
, assign_star( "ps_Control_Semigroupoid"
... | [
"twshere@outlook.com"
] | twshere@outlook.com |
bf46658bbe2f959a5fbfea1d457fff8b136860be | 3f3b2ac3d3122c9dd0fd77083d3d8e8ed5863c90 | /Código-Python/5 - Imputación de valores omitidos (meteo).py | a0180db5a1e4dc4af1ac37b89ebc6afabf0302eb | [
"CC0-1.0"
] | permissive | maxgamezlopez/TFG | 161ce30cd577005f2fe34415887c2f13ce08aa93 | d414a6d8e0dd9601cdb87a7bd4f66306c732ddf4 | refs/heads/master | 2022-11-08T05:14:04.608279 | 2020-06-30T08:32:42 | 2020-06-30T08:32:42 | 268,874,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,621 | py | import sys
import pandas
import pandas as pd
import csv
import numpy as np
#Carga de registros meteorológicos
#Requiere preprocesamiento (compatible con Excel) entre la descarga y su carga en CSV.
chunks = []
for chunk in pd.read_csv('C:\\MYPATH\\TFG\\API\\AEMET\\reportesAEMET(reducido).csv', chunksize=20000... | [
"noreply@github.com"
] | maxgamezlopez.noreply@github.com |
f1d7782425f5669e4b206184bab3cc231a75ee1c | d9f8ab2ce8c31b48c4b3fa9c51ef2a9d9e31a2f6 | /venv/Scripts/pip-script.py | de416d577526366a54527e9efabb78731625fa61 | [] | no_license | moulid15/pythonpractice | 768f7822c5f00b2c74221717ddd362af9321212f | 8080761921669639b76ccafdd9fd1445253b4457 | refs/heads/master | 2020-04-12T07:02:11.342746 | 2018-12-18T23:07:41 | 2018-12-18T23:07:41 | 162,355,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #!C:\Users\mouli\PycharmProjects\pythonpractice\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys... | [
"36307143+moulid15@users.noreply.github.com"
] | 36307143+moulid15@users.noreply.github.com |
4b524710cdb7a35e21197f77c2c7b484bf166d4c | 1ec3d78b1cfc39f9ab8597be71146e5ff72bddf3 | /music/orpheus/generate_tune.py | ca7380cf7c3d5717f1e4e774bb40ba606b21a244 | [] | no_license | buhii/beacon | 0983b850327a24c33321e39aa9f29cfd7bdf313e | f7e5ef3fc6912c9c4285663ebb5478a8c9023abc | refs/heads/master | 2020-05-09T09:35:10.565277 | 2019-02-08T06:58:30 | 2019-02-08T06:58:30 | 2,035,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,666 | py | class TripletError(Exception): pass
Z = 999
melody = """
62 Z Z Z | 64 67 66 64 | 69 Z 69 Z | 69 71 66 67
64 Z 64 Z | 64 67 66 64 | 62 74 73 71 | 69 67 66 64
62 Z Z Z | 64 67 66 64 | 69 Z 69 Z | 69 71 66 67
64 Z 64 Z | 64 67 66 64
74 Z 62 Z | 64 Z 66 Z | 69 67 73 71 | 69 67 66 64
74 Z... | [
"buhii314@gmail.com"
] | buhii314@gmail.com |
d9442ec4991157e8ecacec81963170be831c63f4 | 3a28b1a12d0710c06f6360381ad8be6cf3707907 | /modular_model/triHPC/triHPCThermo/HPCFeed2SelfCstmLiqEtlp_pP.py | 50a3ca49480d7c661fda3be8fe4136376d2ddf41 | [] | no_license | WheatZhang/DynamicModelling | 6ce1d71d3b55176fd4d77a6aedbaf87e25ce4d02 | ea099245135fe73e8c9590502b9c8b87768cb165 | refs/heads/master | 2020-06-15T14:12:50.373047 | 2019-07-05T01:37:06 | 2019-07-05T01:37:06 | 195,319,788 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | def LiqEtlp_pP(P,T,x_N2):
x = (P-5.40396585e+02)/1.23902400e-01
y = (T--1.78102248e+02)/2.35833333e-03
z = (x_N2-9.97848887e-01)/4.61257558e-04
output = \
1*-7.45932272e-01
liq_etlp = output*1.00000000e+00+0.00000000e+00
return liq_etlp | [
"1052632241@qq.com"
] | 1052632241@qq.com |
cc91b4e184c06694ce411cbcfbfb6bbd1e7649f3 | 6283652609b8de30d4e6ae00fd375e6633ae171a | /course/forms.py | 2dcd7cc0f0e1042c2a0b5821cf52634929174b2c | [] | no_license | ninjaroot-509/django_school | 440955364d2f6cd2dcbb3ca6e7f987d2d17a854f | 4c8d4958be48c6bfac54871f220b49c21d834976 | refs/heads/master | 2022-10-03T00:27:54.310215 | 2020-06-02T15:56:41 | 2020-06-02T15:56:41 | 268,843,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | from django import forms
from django.forms.models import inlineformset_factory
from course.models import *
from classroom.models import (
User
)
class CourseEnrollForm(forms.Form):
course = forms.ModelChoiceField(queryset=Course.objects.all(), widget=forms.HiddenInput)
class CourseCreateForm(forms.ModelForm):... | [
"ninjaroot@Ssociety"
] | ninjaroot@Ssociety |
e8c12dc266b2a158d064dcef548eba49c051d655 | 3a74e1dc195c58f5aa4335616234621a25c62e62 | /ex05/alpha_neuron.py | 4d2fceac230f18464e326b895f6cd09eff8e95c2 | [] | no_license | tristandeborde/CompNeur | 7ef1b2867eed8a5371685f157b8b1274d8b2c536 | 35918f2748e83c826f75c06244e1a03d17dbf617 | refs/heads/master | 2020-03-11T09:27:18.948174 | 2018-04-17T13:51:42 | 2018-04-17T13:51:42 | 129,911,630 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | """
Created on Wed Apr 22 16:13:18 2015
Fire a neuron via alpha function synapse and random input spike train
R Rao 2007
translated to python by rkp 2015
"""
from __future__ import print_function, division
import time
import numpy as np
from numpy import concatenate as cc
import matplotlib.pyplot as plt
np.random.s... | [
"tdeborde@e2r8p5.42.fr"
] | tdeborde@e2r8p5.42.fr |
17ff43bdd44421858b92ce52e95688d08ae901da | 064d97535c5034e64fd39c57ea652b99a9aae234 | /PricePal/settings.py | c6615a53a25f41e8cbf91b8d769155b2d5ae0161 | [] | no_license | thomasrizzo96/PricePal | 928c92dfd778724e437433dd8635d48b0a1a799c | f9ed4cbe39f7905d8eb6f552c5fbb42d8d10a899 | refs/heads/master | 2021-01-20T02:12:52.554594 | 2017-04-27T23:50:12 | 2017-04-27T23:50:12 | 87,568,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,157 | py | """
Django settings for PricePal project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import o... | [
"thomas.rizzo96@gmail.com"
] | thomas.rizzo96@gmail.com |
ed5e03befabbd4b4544e694b6c7aa751f5a90831 | a8ffe41852444243e6b09fd9638e540328218834 | /diccionarios.py | cf8ffdc002437206af935c39ac3b70bb149dae9e | [] | no_license | mangel08/python | 3d2bc67fc0b80690d898bcb0d56afc314ce4e390 | 2d2b6e585f6e64e393a2e13f237771a5c02e1e9f | refs/heads/master | 2021-01-19T09:00:19.934790 | 2017-03-25T04:38:37 | 2017-03-25T04:38:37 | 82,081,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | diccionario = { 'a' : 55, 'b' : True, 5 : "esto es un string", (1,2): False, 'a' : False}
# Creando nuevo registro
diccionario['c'] = 'nuevo string' #creariamos clave/valor
# Modificando el valor de clave a
diccionario['a'] = True
#accendiendo a un valor
valor = diccionario['c']
#accediendo a un valor mediante get(... | [
"mangel.2711@gmail.com"
] | mangel.2711@gmail.com |
1d6041b82892195a800cd204f526e36d4a3cbb2b | 23f8076467b0cc276a91a3ee0a6fbd6e30d3905d | /resource/trac-plugins/workfloweditorplugin/workfloweditor/workfloweditor_admin.py | 2a3d481fc0c5eefd49d67bd1a17ef4200bf1bb60 | [] | no_license | okamototk/kanonconductor | b6f7d04b2e5c5acd6fd4ee6f6d2f05a4b02bce45 | e6335c264e7a9a2e961e9a72db3660c2da1c24e3 | refs/heads/master | 2021-01-13T02:11:45.895523 | 2012-11-22T14:03:02 | 2012-11-22T14:03:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,149 | py | # -*- coding: utf-8 -*-
from trac.core import *
from trac.web.chrome import ITemplateProvider, add_stylesheet, add_script
from trac.admin import IAdminPanelProvider
from trac.web.api import ITemplateStreamFilter, IRequestHandler
from trac.web.chrome import Chrome
from api import LocaleUtil
class WorkflowEdit... | [
"devnull@localhost"
] | devnull@localhost |
cfe0b3ac2c13fce712e741e278372a3543adae5d | 81fe2fd2ce947b90066521af817980db48201bbf | /5. cna/webproxy/.ipynb_checkpoints/Proxy-checkpoint.py | 9102de8fdcbdcaac85b10747b8813f95587c9357 | [] | no_license | yaoReadingCode/Uni_World | d1d3921e2a770ec6e18b390d926cbbe12ccad7c2 | 904c67e72dd9a780cf2cd966e2119bb45e08fc70 | refs/heads/master | 2023-04-27T13:21:10.360006 | 2021-02-17T05:11:49 | 2021-02-17T05:11:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,174 | py | # Include the libraries for socket and system calls
import socket
import sys
import os
import argparse
import re
# 1MB buffer size
BUFFER_SIZE = 1000000
parser = argparse.ArgumentParser()
parser.add_argument('hostname', help='the IP Address Of Proxy Server')
parser.add_argument('port', help='the port number of the pr... | [
"criell.di@gmail.com"
] | criell.di@gmail.com |
29fbbe6b6df20eabedaa8814a84f1bec60cd4365 | 37e8a713b385b0ce6eeb4269568641fc44af79ad | /Python/SortDownloadFiles.py | 76966ede7e82ff4e15ce42e6f73af0f4f1fc494c | [] | no_license | SDPTSolutions/SDPTMiniTuts | 5f63372172cc5588b10ca1c9f54a980f00fe5754 | f88ebc5d83ccac8f9948dbf26fd4e4f0480670b5 | refs/heads/master | 2022-07-24T09:56:03.502343 | 2020-05-22T08:28:58 | 2020-05-22T08:28:58 | 258,950,734 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,898 | py |
import os
import time
import tkinter as tk
from tkinter import filedialog
root = tk.Tk()
root.withdraw()
print("======== File Sorter ========")
print(" Select a Folder to Sort ")
print("=============================")
pathToClean = filedialog.askdirectory() + "/"
pathList = ["Image Files","Docum... | [
"noreply@github.com"
] | SDPTSolutions.noreply@github.com |
ded1665fd40c46863c88f8202122f2588f353ec3 | 1391c1ccd94c1d40654a1b1345df590d61979316 | /test/nodes/test_image_to_text.py | a2266479273a0e9459421457282f1a40b1feaaf5 | [
"Apache-2.0"
] | permissive | suryatmodulus/haystack | 2adb248097fb863d8d65ee4aab315f9875d02fef | 95a48c6c9d31826243385c9b0df1ca781ba51d45 | refs/heads/master | 2023-03-18T06:46:51.985709 | 2023-03-10T17:07:44 | 2023-03-10T17:07:44 | 249,428,087 | 0 | 0 | Apache-2.0 | 2020-03-23T12:44:23 | 2020-03-23T12:44:22 | null | UTF-8 | Python | false | false | 3,781 | py | import os
import pytest
from haystack import Document
from haystack.nodes.image_to_text.transformers import TransformersImageToText
from haystack.nodes.image_to_text.base import BaseImageToText
from haystack.errors import ImageToTextError
from ..conftest import SAMPLES_PATH
IMAGE_FILE_NAMES = ["apple.jpg", "car.jp... | [
"noreply@github.com"
] | suryatmodulus.noreply@github.com |
04643d0429cbdc0fd02de6f16c868c925f2e1cc9 | 0b8f70df4468a24e3ab18b642d47772fbb0d5f10 | /Lista1/l1q24.py | 6ea8b0e174ec583c4c23141ecec7d940e2df0023 | [] | no_license | lucasebs/EstruturaDeDados2017.1 | e2ab55e6dfd86d7da8b196e2bd1e22f08c2af737 | 9a8f8a0cd2a881db2705e6484efd7837d0f3e947 | refs/heads/master | 2020-12-13T12:53:28.453845 | 2017-10-02T15:53:11 | 2017-10-02T15:53:11 | 95,600,142 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | from l1q23 import Carro
carros = [None]*2
for i in range(0, len(carros)):
nome = raw_input("Nome(modelo) do carro: ")
anoFab = int(input("Ano de Fabricacao do carro: "))
anoRev = int(input("Ano da Ultima revisao do carro: "))
km = int(input("Quilometragem: "))
carroTemp = Carro(nome, anoFab, anoRev, km)
carros... | [
"noreply@github.com"
] | lucasebs.noreply@github.com |
5f14bf71696f4f2f076ef63883388866dcef1766 | fcab2a0ba5eac5456fe66d11695b55c5300d002c | /djangoProjects/MultApps/apps/surveys/urls.py | df761e151881d7ca0203ce82726875c9a24c4d6a | [] | no_license | vikjha/python | 70ccc48a55a3fbd55261cfdf60a85220d2b5300a | 2ab4ce99a35cbd8c647a1456459d6c6c1f8bffff | refs/heads/master | 2021-07-13T05:12:03.900646 | 2017-10-13T10:21:30 | 2017-10-13T10:21:30 | 105,296,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.conf.urls import url
from . import views # This line is new!
urlpatterns = [
url(r'^surveys$', views.index),
url(r'^new$', views.new)
]
| [
"vikjha9@gmail.com"
] | vikjha9@gmail.com |
cbf305c550eadaf2bc00c095ab000524f7979dfd | 991c4502446080109aa41c1cf514030dddaddeb0 | /emecc_1.py | 40475df11281500557cb7faa507ff743b59b1fec | [] | no_license | Kein-Cary/seniorproject_quenching_2 | 1f81458a23a354e7597eb51233896bb68ef237eb | c06d50ecfb9189f6357e858869e0619d510a6fde | refs/heads/master | 2020-04-07T10:22:56.752972 | 2018-08-21T10:27:09 | 2018-08-21T10:27:09 | 124,203,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | import numpy as np
import matplotlib.pyplot as plt
# choose the "True" parameter
m_true = -0.9594
b_true = 4.294
f_true = 0.534
# Generate some synthetic data from the model
N = 50
x = np.sort(10*np.random.rand(N))
yerr = 0.1+0.5*np.random.rand(N)
y = m_true*x+b_true
y_true = m_true*x+b_true
y += np.abs(f_true*y)*np.ra... | [
"36956610+Kein-Cary@users.noreply.github.com"
] | 36956610+Kein-Cary@users.noreply.github.com |
dc7cd1afd87063bb007f1d930ad10427c642a959 | d636d31a2de8c92e19d4fbfbcfbf538f6d489c6d | /quiz/quiz_2/quiz_2.py | 136c33a8bab3ff94d496635e7af0b1b33d4d0455 | [] | no_license | CharlesXyt/comp9021 | e67462d6a603c06d4fa08dece215cda8dff16cb3 | c671e30addb7ea352e1e2782178aaf88e2523dfb | refs/heads/master | 2020-05-03T19:48:56.830160 | 2019-04-06T05:13:43 | 2019-04-06T05:13:43 | 178,791,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | # Written by *** and Eric Martin for COMP9021
'''
Generates a list L of random nonnegative integers, the largest possible value
and the length of L being input by the user, and generates:
- a list "fractions" of strings of the form 'a/b' such that:
. a <= b;
. a*n and b*n both occur in L for some n
... | [
"noreply@github.com"
] | CharlesXyt.noreply@github.com |
49c6efc9f5b7161e1826d10eb3bacbe53ab17623 | bcf0e4b20d5496a562897a234c8ef642d8c39412 | /app/models/User.py | eaa86a41a2f0c37072faf91ad741f46967301f2b | [
"MIT"
] | permissive | Amelia-was/python-newsfeed | 1df964abc4fb3788143e23ac6b4ec610949a74a9 | d0dfd2981071766acf66c65167c16447fde710fa | refs/heads/main | 2023-06-12T14:33:34.894653 | 2021-07-05T18:55:56 | 2021-07-05T18:55:56 | 381,708,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | from app.db import Base
from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import validates
import bcrypt
salt = bcrypt.gensalt()
class User(Base):
__tablename__ = 'users'
id = Column(Integer, primary_key=True)
username = Column(String(50), nullable=False)
email = Column(String(50), nu... | [
"74831846+Amelia-was@users.noreply.github.com"
] | 74831846+Amelia-was@users.noreply.github.com |
e83b9ea8504433bfed386da9ae633fcd91098dd9 | 73c01a3f052f8ef63890ec3c2e28403ad41e9a71 | /td/migrations/0004_auto_20170207_1445.py | 47bae81cbf8dd662e87669a0574724e21c14fb19 | [] | no_license | Jokey90/aho | 4c007c65c819efb726a732a8f36067c5a0226100 | 8bcd41e9ef7d40f07499429f385d4fec590636f6 | refs/heads/master | 2020-03-21T22:28:36.395996 | 2018-06-29T09:25:05 | 2018-06-29T09:25:05 | 139,128,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,958 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-02-07 14:45
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
... | [
"Kishkurno_AS@dsdf.cds.ru"
] | Kishkurno_AS@dsdf.cds.ru |
5c21a1f652a75a295576e53ff349f00acfdecbdf | 9af29df29012ff521074aa1f3a6eacfe7f3eb6a9 | /449/main.py | 16040660dbe2ad5bb44c5084a592f09b3f83d7fe | [] | no_license | rh01/spring-go-code | e3a0cd1246683aa1bed8b29baa1c8b5ea87253c6 | 706ad785cbc4abb3566710c6e2904fe743c1cc6f | refs/heads/master | 2021-04-13T02:36:54.892843 | 2020-03-22T06:52:08 | 2020-03-22T06:52:08 | 249,129,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Codec:
def serialize(self, root):
"""Encodes a tree to a single string.
:type root: TreeNode
:rtype: str
""... | [
"1048157315@qq.com"
] | 1048157315@qq.com |
ec772a59f1cf984c7e74a64338ec63d14b28e44c | d66a16255dde80474665d6a1a4c457ad70114e70 | /compare/fileListComp.py | 80c321fd455e20df73d2d7b1781a237a16720fa9 | [] | no_license | liuchuanyang/tools | 3d84725dda1c79c4b953c2d9e2697aef218308f5 | 9bfa0d0bc81442608e9e2ddc0965b9952e133cdb | refs/heads/main | 2023-02-09T15:03:06.372195 | 2020-12-22T03:20:41 | 2020-12-22T03:20:41 | 323,498,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | import os
# 获取指定文件夹的列表
def check_file(file_path):
all_file = os.listdir(file_path)
files = []
for f in all_file:
if os.path.isdir(os.path.join(file_path,f)):
files.extend(check_file(os.path.join(file_path,f)))
elif f==".DS_Store":
continue
else:
... | [
"374300671@qq.com"
] | 374300671@qq.com |
5968ff434a3eb0fb86e5686acb75c1e84730ac3c | 68f45e58620307b6a3f0fa8177209c243fe102ee | /environment/env_vrep.py | be56cf8ab19618156c4df15e8e7f36ac6bac12c8 | [] | no_license | pcchenxi/rl_planner | 2741ba3e6de54d6c88bc4b40b9bf4f568ed03bb4 | 3616e718e6a53656f63596b08e524bc6da3ff494 | refs/heads/master | 2021-01-01T04:41:44.419622 | 2017-07-16T16:46:39 | 2017-07-16T16:46:39 | 97,226,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,849 | py | #!/usr/bin/env python
import sys, os, math
sys.path.append("../v-rep_plugin")
import numpy as np
## v-rep
import vrep
import matplotlib.pyplot as plt
action_list = []
state_size = 2
action_size = 9
vrep.simxFinish(-1) # just in case, close all opened connections
print 'init vrep'
for a in range(-1, 2):
for b ... | [
"xi8@kth.se"
] | xi8@kth.se |
64be3050d954ffb3c9c2a3cc7413b2e9e19134a5 | 1e2c2688150ddcc894d9049fc353029cd75c8d87 | /SourceCode/gui/utils.py | c5ecaf1235919737051797900de66cdcd61f7b9f | [] | no_license | tryanaditya/mainmain | f3f9559230a520b69bdafc8bf9e36ebbf14147fa | fc82048e17587af3b56b977bea476a7f2506a7ba | refs/heads/master | 2021-01-11T03:11:00.020758 | 2016-10-16T23:55:05 | 2016-10-16T23:55:05 | 71,084,893 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | from scipy.io import wavfile
def read_wav(fname):
fs, signal = wavfile.read(fname)
if len(signal.shape) != 1:
signal= signal[:,0]
else:
print('mono_file : '+fname)
# elif len(signal.shape) != 1:
# print('only 1 : '+fname)
# print('hello')
assert len(signal.shape) ==... | [
"tryan.aditya@yahoo.com"
] | tryan.aditya@yahoo.com |
e0982b23557d06b25c8b8e07f38f0e77e9f29681 | 821b52efc6e98b4825ab387847a0154c430f8951 | /CmdlineTool.py | 19657565401f5b97b85806ef093dfd07f548885f | [] | no_license | yasasvee/CmdLine_tool_py | 1e8be4baf9af77333aca7e8f430a2c240f12c8c3 | 6a671f029fd6ee772eaf797e73decb6ba947dcbc | refs/heads/master | 2021-01-17T20:47:29.259182 | 2017-02-26T17:35:24 | 2017-02-26T17:35:24 | 60,091,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | #!/usr/bin/env python
# coding=utf-8
import click
@click.command()
def concat(str1, str2, delimitter):
print(str1+delimitter+str2)
@click.command()
def lowerCase(string):
print(string.lower())
@click.command()
def upperCase(string):
print(string.upper())
| [
"yasasvee.atreya@gmail.com"
] | yasasvee.atreya@gmail.com |
fc880680fe749067018dec9298ad20e23306e4d6 | d0723bc0ab6b47b1ef3851d772fce7b0d392107a | /became_king.py | 6a91941b52a5d6d461804a36ca004aca445437cd | [] | no_license | thomkrillis/Checkers | 2b558874fe55341f6bda832ccb032858dfb15339 | 561b453bbc756f97ea8053f665fe51bc48d591cd | refs/heads/master | 2016-09-06T15:54:30.899833 | 2013-11-12T15:40:42 | 2013-11-12T15:40:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | # Bobby Yankou
# Artificial Intelligence
# Project #1
# Checkers
# Became King
def became_king(piece,board,player):
if player == 0: #bottom player
if piece >= 268435456:
return 1
elif player == 1: #top player
if piece <= 8:
return 1
| [
"thisisjackolantern@gmail.com"
] | thisisjackolantern@gmail.com |
e3bb6476267d03bd57901f8e28fc8ed8f5ef06f5 | 83688d776e1fa574f27ebd6624fda6fd6e63ea61 | /build/catkin_generated/generate_cached_setup.py | ec413eb8d64c57474d70b29073900f6b91b1220f | [] | no_license | akhil22/ar_localization | 8b56157ee2d83aea9b75b04ccd11a2537a017e2c | b023df80e3d6555dec764f1997473b1384170a99 | refs/heads/master | 2020-05-19T15:32:44.613359 | 2014-12-23T09:44:20 | 2014-12-23T09:44:20 | 28,626,765 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/hydro/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, os.path.joi... | [
"akhil.nagariya@gmail.com"
] | akhil.nagariya@gmail.com |
788152b527d51eb13bfe6abb20de640af650dc7e | be2f5de654fcd66ad43edd79f4c956721228315a | /sqlstore/store.py | 4e8d868996bc14b644402527c8084795c872e897 | [] | no_license | candyan/starend | 1bc97c28d09d2835ffee13e3040df4499a2454d4 | 705e1ee7e91c7b0c626563b25fb6cb300a32a142 | refs/heads/master | 2016-09-09T19:41:05.188795 | 2012-05-16T03:09:26 | 2012-05-16T03:09:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | #-*-coding:utf-8
from consts import *
import MySQLdb
def execute(sql, params):
conn = MySQLdb.connect(
host = DATABASE_SETTING["host"],
user = DATABASE_SETTING["user"],
passwd = DATABASE_SETTING["passwd"],
db = DATABASE_SETTING["db"],
charset = DATABASE_S... | [
"liuyanhp@gmail.com"
] | liuyanhp@gmail.com |
5d1de83c438d5ee3ae02af5116e3e20221357b03 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnwatch.py | 2cbb90397d8c7b7424e2d50e7be5ae470684f730 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 2,913 | py | ii = [('BentJDO2.py', 8), ('EmerRN.py', 2), ('CookGHP3.py', 10), ('LyelCPG2.py', 3), ('MarrFDI.py', 19), ('RogePAV2.py', 11), ('CoolWHM2.py', 10), ('KembFFF.py', 4), ('GodwWSL2.py', 33), ('ChanWS.py', 5), ('RogePAV.py', 9), ('SadlMLP.py', 1), ('FerrSDO3.py', 16), ('WilbRLW.py', 36), ('WilbRLW4.py', 28), ('RennJIT.py', ... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
1f1abd5bb61357aeba4d2c7ebceeb687a6037ac1 | b41e0396a7ade9b03fca090705837867cef33f68 | /projects/deep_optimiser/code/silhouette_generator_v2.py | 3e3dbc0c5d8a25ac8c6371da0636ccddd31b002a | [] | no_license | hboekema/3D-shape-estimation | 57fd7e06dd634fcc72a1e3fc4f66fffddbd611b2 | 6e3fd5f6f3c24f138e40bc548569b2a87804aab5 | refs/heads/master | 2022-12-14T19:37:33.924052 | 2020-09-10T09:10:11 | 2020-09-10T09:10:11 | 215,534,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,006 | py | import os
import numpy as np
import tensorflow as tf
import keras
import pickle
import json
from datetime import datetime
from smpl_np import SMPLModel
from render_mesh import Mesh
#from generate_data import gen_data
from tools.data_helpers_v2 import architecture_output_array, gen_data
from tools.image_helpers import ... | [
"boekemah@gmail.com"
] | boekemah@gmail.com |
fbdf71a5b00d067589a4fa5b7ea652cd29eb6247 | e3ef6455f3b1d27c5aa820291e0e3a1a65746def | /main_entry.py | 41f92cf5d47e7c465071d3a3034cf239eaba7e09 | [
"MIT"
] | permissive | FCosforL/mnist_LeNet | 47454e97022df55d3b66f3c52ba303d239707187 | 6aae3e35b126547c68221817f94524ed3220a269 | refs/heads/master | 2021-07-16T15:04:54.204698 | 2017-10-23T16:12:11 | 2017-10-23T16:12:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,407 | py | """
Tips for
Uses multiple GPUs, indicated by the flag --nr-gpu
Example usage:
CUDA_VISIBLE_DEVICES=0,1,2,3 python train_double_cnn.py --nr_gpu 4
"""
# utility modules
import os
from os import path
import shutil
import sys
import time
import json
import argparse
import numpy as np
import tensorflow as tf
import tens... | [
"3140102299@zju.edu.cn"
] | 3140102299@zju.edu.cn |
efc9bfc1f5bb128ff465c9c98e06e75c9ccd4d0f | 7c3116ca951c1c989fcc6cd673993ce6b1d4be5a | /modules/iconcache_connector.py | 626ff1385dbd7b7fefbfaf8cae8c755cde714200 | [
"Apache-2.0"
] | permissive | Kimwonkyung/carpe | c8c619c29350d6edc464dbd9ba85aa3b7f847b8a | 58a8bf7a7fc86a07867890c2ce15c7271bbe8e78 | refs/heads/master | 2022-12-15T13:51:47.678875 | 2020-09-11T05:25:43 | 2020-09-11T05:25:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,068 | py | # -*- coding: utf-8 -*-
import os
from modules import manager
from modules import interface
from modules import logger
from modules.windows_iconcache import IconCacheParser as ic
from dfvfs.lib import definitions as dfvfs_definitions
class IconCacheConnector(interface.ModuleConnector):
NAME = 'iconcache_connector'... | [
"jbc0729@gmail.com"
] | jbc0729@gmail.com |
5b4434a41978c71cf4b2dced8932f47374af059f | 288b420f96358e57365beca65c0c5f5fa6b87ce9 | /Python_Fisica/modelos_evolutivos/mod_evol_v1.py | 6b8352a510c86a5a5e8c499691bf733ede61526c | [] | no_license | paulofreitasgomes/Disciplinas | 7dfee2623dc295c6a4edf822d523eb1476e48209 | b94c5e66037824c5a6b14295cb4c9e3df7e23cb5 | refs/heads/master | 2021-10-27T22:59:21.611758 | 2021-10-27T18:23:43 | 2021-10-27T18:23:43 | 89,826,159 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,125 | py | #!/usr/bin/env python
# coding: utf-8
# # Eficiência em Processos Cooperativos
# Neste projeto, estudamos a eficiência de um grupo de agentes (pessoas) em resolver um dado problema. A ideia é avaliar o que é melhor: cada pessoa resolver o problema separadamente ou as pessoas conversarem entre si. Para isso calculamos... | [
"paulofisicajatai@gmail.com"
] | paulofisicajatai@gmail.com |
9bc346a7ae74d0660986cc88c38cd2578d71e903 | 741333ced9ea1b326997dc031e5de27529bad04a | /glue_vispy_viewers/extern/vispy/testing/__init__.py | d8a7266c45d1e6c776b6e2397a6158aff13fb7d4 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | jzuhone/glue-vispy-viewers | f1b7f506d3263c4b0c2f4032d4940b931b2c1ada | d940705f4ba95f8d7a9a74d37fb68c71080b490a | refs/heads/master | 2020-06-20T19:10:02.866527 | 2019-06-24T11:40:39 | 2019-06-24T11:40:39 | 197,217,964 | 0 | 0 | BSD-2-Clause | 2019-07-16T15:14:53 | 2019-07-16T15:14:52 | null | UTF-8 | Python | false | false | 2,415 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
"""
Testing
=======
This module provides functions useful for running tests in vispy.
Tests can be run in a few ways:
* From Python, you can import ``vispy`` and do ``vis... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
3d81268ecf6ecc3779008908656ac5bcbcc6bf47 | a05e6b0ade029ba1b879af80216d6eb2cf9b7bca | /04. suma_z_wyjściem.py | 41c7112e099266d577f1027a8f2a11bdf0c988d2 | [] | no_license | JanuszSikora/Exercises | 61f960397a32d33ada590760ea54a4d760606941 | 3b812d5716afce4b431bba0cec62af41ac3bb8f1 | refs/heads/master | 2021-01-22T20:18:16.473993 | 2017-03-17T11:51:23 | 2017-03-17T11:51:23 | 85,306,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from time import sleep
print("Liczę sumę z a i b; jeśli podasz zero program się skończy")
a=b=1
while a!=0 and b!=0:
a=float(input("Podaj a "))
b=float(input("Podaj b "))
if a==0 or b==0:
print("Do widzenia")
else:
sum=a+b
print("Suma to ",sum)
sleep (5)
else:... | [
"noreply@github.com"
] | JanuszSikora.noreply@github.com |
3ea4feeb4103d1a6997bc87b04d0c613b2562ba2 | e91b005a249985bc3251c6cf5d00eafa52d293e3 | /bravado/__init__.py | deb0fa494d2140fc93f96b9b9a60158004d5c85b | [
"BSD-3-Clause"
] | permissive | analogue/bravado | 0ecfbd65081da4ff5f42a03a6dc24d3d88cbdb21 | ded3a811579ea4e0d1adb3582b90d8d941b7fb17 | refs/heads/master | 2021-01-15T08:05:47.117024 | 2016-04-04T20:05:28 | 2016-04-04T20:05:28 | 25,488,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | version = '8.1.0'
| [
"sj@sjaensch.org"
] | sj@sjaensch.org |
b3132970d2a06ba83b2117e6a1ff470287472dc8 | a56b52705d59552889df934ecd6b77126221afec | /apps/territorializacao/apps.py | f60a8455566d59533574211b01112836c327399b | [] | no_license | Andre-Britto/saude-integrada | c8f48f5dcbfe80f042927eaef7e5f3de366d317c | 0e4769ca159289860c543f8464c2def43e582bbd | refs/heads/master | 2023-01-28T19:39:02.238850 | 2020-12-14T17:09:18 | 2020-12-14T17:09:18 | 321,321,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from django.apps import AppConfig
class TerritorializacaoConfig(AppConfig):
name = 'apps.territorializacao'
| [
"andrebritto79@hotmail.com"
] | andrebritto79@hotmail.com |
84d070f945255f5301c9b2a7602b9f80389ce53e | 45f93a9d47204d76b8bf25a71dfb79403e75c33c | /next-greater-element-i.py | 36f563052966cec348db92db4c5eb4254417f009 | [] | no_license | tahmid-tanzim/problem-solving | 0173bce1973ac3e95441a76c10324c0e1b0a57c3 | 6ddb51de6772130f209474e76f39ca2938f444f0 | refs/heads/master | 2023-06-25T02:18:03.690263 | 2023-06-20T06:58:46 | 2023-06-20T06:58:46 | 137,173,850 | 4 | 1 | null | 2022-03-30T08:28:41 | 2018-06-13T06:44:25 | Python | UTF-8 | Python | false | false | 1,340 | py | #!/usr/bin/python3
# https://leetcode.com/problems/next-greater-element-i/
from typing import List
# Time O(n)
# Space O(1)
def nextGreaterElement(nums1: List[int], nums2: List[int]) -> List[int]:
nums1Index = {}
for i, n1 in enumerate(nums1):
nums1Index[n1] = i
nums1[i] = -1
n = len(nums... | [
"tahmid.tanzim@gmail.com"
] | tahmid.tanzim@gmail.com |
a18ebdda60cbae4d58711e71c436d2e06475fd72 | 4b4cac3ab043f30fca2013c808e6bd1429e25a58 | /wave_functions.py | 65015f3e2e2100fa495debd578b02023785cdf0a | [] | no_license | SC-SGS/tsunami-uq | ddd70d1675422e70dd6530cf2f1f6a33a8d9bba1 | cc64e90f390f2c93b25f7fb8190bad4b572bf79f | refs/heads/main | 2023-03-21T04:58:50.822341 | 2021-03-03T14:20:10 | 2021-03-03T14:20:10 | 344,137,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,220 | py | import scipy
from scipy.optimize import fmin
from scipy.interpolate import interp1d
import numpy as np
import matplotlib.pyplot as plt
##############################################################
################## auxiliary functions ##################
#########################################################... | [
"michael.rehme@ipvs.uni-stuttgart.de"
] | michael.rehme@ipvs.uni-stuttgart.de |
a1ca9ef74a035872aeb94ea1971a7e51f81fee05 | 686c62228fe580f2083e611543880a83b8a964f7 | /dictionary/admin/views/sites.py | a1d442d0843e4be3b3d62321ef443ef8b4165aff | [
"BSD-3-Clause"
] | permissive | realsuayip/django-sozluk | 167fba213f9bc7e4796a898f3520d7fd9da5277c | e0cc3db5de6e4bb529d0d2b7fc8e974c338dfb05 | refs/heads/master | 2023-08-30T00:21:08.503281 | 2023-08-19T10:45:24 | 2023-08-19T10:48:42 | 218,296,590 | 311 | 107 | BSD-3-Clause | 2023-08-19T10:51:01 | 2019-10-29T13:41:45 | Python | UTF-8 | Python | false | false | 1,313 | py | from django.contrib import admin, messages as notifications
from django.contrib.auth.mixins import PermissionRequiredMixin
from django.contrib.sites.models import Site
from django.core.cache import cache
from django.shortcuts import redirect, reverse
from django.utils.translation import gettext as _
from django.views.g... | [
"suayip.541@gmail.com"
] | suayip.541@gmail.com |
c1c148958cc16de638deabfaf749e21749a57e7e | b7e86212341f3893f753bccc39cf0b7000194c43 | /calcExpectation.py | 18e0091bacf186103bc604c09f94ea059da93155 | [] | no_license | brandon-jernigan/Research-Machine-Learning-Computational-Chemistry-Project-Carnegie-Mellon-2015 | 77abc3c39825140aaaf8a39af448913c87554d16 | f014bab7d0cb7836defeed3519c44be3d4eb2ec9 | refs/heads/master | 2021-01-01T04:32:42.001058 | 2017-08-04T22:58:27 | 2017-08-04T22:58:27 | 97,193,519 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,207 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 6 18:49:03 2015
@author: brandon
"""
import os
import cPickle as pickle
from collections import OrderedDict
import numpy as np
from MoleculeSet import MoleculeSet
from miscFunctions import convertToKcalPerMol
import generateFiles as gen
def generateAllExpectation_da... | [
"brandonjernigan@email.arizona.edu"
] | brandonjernigan@email.arizona.edu |
056d83415cae20a207b99728a1948380c85213dc | f57145680565e8c876146d2282c8aad73a9d192e | /shop/models.py | ca4cab5c0ca5f0d6a6c655f35d1029ad03516191 | [] | no_license | tariqmhmd5/Optical-store | deed7aaf4ede46f6208b7adf3bf9d4b4b74eea84 | 015a3a6051ad63f50dfacb968a6c08194048b902 | refs/heads/master | 2023-02-06T19:06:21.273577 | 2021-01-01T12:06:56 | 2021-01-01T12:06:56 | 295,694,226 | 0 | 1 | null | 2020-09-21T14:38:21 | 2020-09-15T10:36:26 | CSS | UTF-8 | Python | false | false | 2,468 | py | from django.db import models
from django.contrib.auth.models import User
class Product(models.Model):
product_name = models.CharField(max_length=50)
desc = models.CharField(max_length=300)
category = models.CharField(max_length=50,default="",choices=(('Men Eyewear','Men Eyewear'),('Women Eyewear','Wom... | [
"tariqmhmd25@gmail.com"
] | tariqmhmd25@gmail.com |
756b3270e220a199d68527feddd8bfd35d87ed2f | 661111605dbcd453f564b7109240a2c145543bc7 | /new_tagging_schema/eval_ore_new_sch.py | bb3ed276cbf50e1fa9f075db68c12d389760ea26 | [] | no_license | tony520/supervised-BiLSTM-CRF-ore | de76a5ff2ee839801fbf81a63167c97d41d87ed7 | 5d3dbc79b6ed8aa4c113c29d88336b95a80b1a99 | refs/heads/master | 2023-01-18T16:14:42.700060 | 2020-11-15T05:08:11 | 2020-11-15T05:08:11 | 286,973,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,940 | py | """
Evaluate the performance of BiLSTM-CRF with new tagging schema
"""
import string
import nltk
from nltk.corpus import stopwords
stopwords = stopwords.words('english') + list(string.punctuation)
LEXICAL_THRESHOLD = 0.5
"""
Check if list1(list2) is the sublist of list2(list1)
"""
def sublist(lst1, lst2):
ls1 = [... | [
"tony520@sjtu.edu.cn"
] | tony520@sjtu.edu.cn |
6f101ccbdad195f757a4123805328db4ef6ba9c5 | ef5f98cdaca58bc9c1ba1a94a1ccf7bebc3f1260 | /ir_actions_act_url.py | d2968068725bcdde7011beb4ddd33709c85f326e | [
"MIT"
] | permissive | tonygalmiche/is_plastigray | 512ad911b3118c6aa2aab49f64ad7871fb80f195 | 774feea510fc0854776016dbbbc7472ebd1248c5 | refs/heads/master | 2023-07-25T21:49:56.284434 | 2023-07-18T13:15:28 | 2023-07-18T13:15:28 | 24,811,999 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,794 | py | # -*- coding: utf-8 -*-
from openerp import models, fields, api, _
from openerp.http import request
class ir_actions_act_url(models.Model):
_inherit = 'ir.actions.act_url'
# def get_soc(self, cr, uid):
# user = self.pool['res.users'].browse(cr, uid, [uid])[0]
# soc = user.company_id.partner_i... | [
"tony.galmiche@infosaone.com"
] | tony.galmiche@infosaone.com |
8caa8420635a0eb94b7c0a3a27fa2d4fc8b7d568 | 27df10a60198f8811ce0e760df21ab513a6430fd | /tools/onnx-graphsurgeon/tests/test_api.py | f4489c6926ed6f6b4e43b9b049f993fef242f790 | [
"Apache-2.0",
"ISC",
"BSD-2-Clause",
"MIT"
] | permissive | keineahnung2345/TensorRT | 7221ca85eb2865793f5eea7d8e0fc2dd93c53726 | f943b27c6fe3eb35fc90cbcb22b4430d9d57d2dc | refs/heads/master | 2023-04-10T19:05:22.945691 | 2023-04-01T00:49:31 | 2023-04-01T00:49:31 | 237,162,279 | 0 | 0 | Apache-2.0 | 2020-01-30T07:37:36 | 2020-01-30T07:37:35 | null | UTF-8 | Python | false | false | 1,361 | py | #
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"rajeevrao@nvidia.com"
] | rajeevrao@nvidia.com |
14d94b37c56bfc18ed8d5828fcdaf1180ebc5931 | 925a1e1c3cfc45e19d6cc2c7df9da39f00a876b9 | /mmkeshe/mainWindow.py | a9c9a83bebfb50f4397b5dffc9c317c1b8e87cfc | [] | no_license | HappytestR/---- | f9fcdb9b6eb804a6fca3b3813607b637dda96ee8 | 005b44efed80d40f9985a80c7c950829467a1738 | refs/heads/main | 2023-02-07T14:38:38.898864 | 2020-12-20T10:16:17 | 2020-12-20T10:16:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,827 | py | import sys
from PyQt5.QtCore import pyqtSlot
from PyQt5.QtWidgets import QMainWindow, QApplication
from mmkeshe.UI_main import Ui_MainWindow
from mmkeshe.area import dictCity,dictProvince
class MainWindow(QMainWindow, Ui_MainWindow):
"""
Class documentation goes here.
"""
def __init__(s... | [
"noreply@github.com"
] | HappytestR.noreply@github.com |
a28a19197c4eadaeaea64601fc62d301caef482a | 38b0a7838423d00aca703976a61facd4722bbccf | /DrawLines/venv/Lib/site-packages/openpyxl_templates/demo.py | 6f9108564f4e8f44ef7bfab752488834fe8c554c | [] | no_license | pangxie1987/Data_Analysis | 2a412df95ced9c78210709c7e4a5793874e176bc | e9828f806fb4b4b2fbd14d2cb696a571ceadc470 | refs/heads/master | 2020-03-10T12:27:57.800109 | 2018-07-02T11:25:33 | 2018-07-02T11:25:33 | 129,379,363 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,857 | py | import random
from datetime import date, datetime
from enum import Enum
from os.path import dirname, join
from openpyxl.formatting.rule import ColorScaleRule, Rule
from openpyxl.styles import Font, PatternFill
from openpyxl.styles.differential import DifferentialStyle
from openpyxl_templates.styles import De... | [
"pingbao.liu@kingstar.com"
] | pingbao.liu@kingstar.com |
0a1f2b1ef858615b3905ae9cb4b78f4ba393ed77 | f7af07268663eb99df52fa43f1e8569be973dbf5 | /Predictive-Anaytics/MLPclass.py | 325aff7ff83886b43f0fea87db75913a83ed8aa6 | [] | no_license | asalnikov/mahdi-code | 89ba8e32e6e84c2fb9b1f32a659b86381f22f039 | 52e5b27b336df12b0b944e0456add6cee59fe9f0 | refs/heads/master | 2022-11-07T20:54:12.626014 | 2020-06-13T19:21:07 | 2020-06-13T19:21:07 | 238,513,761 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,197 | py | # MLPclassifier
#Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
import pandas as pd
from sklearn import preprocessing
# Importing the dataset
#file = pd.read_csv('statistics8.csv', sep=',')
file = pd.read_csv('midClass.csv', sep=','... | [
"alexey.salnikov@gmail.com"
] | alexey.salnikov@gmail.com |
2b1a1ebaddef4d050b39979e3781d9709639e698 | ac5663ea8561477d97957c7d851e05bf0d9afa2f | /venv/bin/ndg_httpclient | 819035e93d04d214a6d120e7ed26de1ba6c91ed4 | [
"Apache-2.0"
] | permissive | xiayufeilucy/deloitte-digital-competition | 5a8cd46eb2874dfd5eccd2ba4fd702a7002b2c4f | af4fc18cbf713c9c7f0e3ec175ef50b6ef211d6c | refs/heads/master | 2022-12-10T20:51:46.191386 | 2019-07-31T13:56:16 | 2019-07-31T13:56:16 | 199,681,877 | 0 | 1 | null | 2022-11-29T21:36:18 | 2019-07-30T15:44:54 | Python | UTF-8 | Python | false | false | 279 | #!/Users/xiayufeilucy/Desktop/deloitte-digital-competition/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from ndg.httpsclient.utils import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"yufeix@wharton.upenn.edu"
] | yufeix@wharton.upenn.edu | |
b7a9afdddbc1c4e44e85fd8b2751a951cca346db | cb413655ae3c630875d265db15568aac54080256 | /tests/features/steps/ontologies_repo/test_ontologies_update.py | 89395277f385a1219c18bfe82278266118392b5d | [
"Apache-2.0"
] | permissive | Standard-Cognition/dtlpy | 24b6422b932993f92fe2099c5d0b8daa83810753 | a11a66be24facee3cb4571ace812cb052046007b | refs/heads/master | 2023-09-01T15:19:41.338816 | 2020-03-25T12:18:24 | 2020-03-25T12:18:24 | 245,212,357 | 0 | 0 | Apache-2.0 | 2023-09-04T17:21:54 | 2020-03-05T16:23:54 | Python | UTF-8 | Python | false | false | 862 | py | import behave
import os
import json
@behave.when(u'I update ontology with labels from file "{file_path}"')
def step_impl(context, file_path):
file_path = os.path.join(os.environ['DATALOOP_TEST_ASSETS'], file_path)
with open(file_path) as f:
context.labels = json.load(f)
context.ontology.add_labels... | [
"or@dataloop.ai"
] | or@dataloop.ai |
7f02a5306eb52284c806b3ab7df0859ec1c2c51c | 8e69eee9b474587925e22413717eb82e4b024360 | /v2.5.7/toontown/speedchat/TTSCSellbotInvasionMenu.py | 8118a9bd04309cc70834ec5261fd1357faa3fcfd | [
"MIT"
] | permissive | TTOFFLINE-LEAK/ttoffline | afaef613c36dc3b70514ccee7030ba73c3b5045b | bb0e91704a755d34983e94288d50288e46b68380 | refs/heads/master | 2020-06-12T15:41:59.411795 | 2020-04-17T08:22:55 | 2020-04-17T08:22:55 | 194,348,185 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | from otp.otpbase import PythonUtil
from otp.speedchat.SCMenu import SCMenu
from otp.speedchat.SCMenuHolder import SCMenuHolder
from otp.speedchat.SCStaticTextTerminal import SCStaticTextTerminal
from toontown.speedchat.TTSCIndexedTerminal import TTSCIndexedTerminal
from otp.otpbase import OTPLocalizer
SellbotInvasionMe... | [
"s0mberdemise@protonmail.com"
] | s0mberdemise@protonmail.com |
c6431345804aab5097e1f006eec9f898f72ba44b | bc8509d57a162fb685da06a98c67dc8130d96316 | /src/slim/nets/cyclegan_test.py | 593af0862b804778ed17a102fa23ecd5566d776a | [
"Apache-2.0"
] | permissive | Ptolemy-DL/Ptolemy | 2065e2d157d641010567062410bee4608691d059 | f72a531286d17c69e0e2e84d0ad8a5b0587e2e08 | refs/heads/master | 2023-05-29T08:58:18.328258 | 2021-06-15T09:28:16 | 2021-06-15T09:28:16 | 284,590,756 | 115 | 5 | NOASSERTION | 2020-10-24T04:18:51 | 2020-08-03T03:06:35 | Python | UTF-8 | Python | false | false | 4,398 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"ygan10@ur.rochester.edu"
] | ygan10@ur.rochester.edu |
dfe7fa617c07809f0316da596b5023c47fef0b5e | fc5597028671ad9bf3401dcbcd546adbe05d6788 | /examples/Legacy_Rest/mount_virtual_media_iso.py | aa76fe69083a11ac316472c6978e6ffd27b69c59 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | Yergidy/python-ilorest-library | c7ba912328b396e2a5e9eba9fa47ba108312d199 | a54a45e0124e65fa27e2d301082778813324a032 | refs/heads/master | 2020-09-13T12:01:57.732256 | 2019-11-19T20:41:13 | 2019-11-19T20:41:13 | 222,772,754 | 0 | 1 | NOASSERTION | 2019-11-19T19:26:22 | 2019-11-19T19:26:21 | null | UTF-8 | Python | false | false | 2,524 | py | # Copyright 2019 Hewlett Packard Enterprise Development, LP.
#
# 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 b... | [
"kocurek@hpe.com"
] | kocurek@hpe.com |
c1e42865ba3ad91fb08d55eeef704a910a0e7138 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02771/s406306655.py | 4ada1942e5bf7fc9e5cd7254eff15a8aba906b50 | [] | 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 | 170 | py |
A, B, C = map(int,input().split())
if A == B and B != C:
print('Yes')
elif C == B and C != A:
print('Yes')
elif A == C and C != B:
print('Yes')
else:
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4693365273680dce8e8a9aab4d527048fe78b064 | e43f659f60c03050f474e26912f2a6c54784bb3f | /lib/model/fpn_kl/fpn.py | 6eac75cb164956ff6c1d5f557964ebe1909f4753 | [
"MIT"
] | permissive | Complicateddd/CascadeRCNN | f70c6786e57fb515deb4d241f05f00d45416ad56 | 019010e80411325dbde62f4d649e5a2ead8eabac | refs/heads/master | 2023-01-19T06:39:06.672144 | 2020-12-05T13:43:11 | 2020-12-05T13:43:11 | 318,798,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,301 | py | import random
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable, gradcheck
from torch.autograd.gradcheck import gradgradcheck
import torchvision.models as models
from torch.autograd import Variable
import numpy as np
import torchvision.utils as vutils
from model.util... | [
"1064440667@qq.com"
] | 1064440667@qq.com |
7e8ffd682bae9bbaff7485ca16af4ec980de96df | 89a90707983bdd1ae253f7c59cd4b7543c9eda7e | /programming_python/Gui/Tools/queuetest-gui.py | af7ab12cc6f3f174c8f6247680d767335d9e5fb5 | [] | no_license | timothyshull/python_reference_code | 692a7c29608cadfd46a6cc409a000023e95b9458 | f3e2205dd070fd3210316f5f470d371950945028 | refs/heads/master | 2021-01-22T20:44:07.018811 | 2017-03-17T19:17:22 | 2017-03-17T19:17:22 | 85,346,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | # GUI that displays data produced and queued by worker threads
import _thread
import queue
import time
dataQueue = queue.Queue() # infinite size
def producer(id):
for i in range(5):
time.sleep(0.1)
print('put')
dataQueue.put('[producer id=%d, count=%d]' % (id, i))
def ... | [
"timothyshull@gmail.com"
] | timothyshull@gmail.com |
d54177f734b5221d7c6a4fe45641dab66c10a92b | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /codeforces/cf251-275/cf255/b2.py | ce0f660a579831dc53f02607d6e65c334c0b0e0d | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | # -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
s = raw_input()
k = int(raw_input())
w = map(int, raw_input().split())
c = chr(w.index(max(w)) + ord("a"))
s += c * k
ans = 0
for i, si in enumerate(s):
ans += w[ord(s[i]) - ord("a")] * (i + 1)
print ans
| [
"roiti46@gmail.com"
] | roiti46@gmail.com |
58094a77673b8702852d668a33b00c565fb74a49 | 9540bde04a19717ed09390fd226b2e186a7c3b5d | /1_Basics/34_dictionary_methods.py | 0aef97c78ddb336dba9648d24bbde49935942f8f | [] | no_license | Harisha-1990/PythonCoding | dba2abf201df313b97783377d6083c03438c7f86 | 886039224e945f46270fd833891503ea21869025 | refs/heads/main | 2023-02-27T13:21:47.033126 | 2021-02-03T01:32:29 | 2021-02-03T01:32:29 | 328,069,180 | 0 | 0 | null | 2021-01-09T03:55:11 | 2021-01-09T03:52:39 | null | UTF-8 | Python | false | false | 670 | py | #author: Harisha
#dictionary is a unordered key value pair
#dict
#dictionary keys need to have a special property. A key needs to be immutable.
# we cannot give list in the keys becuase the list is mutable.
#Also a key in the dictionary has to be unique
dictionary = {
123:[1,2,3],
'greeting':'hello',
'is_magic':T... | [
"noreply@github.com"
] | Harisha-1990.noreply@github.com |
3e2976fd86b04b6a3a15661a5a118d404db4871d | 2cf7d2840dad74c96347364a8fd50f7576939b49 | /rookie/mysite/migrations/0028_scheduletrigger_schedule_args.py | 7d2ba488be6084cd2d5178669e03c738bda95c85 | [
"Apache-2.0"
] | permissive | chen1932390299/drf-backend-platform | 115ff1ee70710a315a21cbb317e808c54334ec77 | 80c2fb56c5c3c1456196d2415e3173600d190457 | refs/heads/main | 2023-06-30T22:53:00.684094 | 2021-08-09T05:30:07 | 2021-08-09T05:30:07 | 376,195,069 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Generated by Django 3.2.2 on 2021-06-13 19:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mysite', '0027_auto_20210613_1808'),
]
operations = [
migrations.AddField(
model_name='scheduletrigger',
name='sched... | [
"1932390299@qq.com"
] | 1932390299@qq.com |
baebf8fc02f32c8c9b9902b08c03fba9bc2a0718 | c325021d799d90dbfc328f4861fb38e7ae83586e | /cspp1practicem3/m18/p1/build_search_index.py | 3d8fe6fe9ecd441e4c64e125345228b594164c72 | [] | no_license | jannuprathyusha/jannuprathyusha | 1afb56e92b8f304d36e02ba4c717a3c42144f57d | 1c1efcba0be82739e9156e916f7ae4101357ee7d | refs/heads/master | 2021-07-15T06:09:57.492958 | 2018-12-20T11:05:42 | 2018-12-20T11:05:42 | 142,867,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,989 | py | '''
Tiny Search Engine - Part 1 - Build a search index
In this programming assingment you are given with some text documents as input.
Complete the program below to build a search index. Don't worry, it is explained below.
A search index is a python dictionary.
The keys of this dictionary are words... | [
"jannuprathyusha00@msitprogram.net"
] | jannuprathyusha00@msitprogram.net |
99843c7e7a1a0218b814ee58d5be89d0b2b70fee | b456cbde5527e5ef1617c4670f79052d9d9b1e0c | /fundemo/filter_demo.py | 69e7002d9dbac921461db5d82938cf9a06002ac5 | [] | no_license | srikanthpragada/PYTHON_07_JAN_2019_DEMO | 071269dd59b954ecb69d33b63b0bece1f29d8563 | f8e211da5460072b34526b50eebfe4df242c11a4 | refs/heads/master | 2020-04-16T03:31:44.032616 | 2019-02-16T12:27:31 | 2019-02-16T12:27:31 | 165,234,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | def positive(n):
return n >= 0
nums = [10, -10, 20, 5, -7, 15]
for n in filter(positive, nums):
print(n)
for n in filter(lambda v: v >= 0, nums):
print(n)
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
63c139849a5decc2ecde8b61a01ba4d162964e50 | 0922b83d98fcb42e0f053d554c49d690ee421758 | /Algorithms/Implementation/grading.py | 803a6573cc2d4f9f05a5beda839254c2fe5a8dd5 | [
"MIT"
] | permissive | iamGauravMehta/Hackerrank-Problem-Solving | f6c59d0fe7e1d4b9c229387daba76b5c9068c563 | 6cb30e505750e0fec634cf39047f38d26620866d | refs/heads/master | 2023-01-11T10:29:29.812638 | 2020-11-01T00:35:30 | 2020-11-01T00:35:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | # HackerLand University has the following grading policy:
# Every student receives a in the inclusive range from 0 to 100.
# Any grade less than 40 is a failing grade.
# Sam is a professor at the university and likes to round each
# student's grade according to these rules:
# If the difference between the grade an... | [
"msgrubler@gmail.com"
] | msgrubler@gmail.com |
29b75dd8cba2fde16501985c418e489433be578b | 65ca3d3130b96ce26ac6bd56e25349c3f041cdbb | /day_counts.py | a20b7174956673a6f728dc4e2e1903684a5c67a3 | [] | no_license | mnussbaum/Twitter-Predictor | 5ecda959eb44c749d84ba6d2e4c669f2371588a9 | 96a73032124e802dc80ad4a914ba3863122ee763 | refs/heads/master | 2021-01-15T18:08:47.578800 | 2010-12-08T05:05:45 | 2010-12-08T05:05:45 | 1,063,942 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | #!/usr/bin/python
from word_counts import WordCounter
from utils import read_output, parse_twitter_timestamp
class DayCounts(object):
def __init__(self, community):
self._community_members = community['members']
self._tweets_by_day = self._split_tweets()
def _split_tweets(self):
tweet... | [
"michaelnussbaum08@gmail.com"
] | michaelnussbaum08@gmail.com |
1d602b92c8fee5c4b37ab8b37affd34b151a01b7 | 9a343c495459e79dc408a102730bcaeac7fa8886 | /CMDB_SYSTEM/autoclient/src/plugins/board.py | 3da6198756f35073241b05ffde6ee417b3325017 | [
"MIT"
] | permissive | MMingLeung/Python_Study | 62d3ae92bf6760de0804aa5792f53fb3799486a2 | 4ff1d02d2b6dd54e96f7179fa000548936b691e7 | refs/heads/master | 2022-12-27T12:53:05.186800 | 2018-03-07T04:34:36 | 2018-03-07T04:34:36 | 92,124,981 | 3 | 1 | MIT | 2021-06-10T18:35:33 | 2017-05-23T03:28:52 | JavaScript | UTF-8 | Python | false | false | 1,639 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import os
from lib.conf.config import settings
class Board(object):
def __init__(self):
pass
@classmethod
def initial(cls):
return cls()
def process(self, command_func, debug):
if debug:
output = open(os.path.join(settin... | [
"mingmingleung1991@gmail.com"
] | mingmingleung1991@gmail.com |
63476f9bba4a86565d2af80073a69e31c06b5749 | 54692bc3d8a3796261f118562d2ddb3ceefe046d | /PyWebSystem/PyUtil/Sample.py | 5a90ae5e783692e1341ddc3d88af47abcb396d46 | [] | no_license | anji-a/PyWebSystem | 381d29969329830d1921329109eb12e9806259ec | 58c7f823b4865e7130ae880ad0e13ffd59c75c3e | refs/heads/master | 2021-08-18T22:15:56.930880 | 2020-04-05T01:34:40 | 2020-04-05T01:34:40 | 154,214,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py |
x = 10
code5 = {"details": {"name": "Sample"}, "methods": [
{
"begin-condition": [
{},
],
"loop": {
},
"method": {
"name": "Property-Set",
"value": [{"to": "x", "from": "10"}, ]
},
"end-condition": [
{},
... | [
"anjaneyulu.arthimalla@gmail.com"
] | anjaneyulu.arthimalla@gmail.com |
459925a74c6e9585cf8d4b23622b67d49986ab33 | 51aa2894c317f60726fe9a778999eb7851b6be3e | /140_gui/pyqt_pyside/examples/Advanced_Python_Scripting/008_Class_widget/006_Tree_widget_QTreeWidget.py | 7c346ad7464b09da172de7525381e20a3b937bde | [] | no_license | pranaymate/Python_Topics | dd7b288ab0f5bbee71d57080179d6481aae17304 | 33d29e0a5bf4cde104f9c7f0693cf9897f3f2101 | refs/heads/master | 2022-04-25T19:04:31.337737 | 2020-04-26T00:36:03 | 2020-04-26T00:36:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,436 | py | from PySide.QtGui import *
from PySide.QtCore import *
import os
path = os.path.dirname(os.path.dirname(__file__))
class simpleWindow(QWidget):
def __init__(self):
super(simpleWindow, self).__init__()
ly = QHBoxLayout()
self.setLayout(ly)
self.tree = QTreeWidget()
ly.addWid... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
8a5680888d28c8cd414fb63feac25e2cff360ee2 | cde8203dd13fe11c66c768d8e537903c86f853b2 | /dash/orgs/migrations/0010_auto_20150618_1042.py | f7de322f9391b0485d5f6e39405807e2b29aca00 | [
"BSD-3-Clause"
] | permissive | tracpro/tracpro | 683c1e42c67c0d7ad89cf2f907f6ebec2f6f5588 | 36799c8bce3a4fe9c6c7eddbbcdc058ef51da344 | refs/heads/master | 2021-01-19T04:07:32.647062 | 2016-07-19T05:00:37 | 2016-07-19T05:00:37 | 63,661,995 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('orgs', '0009_auto_20150331_1452'),
]
operations = [
migrations.AlterField(
model_name='org',
name='s... | [
"norkans7@gmail.com"
] | norkans7@gmail.com |
22cc8a83c033ea5a86daa1825c09b23275f6213c | 7ad2cf82c99955241f9f82cde76279acffdc64b5 | /src/easydexnet/data_saver.py | 13630c559d0e7313f47531758d61109df533c4e9 | [] | no_license | eaa3/easy-dexnet | bf6a31a45272a7a16e81df883b62328cf62ebbff | d3e6cdc5a373473608e9fd812a6a8e3d6b8603c0 | refs/heads/master | 2020-05-30T12:07:58.946390 | 2019-05-09T07:56:21 | 2019-05-09T07:56:21 | 189,725,230 | 1 | 0 | null | 2019-06-01T11:32:04 | 2019-06-01T11:32:04 | null | UTF-8 | Python | false | false | 2,133 | py | import logging
import os
import numpy as np
class DataSaver(object):
def __init__(self, path, max_data, name):
self._path = path
self._max = max_data
self._counter = 0
self._buffer = None
self._save_counter = 0
self._name = name
def update_counter(self):
... | [
"1311127080@qq.com"
] | 1311127080@qq.com |
7594eb78b9620269c212a348146ce783ab89107f | dd807d0965ed34390ee472be3d020fa2a25a54ad | /utilities/__init__.py | 08153016e2caee15eb4c8101cfb71ddc399ca4d0 | [] | no_license | waixwong/ModularRigging | b2579b527dba2f39cb8d6c670ba257956cca4044 | a1cc928a5ba07730477711b7c0b07c6a12a6a676 | refs/heads/master | 2016-09-06T01:34:15.613385 | 2014-06-10T05:01:01 | 2014-06-10T05:01:01 | 20,673,266 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | __author__ = 'WEI'
| [
"waix@msn.com"
] | waix@msn.com |
2067144f88ebd5c83efdf29cb1ac22e8eb87b8ee | 5572dc44961ed984d53f427963851b4b338153b3 | /TravellingCompanionProject/TravellingCompanionProject/travelling_companion_app/views/flights.py | dd83ee0d2d1bb62c571151aad5ff275822ddaa88 | [] | no_license | BalabanP/TravellingCompanion | 833718916f8b8a76ef7b1e8d8a6906271984a605 | 80d0a5049b3e5ca9053d1318938f5e381ab2ac9e | refs/heads/main | 2023-08-15T08:01:19.086256 | 2021-10-18T15:29:32 | 2021-10-18T15:29:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py |
from django.shortcuts import render, redirect
from ..forms import FlightForm
from django.contrib import messages
from ..models import *
from .utils import check_budget
from django.contrib.auth.decorators import login_required
@login_required
def flight_create(request):
if request.method == "POST":
form ... | [
"pavel.balaban1@vodafone.com"
] | pavel.balaban1@vodafone.com |
35168bb697f9747106fd20ab771e8d5e277f9cfd | 472b3790dc3b2c204e969ceee0ad31da9b164795 | /aiops/pretrained/models/bert_with_gru_classifier.py | 13526409d0aaec2ad9eedb2b2c58ab2d392cde95 | [
"MIT"
] | permissive | amandeep1991/aiops | 9d02618cfa19c2ba6e116f543136b7fc950ac70c | 0f9959b740ef51a0aefb8dba1f7d5b4049ef495e | refs/heads/master | 2022-12-04T09:22:00.600880 | 2020-08-31T10:05:26 | 2020-08-31T10:05:26 | 266,009,942 | 0 | 0 | NOASSERTION | 2020-05-28T14:18:16 | 2020-05-22T03:33:00 | null | UTF-8 | Python | false | false | 4,753 | py | import torch
import torch.nn as nn
from torch import optim
from transformers import BertModel
from aiops.config import logger
class BertWithGruClassifier(nn.Module):
"""
Tokenizer should build vocabulary in advance
"""
def __init__(self, hidden_dim, output_dim, n_layers, bidirectional, dropout, token... | [
"deep.aman91@gmail.com"
] | deep.aman91@gmail.com |
e82dbc8a06c0b5b376269e3508829afe8a9f8dcf | 6fe651c2b014f8b07f36ba64d3b55edfc135caac | /python-concurrency/top_reddit_posts.py | 59880c920924445e4c597dbd8933581402419c3d | [] | no_license | aftab82/learn | 55496c11beaf5e00e85b161c4ba97eea921be21b | b592e6d4f5ac6ce6f1d2448c8f21b63674dabc0f | refs/heads/master | 2022-09-15T08:05:28.423468 | 2022-08-31T21:16:46 | 2022-08-31T21:16:46 | 250,903,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | import signal
import sys
import asyncio
import aiohttp
import json
loop = asyncio.get_event_loop()
client = aiohttp.ClientSession(loop=loop)
async def get_json(client, url):
async with client.get(url) as response:
assert response.status == 200
return await response.read()
async def get_reddit_t... | [
"aftab28@gmail.com"
] | aftab28@gmail.com |
be73c789b7db5e68ca02fcf29c817a6b61852cef | 22422a290667526cdc01ac8a5d35492a85c746a4 | /plugins/vip/quote.py | 0cc9e6a23fb9700faa3d3fde478f31d579eb1c84 | [] | no_license | Cha14ka/kb_python | f524e627c0e21afd38cbf842a38e5b72f10049b8 | b2e252ecfa8799fcd8af42b1343b80e7cd183938 | refs/heads/master | 2020-03-13T20:50:44.363840 | 2018-05-30T05:08:03 | 2018-05-30T05:08:03 | 131,282,988 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | import textwrap
from PIL import Image, ImageDraw, ImageFont
if answ[1] == 'цитата':
#####
resnew = requests.get('https://api.vk.com/method/messages.getById?access_token='+token+'&v=5.68&message_ids='+str(torep)).text
#print(resnew)
resnew = json.loads(resnew)
#print(resnew)
id = resnew['response']['items'][0]['fw... | [
"NodnolStudio"
] | NodnolStudio |
c8ab4883523610c04654ee6bbd8b0d8f6e64bb6c | 4d3aa8a798104c32f3b3bbe2d96fe34ef2d0bf97 | /Main_Static/migrations/0008_arr_el.py | 74addb4cc155fcc22af83d1f2f121a25efba58c6 | [] | no_license | AndreyDukhin/meeting_planner_site | b23e9d88bb6becfff0236948c7fa25e9e646135e | 6a720a1e7d2161bf0a772681c6fb9fce1affc797 | refs/heads/master | 2021-01-22T11:07:14.860434 | 2016-04-28T16:18:24 | 2016-04-28T16:18:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-04-21 11:48
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Main_Static', '0007_auto_20160412_2007'),
]
operations = [
migrations.Create... | [
"viktor@duhin.ru"
] | viktor@duhin.ru |
835de4a61454d69cbcff9e9976411a3c480fd71f | dfd0047405ba00a48c2919ddb5452d0d01ae52d0 | /machine_learning_tests.py | ecd888c5aa3c76c3d769ce6642f2601ad643270c | [] | no_license | CyberTraitsProject/cyberTraits | bbfd8656ebcd043731924d800291438bb24d2bdd | 587df81b3af3bfaf3c070660788040a354cf1d55 | refs/heads/master | 2020-09-09T18:33:42.651306 | 2020-07-10T08:34:46 | 2020-07-10T08:34:46 | 221,528,641 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 18,804 | py | import unittest
from organize_data_to_machine_learning import *
from global_tests_functions import *
from machine_learning_single_model import *
from predict_traits_score import *
from main_process import create_csv_for_machine_learning
def get_scaled_data_in_df(scaled_file):
"""
:param scaled_file: the file ... | [
"55662288+ori174@users.noreply.github.com"
] | 55662288+ori174@users.noreply.github.com |
beeef838723acda2d2236149b4869b99270193d2 | bf0efe044aec4cbbe9954b487b81e576684a9b06 | /dp/modified_fib.py | cea2ff31b6d200257fbb8ea72694d21c90a45182 | [] | no_license | ankit141189/hackerrank | cdd1a250081e4b58eaa376ec9b335e94cbf76ed8 | 1d0fa2e467d92a86e1798d6eb090fcb54f7ea608 | refs/heads/master | 2021-01-10T13:54:56.347773 | 2016-01-05T13:33:47 | 2016-01-05T13:33:47 | 48,906,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | import sys
input = raw_input().split();
a = int(input[0])
b = int(input[1])
n = int(input[2])
for i in range(3, n+1):
c = b * b + a
a = b
b = c
print b
| [
"ankit.gupta141189@gmail.com"
] | ankit.gupta141189@gmail.com |
065ad6b6952fa48a7ee5c038bc56e101155ec3e6 | 7885b5b96478c30ff22c8bb93cd92411af960b61 | /britecore/entity/propertyType.py | 76a9bac785e123b1f735ab435632754818a5e4ca | [] | no_license | Vijaya-Raghavan/RiskDevelopment | e0b144971ca64dbef52126eb1d8808c1110699f6 | 9c09c6a8e3b0a922cbcb5a8f784a362bb9bfaaf2 | refs/heads/master | 2022-12-09T20:45:37.235015 | 2018-02-10T13:31:33 | 2018-02-10T13:31:33 | 120,614,067 | 0 | 0 | null | 2022-12-08T00:56:27 | 2018-02-07T12:46:10 | Python | UTF-8 | Python | false | false | 540 | py | # propertyType.py
from sqlalchemy import Column, String, Integer, Sequence
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class PropertyType(Base):
__tablename__ = 'prop_type'
idSequence = Sequence('prop_type_id_seq', metadata = Base.metadata)
id = Column('id', Integer,... | [
"vijayaraghavan1805@gmail.com"
] | vijayaraghavan1805@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.