blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11faeae5f596c6f2c9fb11540a28c64304960907 | 542ef68721859a6b60558b074f2b3a9b6a9535a6 | /NexusStoreBackend/userProfile/migrations/0011_alter_address_user.py | 1d755ab38f3d2c89b3cd8b2bbc748e6991d4df92 | [] | no_license | Raman9937/NexusStore | e0ae96cf0d9e1130eaa3c560808e467ba28dbb01 | ceed4324995dde7623774548e6fad968f93a2ff5 | refs/heads/main | 2023-06-01T04:49:00.832649 | 2021-06-19T04:14:50 | 2021-06-19T04:14:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | # Generated by Django 3.2.4 on 2021-06-12 20:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('userProfile', '0010_auto... | [
"79391583+RitikVashisth007@users.noreply.github.com"
] | 79391583+RitikVashisth007@users.noreply.github.com |
bd6759f3f1eccc5507bd0d1fdb5dd71df14f6cc9 | e1df12efffc353132b9996899f92d2e9186ded51 | /src/util.py | 12c542992c489e1bf186c4d00d225dd0b90cafeb | [
"MIT"
] | permissive | fracogno/UNet-ResWDCGAN | f67583a43a6b9e1c39ecf73b94360db9a54c1f4b | 000a6e82111ccffe6189ae270c2465b168918d9a | refs/heads/master | 2020-07-16T09:03:52.128729 | 2020-02-03T20:39:50 | 2020-02-03T20:39:50 | 205,760,133 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | import numpy as np
import matplotlib.image as mpimg
import cv2
import pandas as pd
def sample_noise(size, mu=0., sigma=1.):
return np.random.normal(mu, sigma, size=size)
def getData(path, size, value="mel"):
DF = pd.read_pickle(path)
assert(len(DF["image"]) == len(DF["id"]))
X = []
for i in range(len(DF["i... | [
"francesco.cognolato@hotmail.com"
] | francesco.cognolato@hotmail.com |
3f373e12c77e03b27c6309737dbc8c7e84b3db7d | 5d132708762372e770954532ad8e8f38f3596122 | /schoolsite/backs/backs/migrations/0013_auto_20210118_1350.py | 85a1fa3e48f501dd64da183c9376723eac589e6f | [] | no_license | ether2314/school-back | 95a8a1dac2130930a3b9c8fd2163ce983d0a6ff7 | c9a31a2fda979feaa1e190fcbb2d0538f6604518 | refs/heads/main | 2023-07-04T13:31:15.107774 | 2021-07-29T15:59:12 | 2021-07-29T15:59:12 | 390,728,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | # Generated by Django 3.0.8 on 2021-01-18 12:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backs', '0012_auto_20210118_1343'),
]
operations = [
migrations.RemoveField(
model_name='studclass',
name='Year',
... | [
"onyii2313@gmail.com"
] | onyii2313@gmail.com |
fde93ece31ff06beaef52315467716f6064342e0 | 83efd4e51e7b8fabaa51cdd096fa7d863e83ab09 | /utils/track_utils.py | f1aaf0fcd7de1141ac18c7dadf2041d32bc12e2a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pbarsic/handtracking | 533bb9f9839e858f775ba10ea6edddbb2c12e132 | 9c5e59b0f706693a9fde7bb858aea1075daa4311 | refs/heads/master | 2020-08-24T21:49:48.730218 | 2019-10-23T17:21:50 | 2019-10-23T17:21:50 | 216,913,014 | 0 | 0 | Apache-2.0 | 2019-10-22T21:29:13 | 2019-10-22T21:29:13 | null | UTF-8 | Python | false | false | 614 | py | def group_detections(detection_box, detection_score, detection_category):
w=[]
for det in zip(detection_box, detection_score, detection_category):
m = [ a for a in det[0] ]
m.append(det[1])
m.append(det[2])
w.append(m)
return w
def group_detections_threshold(detection_box, d... | [
"pbarsic@gmail.com"
] | pbarsic@gmail.com |
2549239c2cb24167a54487c274b0d455622f7692 | 32ef8621468095bf9c6dd912767cb97e9863dc25 | /python/iterables-and-iterators.py | 31978c2aea6a3a158f486b5f938059dabb494a54 | [] | no_license | Seungju182/Hackerrank | 286f1666be5797c1d318788753245696ef52decf | 264533f97bcc8dc771e4e6cbae1937df8ce6bafa | refs/heads/master | 2023-08-17T22:49:58.710410 | 2021-10-25T09:40:46 | 2021-10-25T09:40:46 | 337,652,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
from itertools import combinations
if __name__ == "__main__":
N = int(input())
letters = input().split()
K = int(input())
list_comb = list(combinations(letters, K))
print(len([c for c in list_comb if 'a' in c]) / len(list_comb))
| [
"tonysj@snu.ac.kr"
] | tonysj@snu.ac.kr |
3eb9faa27601591cf0d6b31b28370c3d97589540 | 61d08e23fbb62e16f7bd9d43673b1cf4e0558c37 | /miraPipeline/pipeline/preflight/preflight_libs/get_context.py | cc6dbb2fd318693a80edb4f861ef0a9019199413 | [] | no_license | jonntd/mira | 1a4b1f17a71cfefd20c96e0384af2d1fdff813e8 | 270f55ef5d4fecca7368887f489310f5e5094a92 | refs/heads/master | 2021-08-31T12:08:14.795480 | 2017-12-21T08:02:06 | 2017-12-21T08:02:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # -*- coding: utf-8 -*-
import get_file_name
import get_engine
def get_context():
try:
from miraLibs.pipeLibs import pipeFile
scene_name = get_file_name.get_file_name()
x = pipeFile.PathDetails.parse_path(scene_name)
return x.step
except:
engine = get_engine.get_engine(... | [
"276575758@qq.com"
] | 276575758@qq.com |
fe918c512b07df47961368267c73f7c7f365e116 | 39875dd75edf170fd8f5ab7841a73ef50eaaca6f | /tests/utils.py | c6206de3606ae956ba3f13b63da84cdebee632fc | [] | no_license | Anmol1696/Thumbnailify | a224a0997051ec77eb2fd3ced26e055ddc63133c | c194d879320483b8ec173d6acf15580b28374c33 | refs/heads/master | 2021-06-20T00:25:29.862974 | 2019-08-28T16:40:44 | 2019-08-28T16:40:44 | 202,716,394 | 1 | 1 | null | 2021-03-25T22:55:52 | 2019-08-16T11:32:22 | Python | UTF-8 | Python | false | false | 351 | py | import configparser
import base64
from pathlib import Path
def load_config():
config_data = configparser.ConfigParser(allow_no_value=True)
config_data.read(Path(__file__).parent.glob("*.ini"))
return config_data
def file_encoder(filename):
with open(filename, 'rb') as fd:
data = fd.read()
... | [
"anmol.yadav@rakuten.com"
] | anmol.yadav@rakuten.com |
de5121c04015867415044179babf4281786f2d99 | 0c81c371ce9023f3915f2b05c1c4ca7b9f435cf4 | /tools/migrate/rake.py | 577567fe8e2bbd01bc7f896d19a4c5e1de1480ff | [] | no_license | linbirg/om | 831fb7458d1c0176fd76ba4b6f739e95f9593788 | fd1328ebe3fb38893bf88519ca10768507519494 | refs/heads/master | 2021-06-30T16:22:50.327937 | 2020-09-14T07:36:36 | 2020-09-14T07:36:36 | 159,285,543 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,080 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
# Author: yizr
import os
import sys
__abs_file__ = os.path.abspath(__file__)
migrate_dir = os.path.dirname(__abs_file__)
tool_dir = os.path.dirname(migrate_dir)
code_dir = os.path.dirname(tool_dir)
sys.path.append(code_dir)
import re
import importlib
import importlib.util
#... | [
"linbirg@gmail.com"
] | linbirg@gmail.com |
fbf87fadcf29cafc4cea4e426184591e1c1e483d | 6d920708bcf248e51734bb87f4032dd070603500 | /cats_library/tests/__init__.py | fe243b030cfec515c65f2a517d0b9d6490f1cb14 | [] | no_license | zhenv5/cats | 63e059ccb1bd84fc5225fce62812cbbc3bc0a724 | ff15338b15b437d56667e45c1bb28bc99b04aed0 | refs/heads/master | 2020-12-02T19:33:23.439128 | 2017-04-18T12:32:05 | 2017-04-18T12:32:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from __future__ import division, print_function, absolute_import
import numpy
__author__ = 'Alex Rogozhnikov'
def generate_dataset(n_samples=10000, n_features=3, n_categories=10):
data = numpy.random.randint(0, n_categories, size=[n_samples, n_features])
cat_predictions = numpy.random.normal(size=n_categorie... | [
"axelr@man1-ipython01.cern.dev.yandex.net"
] | axelr@man1-ipython01.cern.dev.yandex.net |
86f2fa42be3a378d013ce34ab1665eeb061a4de5 | f07b7f546278c86ec91fe9fdacbe4acc266b5ef0 | /blog/blog/wvenv/Lib/site-packages/spyder/app/tour.py | 08ccd027dbdc5cb3695aea84507318de7ace5723 | [] | no_license | CankayaUniversity/ceng-407-408-2019-2020-Patent-Comparison-System | 0386a6d8651a9ce875a9cf56013c19d8242204c9 | d9c0f2d84d90932b962a0618b01652f3bd560f25 | refs/heads/master | 2020-08-18T09:55:23.676188 | 2020-06-27T21:19:20 | 2020-06-27T21:19:20 | 215,772,427 | 2 | 4 | null | 2020-06-27T21:26:31 | 2019-10-17T11:08:50 | null | UTF-8 | Python | false | false | 47,982 | py | # -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""Spyder interactive tours"""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
# Standard library imports
from __fut... | [
"33146580+celkansimay@users.noreply.github.com"
] | 33146580+celkansimay@users.noreply.github.com |
b7d684c9b7991cd9e351025c9f0d7d12a0fae18f | ef0765f57796d397f67cb175707aa9eb56624500 | /train.py | 2154fdfff048e2a18e46c7968e53e6ea2b2d64f4 | [
"MIT"
] | permissive | X-CCS/Tacotron2-LPCNet | e3554a74c0c2f6fbd0ad4eb8bd2078998ecf4653 | de2ee5ef313ca109d8ccf4a13bf5adebd4ee42f6 | refs/heads/master | 2022-12-05T20:08:05.491707 | 2020-09-02T09:18:21 | 2020-09-02T09:18:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,686 | py | import argparse
import tensorflow as tf
from tacotron.train import tacotron_train
from wavenet_vocoder.train import wavenet_train
from tacotron.synthesize import tacotron_synthesize
from infolog import log
from hparams import hparams
import os
import infolog
from time import sleep
log = infolog.log
def save_seq(file... | [
"wangjiaqi12807@autohome.com.cn"
] | wangjiaqi12807@autohome.com.cn |
48b92115bf430ccfea52c8555cc132c5c87b9921 | 885a0893693db9298916b054cc74dd4aaa3a8e3c | /app.py | a418be0ec9a23201d1e49699fc6e8da53e06e24f | [
"Apache-2.0"
] | permissive | sshah98/NLP-Writing-Tool | 294fe79ea570d39ae4cb51e2267cc733f4ed0d9c | be85b7ad2fd0285d12c5a5348cc135819f7722fb | refs/heads/master | 2021-03-27T19:23:38.838339 | 2018-09-15T19:55:16 | 2018-09-15T19:55:16 | 111,587,608 | 0 | 0 | Apache-2.0 | 2018-09-25T21:45:24 | 2017-11-21T18:42:53 | Python | UTF-8 | Python | false | false | 1,831 | py | import os
from flask import Flask, url_for, render_template, request, redirect, session, Markup, flash
app = Flask(__name__)
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "nlp-analysis-key.json"
app.secret_key = 'random-key'
from google_npl import GoogleNLP
from em... | [
"shahsuraj261@gmail.com"
] | shahsuraj261@gmail.com |
ecd88c4f72cff8b982179e05bb5a023c1dd7b9a8 | f49a5c06f858d8e9ca1d5485e3d68c722b2839df | /benchmarking_main.py | 8a6de5e17ac0c58e5b8cce6e3fa23282988ca14f | [
"CC-BY-4.0"
] | permissive | asd974512/breast-cancer-sub-types | ec8c9aa35f996aba0b6c095c8e853bc01e6315a0 | 8f6c9af9d66cdcf8260393ae737bfb54678b0032 | refs/heads/master | 2023-09-05T00:32:23.069810 | 2021-11-22T10:58:18 | 2021-11-22T10:58:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,711 | py |
############################# IMPORT LIBRARY #################################
import timeit
start_time = timeit.default_timer()
seed=75
import psutil
import os
import numpy as np
from tensorflow import set_random_seed
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
import seaborn a... | [
"noreply@github.com"
] | noreply@github.com |
e56d8abf68eeabd78679feae85ab12666d37e27e | 3facdefca75155161d8a1a1c7ddfaf10f3f2c6fe | /venv/Lib/site-packages/eikon/streaming_session/streamingprices.py | f143ee7e2d99a21a6897b7324556870478b6e5fa | [
"Apache-2.0"
] | permissive | suppureme/FisherEmbeddingFinal | b0b171c4757e456046224dcdcc3418889dcaccfc | 0d07f09931658c838988c987cd6d8db5376ff715 | refs/heads/master | 2023-07-06T19:47:26.755177 | 2021-08-10T06:04:47 | 2021-08-10T06:04:47 | 394,538,875 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,146 | py | # coding: utf8
__all__ = ["StreamingPrices"]
import sys
import logging
import asyncio
from pandas import DataFrame
from pandas import to_numeric
from .streamingprice import StreamingPrice
from .stream import StreamState
class StreamingPrices:
"""
Open a streaming price subscription.
Parameters
-... | [
"asahu99@gmail.com"
] | asahu99@gmail.com |
e4bcdf2e5a6ee879997a68875791a84f8e83bf15 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part009770.py | 6b7721e39926572acd750c7dcc8d9bfd53756e66 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,931 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
2904e483645aab3aad4727f04b8cb19ab9e1ab65 | f7a1da15ba4941b5c7f13603455bf7e3c25b568e | /ggplot/tests/test_legend.py | a72d8475c032db2cb9c839b2d976b70db432c191 | [
"BSD-2-Clause"
] | permissive | ellisonbg/ggplot | 64b93f172ed729366cda12a1878733d3fc899cb9 | d9028b89c8ae81845b4653deccef897f7ecc8cb8 | refs/heads/master | 2020-05-29T11:57:16.338751 | 2014-05-02T18:14:37 | 2014-05-02T18:14:37 | 19,389,450 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,326 | py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
from . import get_assert_same_ggplot, cleanup, assert_same_elements
assert_same_ggplot = get_assert_same_ggplot(__file__)
from nose.tools import (assert_true, assert_raises, assert_is,
... | [
"has2k1@gmail.com"
] | has2k1@gmail.com |
acbceabe2af58b797b1e56d056e10142feda7758 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/googlecloudsdk/third_party/appengine/googlecron/__init__.py | c16c11b78e2b1864918de3481da96215d94c1f8f | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 640 | py | # Copyright 2016 Google LLC. 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 applicable law or ag... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
dc0e963aa23abe50e37b51a150717f3e95b98ee4 | e627d47d5102bd68c2012501aa120833b9271da7 | /aws_api/core/admin.py | deadee44fdc7c2eff24954c469f2c470d31764f1 | [] | no_license | aayushgupta97/django-km | 5ba275d1f85eaaf8bc052e47d2b6b6f1a5e4cf90 | d34cd4f8637718044832d9baeecee86df5e821a5 | refs/heads/master | 2023-01-02T18:12:31.384634 | 2020-10-24T09:21:50 | 2020-10-24T09:21:50 | 298,391,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from django.contrib import admin
from .models import AWSCredentials
# Register your models here.
admin.site.register(AWSCredentials) | [
"aayushgupta2097@gmail.com"
] | aayushgupta2097@gmail.com |
3efc22db73e35b507bc67c250be3584146d5c56e | 9d041cdca12fa685261bbd3d3efc1cb77ee3b701 | /DemConverter/dem_converter.py | 1e2e7a7bfa5cdf85eac28241df83672d04a96125 | [] | no_license | sagost/DemConverter | 45c3c5f3ea7ea9abe558c1d90cd2ba9088e7da6e | 99b193d669d45620e524d5eb3f33b19a3f1bb33d | refs/heads/master | 2021-05-14T12:56:46.303643 | 2018-01-05T20:20:19 | 2018-01-05T20:20:19 | 116,423,295 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,883 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
DemConverter
A QGIS plugin
Convert DEM file
-------------------
begin : 2017-01-23
git sha : $Format:%H$
... | [
"noreply@github.com"
] | noreply@github.com |
3bfe9478a45b3ce6a71d86c7bffb8ca57afba743 | ec1fede858622eb8f18606e562324bf40aab8768 | /fibo.py | d7f55991d92d311b99c9fa5e18da436f365b1201 | [] | no_license | IgorBambach/ac4 | 4c501e21c08103ca87eea53987672aeed5b2cb87 | ecc9a3029ba9ed561761b993303bba247fa10004 | refs/heads/main | 2023-01-03T08:08:04.878007 | 2020-10-23T00:31:59 | 2020-10-23T00:31:59 | 306,482,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | importar os
from flask import Flask , jsonify , request
de matemática import sqrt
app = Flask ( __name__ )
@ app . rota ( '/' )
def nao_entre_em_panico ():
proximo = 1
anterior = 0
limite = 98
encontrado = 0
resposta = "1, \ n "
while ( encontrado < limite )... | [
"noreply@github.com"
] | noreply@github.com |
e2b9395ca306349905fc72c9f94e4caaa1cbe988 | 5d7684b486a23cb8177dbaa29b7540dc4c63a8f8 | /src/ds_project/urls.py | 242dd938317e4015238deefac20a32ded666f974 | [] | no_license | VitalR/DataAnalysis-App | 8cce543a1981e6dfb3b5204e01700a1349466252 | 32785b3d2d0e5e8042b4d34ca9c72c32c77b0816 | refs/heads/master | 2023-01-03T15:40:42.240473 | 2020-10-31T20:22:18 | 2020-10-31T20:22:18 | 304,565,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | """ds_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"vitalii.rodikov@gmail.com"
] | vitalii.rodikov@gmail.com |
6b3660695db6f5815ec10bfa006908c75ed584b3 | ae4316d99cbd4d5f8fe26b5e905c2a14fd3a3575 | /lexer.py | ecfd89bed7fea867173f0d57020ca001548ea430 | [] | no_license | tanmaytirpankar/ForLoopParser | 229fbca10780e84d46faaed97c17d43e1ec1b2de | 20a365af04382a2e3de518d9a284e8b4fc284d24 | refs/heads/main | 2022-12-30T14:14:44.310651 | 2020-10-21T20:29:39 | 2020-10-21T20:29:39 | 305,006,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,938 | py | from sly import Lexer
from gtokens import *
class Flexer(Lexer):
# The tokens arranged on each line are type of input, arithmetic operators, logical operators, miscellaneous symbols,
# Grammar specific keywords
tokens = {INTEGER, DECIMAL,
PLUS, MINUS, DIV, MUL, MOD, INC, DEC, \
... | [
"tirpankartanmay@gmail.com"
] | tirpankartanmay@gmail.com |
335927b71241544311639bc055c64afdadfc1656 | 5ea7394e606d21a5a5bf84e657b33c580c6d0ec7 | /tablas/admin.py | 2a46cf4520366548238bba410a5e0f445f4c50c5 | [] | no_license | sangenispablo/erp.colegio | 0738e5e33bafecd6548e598147716e824954a14b | 31544e9016e0c8396d1fb63ff9cfc3b6ab6e9bf8 | refs/heads/master | 2023-04-21T19:40:19.538209 | 2021-05-07T17:06:22 | 2021-05-07T17:06:22 | 361,764,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from django.contrib import admin
from .models import Nivel, Turno, Aula
admin.site.register(Nivel)
admin.site.register(Turno)
admin.site.register(Aula)
| [
"sangenispablo@gmail.com"
] | sangenispablo@gmail.com |
12e50b360422f0d643d536e64911172c29b93a33 | 35fa34a9bfc8e8d87d033ac556a0a08a7a55ce16 | /crawl_frame/models/ocean_models.py | f178bb1e2dbe89585c93e5ce669fbeea1bda692b | [] | no_license | yinglingxianghen/spiders_business | 2b923bf502ec1bd8706951c1dea354345ee96c45 | 7e8e6ec911d30a66dc26d825940c78e43b39de14 | refs/heads/master | 2022-07-11T14:01:13.052718 | 2020-05-11T03:49:18 | 2020-05-11T03:49:18 | 262,930,639 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, String, Integer
from sqlalchemy.orm import sessionmaker
engine = create_engine("mysql+pymysql://root:111111@127.0.0.1:3306/oceans",encoding="utf-8", echo=True, max_overflow=5)
# engine = create_e... | [
"1026719936@qq.com"
] | 1026719936@qq.com |
658637053dd75b704a6f500e279e42fd4a536cf6 | 2231cbaf3b3a4a67b8f25bc7f4150f86b28981d4 | /test/hw4/arithmetic/test7/test7.py | 47d2e11edfbe5ddb450631a472d8a8c4d07fca7c | [] | no_license | TLeben/compilerContruction | 2bd4c17a7682f0a75fb162864856179cf4d1a917 | 90d5ff9b115b066dab7ed98dc7772a8b6f6cab98 | refs/heads/master | 2016-08-04T20:36:03.416893 | 2015-04-09T04:36:39 | 2015-04-09T04:36:39 | 29,304,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | #!/usr/bin/env python
a = 1
b = 2
c = 3
d = 4
e = 5
f = 6
g = 7
h = 8
i = 9
j = 10
print a + b + c + d + e + f + g + h + i + j
| [
"schweikm@gmail.com"
] | schweikm@gmail.com |
de82ab414d200f43559d8f8c2c19e5dce45ff2a1 | b3241816119b6440b50e44a08440bcd22ebc6ad6 | /tests/test_gnn.py | 9a657d2a31870b361c7de9d4f876246c3bcf1e22 | [
"Apache-2.0"
] | permissive | maniospas/pygrank | 8cf7a8c6ca3dc4c1fecdba3994e6d59121d5faba | df1489763c55ecab764671f0d80635d989aa1139 | refs/heads/master | 2023-03-05T14:15:04.763234 | 2023-02-26T21:41:50 | 2023-02-26T21:41:50 | 210,811,921 | 1 | 0 | Apache-2.0 | 2019-09-25T09:54:51 | 2019-09-25T09:54:50 | null | UTF-8 | Python | false | false | 5,679 | py | import pygrank as pg
import tensorflow as tf
import torch
import pytest
def test_gnn_errors():
graph, features, labels = pg.load_feature_dataset('synthfeats')
training, test = pg.split(list(range(len(graph))), 0.8)
training, validation = pg.split(training, 1 - 0.2 / 0.8)
from tensorflow.keras.layers ... | [
"maniospas@hotmail.com"
] | maniospas@hotmail.com |
0de59a9aa89e91f8a13f2348a8538cb213bac16f | 4fd581daa0c21ac36c19da710c85204b7608ac08 | /MyPizzas/piz/models.py | c829cddacd48650dd3783744a97e501049dffc20 | [] | no_license | trilok002/myPizza | a3c98ef7d80099bb82fa0b8739cc796768726629 | 1a7dd5636ae77f6b79563dc5ce6af685cd07467a | refs/heads/master | 2023-03-09T18:22:21.785280 | 2021-03-01T12:14:55 | 2021-03-01T12:14:55 | 343,404,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from djongo import models
# Create your models here.
class Pizza(models.Model):
type=models.CharField(max_length=20,null=True)
size=models.CharField(max_length=50,null=True)
toppings=models.TextField(null=True) | [
"61768477+trilok002@users.noreply.github.com"
] | 61768477+trilok002@users.noreply.github.com |
9388ed6505d0881d0e65812e0362e9978ec0feb0 | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/jit/test_conv3d_transpose_13.py | ed625c225a1cb9bf00eec92280375ae7f4468a6a | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 641 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test jit cases
"""
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.getcwd())))
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils"))
from utils.yaml_loader import Ya... | [
"825276847@qq.com"
] | 825276847@qq.com |
e4c2f3156d33f3befa11455e042d24a1c9ee39bd | f3d3b3ea381f937109a9ef8c230078c35e5c8b65 | /Ether/upload/src/test/LexerSuite.py | e10206c3d5dc2993bd58af6a3c69fb58b84cc4f4 | [] | no_license | TanDung2512/parserSmartContractPython | e268fa8d2971250aab1cd5f87638d19e70c2d8e3 | 6b6a154004e8d0b9957e9c96b99a4b0d28888e37 | refs/heads/master | 2020-04-26T18:07:02.905020 | 2019-03-04T11:46:37 | 2019-03-04T11:46:37 | 173,734,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | import unittest
from TestUtils import TestLexer
class LexerSuite(unittest.TestCase):
def test_lơercase_identifier(self):
"""test identifiers"""
self.assertTrue(TestLexer.test("abc","abc,<EOF>",101))
| [
"kimtoan1998@gmail.com"
] | kimtoan1998@gmail.com |
ef7fa4042be75c55cebe7e526c05a66ca9081831 | 49d67f9b1abec8ddacd30b9a7ff99e036c1d2dfc | /App/Json_Class/TCPdevice_dto.py | 200fe093346990dd623926036a4591ecaf07c70d | [] | no_license | jacobpaul07/Project-BoschMCM-API | 3b9f25011f24d47089df3185e45e810d0f4b327f | 2cb6962ff825919c3f2d054333dcb7cce275379a | refs/heads/main | 2023-08-29T10:22:02.327369 | 2021-09-30T08:45:57 | 2021-09-30T08:45:57 | 390,989,406 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from dataclasses import dataclass
from typing import Any, List, Optional, TypeVar, Type, cast, Callable
from App.Json_Class.IOTag_dto import IOTag
from App.Json_Class.DtoUtilities import *
from App.Json_Class.TCPdeviceProperties_dto import TCPdeviceProperties
@dataclass
class TCPdevice:
properties: TCPdevicePrope... | [
"p.jacobpaul07@gmail.com"
] | p.jacobpaul07@gmail.com |
59bcf1a18ede02687f34e00ecf37f4912b59fe5e | e878866c0e3bea4c8c24da2629e1c8f65135c59c | /ProyectoAutomation/New folder/ejercicio3.py | 81563ae26c5c2150dff8e941aac23932e00709a6 | [] | no_license | KariAltamirano/ProyectoAutomation | 4aaf6b66ddb80d26893354ae4ae596803dfebf67 | 631e5c4c65a21b17e23398792d6939b48aa987da | refs/heads/main | 2023-07-18T07:20:48.756419 | 2021-09-09T03:59:22 | 2021-09-09T03:59:22 | 403,185,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | def calcular_precio(marcas,puertas,color,ventas):
marcas = {'ford':100000, 'chevrolet':120000, 'fiat':80000}
colores = {'blanco':10000, 'azul':20000, 'negro':30000}
puertas = {2:50000,4:65000,5:78000}
precio = marcas[marca]+ colores [color]+ puertas[puerta]
if ventas > 5 and ventas <11:
... | [
"noreply@github.com"
] | noreply@github.com |
b27239657a5741c26fc636ccfde4758a19cdea07 | 4e8e9ed2a8fb69ed8b46066a8d967e4c107013a4 | /main/auth/reddit.py | b4e81c58ba20f36a1a1a70b8a93f407dda2e0712 | [
"MIT"
] | permissive | welovecoding/vote4code | a57b3d155096d362dca47587ad2985b4201ef036 | be265d553af35dc6c5322ecb3f7d5b3cf7691b75 | refs/heads/master | 2021-08-11T22:46:40.884030 | 2019-11-15T16:15:05 | 2019-11-15T16:15:05 | 90,191,931 | 14 | 0 | MIT | 2021-08-10T22:50:49 | 2017-05-03T20:46:02 | Python | UTF-8 | Python | false | false | 2,613 | py | # coding: utf-8
import base64
from flask_oauthlib import client
from werkzeug import urls
import flask
import auth
import config
import model
import util
from main import app
reddit_config = dict(
access_token_method='POST',
access_token_params={'grant_type': 'authorization_code'},
access_token_url='https://... | [
"lipiridis@gmail.com"
] | lipiridis@gmail.com |
4aa5cc6c5f3ee72492708473c20d3ece613db6cb | 7a14adcd5150c970f6a5f1ab83180f091dc0f6cc | /items/migrations/0002_item_origin.py | 4fce527f993c1c330608ba087e0f33e0e273f96e | [] | no_license | synnea/the-modern-witcher | 0b4349e845e12e05f7abf6e0688200a6f54dd96d | f85c4de1fb3167b5c595ac6843c33a55495d7259 | refs/heads/master | 2022-12-09T15:09:23.602406 | 2020-03-05T18:17:27 | 2020-03-05T18:17:27 | 230,802,118 | 0 | 1 | null | 2022-11-22T05:13:41 | 2019-12-29T20:52:55 | HTML | UTF-8 | Python | false | false | 380 | py | # Generated by Django 2.2 on 2020-01-07 14:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('items', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='item',
name='origin',
field=mod... | [
"carrie.poell@gmail.com"
] | carrie.poell@gmail.com |
6c670e880143af3d3df7f3fa48cd73def4f4535b | 0ee88932af5b6ed088e471abcbd5f40fd9cbd688 | /Other/eraser.py | 4011853bf7baa80b3ee2c2398547b2997ebdd682 | [] | no_license | BjaouiAya/Cours-Python | 48c740966f9814e1045035ffb902d14783d36194 | 14b306447e227ddc5cb04b8819f388ca9f91a1d6 | refs/heads/master | 2021-06-10T22:17:38.731030 | 2016-11-11T16:45:05 | 2016-11-11T16:45:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,965 | py | #! /usr/bin/env python
# -*- coding:Utf8 -*-
"""Renaming class constructor"""
########################################
#### Classes and Methods imported : ####
########################################
import os
import re
#####################
#### Constants : ####
#####################
# Regex and folder parmete... | [
"jeremybois@rocketmail.com"
] | jeremybois@rocketmail.com |
2ba40809f529128b9eee73cf5c7dcd8a5ac062cf | 877ee8bbd74479f11fe98b987c77bed0586da0fa | /src/utils/send_event.py | c6a047673e6900e0f3e80bc378129437bd193d07 | [] | no_license | HTD-Health/ai-smart-mirror | e33b219593ef12e1ff37d08f329440e12949616f | 5375ca64ac4b10e3efc0c136418e417c06619801 | refs/heads/main | 2023-07-20T16:01:04.948637 | 2021-08-16T13:32:34 | 2021-08-16T13:38:12 | 327,571,598 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | import argparse
import time
import zmq
import xdrlib
def main(host, port, topic, data):
"""
Sending events to the specific topic after connecting to the host.
Parameters:
host (str): host name to connect.
port (str): port of the host to connect.
topic (int): ID of topic to subscri... | [
"noreply@github.com"
] | noreply@github.com |
67323a6cd63e9a194cb69a9c34a95d333bb40913 | 393f5e709700153dd8a4dbb4de229126a44fff43 | /cage/settings/local.py | 0fa4d63fd04ce97e4b8e9b2d444bc2b30378f6da | [] | no_license | CNcage/SCP | ec142bd536f3abc09a683e97e19a1ee48f4e8494 | 2ee0778774c9258a14e4d64f22d04537ea3dd7a5 | refs/heads/master | 2022-11-21T04:03:35.015907 | 2020-07-21T16:05:43 | 2020-07-21T16:05:43 | 279,333,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | from decouple import config
from .base import * # noqa
SECRET_KEY = config("SECRET_KEY")
DEBUG = config("DEBUG", cast=bool)
DATABASES = { "default": { "ENGINE": config("DB_ENGINE"),
"NAME": config("DB_NAME"), "USER": config("DB_USER"),
"PASSWORD": config("DB_PASSWD"),
"HOST": config("DB_HOST"),
"PORT": config("DB_PO... | [
"info@jmkit.com"
] | info@jmkit.com |
56b56b28494fd3e8c37f0d64125888e7aade5cf1 | d91391e7f093709fa90129f2d6bdfdb139213582 | /db/sms_pending.py | cd3a57d9b0bcaec4a40dcba6f4af7f59b8f8ad29 | [] | no_license | nomo-w/sms | f0f678dde12928963c0c341df2152a902d06bd5d | f7e8a0f6cdc8c2deee34a5e403245731e6c1e25c | refs/heads/main | 2023-01-23T19:45:53.855664 | 2020-12-07T09:07:21 | 2020-12-07T09:07:21 | 277,744,520 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,595 | py | # coding: utf-8
# 发送短信历史数据库
from config import Sql
from db.base import DBbase
from pymysql import escape_string
from db.history import SmsHistoryDB
from db.statistics import StatisticsDB
from db.cache_statistics import CacheStatisticsDB
import datetime
import random
import time
"""
CREATE TABLE `sms_p... | [
"1085640177@qq.com"
] | 1085640177@qq.com |
018f409190587b0f73f81fbc955a1fe528f94f44 | 1dfe57ecf168d954b38248f47bca080c8bb789d3 | /djangoenv/bin/pip | 34f5d03d3441d7c12d867e340ab3a3b70cb95d13 | [] | no_license | deb133/mysite | ab01cb053f2eac6675bde3eb429aa26def0bb76f | 1d465bbaaa736eecdf85231478f6cf5f05637726 | refs/heads/master | 2016-08-07T11:49:58.517062 | 2015-03-11T02:09:56 | 2015-03-11T02:09:56 | 31,602,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/Users/DarcyElizabeth/Python/mysite/djangoenv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"darcy.e.balcarce@gmail.com"
] | darcy.e.balcarce@gmail.com | |
42bce4085193456af583fe4bd69f5b879e5fe92f | a39224fcd17ff2adb77fa643afed63bc3342a3f4 | /setup.py | e8128dd9f0742381369839c237e8c5bf807d6ee0 | [
"MIT"
] | permissive | HemuManju/reaction-time-classification | ef9ddb241803a16b4b9411eaa8375e8b25fcc9e1 | 8d468516c0591359e082fb8bc5850f8e89e5a6e4 | refs/heads/master | 2023-01-14T09:10:04.142946 | 2021-09-22T19:49:32 | 2021-09-22T19:49:32 | 179,614,766 | 0 | 0 | MIT | 2022-12-27T15:36:26 | 2019-04-05T03:39:43 | Python | UTF-8 | Python | false | false | 261 | py | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Classification of reaction time of an \
operator performing tele-operation',
author='Hemanth ',
license='MIT',
)
| [
"hemanthm2277@gmail.com"
] | hemanthm2277@gmail.com |
a5d02be7324103df8b24f058e3b8de41af441989 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02768/s686694566.py | 553aafe96bef5565407dfea61c0ba091a9ef4718 | [] | 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,026 | py | n, a, b = list(map(int, input().split(' ')))
# 二項係数 mod [検索]
mmm = 1000000000 + 7
fac = []
inv = []
inv_fac = []
def init(n):
fac.append(1)
fac.append(1)
inv.append(0)
inv.append(1)
inv_fac.append(1)
inv_fac.append(1)
for i in range(2, n):
fac.append(fac[-1] * i % mmm)
inv.a... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1463290d7d0b564ec4fce23796ea7e90f1adea53 | fbb1550dc5437d672ed0137bd7711eba3290dee3 | /students/ganyoa/lessons/lesson01/assignment/inventory_management/electric_appliances_class.py | 5b6a4aebc903f56735730c5623a3178938bba064 | [] | no_license | JavaRod/SP_Python220B_2019 | 2cc379daf5290f366cf92dc317b9cf68e450c1b3 | 5dac60f39e3909ff05b26721d602ed20f14d6be3 | refs/heads/master | 2022-12-27T00:14:03.097659 | 2020-09-27T19:31:12 | 2020-09-27T19:31:12 | 272,602,608 | 1 | 0 | null | 2020-06-16T03:41:14 | 2020-06-16T03:41:13 | null | UTF-8 | Python | false | false | 1,066 | py | '''Electric appliances class'''
from inventory_management.inventory_class import Inventory
#from inventory_class import Inventory
class ElectricAppliances(Inventory):
'''
initiates standard 'Inventory' attributes including brand and voltage for appliances
'''
def __init__(self, product_code, descri... | [
"ganyoa@gmail.com"
] | ganyoa@gmail.com |
96c06261331dd8e373f7552b6c08266873eeb256 | ebe994a845740ff5b8951a1ad9f0eddf6ebab508 | /pokeSite/pokeSite/settings.py | c329a1888c6b7559e8c9da5cede45fd6c2273c6d | [] | no_license | brando-squire/Hack_Pokedex_app | 997c60cfc66b7a89a518df14b2fadbaae8abc107 | 1116487394e60cb26786ae20948330ab28632bad | refs/heads/master | 2020-04-07T01:06:49.257262 | 2018-11-17T19:42:21 | 2018-11-17T19:42:21 | 157,930,997 | 0 | 0 | null | 2018-11-17T18:46:58 | 2018-11-16T23:04:28 | JavaScript | UTF-8 | Python | false | false | 3,128 | py | """
Django settings for pokeSite project.
Generated by 'django-admin startproject' using Django 2.1.1.
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
... | [
"squiresbrandon@yahoo.com"
] | squiresbrandon@yahoo.com |
352ddf87ea2fdb4df2a799b35d0b72ef0da338c3 | b59a2ad40efead9850c2c9cbff93b2a00c6c47bb | /app/__init__.py | c5833da6e81fbcc2b9193c1bf3248a77a4f678d3 | [] | no_license | khaled-sayed/news_app_python_flask | 67704bb37e0a4dd32d2b7a26d22671d74f59aec1 | 440cc3d0915e79b601b0154d4d13912cd1c2aebd | refs/heads/main | 2023-01-03T21:53:38.227252 | 2020-11-04T15:21:56 | 2020-11-04T15:21:56 | 310,038,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | from flask import Flask, render_template
from dotenv import load_dotenv
import config
import os
from flask_login import LoginManager
from werkzeug.utils import secure_filename
base = os.path.dirname(os.path.abspath(__name__))
UPLOAD_FOLDER = 'app/static/images/upload/news'
# ALLOWED_EXTINSTIONS = set(['jpeg','jpg','png... | [
"62744648+khaled-sayed@users.noreply.github.com"
] | 62744648+khaled-sayed@users.noreply.github.com |
6cd3405367f78e286064a46db46b69d8c5f63689 | 900bd035cc429c05307cc6a757cb3482c9074daf | /venv/Scripts/pip3-script.py | 58e93e211506308ae97457d9bbaf4c500f759828 | [] | no_license | maxshtun999/PythonBot1 | 2eff02138b0fced9b8ad6e46608c449c7be83246 | 19f81538f51fe5d0bef7e733cb16938bf949c0da | refs/heads/master | 2022-10-13T10:15:53.866144 | 2020-01-06T14:48:51 | 2020-01-06T14:48:51 | 232,130,241 | 0 | 1 | null | 2022-10-02T05:43:22 | 2020-01-06T15:32:37 | Python | UTF-8 | Python | false | false | 421 | py | #!"C:\Users\Shtun Max\PycharmProjects\PythonBot\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"maxshtun99@gmail.com"
] | maxshtun99@gmail.com |
0d49f2b63100c3cb5e7ca83a6451e19ffa5f3676 | ecc17e230795f33d94ed33547b1d0f14c602b9ba | /HW12 (Ch04, HMM problem 1_Forward_Backward)/HW12.py | 4446294c4970e10df44507035199cda2add05e89 | [] | no_license | henk2525/NYUST-speech-recognition | 1e8a2159572c756152234f888b5814ddd7baf1ef | ea75d67d6c1d6a4db51064c00cae455961dd5b32 | refs/heads/master | 2022-05-07T12:50:39.224382 | 2019-08-04T12:38:55 | 2019-08-04T12:53:21 | 200,493,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | # -*- coding: utf-8 -*-
"""
Created at 2019/4/28
@author: henk guo
"""
import numpy as np
import dspBox
obs1 = dspBox.str2ndar(open('obser1.txt', 'r').read())
obs2 = dspBox.str2ndar(open('obser2.txt', 'r').read())
obs3 = dspBox.str2ndar(open('obser3.txt', 'r').read())
a1 = np.array([[0.2, 0.7, 0.1], [0.1, 0.2, 0.7], ... | [
"a0956072892@gmail.com"
] | a0956072892@gmail.com |
7bdd5fad0213f6c34d28ec35b754a74ac25ce4db | 0d05c5e96e91986bbfeda648b502f585885a596c | /trekbooking/wsgi.py | 6bc6d65ef0a74cc3ade9ff8870050e907c71bdc5 | [] | no_license | callingsandesh/ComeOn | 9507e1eba984dca76a7342845394754b2e4f598d | f3c541a62fa79c81e167a661ec45b8ced2c5b4b2 | refs/heads/master | 2021-01-25T13:05:15.985282 | 2020-01-23T14:39:59 | 2020-01-23T14:39:59 | 123,523,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for trekbooking 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('DJANGO_S... | [
"arvik.rai3377@gmail.com"
] | arvik.rai3377@gmail.com |
a3bc969b5283c5f611660bb173b2d3769ae854c3 | 2a68b03c923119cc747c4ffcc244477be35134bb | /interviews/A/VO/wordLadderII.py | a00dffb9d9e8ec178fca30545a4ec9ff564ba284 | [] | no_license | QitaoXu/Lintcode | 0bce9ae15fdd4af1cac376c0bea4465ae5ea6747 | fe411a0590ada6a1a6ae1166c86c585416ac8cda | refs/heads/master | 2020-04-24T20:53:27.258876 | 2019-09-24T23:54:59 | 2019-09-24T23:54:59 | 172,259,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,500 | py | from collections import deque
class Solution:
"""
@param: start: a string
@param: end: a string
@param: dict: a set of string
@return: a list of lists of string
"""
def findLadders(self, start, end, dict):
# write your code here
dict.add(start)
dict.add(end)
... | [
"jeremyxuqitao@outlook.com"
] | jeremyxuqitao@outlook.com |
2e1785d76fd4532236e24443c86dc1718f1136ed | 0e5bbc4eab562ae85c3e0972e5789dd2c14eb297 | /5.4_server.py | 772387cd4348bf536b82fc5ac4298df49aa43065 | [] | no_license | kint7/lab5 | c84d71a7b00b03a219d5c8fe7cb541d5ee0c29d2 | eb43c926a8d02f593ae7754a3d6e1feb31256833 | refs/heads/master | 2023-01-24T03:49:21.603390 | 2020-12-09T08:38:16 | 2020-12-09T08:38:16 | 317,923,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | # Importing socket library
import socket
# Now we can create socket object
s = socket.socket()
# Lets choose one port and start listening on that port
host_name = socket.gethostname()
IPADDRESS = socket.gethostbyname(host_name)
PORT = 9898
print(">>>IP address of the server: ", IPADDRESS)
print(">>>Server is lis... | [
"2018276758@isiswa.uitm.edu.my"
] | 2018276758@isiswa.uitm.edu.my |
1e73bcb3091075ebead0ba1e029588dec88fead0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/46/usersdata/98/17294/submittedfiles/funcoes1.py | 94f0f1ec40294a695cc95ea950a44bec636efae5 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,592 | py | # -*- coding: utf-8 -*-
from __future__ import division
def crescente (lista):
#escreva o código da função crescente aqui
cont=0
for i in range(0,len(lista)-1,1):
if lista[i]<lista[i+1]:
cont=cont+1
if cont==len(lista)-1:
return True
else:
return False
#escr... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
376003ae4440bb82d9c769811431381b61dbebbc | 61465dc9aded40737193de67edbbac89b98b2e83 | /leadmanager/accounts/api.py | 0a668ef7aa1a5a35e75aa82c97d3c58197b43a9b | [] | no_license | NganHaVan/PythonPractice | e0000f62f5eebc70695af447babc1e638ef874a9 | 3a7e376ef691458e720ec9bdef1d41b0b1fcc400 | refs/heads/master | 2023-01-08T22:15:37.082747 | 2019-06-05T09:36:51 | 2019-06-05T09:36:51 | 188,797,453 | 0 | 0 | null | 2023-01-07T05:49:32 | 2019-05-27T07:54:14 | Python | UTF-8 | Python | false | false | 1,401 | py | from knox.models import AuthToken
from rest_framework import generics, permissions
from rest_framework.decorators import permission_classes
from rest_framework.response import Response
from .serializers import LoginSerializer, RegisterSerializer, UserSerializer
# Register API
class RegisterAPI(generics.GenericAPIVie... | [
"vannunganha@gmail.com"
] | vannunganha@gmail.com |
c470665fd971ef55fbcbf2c680c5254eb0e69e51 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/playground/memre/armv7l/obsolete/corp2/system/base/man-pages/actions.py | e17573a3dc5e34c142d651a5d3274ff1b0d7e803 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import crosstools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
d... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
e09fa967d92023bca99cf54837fa105b810f030b | 4cb1fd4f6f4a8e57ca3d222007c1a5cde3deebfe | /Chapter04/pingmesh.py | 8fb17a404fcdee3635ee36367d652fcfefc59daf | [
"MIT"
] | permissive | PacktPublishing/Python-Network-Programming | 838097e82762fed54fbc2abffe4db71d5acd350b | 416cea10fe56b2312cf25150ed7ba27837cddf18 | refs/heads/master | 2023-02-11T00:34:43.611524 | 2023-01-30T08:58:32 | 2023-01-30T08:58:32 | 166,771,428 | 52 | 51 | null | null | null | null | UTF-8 | Python | false | false | 2,532 | py | import getmeshvalue
from getmeshvalue import getallvalues
getdevinformation={}
devicenamemapping={}
arraydeviceglobal=[]
pingmeshvalues={}
arraydeviceglobal=["192.168.255.240","192.168.255.245","192.168.255.248","192.168.255.249","4.2.2.2"]
devicenamemapping['192.168.255.240']="R1"
devicenamemapping['192.168.255.245... | [
"rutujay@packt.com"
] | rutujay@packt.com |
f87a9d541cd2f410d4566f9b6a619b6f8385df77 | b7319d10078c0fdf5d9ece02f976e64d19ff870e | /Mathematical/Multiply.py | 6a1eca5fdc9c2b25bd4a3683d8376cc2f0685d5a | [] | no_license | parhamrp/Python3 | 5a4e91941a411e52f252819fdcd65924c0466e10 | dba4e7b22c39e10dfee8f49faa24e6705ce894a5 | refs/heads/master | 2020-09-11T01:19:34.543569 | 2019-12-08T17:14:09 | 2019-12-08T17:14:09 | 221,892,561 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | # Write a Python function to multiply all the numbers in a list.
def multiply(lst):
total = 1
for item in lst:
total *= item
# total = lst[item] * lst[item+1]
return total
# print(multiply([1,2,4,-3,3]))
| [
"noreply@github.com"
] | noreply@github.com |
dafc3e377763e40bd4c4d5e4406d87111ac9744b | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/interactive-physics-editor/operators/setup_phys_drawing.py | 01edd2b8c2993ca95f30bc14ca621432a93ca02a | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,321 | py | # Copyright (C) 2018 Christopher Gearhart
# chris@bblanimation.com
# http://bblanimation.com/
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your opt... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
9adaee7940a1f0dbfd276202c2578faa1ef36ad7 | a97792ea5b48c1d0aacca906bc2d393b59ceb59a | /accounts/migrations/0001_initial.py | 3b079163e2466e9166ba44051a16589ed2ecc286 | [] | no_license | ebrahimasifismail/custom_login_view_django | 0de9e66846d19101506232e67c2a32777f70bdff | c1d8b3aa712b601f2c9f0e8cbeaf9080d329f00d | refs/heads/main | 2023-07-25T17:52:11.821384 | 2021-09-09T14:36:56 | 2021-09-09T14:36:56 | 404,233,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | # Generated by Django 3.2.7 on 2021-09-04 15:14
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='MyUser',
fields=[
('id', models.BigAutoFiel... | [
"ebrahimasifismail@gmail.com"
] | ebrahimasifismail@gmail.com |
5a5afc24b7232e7b0dfad88d7345ed4ac5c2c416 | ee27158cc32b364baa2693bee24c407886bd4d65 | /ecourses/migrations/0004_alter_student_universidad.py | 19677460db20b5a7ab125d35d9215cfb31320305 | [] | no_license | BenjaLepe/django-ecourses | e87cf3231de92509f7e012efced695901a93dd46 | caee50380149df71d114e27c6a2bdba7539b4222 | refs/heads/main | 2023-08-24T18:25:19.750885 | 2021-10-25T04:32:07 | 2021-10-25T04:32:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,797 | py | # Generated by Django 3.2.8 on 2021-10-25 02:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ecourses', '0003_course_promedio'),
]
operations = [
migrations.AlterField(
model_name='student',
name='universidad'... | [
"balepe@uc.cl"
] | balepe@uc.cl |
f3b0975173509a971b078616b1369cd06e6dbd22 | b5db98d382f587857cc56f71dfde17034963fdec | /image_search/signature_database_base.py | 7019b092d2372d185e499c5bbce04dc496472001 | [] | no_license | boluoyu/image_search | abb1563f35675730973bdcff6829da198f6c8d5e | 5675371130eca0849e215c426f51a6fdce66ed45 | refs/heads/master | 2020-07-17T16:12:08.287835 | 2017-04-18T09:51:09 | 2017-04-18T09:51:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,162 | py | from image_search.image_signature import ImageSignature
from operator import itemgetter
import numpy as np
from datetime import datetime
import os.path
class SignatureDatabaseBase(object):
"""Base class for storing and searching image signatures in a database
Note:
You must implement the methods sear... | [
"guoxiaolu06@126.com"
] | guoxiaolu06@126.com |
70f011987d0d83896b55fb107ebb146db7604a64 | 94ed2beea5ac8936f555824a6c799a4c5c810937 | /apps/aula01/cadastro_edital/migrations/0002_auto_20190313_1819.py | 02dc4db4fb0a40ca7b0654e0b90886d8feea2591 | [] | no_license | SarahRaq/handson_django | a4fc851022b4a20d314c149cb582aa6c60f95726 | 5277011ec8a25c3490089c4f7ba137bd5959ae9e | refs/heads/master | 2020-04-28T05:02:23.375150 | 2019-03-15T18:01:04 | 2019-03-15T18:01:04 | 175,004,387 | 0 | 0 | null | 2019-03-11T13:19:33 | 2019-03-11T13:19:33 | null | UTF-8 | Python | false | false | 1,494 | py | # Generated by Django 2.1.7 on 2019-03-13 18:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cadastro_edital', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='pagamento',
name='edital',
... | [
"sarahraquelrs@gmail.com"
] | sarahraquelrs@gmail.com |
ca152810fc429ad3a3aa2281e6960067671ebd20 | 5f862a5f0116030adb4ce8d1f66c22e52eb5546f | /test/test_automl/test_smbo.py | 7094e9c51ac478e5b9391d662872db4ddc3f1610 | [
"BSD-3-Clause"
] | permissive | IsoLATionzhw/auto-sklearn | 9c1adbffe8f077471cbf9eb1c0a89d4ab9593220 | a263efb49f7b7f597963bc1e787105ea7615ea75 | refs/heads/master | 2021-07-15T05:47:23.268566 | 2017-10-04T10:08:21 | 2017-10-04T10:08:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,894 | py | import unittest
from autosklearn.smbo import AutoMLSMBO
from autosklearn.metrics import accuracy
from smac.facade.smac_facade import SMAC
from smac.scenario.scenario import Scenario
from smac.tae.execute_ta_run import StatusType
from ConfigSpace import ConfigurationSpace, UniformFloatHyperparameter, Configuration
cl... | [
"feurerm@informatik.uni-freiburg.de"
] | feurerm@informatik.uni-freiburg.de |
678b524eb856b015ab6f89278db01e09ee25aeee | c1dbc149888d9e17023c7efea77a1bcba21b5215 | /haarcasc.py | 96dc7a5b740f24b72236d3326c2c232c775b065a | [] | no_license | aneri2807/Opencv_scripts | 8361c0983425cae75dd546ddde6b5d35790564e5 | c842284be5208d83fd78d8576b8b7cbfd7c5c461 | refs/heads/master | 2021-04-12T11:14:15.069227 | 2018-03-22T15:22:14 | 2018-03-22T15:22:14 | 126,353,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | import cv2
import numpy as np
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml')
cap = cv2.VideoCapture(0)
while True:
ret, img = cap.read()
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = face_cascade.detectMultiScal... | [
"aneri2807@gmail.com"
] | aneri2807@gmail.com |
1bcd4f24598b0f823162ecf23a97fcaee260cc6b | be70c1a9e6600cdfb0691e746b7132d0f7f9890b | /bmi.py | 324aa713ddc12e44de9a142a077b0efe55b7f9c4 | [] | no_license | jasonmahony/python | ec16cf10407c40809f9f667828bbb5c8970a47d6 | 7676ee18425114a9084e74d10eb5d75fda2b9236 | refs/heads/master | 2021-06-14T16:42:49.390585 | 2021-05-30T15:29:12 | 2021-05-30T15:29:12 | 74,153,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | def bmi(weight, height):
bmi = (weight/height**2)
print(bmi)
return ("Underweight" if bmi <= 18.5 else "Normal" if bmi <= 25 else "Overweight" if bmi <= 30 else "Obese")
print(bmi(90, 1.80)) | [
"jason.mahony@autodesk.com"
] | jason.mahony@autodesk.com |
d691c4b54e635a2d515ac8e2806e29ed04c757c3 | c2285444392e8eb1904255b82f62b49f317aca07 | /tagger/db/models/tag.py | 95a487c8861a4b3aa4e29120ff433e8162fdbc16 | [] | no_license | tlskr/tagger | ced0ed36437bb29fe488eb2fae8b03314c5a9558 | 1230a1f36b91bd7ef2d57840dcfa013ca07e5a4a | refs/heads/master | 2022-12-16T00:44:36.798298 | 2018-08-17T13:23:02 | 2018-08-17T13:26:37 | 145,027,493 | 0 | 0 | null | 2022-12-08T02:46:37 | 2018-08-16T18:55:02 | Python | UTF-8 | Python | false | false | 2,353 | py | # coding: utf-8
from sqlalchemy import Column, Text
from sqlalchemy.dialects.postgresql.json import JSONB
from . base import Base
from tagger.db.session import get_session
class Tag(Base):
__tablename__ = 'tag'
tag_id = Column(Text, primary_key=True)
vendor_id = Column(Text, nullable=False)
tag_met... | [
"gordon@practicalhorseshoeing.com"
] | gordon@practicalhorseshoeing.com |
ed804e3a0fd86fac05c8659b567fe28785d81b74 | 23004e07eb5923b69063d1a303707245ba185610 | /ADM_Project.py | 0aa88edf533bd86403a217a8cfb554678585e06d | [] | no_license | Vasireddydivya/Santander-Product-Recommendation_DataPrep_Python | 0bba05cbbab745b41bbdb7a0f15482047b0b0f26 | 0bf586237ccd73d796f6ec14e330773e0bdce256 | refs/heads/master | 2021-01-25T09:20:18.714274 | 2017-11-15T02:48:12 | 2017-11-15T02:48:12 | 93,812,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,076 | py | import numpy as np
import pandas as pd
#from tsne import bh_sne
import seaborn as sns
import matplotlib.pyplot as plt
#%matplotlib inline
#pylab.rcParams['figure.figsize'] = (10, 6)
def convert_int(dataframe,colname):
dataframe[colname]=pd.to_numeric(dataframe[colname],errors='coerce')
limit_rows=10000... | [
"noreply@github.com"
] | noreply@github.com |
5bd0502dc889f757281d2e3246e31016f6681c03 | cf9f56f50d947cfb9490a9b3a25aec1e7506066f | /lpthw/ex20.py | 92462c8b1a9c2a23781fcd60cbdb6fff519aa234 | [] | no_license | Nipuncp/lyceaum | ce14758ae4834031e47df731de64a52b965f32db | 4ba26b89915786656bd93e1e62aa3002b59aab2b | refs/heads/master | 2020-03-26T08:24:19.309122 | 2018-08-14T09:28:00 | 2018-08-14T09:28:00 | 144,699,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | from sys import argv
script, input_file = argv
def print_all(f):
print(f.read())
def rewind(f):
f.seek(0)
def print_a_line(line_count, f):
print(line_count, f.readline())
current_file = open(input_file)
print("First let's print the whole file: \n")
print_all(current_file)
print("Now let's rewind. Ki... | [
"nipuncp123@gmail.com"
] | nipuncp123@gmail.com |
67fa6bad0b3fbe89d5c78e8cb9d16e3f6de865da | daef437c4cd7ed6ca4be3989f6c7b990ee1efcc7 | /djangogirls/asgi.py | 71b39e44a12e3493104e2d080c24e3277d71d1c8 | [] | no_license | YY-U/Myblog-web-app | b157624f5cd56b3b0b56d30f40fe5ae62973c78f | fd90497dc0aa7e6b3efb6e6d5a24c165fde6de33 | refs/heads/main | 2023-08-28T05:13:40.068384 | 2021-09-23T14:33:34 | 2021-09-23T14:33:34 | 401,692,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
ASGI config for djangogirls 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.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefa... | [
"chxgw030@yahoo.co.jp"
] | chxgw030@yahoo.co.jp |
dced842cb0138a15c1c028b64d73971e74c64f60 | 9d37286183243fd2a040466f0df0b3b31f69ef6a | /hunt/wsgi.py | b0853fef3d467722dedf7cf93cef1e236a011cd8 | [] | no_license | ma9shah/Product-Hunt-Django | 4a5b95db2d042718f374d3fd7cd771b4b0d196ed | 19bbfb72889ebce6813a0845df10787f8f7a93f6 | refs/heads/master | 2022-01-25T15:04:42.207144 | 2019-07-27T08:54:29 | 2019-07-27T08:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for hunt 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('DJANGO_SETTINGS... | [
"ma9shah@gmail.com"
] | ma9shah@gmail.com |
c4d8e805c1f6b10bf7e2aa5d93ed4a594334fcc9 | a7fce57f807f35ae9c417f03c8a92a431362a0ce | /app/models/base.py | 588953c21c2f9b63e6bd7f1c170b0b0f6818e57d | [] | no_license | ONSdigital/census-rm-case-processor-prototype-python | 5e9cf1645b63736bde9487508c1009946c41f7be | dfeeeecbae94b8bbedcc85c12b56699488b04f48 | refs/heads/master | 2020-05-14T05:08:33.683697 | 2019-04-16T14:58:37 | 2019-04-16T14:58:37 | 181,700,008 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from sqlalchemy.schema import MetaData
from sqlalchemy.ext.declarative import declarative_base
metadata = MetaData(schema='casesvcv2python')
Base = declarative_base(metadata=metadata)
| [
"neale.dj@gmail.com"
] | neale.dj@gmail.com |
5223e23b482a1bfdb8243afce164d650eb01a992 | 6d1af2b4930d6454ad215a645a6ee2e8900ec45d | /tests/context.py | d05a6b307936e3dc2d9c135d32f2382d7a94e390 | [
"MIT"
] | permissive | orange-erotic-bible/orange-erotic-bible | 7cc8c477118dea8e20e03883029b79cd57e788a9 | cd9e31f44ccdf4b69782c5a21af25407cfe5418b | refs/heads/master | 2023-01-13T04:17:57.275994 | 2020-04-05T12:09:10 | 2020-04-05T12:09:10 | 225,234,684 | 49 | 2 | MIT | 2022-12-26T21:00:58 | 2019-12-01T21:38:03 | Python | UTF-8 | Python | false | false | 142 | py | import os
import sys
module_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
sys.path.insert(0, module_path)
import oeb
| [
"57139857+orange-erotic-bible@users.noreply.github.com"
] | 57139857+orange-erotic-bible@users.noreply.github.com |
a4dfcab1929a4549495921aec3b9178da6d67f3e | 7e0ea1a29084f9536e02f6d7dcf9a0fb80babf58 | /core/views.py | e1eeeec7ef5bcd9a087405bb5c4fbdd5e1cfbecf | [] | no_license | ABYARTH/mywallet | a5b0bdbd0d08d22eb55fbc55e61147b92fcc5805 | 8eb0ce84422b55d0211e391269a7716b4f9c90a7 | refs/heads/master | 2021-01-16T20:00:05.470714 | 2016-01-14T15:17:26 | 2016-01-14T15:17:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,800 | py | import requests
from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.core.urlresolvers import reverse
from django.contrib.auth import login, authenticate
from django.contrib.auth.models import User, AnonymousUser
from dj... | [
"s.mohanty.006@gmail.com"
] | s.mohanty.006@gmail.com |
9687e2ef03ae47ee8da4844d73ec64b309f7fa7d | 3e95e4399ac1386b6ea21d1ed0841a0da9ed4ed8 | /Code/show_images.py | 16141eca01fd591d7594b76ba86a1acd71b2743b | [] | no_license | sbaio/Restricted-Boltzmann-Machine | 9ddbdef618600c68224ab9f6ffb3d7bced02c00b | e1c304aac444c3a30e29645aa5f9f6e76149f1f4 | refs/heads/master | 2020-01-23T21:41:12.593660 | 2017-01-19T13:42:24 | 2017-01-19T13:42:24 | 74,689,495 | 3 | 0 | null | 2016-12-08T11:13:51 | 2016-11-24T16:29:58 | Python | UTF-8 | Python | false | false | 2,206 | py |
from loadMNIST import load_mnist
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
def showImage(image):
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
imgplot = ax.imshow(image,cmap=mpl.cm.Greys)
imgplot.set_interpolation('nearest')
ax.xaxis.set_ticks_position('top')
ax.yaxis.set_tic... | [
"otossbai@gmail.com"
] | otossbai@gmail.com |
be0d2c0404f5a1d0904d36ae3e5636b9dbfb75f9 | 7fa176ce9ef29258ea3711612b0605ee82afd799 | /python/scikit-learn/svm/plot_dbscan.py | 778af1090ffaa7bbb5c36e76a8d5ecbfbdd491df | [] | no_license | fooyou/Exercise | c5137945821ee7f9f21a86f95c06d8e71941c19f | 1a5438d961f1716953b90921aa1ee9d60a97b23e | refs/heads/master | 2022-07-08T13:15:52.481707 | 2018-07-08T03:21:17 | 2018-07-08T03:21:17 | 37,168,041 | 1 | 1 | null | 2022-07-06T20:05:34 | 2015-06-10T01:18:11 | C++ | UTF-8 | Python | false | false | 2,478 | py | # -*- coding: utf-8 -*-
"""
===================================
Demo of DBSCAN clustering algorithm
===================================
Finds core samples of high density and expands clusters from them.
"""
print(__doc__)
import numpy as np
from sklearn.cluster import DBSCAN
from sklearn import metrics
from sklearn... | [
"liuchaozhenyu@gmail.com"
] | liuchaozhenyu@gmail.com |
b70f5aaaa9a23b47d5833e61e54bf71c2eab1650 | cf6fc33bb2a3790ddb5dacfc9246e3c42f4c3812 | /firstTier.py | cf4b3aa531961466b8a9ab9aa1df3f5bd164a881 | [] | no_license | oliverwangyi/Software-Supply-chain-Risk-Analysis- | 6965dc936c8d6a85f593285463cf18487477c816 | 166e5b309c8820a3cf5a64c2544c354f58fc853c | refs/heads/master | 2020-04-01T02:40:24.963984 | 2018-10-12T18:01:37 | 2018-10-12T18:01:37 | 152,789,676 | 0 | 0 | null | 2018-10-12T18:03:42 | 2018-10-12T18:03:41 | null | UTF-8 | Python | false | false | 2,659 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 24 17:21:09 2018
@author: krishna
"""
import glob2
#Creating a list of path for each python file
pyFilesPath = glob2.glob('/home/krishna/Desktop/fall 2018-19/Research/ipythonProject/**/*.py')
# Reading the libraries from each of the python files
fi... | [
"noreply@github.com"
] | noreply@github.com |
d5633a2b848b581a3a034619a61450208a8052e8 | da1d21bb8d0760bfba61cd5d9800400f928868aa | /apps/common/utils/iterables.py | 3d4d2470b42a38d43cc00ac6ac9d420b5e00c8f0 | [] | no_license | biznixcn/WR | 28e6a5d10f53a0bfe70abc3a081c0bf5a5457596 | 5650fbe59f8dfef836503b8092080f06dd214c2c | refs/heads/master | 2021-01-20T23:53:52.887225 | 2014-05-13T02:00:33 | 2014-05-13T02:00:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | # -*- coding: utf-8 -*-
from itertools import izip_longest
def grouper(n, iterable, padvalue=None):
"grouper(3, 'abcdefg', 'x') --> ('a','b','c'), ('d','e','f'), ('g','x','x')"
return izip_longest(*[iter(iterable)]*n, fillvalue=padvalue)
| [
"mbc@Mathiass-MacBook-Pro.local"
] | mbc@Mathiass-MacBook-Pro.local |
24477cb63cb6f686691370294340502c0cc654b2 | 10d9756f6c711ae20a0bbcb84f2be1adebb9ed5f | /examples/sparse_jacobi_matrix.py | 2fc5789dbff287ffd673d86521d98f0fd08f1579 | [
"BSD-3-Clause"
] | permissive | paulrozdeba/pyadolc | f44fa5589eeefb4a6b8e5e86625798c40aa529f0 | b3ab24a7181346545697a363ab5a3171d4bb218e | refs/heads/master | 2021-01-01T07:59:13.796652 | 2018-01-21T17:32:52 | 2018-01-21T17:32:52 | 97,529,945 | 0 | 0 | null | 2017-07-17T23:06:38 | 2017-07-17T23:06:37 | null | UTF-8 | Python | false | false | 752 | py | import adolc
import numpy
M,N = 4,2
sparsity_pattern_list = [numpy.random.randint(0,4*N,M)//(3*N) for n in range(N)]
def F(x):
y = numpy.ones(M, dtype=x.dtype)
for n,sp in enumerate(sparsity_pattern_list):
for ns, s in enumerate(sp):
if s == 1:
y[ns] *= x[n]
... | [
"sebastian.walter@gmail.com"
] | sebastian.walter@gmail.com |
ef36daca0df48a857bb2a548b85be845df066979 | 1b298205e6164314d5d2d41ef1fa4986494b24e2 | /viterbi.py | a87ac08ce85b47b4f4e208f7a5eefab054d4d5a0 | [] | no_license | ywng/pos-tagger | 8c925fb7e07423e1bc16a3c3ed648d350ee6e44f | 620c4fd8a91f2f3e96479bd6d58ad705d4d6095b | refs/heads/master | 2020-04-27T08:46:29.592314 | 2019-03-08T03:00:53 | 2019-03-08T03:00:53 | 174,185,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,050 | py | from __future__ import division
from const import START_END_OBS, START_END_TAG
import math
class Viterbi:
def __init__(self, obs_space, states, trans_prob, emit_prob):
'''
obs_space: all the possbile value of observations. In POS tagging, it is the vocabulary.
states: the HMM states. In POS tagging, ... | [
"victor.not.to.yield@gmail.com"
] | victor.not.to.yield@gmail.com |
0bf3e08e5e06852a8c723c159ca73d8b4cab3d49 | 8009c659b53e22f06593d849ee373f327372b49a | /Problems/Implement a function/main.py | ba88587a77a4fe3979c0e3cc06606a1288253caf | [] | no_license | rolmos14/bill_splitter | 6f7824b1d0b5a5c6e525c0fe164074ac94f148bd | 36c3ce9888d1089df6cbef4369f2b94a233df190 | refs/heads/master | 2023-06-27T09:23:50.319746 | 2021-07-31T15:27:15 | 2021-07-31T15:27:15 | 391,341,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | def get_number(num):
"""Return the number one less than the given positive number.
If the number is nonpositive, return a string "Enter a positive number!".
Arguments:
num -- an integer.
Return values:
An integer one less than the input number.
"""
if num <= 0:
return "Enter a ... | [
"olmos.rafa@gmail.com"
] | olmos.rafa@gmail.com |
a2de1e5017153780b682b865a1dba29d1ab68342 | b1e304b259d0cbca2cb86640237e24be7d6f870f | /plugin/database_prefab.py | 439e22d0057e56ec4f6e491b9225ad1f8eb52a31 | [] | no_license | toshihr/alignbench | 4b30edd42a7dec1a4c36c8fc93e8ec8b3521a3ec | 7000427e3b0b015856893ee43b69dedb63cdf4c3 | refs/heads/master | 2021-07-21T09:10:47.624153 | 2017-10-30T18:33:06 | 2017-10-30T18:33:06 | 108,892,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | # -*- coding: utf-8 -*-
RESOURCE['databases'].update({
'prefab1':{
'arcName': 'prefab1.tar.bz2',
},
'prefab2':{
'arcName': 'prefab2.tar.bz2',
},
'prefab3':{
'arcName': 'prefab3.tar.bz2',
},
'prefab4':{
'arcName': 'prefab4.tar.bz2',
},
})
| [
"toshihr@toshihr-mbp.local"
] | toshihr@toshihr-mbp.local |
b3c2d00bbbcb4af4d0d9fc7842cf3e8e929b270b | 659e6db1ae3488fa15f1df551380d8e1b747cfb9 | /model/model.py | b5e337983d3ef2bea60b88444e7a9f66f78e6282 | [] | no_license | wormys/fracture | 17ee9c7216937603c0f6c97eb23da20244001c2a | 39c62201f82d18a144e0507ad74fc96f3604e7c2 | refs/heads/master | 2023-08-24T15:14:49.062061 | 2021-10-18T12:57:54 | 2021-10-18T12:57:54 | 366,652,767 | 0 | 1 | null | 2021-09-26T08:39:04 | 2021-05-12T08:55:13 | Python | UTF-8 | Python | false | false | 2,208 | py | """
Date: 2021/05/10
Author: worith
"""
import torch
import torch.nn.functional as F
class NetX2Y(torch.nn.Module):
def __init__(self, hidden1, hidden2, hidden3, physical_hidden, is_physical_info, n_feature, n_output):
super(NetX2Y, self).__init__()
self.hidden1 = torch.nn.Linear(n_feature, hidd... | [
"2589978839@qq.com"
] | 2589978839@qq.com |
a948cb00874c590197218356b4be33325d720557 | 317676b47c60e3a86ef58c93fab14829156a2f27 | /18.1/18.1/_18.1.py | dfd81a7d3b92e9485e3ed4361784def2d932865f | [] | no_license | bellontea/python_lab3 | aa650a6e42997f0b03837bb3850c0590e92a91bc | 756a2a4929a1c3a6a1e26c7dec21f52cf1b44b87 | refs/heads/master | 2023-04-26T20:10:40.406188 | 2021-05-15T20:15:01 | 2021-05-15T20:15:01 | 367,721,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | def print_shrug_smile():
print("¯\_(ツ)_/¯")
def print_ktulhu_smile():
print("{:€")
def print_happy_smile():
print("(͡°ʖ ͡°)")
| [
"71792005+bellontea@users.noreply.github.com"
] | 71792005+bellontea@users.noreply.github.com |
bfb9ba31588b661323abab54f4fd5873f537d7ca | 42e063977c906d351f463d68bbcfbab6baf32488 | /Train1.py | 79b5edc185a7b3d4209cf0fde6c0c0dcb9e7595b | [] | no_license | Yk1n0gEa/Linear-Regression | 01edac563bfcb7f7eb09ff2f19dcd8a1ed6ee0ac | 0a3c07e84bc402bac032500d0b524f73109789f8 | refs/heads/master | 2020-03-19T01:49:44.275480 | 2018-05-29T09:10:49 | 2018-05-29T09:10:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,404 | py |
import tensorflow as tf
import numpy as np
import pandas as pd
import random
tf.reset_default_graph()
train_user=0
train_time=1
model_path=""
X_csv_train_file_path=""
y_csv_train_file_path=""
Y_prediction_file_path=""
root_directory = "D:\\jd\\model"
#train_object=train_user
train_object=tra... | [
"noreply@github.com"
] | noreply@github.com |
82a0c09f77fd08d7efdf8332cfffa06c22aff9ad | b55e0a122670a6a29b0b5e1581865f784ef200b9 | /chats/migrations/0005_alter_message_user.py | b4f25fa34cbf96c09ffe16b6c103ecfea68972d4 | [] | no_license | kattyeye/django-rest-chat-app | fc6b0a23535adb28efeff1d9f1af18ad982ce7bf | 052eadadcccd1e7f77d10f37424156e32b0210de | refs/heads/main | 2023-08-20T19:55:20.388391 | 2021-10-30T14:23:53 | 2021-10-30T14:23:53 | 416,809,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | # Generated by Django 3.2.8 on 2021-10-16 13:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('chats', '0004_message_us... | [
"69052750+kattyeye@users.noreply.github.com"
] | 69052750+kattyeye@users.noreply.github.com |
da9cb52b8cf4baa8f36751f5f276ece4eef2e963 | cfaa6c0c92e3325fa49b6d6fc0079223bdd67f08 | /pre_processing.py | a8b897f81b2725b50ad4618874e535b9c3304ae5 | [] | no_license | ieee820/metal_crack_detector | e08187d503b4d6e71b1e0625a41491b05e477b7d | 4d1fc779f688046eba10ea6babc8e5a8df1bfde6 | refs/heads/master | 2020-06-30T21:31:48.394439 | 2019-07-23T05:16:02 | 2019-07-23T05:16:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | import os
import numpy as np
import cv2
import matplotlib.pyplot as plt
from parameters import RESIZE_DIMENSION
HEALTHY_FENDER_APRON_PATH = './data/YE358311_Fender_apron_2/YE358311_Fender_apron/YE358311_Healthy'
DEFECTIVE_FENDER_APRON_PATH ='./data/YE358311_Fender_apron_2/YE358311_Fender_apron/YE358311_defects' \
... | [
"john.janmejaya@gmail.com"
] | john.janmejaya@gmail.com |
021841d84dc923f063d7a2f09b346af1e7452d2a | 1d4f4c45da7465f2d39e567de31d79b578002bca | /old/collect_script/depth_crawl.py | 3d9a78ec3a152b89ed30696150fcdb5f702f741b | [] | no_license | lihn1987/CoinCollector | 9f1e7ab45273fea04b809a363b5af2f4fd6f1733 | 3115be42a6bf72e969bbdc245f5bf217b33b25d9 | refs/heads/master | 2022-07-16T07:39:27.269642 | 2021-03-31T16:45:03 | 2021-03-31T16:45:03 | 196,840,232 | 24 | 2 | null | 2022-06-22T04:12:20 | 2019-07-14T13:32:02 | Python | UTF-8 | Python | false | false | 171 | py | import time
import depth_huobi
import depth_ok
import depth_binance
depth_huobi.StartCrwal()
depth_ok.StartCrwal()
depth_binance.StartCrwal()
while True:
time.sleep(1) | [
"lihn1011@163.com"
] | lihn1011@163.com |
15455b46dcf914a8067898dd19c0856955501824 | 9398a9d53c2977df17465cceb500d2568dad311b | /Build a computer/nand2tetris/nand2tetris/projects/11/JackAnalyzer.py | 700bb22f2eaf92ff7d0a779159bdfb7720fca87a | [] | no_license | jianqiangq/coursera | 561650a59ec5768c3687b34788873125ccc8cb1e | 4530d986f33cd2281e43fb6c26fa1af8c302c2c3 | refs/heads/master | 2023-02-27T16:30:30.974446 | 2021-01-28T03:25:23 | 2021-01-28T03:25:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,632 | py | from JackTokenizer import JackTokenizer,TOKEN_TYPE,KEYWORD_TYPE,tokentype,tokendict
import fileinput
import sys, getopt
import os
from enum import Enum, unique
import sys
class JackAnalyzer:
def __init__(self,infile):
# read all source code string to the buffer
self.parser = JackTokenizer(infile)
... | [
"mml1106@126.com"
] | mml1106@126.com |
2fab7f0d353b7e9fa2819146c61ec7b6bc83105a | 0cd096c51dda831ee64c405c7a994d18b0fe783f | /components/joystick.py | 792ba5075cc46b5ada499bf3459d4285c93c6d5d | [] | no_license | Denrur/ecs_turn_based | db1797ed787f644f334e7c08450139febf5ae7ae | 79ff9ea23fe74db7936d81afce8ddca4f0541e6f | refs/heads/master | 2020-07-12T22:47:09.800235 | 2019-11-06T12:47:24 | 2019-11-06T12:47:24 | 204,926,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | from bearlibterminal import terminal as blt
class Joystick:
def __init__(self):
self.action = None
def handle_player_turn_keys(self, key):
# r = blt.TK_KEY_RELEASED
if key == blt.TK_UP or key == blt.TK_W:
self.action = {'move': (0, -1)}
return {'move': (0, -1)}... | [
"denrurak@gmail.com"
] | denrurak@gmail.com |
dd901b37ae78074d1b136ce7ad9d125fb38bfa9b | 1f38af9bae11acbe20dd8f5057b374b9760e6659 | /pyscf/geomopt/geometric_solver.py | 6e63b860d5f970435b404aca3d39f5e5b97bdb6f | [
"Apache-2.0"
] | permissive | highlight0112/pyscf | d36104ef727f593d46fbfd3e5d865c6cd0316d84 | 4afbd42bad3e72db5bb94d8cacf1d5de76537bdd | refs/heads/master | 2020-03-25T01:16:59.927859 | 2019-03-06T01:11:59 | 2019-03-06T01:11:59 | 143,229,588 | 0 | 0 | Apache-2.0 | 2019-03-06T01:12:00 | 2018-08-02T02:05:59 | Python | UTF-8 | Python | false | false | 5,188 | py | #!/usr/bin/env python
# Copyright 2014-2019 The PySCF Developers. 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
#
# U... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
836924b6936b1ef655900c7fe38af18dfa353232 | 5c58587ebfbf56192b3dc6ed6f43bc002c8e2cff | /payments/api_clients/payeer.py | f71e3b1f3c7e7413e30dbc9dc0f7bf76fb48caaf | [] | no_license | hossamelneily/nexchange | fb9a812cfc72ac00b90cf64d6669a8129c2d2d4b | 6d69274cd3808989abe2f5276feb772d1f0fa8b4 | refs/heads/release | 2022-12-13T09:20:47.297943 | 2019-02-12T08:20:34 | 2019-02-12T08:20:34 | 210,064,740 | 1 | 2 | null | 2022-12-09T00:54:01 | 2019-09-21T23:19:34 | Python | UTF-8 | Python | false | false | 2,487 | py | from payments.api_clients.base import BasePaymentApi
import requests
import json
class PayeerAPIClient(BasePaymentApi):
""" Documentation: http://docs.payeercom.apiary.io/# """
def __init__(self, account='12345', apiId='12345', apiPass='12345',
url='https://payeer.com/ajax/api/api.php'):
... | [
"oleg@nexchange.co.uk"
] | oleg@nexchange.co.uk |
a1ccf5b2c9bf663dea0c43f1ea78d0c558b05a2c | c744a0c0abb6a09144329deca0cfec542e0a147c | /trainw_keras.py | 08b3283e6097cddef24b8a68e41a2a81c355e20a | [] | no_license | pattywan234/Human-Activity-Recognition-HAR | c627421209910905be04035672e7f5158fd4a9bb | 636e0aa843350e7b61b5667b96ddcfdba009b82b | refs/heads/master | 2023-06-03T02:25:35.675593 | 2021-06-24T02:47:48 | 2021-06-24T02:47:48 | 235,273,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,245 | py | # from numpy import array
import numpy as np
from LSTM_model05 import vanilla_LSTM, stacked_LSTM, bi_LSTM
#import training and test data
X_train = np.load('wesad/S2/Normalize/label_selected/train_keras/X_train.npy')
X_test = np.load('wesad/S2/Normalize/label_selected/train_keras/X_test.npy')
y_train = np.load('wesad/S... | [
"noreply@github.com"
] | noreply@github.com |
3f1b92b2238951235a205e6a99611b26200bd26b | a03fad402b5380c290737ea31d2419bad404fe26 | /enfants/urls.py | 51b80d140f9125d428db40257faa56ef29ed9bc0 | [] | no_license | DavidS1106/pfe_backend | 982986ecf52b6c9b73ea1d45f55662841d51de60 | 7a66f8f1573488fa32c643fd1a3697f2fa4a3d65 | refs/heads/master | 2023-04-13T23:04:51.432942 | 2021-05-10T21:02:41 | 2021-05-10T21:02:41 | 276,981,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | from django.urls import path, include
from . import views
from rest_framework import routers
router = routers.DefaultRouter()
router.register('enfants', views.EnfantsView, basename='enfant')
router.register('logged_enfant', views.logged_enfant, basename='logged_enfant')
router.register('non_logged_enfant', views.non_l... | [
"david.sabo@hotmail.be"
] | david.sabo@hotmail.be |
2c60324b3fa048f21d4ddb7e4a4d608d2f4ae9fe | a8fa4a499c44dce9a82e768edc82bdd193797128 | /ScrapePlugins/Crunchyroll/Run.py | 072c151bc74086a6fe1c380808eb0b7785a732e7 | [] | no_license | oliuz/MangaCMS | d8b2e44922955f6b9310fb6e189115f1985f2e93 | 7e2a710a56248261ab01686d3e586c36ce4a857d | refs/heads/master | 2020-12-28T19:46:41.265347 | 2016-08-27T23:37:47 | 2016-08-27T23:37:47 | 67,316,457 | 1 | 0 | null | 2016-09-03T23:36:21 | 2016-09-03T23:36:21 | null | UTF-8 | Python | false | false | 505 | py |
from .DbLoader import DbLoader
from .ContentLoader import ContentLoader
import runStatus
import ScrapePlugins.RunBase
class Runner(ScrapePlugins.RunBase.ScraperBase):
loggerPath = "Main.Manga.CrunchyRoll.Run"
pluginName = "CrunchyRoll"
def _go(self):
fl = DbLoader()
fl.go()
fl.closeDB()
if not ru... | [
"something@fake-url.com"
] | something@fake-url.com |
a8714593d0c65c179984a8185652a1628d449660 | cf398ec3d87f334ecc9aadf23de6813b729b4633 | /src/tests/test_logging.py | 9462dbcd83175d57d3de26cd2373117f6315e65c | [
"MIT",
"MS-PL",
"LicenseRef-scancode-generic-cla"
] | permissive | fuhuifang/confidential-ml-utils | 71a385efb81eb27acd59c6152584313176165092 | 6b530a893fc650a5cf2bb68d560c2833ac1bf014 | refs/heads/main | 2023-05-05T01:46:23.576045 | 2021-03-01T16:19:14 | 2021-03-01T16:19:14 | 344,288,160 | 0 | 0 | MIT | 2021-03-03T23:05:16 | 2021-03-03T23:05:15 | null | UTF-8 | Python | false | false | 3,609 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import confidential_ml_utils
from confidential_ml_utils.constants import DataCategory
import io
import logging
import pytest
import re
import sys
def test_basic_config():
logging.warning("before basic config")
logging.basicConfig()
... | [
"noreply@github.com"
] | noreply@github.com |
96f689b758e78d0bdd04395f059ac2cacaa4ac36 | 256e664847bf6a24d02b98f755348272f1e73368 | /merra/grid.py | d2a454a75ff7aab1101a7311ca434a67b3c75ecb | [
"BSD-3-Clause"
] | permissive | BRIK-Engenharia/merra | c4c5f9e3be5c6e534248c331bedfb9399d507a0d | 504d167b044a2cf236b727b6d0befcb435612e6a | refs/heads/master | 2021-10-21T14:01:43.391399 | 2019-03-04T10:46:25 | 2019-03-04T10:46:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,836 | py | # The MIT License (MIT)
#
# Copyright (c) 2019, TU Wien
#
# 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, ... | [
"felix.zaussinger@geo.tuwien.ac.at"
] | felix.zaussinger@geo.tuwien.ac.at |
08fa44a4100c48ec759dfc091669bab7cb0353f1 | 0805820a350d51e832e5a5be995a3046b0445a20 | /developer_test/migrations/0005_auto_20210513_1716.py | 9b2295dd42f55bd3f19053b990b44a588b15b724 | [] | no_license | nseetim/patricia_task | a36ffdac5c15c603c1231800815a62fc619b90ec | 85bf0b3e1d2fa2cef3d7450b7485af8efb078db1 | refs/heads/master | 2023-05-02T07:33:24.371578 | 2021-05-14T05:35:19 | 2021-05-14T05:35:19 | 367,241,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | # Generated by Django 3.1.5 on 2021-05-13 17:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('developer_test', '0004_auto_20210513_0013'),
]
operations = [
migrations.A... | [
"etimnseabasi@gmail.com"
] | etimnseabasi@gmail.com |
52bece35aa3f449fd4068d45847eb3aca3b36443 | 411eff94020c192d5e5f657fa6012232ab1d051c | /game/src/coginvasion/ai/AIBaseGlobal.py | e02f38f0e5f171a4dab307e0fed79073eeab559e | [] | no_license | xMakerx/cio-src | 48c9efe7f9a1bbf619a4c95a4198aaace78b8491 | 60b2bdf2c4a24d506101fdab1f51752d0d1861f8 | refs/heads/master | 2023-02-14T03:12:51.042106 | 2021-01-15T14:02:10 | 2021-01-15T14:02:10 | 328,268,776 | 1 | 0 | null | 2021-01-15T15:15:35 | 2021-01-09T23:51:37 | Python | UTF-8 | Python | false | false | 960 | py | from AIBase import AIBase
from direct.directnotify.DirectNotifyGlobal import directNotify
from panda3d.core import RescaleNormalAttrib, NodePath, Notify
__builtins__['base'] = AIBase()
__builtins__['ostream'] = Notify.out()
__builtins__['run'] = base.run
__builtins__['taskMgr'] = base.taskMgr
__builtins__['jobMgr'] = ... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
04521521cd080fa531cf3cecce5a57426136edae | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/w11.py | d34dec34a1f3c4bc9a0709f495d47f09c917783a | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
e1c0280fa4672db1594118ed124f9ae4c0c5f5c0 | 0acfe39cbbf843e35696c4c5e312192ac7b7159b | /renrenribao/article/migrations/0002_article_created_time.py | e974de0e9f1617a4c14c24ba56fbcc7905085d90 | [] | no_license | tiant167/renrenribao | c2d8bdaa2ecdb60cecfdfb53a17e96c940851920 | 1b0a1fdcd5ce3fa97adc515c3178402ec869f018 | refs/heads/master | 2021-01-25T07:39:45.462791 | 2014-12-17T08:50:58 | 2014-12-17T08:50:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('article', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"haotianchai@wandoujia.com"
] | haotianchai@wandoujia.com |
7a0349daadc974318ba22b4c139e3450f7f2d011 | b008f826a1eaccdadaf7cba6d7a757f709d41ee6 | /salt-2016.3.2/salt/modules/data.py | 7263f1316eed85e060a86740fb98a706aace7ed1 | [
"Apache-2.0"
] | permissive | stephane-martin/salt-debian-packaging | 76b3c6f53bf908c230774abc3c35c0c8dc31d5dd | 4ec73750ba67bfe35a5bc0faa110f2bdec5c6a66 | refs/heads/master | 2020-07-21T14:58:31.913198 | 2016-09-04T18:18:57 | 2016-09-04T18:18:57 | 66,794,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,972 | py | # -*- coding: utf-8 -*-
'''
Manage a local persistent data structure that can hold any arbitrary data
specific to the minion
'''
from __future__ import absolute_import
# Import python libs
import os
import ast
import logging
# Import salt libs
import salt.utils
import salt.payload
# Import 3rd-party lib
import salt.... | [
"stephane.martin@vesperal.eu"
] | stephane.martin@vesperal.eu |
eee4cab21177b67375dd31d211b70f0587198b8e | 0e014984751a44761864c79546939bc21d699752 | /edx_AI_Week9/search.py | ba613c6121722cbb407f881c34bbefb2ba79bd47 | [] | no_license | miguel-ossa/AI-Columbia-Exercises | 8c76bb0e469f8b55976b22b035867ea68041d4da | 25758f35bc7f93e8e3dece6fed5b6db7a4cf5c81 | refs/heads/master | 2020-03-29T12:14:05.010584 | 2019-06-02T07:32:29 | 2019-06-02T07:32:29 | 149,854,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,167 | py | """Search (Chapters 3-4)
The way to use this code is to subclass Problem to create a class of problems,
then create problem instances and solve them with calls to the various search
functions."""
from __future__ import generators
from utils import *
import agents
import math, random, sys, time, bisect, string
class... | [
"miguel.ossa.abellan@gmail.com"
] | miguel.ossa.abellan@gmail.com |
1c3fe5065e8682d0bc0842ad949a3e5b60eae09c | 9a51a7d5ddd3103e5d6ecce0077d70cf0db81927 | /148A.py | d5794a5dbf698af3b2db9c91475cde6fe6e2e5a4 | [] | no_license | Anikcb/Codeforces | 6eb9627eee07756d04e246e78ec1ad7c7b956c99 | 9a8d620447a23afa519f0aef8df6a8be189ddf12 | refs/heads/main | 2023-06-15T05:12:57.169088 | 2021-07-12T15:21:48 | 2021-07-12T15:21:48 | 380,301,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | k = int(input())
l = int(input())
m = int (input())
n = int (input())
d = int (input())
res=0
for i in range(1,d+1):
if i%k==0 or i%l==0 or i%m==0 or i%n==0:
res=res+1
print(res)
| [
"noreply@github.com"
] | noreply@github.com |
b7787491c00166a9f9516646d4c2054fe8fe1245 | 557ca4eae50206ecb8b19639cab249cb2d376f30 | /Chapter12/Ex12_3.py | 96ad465cf0df4d21b32435eb806eb5946bf1eb75 | [] | no_license | philipdongfei/Think-python-2nd | 781846f455155245e7e82900ea002f1cf490c43f | 56e2355b8d5b34ffcee61b38fbfd200fd6d4ffaf | refs/heads/master | 2021-01-09T19:57:49.658680 | 2020-03-13T06:32:11 | 2020-03-13T06:32:11 | 242,441,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | from Ex12_2 import *
def metathesis_pairs(d):
for anagrams in d.values():
for word1 in anagrams:
for word2 in anagrams:
if word1 < word2 and word_distance(word1, word2) == 2:
print(word1, word2)
def word_distance(word1, word2):
assert len(word1) == len(w... | [
"philip.dongfei@gmail.com"
] | philip.dongfei@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.