blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4847c5d9a787afa041be616a2ff144e31b07d5b1 | 6adc166c33bdada82f7509301e25d1c451852d24 | /statistic/tasks.py | 8ea07645a18eb5b98ff7821ccaf1d29af08433f4 | [] | no_license | liushiwen555/unified_management_platform_backend | ab0a92f38be7f68bc1d3c4570560ea89bf8fcb07 | ae1ade20044b59de1e29288fcd61ba0b71d92be3 | refs/heads/master | 2023-06-25T22:45:24.669052 | 2021-07-27T01:08:24 | 2021-07-27T01:08:24 | 389,808,950 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 30,587 | py | import subprocess
import time
from datetime import datetime, timedelta
from typing import Dict, List
import psutil
from django.conf import settings
from django.contrib.postgres.fields.jsonb import KeyTransform
from django.db.models import Count
from elasticsearch_dsl import A
from auditor.bolean_auditor im... | [
"1599932996@qq.com"
] | 1599932996@qq.com |
2f3ff636fb34d745ffaa5ea9b022823502f5d43c | 665455c521cc7cf76c5436337ed545de90976af4 | /cohesity_management_sdk/models/subscription_type_azure_credentials_enum.py | 3089b273d3faa936de0e61a8f028a28e860b1215 | [
"Apache-2.0"
] | permissive | hsantoyo2/management-sdk-python | d226273bc8eedcf9220ea4999a6f0b9a1a30d99c | 0093194d125fc6746f55b8499da1270c64f473fc | refs/heads/master | 2023-03-01T06:09:39.644085 | 2021-01-15T08:23:16 | 2021-01-15T08:23:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Cohesity Inc.
class SubscriptionTypeAzureCredentialsEnum(object):
"""Implementation of the 'SubscriptionType_AzureCredentials' enum.
Specifies the subscription type of Azure such as 'kAzureCommercial' or
'kAzureGovCloud'.
Specifies the subscription type of an ... | [
"ashish@cohesity.com"
] | ashish@cohesity.com |
48f0854884ecd2500df38b72140371a1a933f8b9 | a80295f0d7d6c6c8ea5c0dce3929206eef2dfa66 | /server.py | ddc0415ff3af2352c792b0766c11232e6c28b67a | [] | no_license | bkodakari/flask2 | 38425ea04d12fcefeb538761ebeb66decc104852 | f17793af004bdd7602b6d7032ab84556a49a1317 | refs/heads/master | 2020-12-31T00:29:37.991325 | 2017-03-16T04:15:12 | 2017-03-16T04:15:12 | 85,152,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,561 | py | from flask import Flask, request
from random import choice, randint
from flask import render_template
COMPLIMENTS = ["smart", "clever", "tenacious",
"awesome", "Pythonic"]
# "__name__" is a special Python variable for the name of the current module
# Flask wants to know this to know what any imported... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
10f794876bff9222640ce92abb3e52e1013e1415 | a9fe1b5c320cdef138ac4a942a8b741c7f27de7c | /LC1302-Deepest-Leaves-Sum.py | c6d72946df16cfe5c4125b05fb11adb0f535d37c | [] | no_license | kate-melnykova/LeetCode-solutions | a6bbb5845310ce082770bcb92ef6f6877962a8ee | ee8237b66975fb5584a3d68b311e762c0462c8aa | refs/heads/master | 2023-06-28T06:35:33.342025 | 2021-07-30T06:59:31 | 2021-07-30T06:59:31 | 325,106,033 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | """
Given the root of a binary tree, return the sum of values
of its deepest leaves.
Example 1:
Input: root = [1,2,3,4,5,null,6,7,null,null,null,null,8]
Output: 15
Example 2:
Input: root = [6,7,8,2,7,1,3,9,null,1,4,null,null,null,5]
Output: 19
Constraints:
(*) The number of nodes in the tree is in the range [1, 10^... | [
"forkatemelnikova@gmail.com"
] | forkatemelnikova@gmail.com |
f3e3df18459f25016b7a178b64b5e52b4c0ee2b4 | 23b0cb36ba16017d5b9670bdf1ebef1cc36f1cc9 | /python/samples/tthAnalyzeSamples_2017_base.py | a62be3e928abe455fbce2172aa41fac127eb3e6d | [] | no_license | HEP-KBFI/tth-htt | 9d51b5ef087e62d491e88e387ecd824300552f64 | f95c39d6841058a5d1e36d5a0f806c6d6833952a | refs/heads/master | 2023-04-28T16:17:31.030396 | 2023-04-24T17:35:09 | 2023-04-24T17:35:09 | 45,119,990 | 3 | 19 | null | 2022-11-29T12:05:30 | 2015-10-28T14:58:26 | Python | UTF-8 | Python | false | false | 3,791,195 | py | from collections import OrderedDict as OD
# file generated at 2021-04-23 14:08:59 with the following command:
# create_dictionary.py -m python/samples/metaDict_2017.py -p python/samples/sampleLocations_2017.txt -N samples_2017 -E 2017 -o python/samples -g tthAnalyzeSamples_2017_base.py -M
samples_2017 = OD()
samples_... | [
"karlehataht@gmail.com"
] | karlehataht@gmail.com |
e0e296b4db975b48fac91b4a435db315d68bccc5 | 86932f8c69708ebdf534c6604e5322a5496596a1 | /tests/helpers.py | feef1302d75b434d46e530e499daa0eabc790c3b | [
"BSD-2-Clause"
] | permissive | ress/flask-assets | 3a8cd77c315840cb80528cbbf139f804ae335920 | 747aa9c0d1b036bd3cc65b5cd278e48a97ac8af2 | refs/heads/master | 2021-01-18T05:52:34.242630 | 2013-01-04T15:43:58 | 2013-01-04T15:43:58 | 7,623,019 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | from nose import SkipTest
from nose.tools import assert_raises
from flask.app import Flask
try:
from flask import __version__ as FLASK_VERSION
except ImportError:
FLASK_VERSION = '0.6'
from webassets.test import TempEnvironmentHelper as BaseTempEnvironmentHelper
from flask.ext.assets import Environment
try:
... | [
"michael@elsdoerfer.com"
] | michael@elsdoerfer.com |
e1700a52bf7fc6f3fef9ba3960aaf57f768bad57 | 0c659d16b796e6220e93b08693e557a698c5977e | /setup.py | 0e4dae03af83c6567586b12a43992f9873753b41 | [
"MIT"
] | permissive | marchon/citas | f4eb405d9efd9831df21b892945327bc86f8b7fe | 73a51c0a5dff29bd2728973457d378aec40ce1cf | refs/heads/master | 2021-04-15T08:01:43.520071 | 2017-05-04T22:19:00 | 2017-05-04T22:19:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from pip.req import parse_requirements
import re, ast
# get version from __version__ variable in citas/__init__.py
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('citas/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_vers... | [
"admin@Admins-MacBook-Pro.local"
] | admin@Admins-MacBook-Pro.local |
513e529b4e9e4115777f44df6972ef72a2e0e317 | e6a4af814f41e0a6b661d8685a54ba5bd41a4baf | /film/dao/calc_dao.py | 063d7d0053c70a79fc8d3343bc0e50eacd00efa5 | [] | no_license | oaifaye/film_wx | cdb39116748af180719bec4d2cf5af02e88235d3 | 63519b430001216f22d14a1ee6f7d528e0ce655e | refs/heads/master | 2021-05-09T12:41:24.361486 | 2018-01-26T06:57:48 | 2018-01-26T06:57:48 | 119,016,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,281 | py | # -*- coding: UTF-8 -*-
'''
Created on 2017年12月10日
@author: Administrator
'''
from film.dao.base_dao import BaseDao
import datetime
class CalcItem():
id = -1
dateNo = 0
calcType=''
websiteId = 0
mergeCinemaId=None
mergeFilmId=None
initDate = None
class CalcDao(BaseDa... | [
"slf_work@hotmail.com"
] | slf_work@hotmail.com |
979f59f65eddf8d3e63c273c305af8eb83b1ee6f | 0ebc1fddbdcc9ea6fca53e1d8fb77c6a892c8a19 | /Ground-Truth-Skeletons/dataManagement/organise_val_data.py | eff83d74db189b84cf72649ff141e0cce0805a0a | [
"MIT"
] | permissive | amit2014/Action-Recognition | 4ea569bc3a82966340b97a70ba14675fb5dadf12 | b648f4cd8e479872c0cd9488120ada18bc64e5ad | refs/heads/master | 2020-05-16T05:04:01.846725 | 2018-05-05T09:00:36 | 2018-05-05T09:00:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | import numpy as np
import pickle
#####################################################################################################################
stupid_videos = [ 111, 111, 111, 747, 747, 747, 981, 981, 981,
1145, 1145, 1145, 1252, 1252, 1252, 1281, 1281, 1281,
1282, ... | [
"naman1205jain@gmail.com"
] | naman1205jain@gmail.com |
4490c6ee769209f3751f16f7c940b75c7095bdc1 | 2d28d7d23ffee8c19c5b0b5f12c2ef34a0e0eac2 | /py_kafk/tar/pykafka-2.8.1-dev.1/tests/pykafka/test_ssl.py | 97ac4378b0c1e61c7dc9b8fdaa981abf92fccac8 | [
"Apache-2.0"
] | permissive | liuansen/python-utils-class | bd8e9bb100a8b7c97ca9022ecf44cde0e79a8edd | c7054bd05b127385b8c6f56a4e2241d92ff42ab4 | refs/heads/master | 2023-05-27T22:40:00.715765 | 2022-08-08T07:33:41 | 2022-08-08T07:33:41 | 185,551,657 | 3 | 0 | Apache-2.0 | 2023-05-22T21:37:24 | 2019-05-08T07:08:23 | Python | UTF-8 | Python | false | false | 2,701 | py | import os
import unittest
from uuid import uuid4
import pytest
from pykafka import KafkaClient, SslConfig
from pykafka.test.utils import get_cluster, stop_cluster
kafka_version = os.environ.get('KAFKA_VERSION', '0.8.0')
class SslIntegrationTests(unittest.TestCase):
USE_RDKAFKA = False
@classmethod
de... | [
"616833686@qq.com"
] | 616833686@qq.com |
3e0884b6637fa46e47bf58684f8b728f67568073 | b0b5df878333beada1fa4d862be098b80ced7641 | /AUTO_ADB/DCcore/dc_daily.py | 31cdf81394ca668e57a9ba70585ca50c7a0cf420 | [] | no_license | hygnic/boomboost | 054beac114f3407757a5423ed4766d36c2278911 | dcbff7abe3300c1a4c668cf6a96370a53be99ac5 | refs/heads/master | 2023-06-06T00:47:48.734632 | 2021-05-28T09:58:24 | 2021-05-28T09:58:24 | 281,379,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# ---------------------------------------------------------------------------
# Author: LiaoChenchen
# Created on: 2020/8/13 23:00
# Reference:
"""
Description: DC 日常任务
Usage:
"""
# ---------------------------------------------------------------------------
import os
import ... | [
"hygnic@outlook.com"
] | hygnic@outlook.com |
f69e6cb58e32915c9091cbd7e6e8ac7b79d70306 | 0c4103afaa218697ad6ec514ad02a6e154278d70 | /python_data_structures/dictionaries/view_obj.py | 35a5acede55a7861d48a95e7eee052a269e59388 | [] | no_license | jgartsu12/my_python_learning | e721f3fa646d2ca46c888d0fbc55ac03a48b4889 | f971b7168e97e52fe9fd66f4b4d7c098110ca701 | refs/heads/master | 2020-09-07T17:45:08.747614 | 2019-11-19T00:49:23 | 2019-11-19T00:49:23 | 220,865,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | # Guide to Python Dictionary View Objects
#nested collections in dictionary view obj
# traversal to grab nestd items in a view obj
teams = {
"astros" : ["Altuve", "Correa", "Bregman"],
"angels": ["Trout", "Pujols"],
"yankees": ["Judge", "Stanton"],
"red sox": ["Price", "Betts"],
}
team_groupings = teams.item... | [
"jgartsu12@gmail.com"
] | jgartsu12@gmail.com |
960173d66646bb039683ffef01a651b16866f98a | f39528e9bad8cfa78b38fcbb7a5b430ac0c7a942 | /Displaced_Dijets/DisplacedVerticesGeneratorFragments-CP2-2017/StopStopbarTo2Dbar2D_M_200_CTau_300um_TuneCP2_13TeV_pythia8_cff.py | 6ab0832145f8e68ef40c4dbd40c98435fce13338 | [] | no_license | isildakbora/EXO-MC-REQUESTS | c0e3eb3a49b516476d37aa464c47304df14bed1e | 8771e32bbec079de787f7e5f11407e9e7ebe35d8 | refs/heads/master | 2021-04-12T11:11:03.982564 | 2019-04-29T15:12:34 | 2019-04-29T15:12:34 | 126,622,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | M = 200
CTAU = 0.3
WIDTH = 0.0197e-11 / CTAU
SLHA_TABLE = '''
BLOCK SPINFO # Spectrum calculator information
1 Minimal # spectrum calculator
2 1.0.0 # version number
BLOCK MODSEL # Model selection
1 1 #
BLOCK MASS # Mass Spectrum
# PDG code mass particle
100... | [
"bora.isildak@cern.ch"
] | bora.isildak@cern.ch |
a9ee7d61f12f5a3a888ffc894cf58e00b42bf25f | 4c7eea9d402dbda526c880cb55339e73d783568f | /exercise/myargv.py | a8d148c193e6919aeee95cecf60255f66627ea06 | [] | no_license | kks4866/pyworks | 9dd8e9e66ba419c50e6111c42b9fb7311ce402fa | a3f599f96ae367e2cdc0da0ab9429186629f3c1c | refs/heads/master | 2023-06-28T23:54:18.640460 | 2021-07-06T04:08:52 | 2021-07-06T04:08:52 | 378,803,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | import sys
args = sys.argv[1:] #리스트형 자료
sum = 0
for i in args:
sum = sum + int(i)
print(sum)
| [
"kks4866@naver.com"
] | kks4866@naver.com |
c2a197ea72a0a7ecc9e3d5d77c97281427c01913 | 98f0b4edce2cc250aa5a544b7736d0287ad339a2 | /manage.py | b9a292afd158c8ae58166c5ac0081d667f32a2f0 | [] | no_license | DasomJung24/Brandi_project_with_Django | 86e0493a5ff314ae9bddaeabf1058acd81079282 | 7e7513c20b9051aa242759c8ba69894a2bdc2fcb | refs/heads/master | 2023-01-21T11:59:37.941347 | 2020-12-06T13:50:36 | 2020-12-06T13:50:36 | 314,373,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'brandi_project_django.settings')
try:
from django.core.management import execute_from_command_line
... | [
"jeongdasom6@gmail.com"
] | jeongdasom6@gmail.com |
1179594e202410df5cc796d5a05f2b4b7c7863ee | 72a9252951271373f66c5684344f0d5dff9565be | /知乎/zhi_Spider/BINSHAN/db.py | c8ca73059fc24c3671a323b3d1ffa82a336761e2 | [] | no_license | wudangqibujie/Spider_Project | 7b43c9e3ca8d9f73d6a6e25d5574658838152acc | 08beae178f269743afca0e5d91e1ad6a79464047 | refs/heads/master | 2020-03-21T22:11:41.635169 | 2018-07-03T03:12:47 | 2018-07-03T03:12:47 | 139,110,189 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | from settings import *
import pymongo
class Mon(object):
def __init__(self):
self.client = pymongo.MongoClient(MONGO_HOST,MONGO_PORT)
self.db = self.client[MONGO_DB_NAME]
def insert(self,coll_name,data):
self.db[coll_name].insert(data)
def data_find(self,coll_name):
... | [
"noreply@github.com"
] | wudangqibujie.noreply@github.com |
ec17857128c6f96dd9883c0eb64fc311388027c6 | 7ef53269ce5e4bcb3d7a002a92520e0a96f24377 | /backend/home/migrations/0002_load_initial_data.py | a92e4ec992a042f04d90321369507a38a3044ff3 | [] | no_license | andremcb/icy-paper-19597 | f7a8971c61390be9e0ecaa44b27feefa9399962f | 1ab03ef09bb5ceef0fb90a3c37ea18c9b0cc717f | refs/heads/master | 2023-03-23T06:12:53.130547 | 2021-03-12T23:07:33 | 2021-03-12T23:07:33 | 347,220,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Icy Paper"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"csantos.machado@gmail.com"
] | csantos.machado@gmail.com |
863cc9d635e51bcdf07dc8c92369dddac3ad16cb | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2022_05_31/operations/_time_series_database_connections_operations.py | f5b466a3c6101cfaee5342c15d476769af7491ff | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 29,175 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
14d0a3eb36ede4f57355b53e8675474ff624c2b8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02663/s270893737.py | 0e407da5c73554e2845ac3ce57620af88e88d312 | [] | 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 | 304 | py | def Int():
return int(input())
def Ints():
return map(int,input().split())
def IntList():
return list(Ints())
def IntMat(N):
return [IntList() for i in range(N)]
import sys
sys.setrecursionlimit(4100000)
rl = sys.stdin.readline
H1,M1,H2,M2,K = Ints()
S = (H2-H1)*60+(M2-M1)
print(S-K) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0bf3f8859c7782f22606b4bf3c58ab6de8a17c1d | 1903aa0028dd91a128f1630c6eb9a1f3467ed951 | /update_constraints.py | 21084617ca0f2cda487b66613cfe2f5e3bac850a | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-2-Clause"
] | permissive | icemac/icemac.addressbook | a5ae04feb2b2fb1f0ecc7bf3e60b1666f5bfedd8 | 6197e6e01da922feb100dd0943576523050cd703 | refs/heads/master | 2021-01-03T12:44:08.365040 | 2020-08-06T06:50:51 | 2020-08-06T06:51:05 | 242,137,124 | 2 | 0 | BSD-2-Clause | 2020-04-12T07:41:02 | 2020-02-21T12:43:45 | Python | UTF-8 | Python | false | false | 1,003 | py | """Adapted from https://github.com/zopefoundation/Zope/blob/4aadecc/util.py."""
import os
try:
from configparser import RawConfigParser
except ImportError:
from ConfigParser import RawConfigParser
HERE = os.path.abspath(os.path.dirname(__file__))
class CaseSensitiveParser(RawConfigParser):
def optionxf... | [
"mh@gocept.com"
] | mh@gocept.com |
9a16597fd1d52b913e1b8ac76edee8bfcc2ffdb0 | 9758fa6d66df1121ff9e0b4a7da511653bc53cf1 | /Store/migrations/0015_auto_20190831_1807.py | 6eb4ef39296d595ca30aac8e88963aa2b68bb4ce | [] | no_license | hdforoozan/Restaurant-project | 179fb4138cb92bfd7716671c3b1e8b1949bfbaff | 2ab096cbc3ee20557b57ed97bd0d5556c5965e87 | refs/heads/master | 2020-06-12T08:50:03.067740 | 2019-09-17T18:48:43 | 2019-09-17T18:48:43 | 194,250,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | # Generated by Django 2.2.2 on 2019-08-31 13:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Store', '0014_auto_20190831_1803'),
]
operations = [
migrations.AlterField(
model_name='employee',
name='education_d... | [
"hdforoozan@gmail.com"
] | hdforoozan@gmail.com |
8652007449a4a6d6723587c87267379f02cbf808 | ed4123102ac4a96d7d649a0c8871a69ecafde1d7 | /lib/bitwise.py | 566773ba9ab47ccc551cd469ce2abc0f70b3da0e | [] | no_license | aleksejs-fomins/bio-machine-learning | 07f88052e5cdd04943aad459667713ce261a98cd | 0dda7c6681ab5f6b9b2b17c5944cad3664b6bf3f | refs/heads/master | 2023-03-04T12:29:30.425887 | 2023-02-07T08:34:53 | 2023-02-07T08:34:53 | 211,850,531 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | import numpy as np
# Flip the i-th bit of integer a
def bitflip(a, i):
pos = 2**i
return a-pos if a&pos else a+pos
# Convert an integer to a list of bits
def bitlist(num, nbit):
return [int(bool(num & (1 << idx))) for idx in range(nbit)]
def bitlist2activation(lst):
return np.array([1 if bit == 1 els... | [
"aleksejs.fomins@uzh.ch"
] | aleksejs.fomins@uzh.ch |
e3d5e2d6bd853c4f74d2acc6be9c45639d9428c8 | effdcfa3a98477226aa02de7a2e589bff8adfa56 | /3_STL/222score.py | 511c1d7da9487a38c89d3019058e68aed75f48d6 | [] | no_license | WUT-IDEA/Y2019_WWJ_Graduation_Design_Code | 5817ceee8919355cc63262a629087c323b970c17 | 23e15f6156d5cf8552a9d913bb48eb675ef8e3c5 | refs/heads/master | 2020-05-27T22:28:48.021213 | 2019-05-27T09:18:04 | 2019-05-27T09:18:04 | 188,805,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import math
def plot(pre,actual):
plt.title('arima')
plt.rcParams['font.sans-serif'] = ['SimHei'] # 步骤一(替换sans-serif字体
plt.rcParams['axes.unicode_minus'] = False # 步骤二(解决坐标轴负数的负号显示问题)
plt.plot(actual, linewidth=1, label='... | [
"zhengyunpei@zhengyunpeideMacBook-Pro.local"
] | zhengyunpei@zhengyunpeideMacBook-Pro.local |
3fe76dba2406707715ea71443aa5c68084b6427c | a97db7d2f2e6de010db9bb70e4f85b76637ccfe6 | /leetcode/143-Reorder-List.py | 76dc35a930512a20ad60fd1ba66c72c733a1b227 | [] | no_license | dongxiaohe/Algorithm-DataStructure | 34547ea0d474464676ffffadda26a92c50bff29f | a9881ac5b35642760ae78233973b1608686730d0 | refs/heads/master | 2020-05-24T20:53:45.689748 | 2019-07-19T03:46:35 | 2019-07-19T03:46:35 | 187,463,938 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | class Solution:
def reorderList(self, head):
if not head or not head.next: return
slow, fast = head, head
while fast.next and fast.next.next:
slow = slow.next
fast = fast.next.next
first, second = slow, slow.next
while second.next: # 1->2->3->4->5->6 t... | [
"ddong@zendesk.com"
] | ddong@zendesk.com |
931896263bebf84e1b742fc4256243bdbe10d638 | 395f974e62eafed74572efebcd91d62966e61639 | /deprecated/obsolete/src/testavl.py | 10d7a4e08ece3e0ff7e6d4fe13926d33defb668e | [
"Apache-2.0"
] | permissive | agroce/tstl | ad386d027f0f5ff750eab19a722a4b119ed39211 | 8d43ef7fa49534868e6cdf1697863748260405c7 | refs/heads/master | 2023-08-08T19:14:52.020314 | 2023-07-26T17:51:36 | 2023-07-26T17:51:36 | 32,408,285 | 106 | 33 | NOASSERTION | 2021-01-26T19:05:17 | 2015-03-17T17:14:04 | Python | UTF-8 | Python | false | false | 1,506 | py | import avl
import random
import sys
import coverage
import time
import numpy
start = time.time()
branchesHit = set()
maxval = int(sys.argv[1])
testlen = int(sys.argv[2])
numtests = int(sys.argv[3])
cov = coverage.coverage(branch=True, source=["avl.py"])
cov.start()
for t in xrange(0,numtests):
a = avl.AVLTree... | [
"agroce@gmail.com"
] | agroce@gmail.com |
da8082ea2ec2d2f8041e4b9c4dd6fc2abd1ff954 | 767f83ada603bf0330fff9a9df888573ebe87eae | /src-bib/pybtex/pybtex/style/template.py | a682f243fc85498e6f2e81d9a3587407bfb0d1b1 | [
"MIT"
] | permissive | AndreaCensi/andreaweb | 756e03114d2bb63012523e9f6a179bee3b9d745c | ac110acf59797f096f2ab50e848969f964771295 | refs/heads/master | 2021-01-13T08:44:30.774965 | 2020-12-29T17:14:25 | 2020-12-29T17:14:25 | 81,645,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,742 | py | # vim:fileencoding=utf8
# Copyright (c) 2008, 2009, 2010, 2011, 2012 Andrey Golovizin
#
# 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 t... | [
"andrea@cds.caltech.edu"
] | andrea@cds.caltech.edu |
0d90a0e294b9f072e189229811680e4b4e3babb1 | a777170c979214015df511999f5f08fc2e0533d8 | /train.py | e6fbe847bc160c06cca04e2c8f32707f3e1cf0ac | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | srlee-ai/claf | 210b2d51918cf210683e7489ccb8347cb8b1f146 | 89b3e5c5ec0486886876ea3bac381508c6a6bf58 | refs/heads/master | 2021-02-13T04:38:36.198288 | 2020-03-03T15:01:01 | 2020-03-03T15:01:01 | 244,661,892 | 0 | 0 | MIT | 2020-03-03T14:45:52 | 2020-03-03T14:45:52 | null | UTF-8 | Python | false | false | 248 | py | # -*- coding: utf-8 -*-
from claf.config import args
from claf.learn.experiment import Experiment
from claf.learn.mode import Mode
if __name__ == "__main__":
experiment = Experiment(Mode.TRAIN, args.config(mode=Mode.TRAIN))
experiment()
| [
"humanbrain.djlee@gmail.com"
] | humanbrain.djlee@gmail.com |
34ac7a3126ac16fa1d6c38c6a98abcbeeac04fa3 | cc18ad6df3249b891a8fb6491a940ac2a33d284a | /tests/test_l.py | 8f31bdd414ae7368ace95e1ffa2f21be89d241f8 | [] | no_license | ASU-CompMethodsPhysics-PHY494/activity-03-python_calculator | 39ee8d654a3376a51a432179efd4c7a7e1de82d8 | 60acaaf07338294180e9c804d2343b4f4d41304d | refs/heads/main | 2023-02-24T20:33:55.020537 | 2021-01-28T16:23:31 | 2021-01-28T16:23:31 | 333,042,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | import pytest
from .tst import _test_variable
def test_l(name='l', reference=-1+3j):
return _test_variable(name, reference)
| [
"orbeckst@gmail.com"
] | orbeckst@gmail.com |
23a2097a7cc61138e387807676a9e26a1c578749 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/web/list_web_app_site_backups_slot.py | d462ca9222f2a90ee8600578a233a9c59f113a18 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,748 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
47253660053b62e3a3400992df6e8e5c92705a2f | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_2336+264/sdB_PG_2336+264_lc.py | 5a89a24209124435ed571d1c422e1be8d34c29e3 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[354.680542,26.667064], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_PG_2336+264 /sdB_PG_2336+264_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
ac01b0964e31f632558c44346006f03235d2cbaf | 5021cd17ce5fb52f7859d69ffa660c1393820fea | /34.py | 273b15775856ae587f4dd416663870f2c79d0f4c | [] | no_license | slavo3dev/python_100_exercises | 720e4f76de670fa969c9d62bddee1db20caf24f1 | 2983131a2a3ec40bbf3460a2e1baed57c6514e6a | refs/heads/master | 2021-08-23T05:22:21.673477 | 2017-12-03T16:14:48 | 2017-12-03T16:14:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # Question: The following script throws a NameError in the last line saying that c is not defined. Please fix the function so that there is no error and the last line is able to print out the value of c (i.e. 1 ).
def foo():
global c = 1
return c
foo()
print(c)
# c is not defined becuse variable is in... | [
"slavo@mimicom24.com"
] | slavo@mimicom24.com |
374c960f285d4baaf8c9ce3b8205ea9135cd46b5 | d571d407cfda435fcab8b7ccadb1be812c7047c7 | /guild/tests/samples/projects/flags-dest/submod.py | 6416966dcb06abb15601a3c47796545306d1ac5c | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | guildai/guildai | 2d8661a2a6bf0d1ced6334095c8bf5a8e391d8af | 149055da49f57eaf4aec418f2e339c8905c1f02f | refs/heads/main | 2023-08-25T10:09:58.560059 | 2023-08-12T20:19:05 | 2023-08-12T20:19:05 | 105,057,392 | 833 | 86 | Apache-2.0 | 2023-08-07T19:34:27 | 2017-09-27T18:57:50 | Python | UTF-8 | Python | false | false | 169 | py | import argparse
p = argparse.ArgumentParser()
p.add_argument("--bar", default=456)
if __name__ == "__main__":
args = p.parse_args()
print("bar: %s", args.bar)
| [
"g@rre.tt"
] | g@rre.tt |
4be16408f688e6b5cb887f4a18ae62b9a56fd20a | af3ec207381de315f4cb6dddba727d16d42d6c57 | /dialogue-engine/test/programytest/parser/template/node_tests/richmedia_tests/test_carousel.py | 00edd17c4ac2091155b647b8e43f064c5c9e3f10 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcf-yuichi/cotoba-agent-oss | 02a5554fe81ce21517f33229101013b6487f5404 | ce60833915f484c4cbdc54b4b8222d64be4b6c0d | refs/heads/master | 2023-01-12T20:07:34.364188 | 2020-11-11T00:55:16 | 2020-11-11T00:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,968 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
21c0443c59c65a77addd1fcc15d3b94c4b037acc | 7884d75d9835493ff627d0468e94fe7a838a6aa1 | /ocr_server/restapi/recognize.py | ff03aad6edbfd4381bcff7e6a1e274ae8b269893 | [] | no_license | fjibj/OCRServer | d2c7c5217046ffbec6f2affdd1c77379f9453d67 | e23c23198fc89feb2f714faf2d022b1e21ac2151 | refs/heads/master | 2020-03-18T18:50:51.501629 | 2017-01-18T08:35:40 | 2017-01-18T08:35:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import yaml
CONFIG_PATH = './recognize/config.yaml'
CONFIG_DATA = {}
def loadConfig():
global CONFIG_DATA
f = open(CONFIG_PATH, encoding='utf-8')
CONFIG_DATA = yaml.safe_load(f)
f.close()
for name in CONFIG_DATA:
config = CONFIG_DATA[name]
... | [
"="
] | = |
62fd7f83ae140306bbea3251e99b3e08f097a951 | 61dfa0ac80a6979d135e969b5b7b78a370c16904 | /analysis/projections/get_projection_alpha_dm.py | 7abcc8371fcb01ab5adfeceb45330d9e01e88595 | [] | no_license | bvillasen/cosmo_tools | 574d84f9c18d92d2a9610d1d156113730d80f5a4 | 6bb54534f2242a15a6edcf696f29a3cf22edd342 | refs/heads/master | 2021-07-13T06:43:32.902153 | 2020-10-05T21:17:30 | 2020-10-05T21:17:30 | 207,036,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,967 | py | import sys, os
import numpy as np
import h5py as h5
import matplotlib.pyplot as plt
# from mpl_toolkits.axes_grid1 import make_axes_locatable
# import matplotlib.transforms as tfrms
# import matplotlib
# import matplotlib as mpl
# mpl.rcParams['savefig.pad_inches'] = 0
# import palettable.cmocean.sequential as colors
... | [
"bvillasen@gmail.com"
] | bvillasen@gmail.com |
18cb031ce6319630a87080c1a289dd048cab29ae | de328c69238b9c730781ab79bac50610bc36e53d | /wdreconcile/wikidatavalue.py | 4df3de858fb6e93247823146a60dd6052bb2d42b | [
"MIT"
] | permissive | Henri-Lo/openrefine-wikidata | c6ac2870fe8f5e1210edf001ad81e233aa9bde82 | 5df3ee99f8658c6bb2501cadaaf8a628e18d8843 | refs/heads/master | 2021-01-01T18:27:13.254163 | 2017-07-25T18:32:19 | 2017-07-25T18:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,008 | py | import dateutil.parser
from urllib.parse import urlparse, urlunparse
import math
from .utils import to_q, fuzzy_match_strings, match_ints, match_floats
wdvalue_mapping = {}
def register(cls):
wdvalue_mapping[cls.value_type] = cls
return cls
# TODO treat somevalue and novalue differently
class WikidataValue... | [
"antonin@delpeuch.eu"
] | antonin@delpeuch.eu |
5b2179a2439730b1162882adb56bcf9da6062535 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2008.1/applications/games/simutrans-waste/actions.py | 9fcfaccbd3668b1ec6905a88338d406b19946b22 | [] | 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 | 627 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# 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 shelltools
from pisi.actionsapi import pisitools
import os
def fixperms(d):
for root, dirs, files in os.walk(d):
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
7a2568b90975aa483686fc1009ae279abc99eaf3 | 50cd3151800fc03c3db208e6e48e3e04a788ea42 | /msgraph-cli-extensions/src/notes/azext_notes/generated/_help.py | e0b33cf8f597cbaaaddafecb124637bf587c9a66 | [
"MIT"
] | permissive | isabella232/msgraph-cli | ba761b1047f9b71fd6b86fa1feedc4a949602eeb | de2e0381ec29e6e0cd7ab47d75f4e7e80e1c1e2b | refs/heads/main | 2023-01-21T09:22:13.246565 | 2020-10-12T13:55:28 | 2020-10-12T13:55:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986,960 | py | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incor... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
9ce8ba8ed02d447b630541ebffebfeb1900a1f8a | 83c62d10899b4e5d7028915a9f727bcdec0f861c | /reports/tests.py | e868d5496f433f94b227b269b675d01567a51c08 | [
"Apache-2.0"
] | permissive | meetjitesh/cito_engine | 1b70139d762a9540bc40d2544ff4c9884de4eef3 | ae63ff1147fa1c536dc2673e873768e5624b40bb | refs/heads/master | 2020-12-26T10:45:52.137856 | 2014-05-18T14:19:38 | 2014-05-18T14:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | """Copyright 2014 Cyrus Dasadia
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... | [
"cyrus@extremeunix.com"
] | cyrus@extremeunix.com |
64217402f5ba7531d6d16c011e9923000e824b9a | 919e74f05976d9ea5f28d5dcf0a3e9311a4d22b2 | /conans/test/integration/cache/test_home_special_char.py | 9c8ad39a70060a614aa24ffe500e1e6c0b312817 | [
"MIT"
] | permissive | thorsten-klein/conan | 1801b021a66a89fc7d83e32100a6a44e98d4e567 | 7cf8f384b00ba5842886e39b2039963fc939b00e | refs/heads/develop | 2023-09-01T12:04:28.975538 | 2023-07-26T10:55:02 | 2023-07-26T10:55:02 | 150,574,910 | 0 | 0 | MIT | 2023-08-22T14:45:06 | 2018-09-27T11:16:48 | Python | UTF-8 | Python | false | false | 2,319 | py | import os
import platform
import pytest
from conans.test.utils.test_files import temp_folder
from conans.test.utils.tools import TestClient
import textwrap
_path_chars = "päthñç$"
@pytest.fixture(scope="module")
def client_with_special_chars():
""" the path with special characters is creating a conanbuild.bat... | [
"noreply@github.com"
] | thorsten-klein.noreply@github.com |
2fd3bcd0b1e0a265de56a4a6fcf68eb7015bb7eb | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/sngakh004/question4.py | 64ef79e9395c406a90e97ab814688ab603b0c013 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | """Akhil Singh
SNGAKH004
Program to draw a histogram of class mark data.
23 April 2014"""
#Get class marks from user
class_mark=input("Enter a space-separated list of marks:\n")
#Converting a string into a list of intergers
class_mark=class_mark.split()
for a in range(len(class_mark)):
class_mark[a]=ev... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
4370fe568105d6947b4b17e170453c6a279fbf30 | 3f3471faa4a693fb18adb651500753f637ab1916 | /book.py | 65bdcf54cb5837e194d347af766617add40fcbf4 | [] | no_license | sarte3/pj5 | 1f7a54fc5a6e78a3e803416787ea32c3626761cd | afdb2dd49292c8647f9dec5a061a8d4f1bba06d7 | refs/heads/master | 2023-03-06T04:11:22.607225 | 2021-02-25T05:17:36 | 2021-02-25T05:17:36 | 342,131,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | from datetime import datetime
import pandas as pd
import matplotlib.pyplot as plt
# 한글처리
from matplotlib import font_manager, rc
fontname = font_manager.FontProperties(fname='malgun.ttf').get_name()
rc('font', family=fontname)
import json
import os
import sys
import urllib.request
client_id = "twrhEE4LU8HoKxIrMwzM"
... | [
"sarte@outlook.kr"
] | sarte@outlook.kr |
e548f54d3a7c8da2d51938e1da6415835d9d5685 | 94f156b362fbce8f89c8e15cd7687f8af267ef08 | /midterm/main/permissions.py | 57ee4beb272ac8cfc9255ea149ac2f53b1a21476 | [] | no_license | DastanB/AdvancedDjango | 6eee5477cd5a00423972c9cc3d2b5f1e4a501841 | 2b5d4c22b278c6d0e08ab7e84161163fe42e9a3f | refs/heads/master | 2020-07-17T19:21:16.271964 | 2019-12-03T21:58:51 | 2019-12-03T21:58:51 | 206,081,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | from rest_framework.permissions import IsAuthenticated, BasePermission
from users.models import MainUser
class ProductPermission(BasePermission):
message = 'You must be the authenticated.'
def has_permission(self, request, view):
if view.action is 'create':
return request.user.is_superuser... | [
"dastan211298@gmail.com"
] | dastan211298@gmail.com |
7bbe3d2066efd578b09eee3aee8ab3d57cc65694 | c95310db610fd4ca1899903d3982d0733c2c693d | /problems/reverse_bits/solution.py | 5fbfca10974c1a7d264cfe02ae82088da1d3273a | [] | no_license | findcongwang/leetcode | e8cbc8899a6af2134de66d6ff1a1ead4c10d38e6 | f52ea63fc0680613a3ebf3f3b4e4f1be7bbfd87c | refs/heads/main | 2023-02-25T17:33:41.270128 | 2021-01-29T17:57:15 | 2021-01-29T17:57:15 | 306,998,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | class Solution:
def reverseBits(self, n: int) -> int:
count = 31
num = 0
while n > 0:
num = num + ((n&1) * 2**count)
n = n >> 1
count -= 1
return num | [
"findcongwang@gmail.com"
] | findcongwang@gmail.com |
acc0a1be6531ff69b956ab61565fa4ebda0839ee | 5cc94ad2377777067e7e9fad08823f201b790a63 | /github-backup | 94c4a4a40db48d1d39243f0149b93648e9e996ca | [] | no_license | rrosajp/github-backup | 86ea44a6addd24072cfe150de2be4c4a71310720 | a538de0bd0a29b82f4cc669cf60132aa83548469 | refs/heads/master | 2022-03-17T23:15:25.856395 | 2019-11-27T19:02:35 | 2019-11-27T19:02:35 | 273,772,938 | 1 | 0 | null | 2020-06-20T19:37:44 | 2020-06-20T19:37:43 | null | UTF-8 | Python | false | false | 4,511 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# github_backup.py
#
# Copyright 2017 Spencer McIntyre <zeroSteiner@gmail.com>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source cod... | [
"zeroSteiner@gmail.com"
] | zeroSteiner@gmail.com | |
3fb43fde0c3c30ff359ad45502555447f39d8cdb | 6543e5bfec2f2d89ac6a7e42e8f38d2f3df26615 | /1306JumpGameIII.py | 5545d7464d227a8cbade8389f59323cc7f68b298 | [] | no_license | adityachhajer/LeetCodeSolutions | bc3136fa638a3b2c7d35e419a063e9ce257bc1af | 693fd3aef0f823f9c3cfc14c3d1010584b7a762d | refs/heads/master | 2023-02-17T08:21:00.064932 | 2021-01-19T14:05:08 | 2021-01-19T14:05:08 | 270,973,258 | 2 | 1 | null | 2020-09-30T18:30:21 | 2020-06-09T10:33:39 | Python | UTF-8 | Python | false | false | 532 | py | class Solution:
def solve(self,arr,start,ans):
if start>=len(arr) or start<0:
return False
elif arr[start]==0:
# ans[start]=True
return True
elif ans[start]==1:
return False
else:
ans[start]=1
return self.... | [
"noreply@github.com"
] | adityachhajer.noreply@github.com |
fe1a0e8c9ddaa1a7fa94404a66e4dc8769440385 | e2a006a139330bca613169e547e185b1a5048646 | /L8/busca_punto.py | a31fad5cb4ef87ebcb323606529b9ccf720bee06 | [] | no_license | Mi7ai/EI1022 | 013d54d470b38c125503c0173b355cc7bc681784 | f80d5b4f99e1427fd5c2673499a3eee0d1dfc1ca | refs/heads/master | 2020-03-29T13:54:58.231532 | 2018-12-05T13:50:27 | 2018-12-05T13:50:27 | 149,988,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py |
def busca_punto_rec(v):
def rec(b: int, e:int ):
if e-b == 0: return None
h = (b+e)//2
if v[h] < h:
return rec(h,e)
elif v[h] > h:
return rec(b,h)
else:
return h
return rec(0, len(v))
#para acasa hacrlo sin recursividad
# def busca_p... | [
"hottmayer@gmail.com"
] | hottmayer@gmail.com |
7e8185b954c7aad21024d466b6adf503e4442918 | 4664bb1572d1d9bb90f99a11016d0fbe9b28c632 | /search/utils/constants.py | 647ceca9fa4eb44b99e06938b96dd418393a4d69 | [] | no_license | prdx/Indexer | 32cfbf05dfec595c00550322859260c15a2906e8 | 08b52734b293cb2f0a57ed74d818ece70425711f | refs/heads/master | 2020-03-22T23:22:27.947273 | 2018-07-20T16:27:40 | 2018-07-20T16:27:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | class Constants:
CACHE_PATH = './cache/'
DATA_PATH = './AP_DATA/ap89_collection/'
DOC_TYPE = 'document'
DOCLIST_PATH = './AP_DATA/processed_doclist.txt'
ES_SCRIPTS_PATH = './es/'
INDEX_NAME = 'ap89_collection'
MAX_OUTPUT = 1000
RESULTS_PATH = './results/'
STOPWORDS_PATH = './AP_DATA... | [
"astungkara.project@gmail.com"
] | astungkara.project@gmail.com |
d3b38d9183e453184a9cbc3ba6574a778fc49705 | 74649c1220c68ad0af79e420d572e3769fcd7a53 | /_unittests/ut_documentation/test_run_notebooks_onnx_viz.py | 6a0613ce77a5e839c1437dc40f2a84f34aab0076 | [
"MIT"
] | permissive | sdpython/mlprodict | e62edcb428700cb2c4527e54e96431c1d2b36118 | 27d6da4ecdd76e18292f265fde61d19b66937a5c | refs/heads/master | 2023-05-08T10:44:30.418658 | 2023-03-08T22:48:56 | 2023-03-08T22:48:56 | 112,469,804 | 60 | 13 | MIT | 2023-04-19T01:21:38 | 2017-11-29T11:57:10 | Python | UTF-8 | Python | false | false | 991 | py | # -*- coding: utf-8 -*-
"""
@brief test log(time=30s)
"""
import os
import unittest
from pyquickhelper.loghelper import fLOG
from pyquickhelper.ipythonhelper import test_notebook_execution_coverage
from pyquickhelper.pycode import (
add_missing_development_version, ExtTestCase
)
import mlprodict
class TestNo... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
82a1fc92fe198a109b3287ee4730928c9d081839 | 1978a9455159b7c2f3286e0ad602652bc5277ffa | /exercises/04_data_structures/task_4_8.py | e089dd1a02e42d41758421e563cf86a42a9f841c | [] | no_license | fortredux/py_net_eng | 338fd7a80debbeda55b5915dbfba4f5577279ef0 | 61cf0b2a355d519c58bc9f2b59d7e5d224922890 | refs/heads/master | 2020-12-03T17:32:53.598813 | 2020-04-08T20:55:45 | 2020-04-08T20:55:45 | 231,409,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | # -*- coding: utf-8 -*-
'''
Задание 4.8
Преобразовать IP-адрес в двоичный формат и вывести на стандартный поток вывода вывод столбцами, таким образом:
- первой строкой должны идти десятичные значения байтов
- второй строкой двоичные значения
Вывод должен быть упорядочен также, как в примере:
- столбцами
- ширина стол... | [
"fortunaredux@protonmail.com"
] | fortunaredux@protonmail.com |
920f4452d90e699d289148b8978d08ac6d9ab071 | ca9ab449331c31c1046ddbdd09a7079a65024a8a | /data_structure/dict/dictionary-basic.py | f66a2c66a35de603ed5c996bb9c524f11ebfc656 | [] | no_license | linth/learn-python | 95947fd40f578d4473496c263ab45a7459fe4773 | 33c36b45c0dc46cf6d9a5d1237b63c8c2442b3fd | refs/heads/master | 2023-04-28T17:08:06.473326 | 2023-04-24T17:09:41 | 2023-04-24T17:09:41 | 172,464,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | # dictionary: key and value.
dict = {
"name": "George",
"year": 2019,
"sex": "boy",
"weight": 78,
"height": 190,
}
print(dict)
# get value
print(dict['year']) # first way to get value.
x = dict.get('year') # another way to get value.
print(x) # 2019.
# change value
dict['year'] = 2000
print(dict[... | [
"zhua0404@gmail.com"
] | zhua0404@gmail.com |
d348b2ed798851b3ca34bbfdcb624c6df23eb785 | b107883be08ea56bd3a56ddb0e2dd8dacce7db2e | /src/polystar/pipeline/keras/trainer.py | db62a563eeff68041d0a316b49186f70f8caffa3 | [] | no_license | PolySTAR-mtl/cv | ef7977b62577e520f6c69a9b7891c7f38e307028 | 27564abe89e7dff612e3630c31e080fae4164751 | refs/heads/master | 2023-05-01T16:45:19.777459 | 2021-05-30T10:36:10 | 2021-05-30T10:36:10 | 356,053,312 | 0 | 0 | null | 2021-05-30T10:36:11 | 2021-04-08T21:32:06 | Python | UTF-8 | Python | false | false | 1,427 | py | from dataclasses import dataclass, field
from typing import List
from numpy.core._multiarray_umath import ndarray
from tensorflow.python.keras.callbacks import Callback
from tensorflow.python.keras.models import Model
from polystar.pipeline.keras.compilation_parameters import KerasCompilationParameters
from polystar.... | [
"mathieu@feedly.com"
] | mathieu@feedly.com |
02ae2bc23f3e2eb1ae2eaa25d2b06540fd152327 | 109a8fb3e17ccf1efa6057d59441933ce678c2f0 | /app/schemas/user_schema.py | 39d4e7768ecc51aca1201755f784f6fcb9b635f7 | [] | no_license | oulabla/rest_test | 8daac7db642adb72a07a9662920bcbfd7b750fbf | fad8eb7bd253271706518b3ba6f117997ba08dfa | refs/heads/main | 2023-08-27T07:39:15.079957 | 2021-10-15T15:56:02 | 2021-10-15T15:56:02 | 416,887,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | from marshmallow import fields
from . import BaseSchema
from marshmallow_sqlalchemy import auto_field
from marshmallow.fields import Date
from marshmallow_sqlalchemy.fields import Nested
from app.models.user import User
from app.schemas.role_schema import RoleSchema
from app.schemas.phone_schema import PhoneSchema
... | [
"="
] | = |
4db4ead4d9e8fc01e987b14c56aca330364ea2b7 | 6920575dc95c6800fb8e8088719afa88931281b5 | /tests/validator/test_validating_a_motion.py | 8f6a6c4882be98bfdbdde320c887b6a363fa5e59 | [] | no_license | pipermerriam/ethereum-alarm-governance | 091de3a3f72c95e097a24bd05a1d7ebe4738a01b | 1b4a9a0355976f92e88396582a64fdfb50bbe858 | refs/heads/master | 2023-08-28T09:39:44.191755 | 2016-02-15T22:18:18 | 2016-02-15T22:18:18 | 47,724,489 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | import pytest
deploy_contracts = []
ONE_DAY = 24 * 60 * 60
@pytest.mark.parametrize(
"quorium,pass_percentage,debate_period,executor,expected",
(
(10000, 51, ONE_DAY, "0xd3cda913deb6f67967b99d67acdfa1712c293601", True),
(10001, 51, ONE_DAY, "0xd3cda913deb6f67967b99d67acdfa1712c293601", Tru... | [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
2eb08aeab2d31864011a33b28fee95b6b159ea67 | b011f9a78db79f3c68d6f53f74e83df3970bf8e0 | /authl/__version__.py | f161374a9541bffb46c771e0f6ed93bd66566ff9 | [
"MIT"
] | permissive | zaxtax/Authl | 7504b1eef264da66085b12f1995b0d17aabbb95a | 21bdacfff2761f91e3859ac0735e5902d3763e88 | refs/heads/master | 2021-04-21T01:45:53.256468 | 2020-02-29T03:32:59 | 2020-02-29T03:32:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | """ current library version """
__version__ = '0.3.5'
| [
"fluffy@beesbuzz.biz"
] | fluffy@beesbuzz.biz |
ce88bf7af10a89c8474dffc2a82e54e04c1d6a2b | 56ffce29f0d27f83206e11870d95982c38524aae | /apweb/site/configure.py | e40a59ea7cfb45c55048ca631afb93938572dc5f | [] | no_license | adamandpaul/apweb | cce365085e2ee58cfbc31544c5a7414e67ad56b4 | b1bb81fa7d7b39f19e187462aa3447ff482b46af | refs/heads/master | 2022-10-19T02:09:52.437906 | 2021-05-21T06:10:08 | 2021-05-21T06:10:08 | 201,398,036 | 0 | 3 | null | 2022-09-21T21:39:41 | 2019-08-09T05:41:06 | Python | UTF-8 | Python | false | false | 1,316 | py | # -*- coding:utf-8 -*-
from .password_login_provider import PasswordLoginProvider
from .resource import Site
import apweb.authentication
def site_factory(request):
"""Return a default site factory"""
return Site.from_request(request)
def get_user_for_unauthenticated_userid(request):
email = request.un... | [
"arterrey@gmail.com"
] | arterrey@gmail.com |
c948ad237c590dfd89ae5e491450ac4895fbb550 | fa82dad9e83206d4630a55141bf44f50cbf0c3a8 | /day1_python/01_python200_src/181.py | 20a43d86dda37f41451faaad66761d0cd6d16b34 | [] | no_license | jsh2333/pyml | 8f8c53a43af23b8490b25f35f28d85f1087df28d | 157dfa7cc2f1458f12e451691a994ac6ef138cab | refs/heads/master | 2021-03-27T22:26:38.254206 | 2020-04-26T06:35:11 | 2020-04-26T06:35:11 | 249,114,580 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | def countBirths():
ret = []
for y in range(1880, 2015):
count = 0
filename = 'names/yob%d.txt' %y
with open(filename, 'r') as f:
data = f.readlines()
for d in data:
if d[-1] == '\n':
d = d[:-1]
b... | [
"jsh2333@gmail.com"
] | jsh2333@gmail.com |
4bee8633074dd1f2174f4054fd7cd3ce218bf717 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/nilearn/mass_univariate/tests/test_permuted_least_squares.py | e873dc0a17226b11dce52a062647e51e0e9f3452 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 23,016 | py | """
Tests for the permuted_ols function.
"""
# Author: Virgile Fritsch, <virgile.fritsch@inria.fr>, Feb. 2014
import numpy as np
from scipy import stats
from sklearn.utils import check_random_state
from numpy.testing import (assert_almost_equal, assert_array_almost_equal,
assert_array_less,... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
81e1ff36d764ebf2d6e179a45efa2e2ac9a119f4 | 71a7ed5dd56b89aea1795a3db1469e3006be783f | /configs/body/2d_kpt_sview_rgb_img/deeppose/coco/res50_coco_256x192.py | 2d2b20fa49d0e23356d688081388809183364474 | [
"Apache-2.0"
] | permissive | RunningLeon/mmpose | b6091416a2565778a1438b23edaa6620a2088a3e | 9ef202c0a4b2c28add32b530caf2ea0354843fe4 | refs/heads/master | 2023-06-30T04:46:52.917877 | 2021-08-05T08:54:24 | 2021-08-05T08:54:24 | 335,275,684 | 0 | 0 | Apache-2.0 | 2021-02-02T12:06:57 | 2021-02-02T12:06:57 | null | UTF-8 | Python | false | false | 3,956 | py | log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=10)
evaluation = dict(interval=10, metric='mAP', save_best='AP')
optimizer = dict(
type='Adam',
lr=5e-4,
)
optimizer_config = dict(grad_clip=None)
# learning pol... | [
"noreply@github.com"
] | RunningLeon.noreply@github.com |
a77514a354202ea060c3808641ab83dce4cf439f | c29ff32eb5755c45d656162bb91df428eeab489d | /Main.py | ca4ecdf20d8df96838023848bc5e4b4aa30c2822 | [] | no_license | Larionov0/Listo4ek | f5f441dcd908dbd1f55768e3c62515a385ad4cb1 | c30dd00c999239ea205e6a5140b188de6553376f | refs/heads/master | 2021-06-27T17:04:02.950956 | 2021-01-15T14:26:49 | 2021-01-15T14:26:49 | 197,660,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,028 | py | import telebot
from telebot import types
import emoji
from data_handler import data as waves_data, units_data, weapons_data
from random import choice, randint
from funks import *
delete_data = {}
def add_delete_message(chat_id,message_id):
if chat_id in delete_data:
delete_data[chat_id].append(message_id... | [
"larionov1001@gmail.com"
] | larionov1001@gmail.com |
86fcf6c74099436224d26ca4ccd9c27e498fcc0c | 11f7add72635ad985b3e98fd77e9426e8c74ab08 | /growthintel/growthintel.py | 7d641b9bad3fbb521fa21f28b0a5e9ec17603326 | [] | no_license | harshdarji/python | afa6b11338504567ece8bb1e78e841d13716ff14 | 8bad854304f423264b7b0724b87c7cd7de748cd6 | refs/heads/master | 2020-12-31T01:48:04.439466 | 2012-09-13T09:22:58 | 2012-09-13T09:22:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | APIKey="00a5f2164e5e49b29981ddcbe9df7d7c"
import parse
import json
output={"type":"FeatureCollection","features":[]}
postcodes=["AB","AL","B","BA","BB","BD","BH","BL","BN","BR","BS","BT","CA","CB","CF","CH","CM","CO","CR","CT","CV","CW","DA","DD","DE","DG","DH","DL","DN","DT","DY","E","EC","EH","EN","EX","FK","FY","G"... | [
"jeromecukier@gmail.com"
] | jeromecukier@gmail.com |
32d654a348320c21302268c73278d97e9540c221 | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/raw/GLES2/NV/framebuffer_blit.py | ada66373b0f3e2262f88cc60a536d0ce0840c18b | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.constant import Constant as _C
# End users want this...
from OpenGL.raw.GLES2 import _errors
# Code generation uses this
from OpenGL.raw.GLES2 import _types as _cs
_EXTENSION_NAME = 'GLES2_NV_framebuffer_blit'
def ... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
c520dd7bddfc90caab08af4bb0a8517af01ac98a | 0422bca79c61ee4630f7c762e77ca9780b05e3ff | /pattern/text/nl/parser/__init__.py | 590127d45bbbde61c6675e815462d4cc4e8842d0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kkoch986/pattern | 69ac11d12ea4fd2bb581e3343bca021cf6e46c92 | db807c888dcd15f515afe31753c9b0345a11b542 | refs/heads/master | 2021-01-18T04:26:13.078631 | 2013-02-14T03:29:25 | 2013-02-14T03:29:25 | 8,186,866 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,508 | py | #### PATTERN | NL | RULE-BASED SHALLOW PARSER ######################################################
# Copyright (c) 2010 Jeroen Geertzen and University of Antwerp, Belgium
# Authors: Jeroen Geertzen (Dutch language model), Tom De Smedt <tom@organisms.be>
# License: BSD (see LICENSE.txt for details).
# http://www.clips... | [
"tom@organisms.be"
] | tom@organisms.be |
cfd7b02747987b034cf4487a4f0d184a14a698da | 43a4fd934407a963c876dc1b15fd7052e693592b | /GearBot/Util/RaidHandling/RaidShield.py | 2920e7cee1e644e445fd3d504d578a43fb9c6170 | [
"MIT"
] | permissive | mrkirby153/GearBot | aa02fdd32bec292a54e8e3805bd829f16522cdc8 | a61d936c12e906c7bcfaa840a585ee25ffc06138 | refs/heads/master | 2020-05-29T18:59:55.450101 | 2019-06-02T09:54:18 | 2019-06-02T09:54:18 | 189,318,104 | 0 | 0 | MIT | 2019-05-30T00:31:06 | 2019-05-30T00:31:06 | null | UTF-8 | Python | false | false | 1,444 | py | from Util import GearbotLogging
from Util.RaidHandling import RaidActions
class RaidShield:
def __init__(self, shield_info) -> None:
self.shield_name=shield_info["name"]
self.start_actions = [action for action in shield_info["actions"]["triggered"]]
self.raider_actions = [action for actio... | [
"aenterprise2@gmail.com"
] | aenterprise2@gmail.com |
e00ea1cfb0a012d2762bd8d9ab89d6d147f0c170 | adb6755eb1a3d91375e6b4e9b8c1afd07f85313b | /venv/Lib/site-packages/pandas/tests/io/test_excel.py | c527451cc6d27da20440880d1bc8730d44c74e32 | [] | no_license | Atwinenickson/Socialmediaclassifier- | af54b559569e80004c441fc90dc44b0ee945555d | 05c5abbaba8694d9bf95d745ffca75c17ac69621 | refs/heads/master | 2022-12-15T01:33:18.073259 | 2019-06-07T15:38:18 | 2019-06-07T15:38:18 | 190,616,071 | 1 | 0 | null | 2022-12-08T05:13:29 | 2019-06-06T16:41:17 | Python | UTF-8 | Python | false | false | 102,135 | py | from collections import OrderedDict
import contextlib
from datetime import date, datetime, time, timedelta
from distutils.version import LooseVersion
from functools import partial
import os
import warnings
from warnings import catch_warnings
import numpy as np
from numpy import nan
import pytest
from pandas.compat im... | [
"atwiinenicxon@gmail.com"
] | atwiinenicxon@gmail.com |
99a885ced2259ddd980d7178fc0d7ae23cd5c7cc | 1334505cc093b2796c80c83a358f39aaa9bb7392 | /things/parmed/LES/run.py | 20454ca47cbeedcf04b143b5b04b152fa4dd1b15 | [
"BSD-2-Clause"
] | permissive | hainm/amber_things | 031703f1b39c1c1ceae3f1186cb1020b68260e13 | c4c6de411e6b83f1d0dd723d892253a88f5125e5 | refs/heads/master | 2021-01-21T04:47:49.404282 | 2016-07-10T23:19:59 | 2016-07-10T23:19:59 | 36,897,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | import parmed as pmd
pmd.load_file('new.parm7', 'new.rst7')
| [
"hainm.comp@gmail.com"
] | hainm.comp@gmail.com |
c35ac0e38e1bf86dd30321937444199e6b545717 | 478009111504d54f45490f71c1e61190ecfede3f | /sesion_4/test_xl2.py | 54fc999f79dc94a336ef6161315e7708b6b13766 | [] | no_license | BeatrizInGitHub/python-sci | 9938c406e9642385d602971e985668765dfabbfa | d8ed9656184b5f08d41430ed5a770dc6f4550893 | refs/heads/master | 2020-05-22T19:46:08.065601 | 2017-02-26T02:15:31 | 2017-02-26T02:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from openpyxl import load_workbook
wb = load_workbook("Libro1.xlsx")
ws = wb["Hoja1"]
cells = ws["C4:F10"]
mat = []
for r in cells:
row = []
for cell in r:
x = cell.value
row.append(x)
mat.append(row)
print mat
x = ws["C4"].value
x = mat[0][0] | [
"badillo.soft@hotmail.com"
] | badillo.soft@hotmail.com |
51cf140ce032eb19a30ee3990d6bf89971df2ab8 | c1fcdd80101aeae0ba8b4ae0e229f58ed58fd41f | /testPredictor.py | fe7bea830d5e4f619513d78c2e0e5b9ab4ea4023 | [] | no_license | luizgh/ModelEvaluation | 367432f0456052f539c61766b00f1f59bc5fa3a5 | 2933918276d0dcc42d484d9163c4b6c9ea32f26a | refs/heads/master | 2016-09-06T04:15:11.140896 | 2014-03-19T00:07:46 | 2014-03-19T00:07:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | import unittest
from Predictor import Predictor
from TestUtils import *
class testPredictor(unittest.TestCase):
def testAll(self):
logProbabilities = numpy.asarray([[0.4, 0.80, 0.50],
[0.45, 0.4, 0.41],
[0.4, 0.41, ... | [
"luiz.gh@gmail.com"
] | luiz.gh@gmail.com |
a0b726ca16865f5077e8d0a563538ac2f6752e45 | 874153914c2784eb164c271e4a68c01265e5ce7f | /tool/module/arkon_config.py | a6a18adaf5c5f245e552d73e4e0c95d158b9cff6 | [
"Apache-2.0"
] | permissive | random-archer/mkinitcpio-systemd-tool | 3c6f572244fb84e9eab4fa1291d4e5526a614751 | 5685070783975c934c517d603bcfd614f8b194a3 | refs/heads/master | 2023-08-17T20:52:13.040297 | 2022-12-21T14:20:10 | 2022-12-21T14:20:10 | 59,916,137 | 108 | 29 | NOASSERTION | 2023-08-13T09:35:00 | 2016-05-28T22:00:58 | Python | UTF-8 | Python | false | false | 2,750 | py | #!/usr/bin/env python
#
# shared config for build/setup/verify cycle
#
import os
import datetime
import nspawn
# detect build system
def has_ci_azure():
return "AZURE_EXTENSION_DIR" in os.environ
# no http proxy in azure
if has_ci_azure():
nspawn.CONFIG['proxy']['use_host_proxy'] = 'no'
nspawn.CONFIG... | [
"andrei.pozolotin@gmail.com"
] | andrei.pozolotin@gmail.com |
9b66a0e02508ee60fbd50d1de623179d0ef4f34b | 9cec93a18ea94504947820205d0faae4d67ecd8d | /H2TauTau/python/eventContent/common_cff.py | cd998b53c2a17602f3659cbf83da20caa949c0ea | [] | no_license | DESY-CMS-SUS/cmgtools-lite | de88b1d5dc20a925ed5b7c7be69fa3ef677955c6 | db52d50047178563a0eb7f5858ae100aa408ec68 | refs/heads/8_0_25 | 2021-05-23T04:36:22.900460 | 2017-11-09T10:32:41 | 2017-11-09T10:32:41 | 60,184,794 | 3 | 9 | null | 2021-02-17T23:22:12 | 2016-06-01T14:37:18 | Python | UTF-8 | Python | false | false | 1,693 | py | import copy
common = [
# 'drop *',
'keep double_fixedGridRho*_*_*',
'keep edmTriggerResults_TriggerResults_*_*',
'keep patPackedTriggerPrescales_*_*_*',
'keep patElectrons_slimmedElectrons_*_*',
'keep patJets_slimmedJets_*_*',
'keep patJets_patJetsReapplyJEC_*_*',
'keep patMETs_slimmedM... | [
"jan.steggemann@cern.ch"
] | jan.steggemann@cern.ch |
2e29fe62e754d295f00d590bcd2ce5ca0afddcf2 | 5ef2ebd4334769955cff15a03f5956b0fac6ba52 | /docs/conf.py | 15332c991b4e2357f380f776c35bd8c2c007fe0e | [
"BSD-3-Clause-Modification"
] | permissive | smurfix/repoze.retry | b58bf0b1e96e995d8631e03d1eb51cea84bb2a3c | 0b7eae20b2ae29180bc36a5549ae9e54e5b6a7bd | refs/heads/master | 2021-01-17T08:00:17.562716 | 2013-12-03T09:16:39 | 2013-12-03T09:20:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,741 | py | # -*- coding: utf-8 -*-
#
# repoze.retry documentation build configuration file, created by
# sphinx-quickstart on Mon Aug 9 08:03:46 2010.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
... | [
"tseaver@palladion.com"
] | tseaver@palladion.com |
cf586d21d70ab55c9b7d5a8e1e146b94a0e7493b | 4ba18540bfd8c523fe39bbe7d6c8fa29d4ec0947 | /atlas/foundations_events/src/test/consumers/jobs/queued/test_queued_job_notifier.py | d0480777c4e91860a0d9142ea598f1e067386f54 | [
"BSD-3-Clause",
"MIT",
"CC0-1.0",
"Apache-2.0",
"BSD-2-Clause",
"MPL-2.0"
] | permissive | yottabytt/atlas | c9d8ef45a0921c9f46d3ed94d42342f11488a85e | b040e574fbc64c833039b003f8a90345dd98e0eb | refs/heads/master | 2022-10-14T11:12:12.311137 | 2020-06-13T13:19:35 | 2020-06-13T13:19:35 | 272,008,756 | 0 | 0 | Apache-2.0 | 2020-06-13T12:55:29 | 2020-06-13T12:55:28 | null | UTF-8 | Python | false | false | 1,369 | py |
import unittest
from mock import Mock
from foundations_spec.helpers import *
from foundations_spec.helpers.spec import Spec
class TestQueuedJobNotifier(Spec):
job_notifier = let_mock()
@let
def consumer(self):
from foundations_events.consumers.jobs.queued.job_notifier import JobNotifier
... | [
"mislam@squareup.com"
] | mislam@squareup.com |
eb8e03b50b9cf04c181f5fd214e1461f869755bb | beea119ff63911711c906ea82cd7c8fa0b33f149 | /src/oscar/apps/dashboard/catalogue/mixins.py | b924a7dbbda53e107a9875e6c67e2c80b06ce6bc | [
"MIT"
] | permissive | benjaminbills/fundizshop | 6157316182ffa0045d68737315682c361f968ce9 | b5d09f70c0a728c74efa72a37b03efef2bed9d3d | refs/heads/master | 2023-06-21T19:05:08.120925 | 2021-07-13T05:00:15 | 2021-07-13T05:00:15 | 379,179,978 | 1 | 4 | MIT | 2021-07-07T09:18:29 | 2021-06-22T07:27:11 | Python | UTF-8 | Python | false | false | 529 | py | class PartnerProductFilterMixin:
def filter_queryset(self, queryset):
"""
Restrict the queryset to products the given user has access to.
A staff user is allowed to access all Products.
A non-staff user is only allowed access to a product if they are in at
least one stock rec... | [
"paulkush7777@gmail.com"
] | paulkush7777@gmail.com |
40ff46ac61dab69c55f35bf02697ae1ce5adca82 | 88841c4b8c8a2d8c12186105510d325ff84324a5 | /scripts/artifacts/bluetoothOther.py | 111a4684b9a7165e034b4f586b0c34ae67aa8dad | [
"MIT"
] | permissive | mastenp/iLEAPP | 404b8aca6b6bc6fab04240fdccf822839bade1e1 | ee40ef7505b36d0b9b04131f284a9d4d036514a5 | refs/heads/master | 2022-12-26T07:55:17.905307 | 2020-09-29T11:58:16 | 2020-09-29T11:58:16 | 272,011,420 | 1 | 0 | MIT | 2020-09-29T11:58:17 | 2020-06-13T13:12:05 | Python | UTF-8 | Python | false | false | 1,198 | py | import glob
import os
import sys
import stat
import pathlib
import plistlib
import sqlite3
import json
from scripts.artifact_report import ArtifactHtmlReport
from scripts.ilapfuncs import logfunc, tsv, timeline, is_platform_windows
def get_bluetoothOther(files_found, report_folder, seeker):
file_found = str(files_... | [
"abrignoni@gmail.com"
] | abrignoni@gmail.com |
d7f81f1b456b403d5cfaa53ae22d927009042b7d | 8a73cde463081afd76427d5af1e6837bfa51cc47 | /service/surf/apps/filters/metadata.py | 49cdddb85d42d447a04530c4871e5959605a61e7 | [
"MIT"
] | permissive | surfedushare/search-portal | 8af4103ec6464e255c5462c672b30f32cd70b4e1 | 63e30ad0399c193fcb686804062cedf3930a093c | refs/heads/acceptance | 2023-06-25T13:19:41.051801 | 2023-06-06T13:37:01 | 2023-06-06T13:37:01 | 254,373,874 | 2 | 1 | MIT | 2023-06-06T12:04:44 | 2020-04-09T13:07:12 | Python | UTF-8 | Python | false | false | 2,079 | py | from collections import defaultdict
import requests
from django.conf import settings
from django.utils.functional import cached_property
class MetadataTree(object):
harvester_url = None
api_token = None
def __init__(self, harvester_url, api_token, warm_up_cache=False):
self.harvester_url = harv... | [
"email@fakoberkers.nl"
] | email@fakoberkers.nl |
3ea01b02f1d2247da82de5a03180b328416801ca | 1a80c38ea020a8b18bb2c61b55caff8a38f553b9 | /SWEA/trying/6058.py | 647d2ed1e2f5a17a5950b75fb675a9047cc7a63c | [] | no_license | jiwookseo/problem-solving | 775a47825dc73f8a29616ef7011e8ee7be346f80 | eefbefb21608ae0a2b3c75c010ae14995b7fc646 | refs/heads/master | 2020-04-19T03:11:02.659816 | 2019-08-14T08:59:06 | 2019-08-14T08:59:06 | 167,926,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # 6058. 새해 축하 파티 D5
# https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWbHe_w6AHIDFAV0&categoryId=AWbHe_w6AHIDFAV0&categoryType=CODE
def gen():
a=0
for i in range(1,401):
a+=i
yield a
for tc in range(1,int(input())+1):
inp=list(map(int,input().split()))
b,l... | [
"spjo21@naver.com"
] | spjo21@naver.com |
8688ac67867a981e531391ddbcc4d45d57031d25 | 89c4a43a505df8fdf1f0d7386988c4896c2e631b | /google/ads/googleads/v6/services/services/ad_group_criterion_label_service/transports/grpc.py | 3858d13b56d6f9146bc2f4cc05078782cd0906a2 | [
"Apache-2.0"
] | permissive | hurricanelennane/google-ads-python | a0a1fed690776a8bb2e81f637eb7eae10fb4992f | 310a488b6fdad9d5beea8fa4b166edce779a2511 | refs/heads/master | 2023-07-04T03:07:53.344466 | 2021-07-16T19:06:36 | 2021-07-16T19:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,967 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | hurricanelennane.noreply@github.com |
831d02112e7ceee36ced42de31fb8ccfb82dfac5 | 2247218311804a8e6ca0d07840ab918cd749376d | /tests/func/test_glr_parsing.py | 00ca40063da92a24e7c3ae3f8c0c690526bf186a | [
"Python-2.0",
"MIT"
] | permissive | morganjk/parglare | e48067ee99ead524d9bb311be80bc173e50ef5d2 | 39b8034d50d328844dfd91fcd94e23166056398f | refs/heads/master | 2021-07-18T09:44:39.758588 | 2017-10-22T15:08:56 | 2017-10-22T15:08:56 | 107,910,367 | 1 | 0 | null | 2017-10-22T23:17:58 | 2017-10-22T23:17:58 | null | UTF-8 | Python | false | false | 5,101 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest
from parglare import GLRParser, Grammar, Parser
from parglare.exceptions import SRConflicts
def test_lr2_grammar():
grammar = """
Model: Prods EOF;
Prods: Prod | Prods Prod;
Prod: ID "=" ProdRefs;
ProdRefs: ID | ProdRef... | [
"igor.dejanovic@gmail.com"
] | igor.dejanovic@gmail.com |
a083f7ad8469cb81abd1209db8dd1c48afc39efa | 52d9f9fb6348c51e14c470e4405a79204ea98980 | /unit5_Auto_Test_Model/test5_3模块化与参数化/read_json.py | cf0bae59ca450578251cece4a4810693c6a6ce5f | [] | no_license | UULIN/automation_test | 0a815d9b1032d8d393e4f340bd294f17e20d194d | 5a193bb897d653a44e0376bcb6592d7b1811a424 | refs/heads/master | 2023-01-05T15:07:54.133329 | 2020-11-02T04:58:11 | 2020-11-02T04:58:11 | 280,456,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | """
读取json
"""
import json
import os
path = os.path.abspath("config")
with open(path+"\\user_info.json", "r") as f:
data = f.read()
userlist = json.loads(data)
print(userlist) | [
"1036190402@qq.com"
] | 1036190402@qq.com |
7a28ea1553bdc4de0d169a474e8f80f39f34399a | bf66a28310d934fd1b8b14f762b336b9ec893a04 | /spaces/management/commands/seed_detail_spaces.py | f9b9f8cc4f792d7c46b1fa631cb36906e2b90db2 | [] | no_license | jeongmin14/enter_cloud-backend | 0664a6563ea090926a8522b454b762afed1f5c9d | 789b358e8c3cf5be8505185c048e10556bfd9e0a | refs/heads/main | 2023-03-26T03:54:39.565076 | 2021-03-17T13:09:32 | 2021-03-17T13:09:32 | 348,644,724 | 0 | 0 | null | 2021-03-17T13:08:07 | 2021-03-17T09:09:14 | null | UTF-8 | Python | false | false | 3,291 | py | import csv
import random
import bcrypt
from django_seed import Seed
from faker import Faker
from django.contrib.admin.utils import flatten
from django.core.management.base import BaseCommand
from django.utils import timezone
from django.db.models import Count
from users.mo... | [
"sol35352000@gmail.com"
] | sol35352000@gmail.com |
60d915aacf5bb27433fa991ce2f4ff01a97940b8 | 40f6aa355384efd0eb05ccf91f832e5b2aaa10bc | /mingw32/bin/gtester-report-script.py | ec1fefeae3480add88d609d268018c2bf5eaddf9 | [] | no_license | Persimmon-Consulting/git-sdk-32 | efd764dd562d8ef0c13558d5fd3111fa4d2723a5 | 5a2146abed2bd6a20f82e28e96f815ca8c95e60c | refs/heads/main | 2023-02-25T08:15:00.190961 | 2021-02-01T03:13:50 | 2021-02-01T03:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,114 | py | #!C:/git-sdk-32-ci/mingw32/bin/python3.exe
# GLib Testing Framework Utility -*- Mode: python; -*-
# Copyright (C) 2007 Imendio AB
# Authors: Tim Janik
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Softw... | [
"ci@git-for-windows.build"
] | ci@git-for-windows.build |
0285552898e2f3c4ef99eed1b5f9c01d312dad95 | 5c41836471e08252f11bc51ce54e4d449f6a4f88 | /cajas/migrations/0004_auto_20180807_1115.py | b0877a004b33455f8b8122267004dd4dcc2bc3f3 | [] | no_license | wahello/dr_amor_app | 1e9be88681d94bda5425d006a769fd3c55edbadb | 3604f7992df97e981f6f72fd844b58186ebed6ef | refs/heads/master | 2020-04-27T10:46:46.453354 | 2019-02-25T04:50:34 | 2019-02-25T04:50:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.0.2 on 2018-08-07 16:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cajas', '0003_auto_20180801_2003'),
]
operations = [
migrations.AlterField(
model_name='billetemoneda',
name='activo... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
fa7186feee14a377eaf7cacdfd7aafc2db7bccca | 6518c74441a68fc99b2b08423b5ea11480806499 | /tests/tracking/test_artifact_utils.py | 42df335dbdc72043cd5ea533d5a16b1c13f91b18 | [
"Apache-2.0"
] | permissive | criteo-forks/mlflow | da58e64d09700623810da63999a1aca81b435b90 | 499284d8dc9e9ec79d8d9dbd03c58d162a2b7eaa | refs/heads/master | 2023-04-14T17:59:29.997458 | 2022-01-11T09:50:26 | 2022-01-11T09:50:26 | 191,391,769 | 5 | 4 | Apache-2.0 | 2023-04-07T15:16:20 | 2019-06-11T14:44:00 | Python | UTF-8 | Python | false | false | 5,304 | py | import os
from unittest import mock
from unittest.mock import ANY
import mlflow
from mlflow.tracking.artifact_utils import (
_download_artifact_from_uri,
_upload_artifacts_to_databricks,
)
def test_artifact_can_be_downloaded_from_absolute_uri_successfully(tmpdir):
artifact_file_name = "artifact.txt"
... | [
"noreply@github.com"
] | criteo-forks.noreply@github.com |
df611eb84cc4a732b0e4702ae54d667788b7c362 | 9eef3e4cf39a659268694cf08a4a799af8fb13e2 | /inference/surrogate/nn_surrogate/learning/training.py | 313ed4ae3a7b98e3561490f4cf3964ce074c4d2c | [] | no_license | cselab/tRBC-UQ | c30ec370939b949c989d2e9cd30137073b53e7d2 | cd7711b76c76e86bc6382914111f4fa42aa78f2c | refs/heads/master | 2023-04-18T03:06:49.175259 | 2022-10-25T15:45:07 | 2022-10-25T15:45:07 | 483,407,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,563 | py | #!/usr/bin/env python
from copy import deepcopy
import torch
from torch.utils.data import DataLoader
def train_model(model,
data_loader: DataLoader,
x_valid: torch.tensor,
y_valid: torch.tensor,
criterion = torch.nn.MSELoss(),
lr=0.1,
... | [
"lucas.amoudruz@wanadoo.fr"
] | lucas.amoudruz@wanadoo.fr |
4d708ea3bd225f0c0c2dc484df2259a106ba8471 | f0fe4f17b5bbc374656be95c5b02ba7dd8e7ec6d | /all_functions/linux server/python GUI/menus/popupMenu.py | 1f03b6eadd92ccda984447a8fd4cfb671036029d | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | Heroku-elasa/heroku-buildpack-python-ieee-new | f46a909ebc524da07f8e15c70145d1fe3dbc649b | 06ec2fda04d9e478ed2506400e460489b0ca91ab | refs/heads/master | 2022-12-10T13:14:40.742661 | 2020-01-29T14:14:10 | 2020-01-29T14:14:10 | 60,902,385 | 0 | 0 | MIT | 2022-12-07T23:34:36 | 2016-06-11T10:36:10 | Python | UTF-8 | Python | false | false | 2,177 | py | # submenu.py
import wx
########################################################################
class MyForm(wx.Frame):
""""""
#----------------------------------------------------------------------
def __init__(self):
"""Constructor"""
wx.Frame.__init__(self, None, title="Popup Menu Tutor... | [
"soheil_paper@yahoo.com"
] | soheil_paper@yahoo.com |
67b110211c48f58f63f581bf59716e00f685a415 | c4a01824e750f7a710fa5488128ec2694ad3f585 | /tensorflow_projects/ML_python_ch10.py | 7234eda5fa0583c6d53b2475df4fed0202f35a3e | [] | no_license | karsevar/tensorflow_projects | 4887391046c1bfc124a07a4f8599c8ef0b41face | 97d093f4dfeea83185c92d4cbf73d8b1c28cbacf | refs/heads/master | 2020-03-28T18:13:49.562167 | 2018-09-15T02:44:53 | 2018-09-15T02:44:53 | 148,862,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,173 | py | ###Hands on machine learning with tensorflow and scikit learn:
###Chapter 10 Introduction to Artificial Neural Networks
##The Perceptron:
#The Perceptron is one of the simplest ANN architectures. It is based on a slightly
#different artificial neuron called a linear threshold unit: The inputs
#and output are now numbe... | [
"masonkarsevar@gmail.com"
] | masonkarsevar@gmail.com |
a47695bab212efdb53838f47f47917c0959cdcb5 | 216da5e56b0d9139e220c423abb90ccf8a293ab6 | /colossalai/nn/layer/parallel_3d/_vit.py | ffe7a146af714eac4f707f6f443ebe65e2d6bca5 | [
"Apache-2.0"
] | permissive | hierarchyJK/ColossalAI | 0cb88eb6b238553bdd86b773d916d792086e219c | 0aa07e600c7119498d3a49492c9cebcdbe3e89a3 | refs/heads/main | 2023-08-25T17:22:24.620883 | 2021-11-04T06:26:28 | 2021-11-04T06:26:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,482 | py | import math
from typing import Tuple
import torch
import torch.distributed as dist
from colossalai.context import ParallelMode, seed
from colossalai.core import global_context as gpc
from colossalai.registry import LAYERS
from colossalai.utils import checkpoint, get_current_device
from torch import Tensor, dtype, nn
... | [
"kurisusnowdeng@gmail.com"
] | kurisusnowdeng@gmail.com |
3f87c89ac30e6067d6d60050f99e7ddc4417d01a | 0435b6282cfc7cb27c5c5f2d7d2bcbf160ca8d7d | /Project_2/linear.py | 7c9b6e7ce2bec81bd7b80dcd64aeeecc566bf256 | [] | no_license | zx-joe/EPFL-Deep-Learning | 39d97b1d02c2d4b5fdee471ffe41ce06328e2f9a | 8d2b1aa94608e6cdc2dcc60fa6c5f4e3b7e69e36 | refs/heads/master | 2022-12-11T11:11:07.960851 | 2020-09-08T09:03:21 | 2020-09-08T09:03:21 | 190,944,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,972 | py | import torch
import math
from torch import Tensor, FloatTensor
import matplotlib.pyplot as plt
from module import Module
class Linear (Module) :
# one fully-connected layer
def __init__(self, in_dim, out_dim, eps=1., method='xavier'):
self.in_dim=in_dim
self.out_dim=out_dim
... | [
"xiao.zhou@epfl.ch"
] | xiao.zhou@epfl.ch |
cc29d5398e6d41ed19ef958c63351c898a368bb6 | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /desktop/core/ext-py3/boto-2.49.0/boto/configservice/exceptions.py | 58aa550f9cd9b165a42667b8d7135033fda20174 | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 2,528 | py | # Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# 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 ... | [
"noreply@github.com"
] | cloudera.noreply@github.com |
232ac4debdccb67b46d0441af9c4ba867812edf9 | 3539d0e3ddd7849a14876e95f0332428ec28ebf7 | /Data Scientist Career Path/11. Foundations of Machine Learning Supervised Learning/4. Classification/1. KNN/7. classify.py | 9009fe68fc2f9cd150796ea094d743cfcc322a16 | [
"MIT"
] | permissive | DincerDogan/Data-Science-Learning-Path | ff146de2cf4ebc5fedfa9377babf959208dfe7e6 | 2ba0f104bc67ab6ef0f8fb869aa12aa02f5f1efb | refs/heads/main | 2023-05-08T10:53:47.449974 | 2021-06-06T21:27:31 | 2021-06-06T21:27:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | from movies import movie_dataset, movie_labels, normalize_point
def distance(movie1, movie2):
squared_difference = 0
for i in range(len(movie1)):
squared_difference += (movie1[i] - movie2[i]) ** 2
final_distance = squared_difference ** 0.5
return final_distance
def classify(unknown, dataset, labels, k):
... | [
"aristyanto2320@gmail.com"
] | aristyanto2320@gmail.com |
aa73120bf09c8c6af195213100bedac6b5e7e642 | 54934cfe32ce5aa5c2e718b0c5c2afa4b458fe75 | /25ch/graph.py | 617c1d6ad6e8616a8e8c0e6ea2ca8c171b8b289c | [] | no_license | mccarvik/intro_to_algorithms | 46d0ecd20cc93445e0073eb0041d481a29322e82 | c2d41706150d2bb477220b6f929510c4fc4ba30b | refs/heads/master | 2021-04-12T12:25:14.083434 | 2019-11-09T05:26:28 | 2019-11-09T05:26:28 | 94,552,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,475 | py | from random import randint
import pdb
class Graph:
"""
Graph data structure.
"""
def __init__(self, fname = None, numVertices = None, numEdges = None, weightRange = None, directed = True):
"""
Generates a weighted graph.
"""
self.adjacent = {}
self.weight = {}
... | [
"ec2-user@ip-172-31-91-31.ec2.internal"
] | ec2-user@ip-172-31-91-31.ec2.internal |
01f71854fb9d777d10176477c617eccd675ac52c | a3f1e80179c23d9202d72b75dd37a49b44785f45 | /api/client/test/test_api_catalog_upload_item.py | f3b1cbbfc6b43d84d22085c8e5fe119b0da41801 | [
"Apache-2.0"
] | permissive | pvaneck/mlx | b1e82fae5ac8aaa1dddac23aaa38c46f6e6cfc27 | 6edaa0bd77787c56b737322a0c875ae30de6cd49 | refs/heads/main | 2023-05-14T06:08:38.404133 | 2021-05-04T01:41:11 | 2021-05-04T01:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | # Copyright 2021 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"82406273+mlx-bot@users.noreply.github.com"
] | 82406273+mlx-bot@users.noreply.github.com |
b75c4770199293de8d847af50386a6f6211d23b6 | 26c0f80688f75a188097a232c229a73c8e7cc6ed | /user/migrations/0031_alter_profile_zipcode.py | 26fb0ef6fbd873151e7d3d517d0ac2cbcf69cd3b | [] | no_license | creep1g/DjangoWebstore | 8207d7ea53c478fb7e5745e1c6ae6699102b5df5 | bd27340b86bf2289b8c14216462d932ccdf4986d | refs/heads/main | 2023-05-06T09:50:04.846489 | 2021-05-28T14:40:40 | 2021-05-28T14:40:40 | 371,730,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # Generated by Django 3.2 on 2021-05-12 15:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0030_merge_0024_alter_profile_card_cvc_0029_profile_city'),
]
operations = [
migrations.AlterField(
model_name='profile',
... | [
"thorgilshjalmarsson@gmail.com"
] | thorgilshjalmarsson@gmail.com |
d5b1789b3dd0c839b86dd726c2e71effbdd484ab | 371277a2586e85337cd50a0e2889a962b89fbca0 | /Semana 5/Subida de Archivos Flask - Portfolio/models/conocimiento.py | e4e67176849e22c32a4fec64a7569de0c8b0abe9 | [] | no_license | Jesuscueva/Virtual-Back-5 | eca62561f19a3028880e3a68868ff4f1c271d579 | 2f4557a6cdae91c9fd4f22103b5bdd473845d5a4 | refs/heads/main | 2023-04-02T13:47:58.161874 | 2021-04-10T02:09:01 | 2021-04-10T02:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | from config.base_datos import bd
from sqlalchemy import Column, types
from sqlalchemy.schema import ForeignKey
class ConocimientoModel(bd.Model):
__tablename__ = 't_conocimiento'
conocimientoId = Column(
name='conocimiento_id',
type_=types.Integer,
primary_key=True,
unique=True,... | [
"ederiveroman@gmail.com"
] | ederiveroman@gmail.com |
6648dc83958d98e09181be589c965e5d5083dbc0 | e2604baf3baddbbebf8597c7a3a76bac988efb41 | /venv/bin/wsdump.py | 6f6c90fbda8537d5bc52a71ac71732e9a1879bcb | [] | no_license | Surajgupta5/Django-WIth-Docker | 2fe1037451c113feba72c50d5425d4461c2f40be | ca879e43af043dccba6b325f89ac3c6f495dbe56 | refs/heads/master | 2022-07-19T18:55:48.243626 | 2020-05-11T05:53:52 | 2020-05-11T05:53:52 | 262,951,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,437 | py | #!/home/workspace/project2/venv/bin/python
import argparse
import code
import sys
import threading
import time
import ssl
import gzip
import zlib
import six
from six.moves.urllib.parse import urlparse
import websocket
try:
import readline
except ImportError:
pass
def get_encoding():
encoding = getattr... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
7a5019f032d3564ba4d7d1adff38dcfc7b6dad35 | d109b64bfa8c80a6ec7d647beeadf9fe1c667fac | /class1101/LED11.py | ef6615d3a9cc7c3e69773a9d62dd8e9899f26d39 | [] | no_license | jumbokh/micropython_class | d34dd0a2be39d421d3bbf31dbb7bfd39b5f6ac6f | 950be81582dba970e9c982e2e06fa21d9e9a0fdd | refs/heads/master | 2022-10-10T22:27:02.759185 | 2022-10-01T14:44:31 | 2022-10-01T14:44:31 | 173,898,623 | 4 | 3 | null | 2020-03-31T09:57:23 | 2019-03-05T07:40:38 | Jupyter Notebook | UTF-8 | Python | false | false | 160 | py | from machine import Pin
import utime
LED = None
LED = Pin(11, Pin.OUT)
while True:
LED.value(0)
utime.sleep(1)
LED.value(1)
utime.sleep(1) | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
225cf46464767cc87e3de5acdd111b3d2d50c482 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2594/60640/267498.py | 06ef98d3317b58f2f24605f47cf036c4eaa392d4 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | """
O(N)
"""
t = int(input())
for i in range(t):
inp = list(input())
set_inp = list(set(inp))
if len(set_inp) == len(inp):
print(-1)
else:
MAX_CHAR = 256
# 记录每个字符的位置,-1表示从未出现过
firstIndex = [-1 for x in range(MAX_CHAR)]
res = 0
for j in range(len(inp)):
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0ba65146cf6659db44dd47b906d4f6f8ea99fa48 | 6e800b3513537622df14bb598abe9c051116106c | /51-100/088MergeEasy.py | 14ead1c1a42033d242f68373f994af50d34f3ddf | [] | no_license | Huxhh/LeetCodePy | fd72f03193d1f0b58c44bffc46a9a59ba9714215 | 6a99e84c5742ca68012b14da362f6c3255e10b21 | refs/heads/master | 2023-06-09T09:23:54.209025 | 2023-05-31T16:29:03 | 2023-05-31T16:29:03 | 148,866,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | # coding=utf-8
def merge(nums1, m, nums2, n):
index = m + n - 1
x = m - 1
y = n - 1
while True:
if x < 0 and y < 0:
break
if x >= 0 and y >= 0:
if nums1[x] >= nums2[y]:
nums1[index] = nums1[x]
x -= 1
else:
... | [
"563255387@qq.com"
] | 563255387@qq.com |
c6f80b6fcff9d820146a6c798e6abee898629364 | 4fb5eb0a9a24fa5c112a4ebc854ee2604b04adda | /python/oanda/models/calculated_trade_state.py | 996c9bbd4d0e98b92e6550ccd12dbbf12aedeb73 | [
"MIT"
] | permissive | KoenBal/OANDA_V20_Client | ed4c182076db62ecf7a216c3e3246ae682300e94 | e67b9dbaddff6ed23e355d3ce7f9c9972799c702 | refs/heads/master | 2020-03-27T20:42:25.777471 | 2019-12-02T15:44:06 | 2019-12-02T15:44:06 | 147,088,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,967 | py | # coding: utf-8
"""
OANDA v20 REST API
The full OANDA v20 REST API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more. To authenticate use the string 'Bearer ' followed by the token which can be obtained at https://www.oanda.com/demo-account/tpa/perso... | [
"koen.bal@gmail.com"
] | koen.bal@gmail.com |
018ee3bc438ee98a5db180f60d32d8fc7b89183b | 3f9ce8ee23132e3c240fa86b4467888efaea00dc | /media/base.py | 366c209575111ddc6398c50b8d62c45247976401 | [] | no_license | ShawnYi5/logic_service | 700263a027c7639dc4a396a6fd118499160c5db5 | 868329cbdb94718316db6a8b633f623183dc55b5 | refs/heads/master | 2021-06-17T13:33:45.314931 | 2019-08-22T02:59:59 | 2019-08-22T02:59:59 | 203,698,877 | 0 | 0 | null | 2021-04-30T20:53:13 | 2019-08-22T02:25:03 | Python | UTF-8 | Python | false | false | 33,770 | py | import threading
import xlogging
import os
import datetime
import json
import copy
import uuid
import shutil
import sys
import collections
import time
import errno
try:
from . import tape_librarian
from .models import MediaTaskRecord
except Exception:
import tape_librarian
from models import MediaTaskR... | [
"yi.shihong@aliyun.com"
] | yi.shihong@aliyun.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.