blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6eeced6d1506a1def659d8582180f495fff68a7f | 50402cc4388dfee3a9dbe9e121ef217759ebdba8 | /etc/MOPSO-ZDT2/ZDT2-1.py | d0f2faf6d992bb8b09ed659299c095a99a98486a | [] | no_license | dqyi11/SVNBackup | bd46a69ec55e3a4f981a9bca4c8340944d8d5886 | 9ad38e38453ef8539011cf4d9a9c0a363e668759 | refs/heads/master | 2020-03-26T12:15:01.155873 | 2015-12-10T01:11:36 | 2015-12-10T01:11:36 | 144,883,382 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | '''
Created on Jan 26, 2014
@author: daqing_yi
'''
if __name__ == '__main__':
from PerformanceAnalyzer import *;
import sys;
trial_time = 30;
figFolder = sys.path[0] + "\\zdt2";
caseName = "ZDT2";
fileList1 = [];
fileList2 = [];
fileList3 = [];
... | [
"walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39"
] | walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39 |
1511968638f2441910615d9b97b2c2629ea64078 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/resources/types/product_bidding_category_constant.py | 6aacc16b169b40875e5f6b751c1c07d2a833a97f | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,334 | 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
37a4bed3bf5ad368c0622bb623e70c8852cd6ba3 | c0239d75a8199ec84ad683f945c21785c1b59386 | /dingtalk/api/rest/CorpDingTaskCreateRequest.py | ebe77db44bea52c850f1888fb9ce57aede6aae7f | [] | no_license | luss613/oauth_dingtalk | 9f253a75ce914c577dbabfb84e97fd883e80e04b | 1e2554642d2b16c642a031670d08efa4a74e8252 | refs/heads/master | 2023-04-23T01:16:33.450821 | 2020-06-18T08:22:57 | 2020-06-18T08:22:57 | 264,966,287 | 1 | 1 | null | 2020-06-18T08:31:24 | 2020-05-18T14:33:25 | Python | UTF-8 | Python | false | false | 332 | py | '''
Created by auto_sdk on 2018.07.25
'''
from dingtalk.api.base import RestApi
class CorpDingTaskCreateRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.task_send_v_o = None
def getHttpMethod(self):
return 'POST'
def getapiname(self):
return 'dingtalk.corp.ding.ta... | [
"paul.lu@belstar.com.cn"
] | paul.lu@belstar.com.cn |
2151cceac149e0509db788b0da44d68c4d1cd4cb | 3e24611b7315b5ad588b2128570f1341b9c968e8 | /Pseudo_Finder.py | 2d5054ccbc1b1928f339f8fd026680b8d0102af6 | [
"BSD-2-Clause"
] | permissive | bioCKO/lpp_Script | dc327be88c7d12243e25557f7da68d963917aa90 | 0cb2eedb48d4afa25abc2ed7231eb1fdd9baecc2 | refs/heads/master | 2022-02-27T12:35:05.979231 | 2019-08-27T05:56:33 | 2019-08-27T05:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,854 | py | #!/usr/bin/env python
#coding:utf-8
"""
Author: --<>
Purpose:
Created: 2015/10/19
"""
from lpp import *
import os
from optparse import OptionParser
def check_path( path ):
if not os.path.exists(path):
os.makedirs( path )
return os.path.abspath(path)+'/'
def GBLASTA( protein,assemblyre... | [
"409511038@qq.com"
] | 409511038@qq.com |
207c707157fd441286ecf9952084a3c11def6be1 | 9c8fdfa389eaaf2df4c8ba0e3072d94671b5a622 | /0163. Missing Ranges.py | dbf13be4a24913568795bb380bbbac50fd487f69 | [] | no_license | aidardarmesh/leetcode2 | 41b64695afa850f9cc7847158abb6f2e8dc9abcd | 4cf03307c5caeccaa87ccce249322bd02397f489 | refs/heads/master | 2023-02-27T11:22:09.803298 | 2021-02-07T06:47:35 | 2021-02-07T06:47:35 | 264,491,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | from typing import *
class Solution:
def findMissingRanges(self, nums: List[int], lower: int, upper: int) -> List[str]:
res = []
nums = [lower-1] + nums + [upper+1]
for i in range(len(nums)-1):
delta = nums[i+1] - nums[i]
if delta == 2:
... | [
"darmesh.aidar@gmail.com"
] | darmesh.aidar@gmail.com |
06a768b10284ec7d0ca364d50ef7abfd9a2060ff | 358aaf68f3c60ebbbd86b3bc66d4e6c098bcb39e | /fonts/wonder16_8x16.py | ff96b7c5170caead9f8c94e725a350e50d913b60 | [
"MIT"
] | permissive | ccccmagicboy/st7735_mpy | d2de0046abd81978d5176dace45a40758377af82 | b15f1bde69fbe6e0eb4931c57e71c136d8e7f024 | refs/heads/master | 2022-08-28T23:18:04.353733 | 2020-05-28T04:19:21 | 2020-05-28T04:19:21 | 254,869,035 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,756 | py | """converted from ..\fonts\WONDER16__8x16.bin """
WIDTH = 8
HEIGHT = 16
FIRST = 0x20
LAST = 0x7f
_FONT =\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x18\x3c\x3c\x3c\x3c\x18\x18\x00\x18\x18\x00\x00\x00\x00'\
b'\x00\x36\x36\x36\x36\x14\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\... | [
"cuiwei_cv@163.com"
] | cuiwei_cv@163.com |
4a84f62d878637adbdc7231f34f39011cb2eb011 | 5563fc38a479bf31b158e22ad381bcc1ef6677df | /triangles.py | cac783538a7e501568406903122530725b621395 | [] | no_license | MonRes/tester_school_day5 | e6a1d84bc32342e0e03061208458581ac4357f59 | 985fdb344bf7009c4ba3cd50910ba6b9b9fa172e | refs/heads/master | 2020-03-19T05:13:38.891646 | 2018-06-03T14:30:07 | 2018-06-03T14:30:07 | 135,911,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | a = 2
b = 4
c = 4
if a>0 and b>0 and c>0:
if a + b > c and a + c > b and b + c > a:
print ("da się utworzyć trójkąt")
else:
print ("nie da się")
else:
print("nie da się")
#lub preferowana wersja
if a <= 0 or b <= 0 or c <= 0:
print ('nie da się utworzyć trójkąta - któras długość jest ... | [
"Restek87@gmail.com"
] | Restek87@gmail.com |
38bca89d76a9af6298b42dea1ea91f8d1a32682f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_starriest.py | b761053999a8675654b8264719f4395358c732c9 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
#calss header
class _STARRIEST():
def __init__(self,):
self.name = "STARRIEST"
self.definitions = starry
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['starry']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2a2b3521345749ce428ed48884a780c98dae6414 | eb19175c18053e5d414b4f6442bdfd0f9f97e24d | /graphene/contrib/django/fields.py | ba47047e1fdf7326bacd6da7cfc98592cf5da2b6 | [
"MIT"
] | permissive | jhgg/graphene | 6c4c5a64b7b0f39c8f6b32d17f62e1c31ca03825 | 67904e8329de3d69fec8c82ba8c3b4fe598afa8e | refs/heads/master | 2020-12-25T21:23:22.556227 | 2015-10-15T19:56:40 | 2015-10-15T19:56:40 | 43,073,008 | 1 | 0 | null | 2015-09-24T14:47:19 | 2015-09-24T14:47:19 | null | UTF-8 | Python | false | false | 3,071 | py | from graphene.core.fields import (
ListField
)
from graphene import relay
from graphene.core.fields import Field, LazyField
from graphene.utils import cached_property, memoize, LazyMap
from graphene.relay.types import BaseNode
from django.db.models.query import QuerySet
from django.db.models.manager import Manag... | [
"me@syrusakbary.com"
] | me@syrusakbary.com |
8278b2891590710961bc86a4918e67d99a0fd397 | 7dc4413967a57c95bda3037154d151190a9309a3 | /django/mysite/mysite/ilib.py | a6d101b8121a4f3fce0e90b946e21d9a56f0aac0 | [] | no_license | connectthefuture/PythonCode | de0e74d81ef46ab34144172588455964d75d6648 | 01bb8c8052c2d89f0aed881f3ae886c8d04f1655 | refs/heads/master | 2021-05-14T23:31:26.334953 | 2016-05-21T13:04:34 | 2016-05-21T13:04:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | import re
import cStringIO
from django.http import HttpRequest
class DynamicFormException(Exception):
pass
class DynamicForm:
def __init__(self,):
self.fielddesc = []
# property, max_length, pattern, enum
def add(self, name, ** kwargs):
self.fielddesc.append((name, kwargs))
def v... | [
"hizhouhan@gmail.com"
] | hizhouhan@gmail.com |
3e013ccefdef52f15ef3f49e35457dfbaad52bc4 | be0898ceaee2a7758ffe0365b976f597b2ad26dd | /rls/common/recorder.py | 15420a8f27c34b97cd49f7aeb8b188faf7054628 | [
"Apache-2.0"
] | permissive | violet712/RLs | 1edaa6427108e3e36d513cb6038be771837ecca4 | 25cc97c96cbb19fe859c9387b7547cbada2c89f2 | refs/heads/master | 2023-08-25T12:04:24.174034 | 2021-10-03T15:37:32 | 2021-10-03T15:37:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,179 | py | from abc import ABC, abstractmethod
from collections import defaultdict
from copy import deepcopy
from typing import Dict
import numpy as np
from rls.utils.np_utils import arrprint
class Recoder(ABC):
def __init__(self):
pass
@abstractmethod
def episode_reset(self):
pass
@abstract... | [
"keavnn.wjs@gmail.com"
] | keavnn.wjs@gmail.com |
5932b28ef3e56a2c7b55c65e689ac09cb368b2aa | 72a03df85a6b1b06148338b9119b0b25d4fca164 | /goods/migrations/0008_auto_20191022_0228.py | 0a43eb86b65337692f50444b6527fb7210f08651 | [] | no_license | zeetec20/django-EComerce | f60bcc73ebb8d88ca06d5c8a77331681abc958ff | 5cf8e2aed3f9babe76043337a39f1dfbd0967916 | refs/heads/master | 2022-12-12T03:45:47.710718 | 2019-12-06T10:31:18 | 2019-12-06T10:31:18 | 216,199,678 | 1 | 0 | null | 2022-12-08T06:55:45 | 2019-10-19T12:02:33 | JavaScript | UTF-8 | Python | false | false | 337 | py | # Generated by Django 2.2.5 on 2019-10-22 02:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('goods', '0007_auto_20191018_2140'),
]
operations = [
migrations.RenameModel(
old_name='SemuaBarang',
new_name='SemuaBrand',
... | [
"jusles363@gmail.com"
] | jusles363@gmail.com |
3362db548136e579197bb364e3296c92ff316937 | 7aa9f79ce2dc379e1139ee5cdf545a1d8aba8f39 | /pygame_menu/examples/other/dynamic_widget_update.py | 5f12d964b99e455d1adc88bf769d1109ae870a2e | [
"MIT"
] | permissive | arpruss/pygame-menu | 7a755cad7bd36bda8750b6e820146a1037e5d73f | 25cefb5cfc60383544d704b83a32d43dfc621c23 | refs/heads/master | 2021-07-23T17:51:24.536494 | 2021-05-08T17:27:47 | 2021-05-08T17:27:47 | 248,988,541 | 0 | 0 | MIT | 2020-04-03T17:24:25 | 2020-03-21T14:05:48 | Python | UTF-8 | Python | false | false | 7,566 | py | """
pygame-menu
https://github.com/ppizarror/pygame-menu
EXAMPLE - DYNAMIC WIDGET UPDATE
Dynamically updates the widgets based on user events.
License:
-------------------------------------------------------------------------------
The MIT License (MIT)
Copyright 2017-2021 Pablo Pizarro R. @ppizarror
Permission is h... | [
"pablo.pizarro@ing.uchile.cl"
] | pablo.pizarro@ing.uchile.cl |
89280ef30b0eb48a4d06dff7f8128783ab05c9f9 | ce15a162d71254d86207b60ec6c1c75117f4fe7c | /NiaPy/algorithms/other/ts.py | dd8050570c98318c15e3f7ab10433f47ffb341f5 | [
"MIT"
] | permissive | sowmya-debug/NiaPy | eadfceabe939f08acdda87d0879abf72952d4cd1 | 1b8fa9949d238a01523a9822977e32dec4d86aa5 | refs/heads/master | 2022-04-18T05:20:05.140735 | 2020-04-18T16:35:30 | 2020-04-18T16:35:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,789 | py | # encoding=utf8
import logging
from numpy import random as rand
from NiaPy.algorithms.algorithm import Algorithm
logging.basicConfig()
logger = logging.getLogger('NiaPy.algorithms.other')
logger.setLevel('INFO')
__all__ = ['TabuSearch']
# TODO implement algorithm
def TabuSearchF(task, SR=None, TL_size=25, rnd=rand)... | [
"roxor1992@gmail.com"
] | roxor1992@gmail.com |
56085b3164c256eb63983021c193772e29f849b1 | de413f085b8c185ac4314a3c875bb2725ae1783a | /python/ThirteenTeV/Hadronizer/Hadronizer_TuneCP5_13TeV_SUSYGluGluToBBHToTauTau_M-90-amcatnlo-pythia8_cff.py | df7a7c19e1e37e8b2d8549bb7b5010c22c6b5bf8 | [] | no_license | good-soul/genproductions | 17b14eade1501207c0c4f389a2d3270239acf8a7 | 12bf6275067b332930e5fc7d65f1a05575d8d549 | refs/heads/master | 2021-04-18T18:48:18.575337 | 2018-03-24T13:29:56 | 2018-03-24T13:29:56 | 126,669,480 | 1 | 0 | null | 2018-03-25T06:04:53 | 2018-03-25T06:04:53 | null | UTF-8 | Python | false | false | 1,231 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import *
from Configuration.Generator.Pythia8aMCatNLOSettings_cfi import *
generator = cms.EDFilter("Pythia8HadronizerFilter",
maxEventsToPrint = ... | [
"perrozzi@cern.ch"
] | perrozzi@cern.ch |
b76ff91f6f8b759a8badf1e850fa18b4717619a1 | 7d122748fb075ffe16e82e3616cf5e5b60dee5bb | /custom/plm_date_bom-11.0.1.1/plm_date_bom/extended_class/mrp_bom_extension.py | ca28d1564b38428586c80c1d1071c319df543794 | [] | no_license | kulius/odoo11_uw | 95cd3b9cfdb18676e61d3565901f8ded0ee537d3 | a6f950a4c05c90ac5f53c1602ac2cda33faf41ee | refs/heads/master | 2021-08-07T07:53:15.585825 | 2018-07-23T03:33:20 | 2018-07-23T03:33:20 | 131,130,935 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 7,842 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OmniaSolutions, Your own solutions
# Copyright (C) 2010 OmniaSolutions (<http://omniasolutions.eu>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modif... | [
"kulius@gmail.com"
] | kulius@gmail.com |
2ffa97dd0cdc7445f2d8b22a44b850c4c88178f4 | c8ed3e3997475ffb27c82ee5902def1b7b6753d0 | /src/mdscripts/insertprotein.py | 012bb07cc6c6db5f117ba6f5578effb0c4a616b2 | [
"BSD-3-Clause"
] | permissive | awacha/mdscripts | b6174c0791ad50bfae1abacdae1f5865560bb889 | 831bda06557fa2d5f0899fc2f6552c9e49146cef | refs/heads/master | 2020-03-22T10:05:49.910710 | 2019-09-27T07:30:52 | 2019-09-27T07:30:52 | 74,377,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,762 | py | #!/usr/bin/env python
import argparse
import os
import re
import subprocess
import sys
def get_areaperlipid(areafile):
with open(areafile, 'rt', encoding='utf-8') as f:
total, upperleaflet, lowerleaflet = f.readline().split()
return float(total), float(upperleaflet), float(lowerleaflet)
def shrink(... | [
"awacha@gmail.com"
] | awacha@gmail.com |
f271b8ae35a2d87f5a6edfd3a2164f29bfca683e | 5781bda84c1af759e7b0284f0489d50e68044c89 | /app/model/network.py | 0fd902e34350e3e8251d9ad86c8abc47d54292d6 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | Stanford-PERTS/triton | 43306a582630ac6ef8d2d14c8b2a56279335a7fb | 5a4f401fc7019d59ce4c41eafa6c5bda822fae0a | refs/heads/master | 2022-10-17T11:51:10.220048 | 2020-06-14T17:37:54 | 2020-06-14T17:37:54 | 272,251,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,984 | py | """
Network
===========
Network, one-to-one with its team, with all classroom's students participating,
comprised of growth conditions.
"""
import logging
import string
from model import SqlModel, SqlField as Field
import mysql_connection
import os_random
class InvalidNetworkAssociation(Exception):
"""Provided ... | [
"chris@perts.net"
] | chris@perts.net |
46134b5c30ca0b532262f67addad92fdbd03a9eb | 1a1b7f607c5e0783fd1c98c8bcff6460e933f09a | /core/lib/password_lib.py | 6cb7556dd99b92dd6678be4ca31f740a93006b5b | [] | no_license | smrmohammadi/freeIBS | 14fb736fcadfaea24f0acdafeafd2425de893a2d | 7f612a559141622d5042614a62a2580a72a9479b | refs/heads/master | 2021-01-17T21:05:19.200916 | 2014-03-17T03:07:15 | 2014-03-17T03:07:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | py | import crypt
import random
import re
import types
import random
def getPasswords(_count,_type,_len):
"""
generate _count password of _type, and return a list of Password instances
_type(integer): password contains 1: alphabets only, 2: digits only, 3:alphabets + digits
"""
if _type==1:
chars="abcdefghij... | [
"farshad_kh"
] | farshad_kh |
7292c8b2f5ac0b7e96916f04b5a65237836d49e9 | 766ca0a00ad1df5163306d2d5a6f722bc67002d3 | /mailviews/tests/manage.py | 1549d37fb3ba441106c14033ab25cfa33112d0f1 | [
"Apache-2.0"
] | permissive | agroptima/django-mailviews | 8999746eff926661635160eee7b743331737f0bc | b75fabadad66a697592abb98a417f6efec55a88d | refs/heads/master | 2021-01-24T12:03:52.787509 | 2019-11-13T13:49:15 | 2019-11-13T13:49:15 | 123,114,820 | 1 | 0 | Apache-2.0 | 2019-11-13T13:49:17 | 2018-02-27T10:43:48 | Python | UTF-8 | Python | false | false | 396 | py | #!/usr/bin/env python
import logging
import sys
from mailviews.tests import settings
logging.basicConfig(level=logging.DEBUG)
if __name__ == "__main__":
try:
from django.core.management import execute_manager
execute_manager(settings)
except ImportError:
from django.core.management i... | [
"ted@kaemming.com"
] | ted@kaemming.com |
17c8fd8389e918362c50a26cc24b9369815a1a80 | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /examples/asr/asr_hybrid_transducer_ctc/speech_to_text_hybrid_rnnt_ctc_bpe.py | 2de150c7132853121bcc899167c134fc7ffb54d0 | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 3,432 | py | # Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
bece9a5234650c40fc71e3cf6f5df1b6f1412b8e | dcba6985b2b0d4743c2eefa44ecd0ff6dfb0e280 | /day7/note/demo_窗口滚动.py | ea934a97838f987855545fff7c0c918b1893d2a4 | [] | no_license | liyaozr/web_auto | 3c16da295ff5d6c33303f0c6176acf53f8a8cbd6 | 5a33365bfac3fc6afe07a93f9ef7935c30bc3f56 | refs/heads/master | 2021-04-13T21:49:29.677090 | 2020-04-11T07:22:17 | 2020-04-11T07:22:17 | 249,192,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Chrome(executable_path=r"d:\chromedriver.exe")
# 添加隐士等待
driver.implicitly_wait(30)
... | [
"lyz_fordream@163.com"
] | lyz_fordream@163.com |
e000bcf1bfe5e0f03b0cc8a584f325a2051a6376 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /neural/neural-005/neunet.py | 14c865c2367af10d1782c0e97d545ba6a6697690 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,780 | py | #!/usr/bin/env python
# ------------------------------------------------------------------------
# Neural network
import sys
from neulev import *
# ------------------------------------------------------------------------
# Globals
verbose = 0
pgdebug = 0
def pn(num):
return "%+0.3f" % num
# ----------------... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
003afde634b2dbdf9963104880cecb922fe56bfa | c6818c06aacb1eca1fffa8bbc51b6f3aac25c177 | /acre/settings.py | 039fa2a786d7f1bc584f1052a125472bea4cb0ef | [] | no_license | Acon94/ACRE | 2d0769780c9f81eba05085ffd8b0af225666d6de | 73622a6dc4ba0f30e8d3e90b02d23c8efd14a5e1 | refs/heads/master | 2022-08-02T02:07:53.004308 | 2020-05-29T15:25:50 | 2020-05-29T15:25:50 | 267,840,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,898 | py | """
Django settings for acre project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
from django.con... | [
"andrew@Andrews-MacBook-Pro.local"
] | andrew@Andrews-MacBook-Pro.local |
944ba56ff7aca83e2eb127f4da13c740715ee035 | f57e34d0a708ea1139f80f8e5b968c55f6fd2621 | /dassl/utils/logger.py | 9b37774ef48a52e330761d229098b3e3627aa44b | [
"MIT"
] | permissive | MohammadJavadD/Dassl.pytorch | bfdac8f28781af5f198eb7a1318043e04dc544d3 | 5e83fdce6fb51d8d4fbe0441a016eade2ebda423 | refs/heads/master | 2022-07-06T06:33:53.655489 | 2020-05-11T20:55:24 | 2020-05-11T20:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | import os
import sys
import time
import os.path as osp
from .tools import mkdir_if_missing
__all__ = ['Logger', 'setup_logger']
class Logger(object):
"""Write console output to external text file.
Imported from `<https://github.com/Cysu/open-reid/blob/master/reid/utils/logging.py>`_
Args:
... | [
"k.zhou@surrey.ac.uk"
] | k.zhou@surrey.ac.uk |
3b973ffb45eaa591cd1b658a60bc480604c2573e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2227/60668/288820.py | 84a8ef21d2e2f35a0dcb5b7d7fa5bc722b3f800e | [] | 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 | 448 | py | def nums_6_CodeSec(n,k):
seen = set()
ans = []
def dfs(node):
for x in map(str, range(k)):
nei = node + x
if nei not in seen:
seen.add(nei)
dfs(nei[1:])
ans.append(x)
dfs("0" * (n - 1))
if n == 1 and k == 2:
pri... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b37a8243749b1cbb1fb274960fb8cc5a20a84f1b | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/14195637.py | 19a1f73398d726879f251757b9c3658f6d49a240 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/14195637.py generated: Wed, 25 Jan 2017 15:25:33
#
# Event Type: 14195637
#
# ASCII decay Descriptor: [B_c+ => (D*_s+ => (D_s+ -> K- K+ pi+) gamma) (D*(2007)~0 => (D~0 -> K+ pi-) pi0) ]CC
#
from Configurables import Generation
Generation().EventType = ... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
d78dae8aa293992ac876084340178bc18620f645 | 9b617418cfadc6b6deb10c675723485ae49fb221 | /code/resources/users.py | 86659c752c29c1bed0415d2aab2b25db6338b7ac | [
"MIT"
] | permissive | borko81/flask_udemy | 455a555b3892da6d9fee04ba53ea2408dfe23f2b | e8f9192feda1458d1ea44b62d2485e911f16acef | refs/heads/main | 2023-08-07T14:33:47.697962 | 2021-10-08T14:01:13 | 2021-10-08T14:01:13 | 411,242,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | import sqlite3
from flask_restful import Resource, reqparse
from models.user import UserModel
class UserRegister(Resource):
"""
Register class, usinf reqparse from flask_restful
:validation from unique username in form and db too
"""
parser = reqparse.RequestParser()
parser.add_argu... | [
"bstoilov81@gmail.com"
] | bstoilov81@gmail.com |
64183ac4cc465a42829ec69748f9176d1f426207 | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Algorithms/Match makers/test.py | e518e3812e5879cbd0b0cddd6bd1e2e5c19ffda8 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 606 | py | import io
import unittest
from contextlib import redirect_stdout
from unittest.mock import patch
class TestQ(unittest.TestCase):
@patch('builtins.input', side_effect=[
'2',
'4',
'1 6 9 12',
'4 12 3 9',
'4',
'2 2 2 2',
'2 2 2 2',
])
def test_case_0(se... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
2590c023d108e24d8b87283bf38c9ad7246bd708 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_testifying.py | 54d585fa8f0db28a02a10621604b7a87579812f2 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py |
from xai.brain.wordbase.verbs._testify import _TESTIFY
#calss header
class _TESTIFYING(_TESTIFY, ):
def __init__(self,):
_TESTIFY.__init__(self)
self.name = "TESTIFYING"
self.specie = 'verbs'
self.basic = "testify"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
072e40a242d378c1a17f9f2a3f62a08178177a55 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_202/64.py | 65c7985126860c68e994a7482a5134f0be8da6ab | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,998 | py | q = int(input())
for case in range(1,q+1):
n,m = [int(x) for x in input().split()]
cols = [0]*n
rows = [0]*n
firstrow_plus = [0]*n
orgmatrix = [[0]*n for _ in range(n)]
matrix = [[0]*n for _ in range(n)]
backwards = [0]*(2*n-1)
forwards = [0]*(2*n-1)
points = 0
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
1cc1d640e21ab0f100c76bc623beac7409d3eb4f | 2b01f8f7ee7e841f64629f88896478d3b4221480 | /flatpages_i18n/middleware.py | 70654537b556fffc508c62e7155e802524587996 | [
"BSD-3-Clause"
] | permissive | PragmaticMates/django-flatpages-i18n | fde6821774419c1a3cbafe317c5c3c91730339a5 | 434903e60518e0c1a54f0aea24e1d3e8eb0449bd | refs/heads/master | 2023-06-09T18:13:11.192887 | 2023-06-05T07:32:10 | 2023-06-05T07:32:10 | 6,462,420 | 16 | 19 | BSD-3-Clause | 2019-07-12T07:03:15 | 2012-10-30T18:40:25 | Python | UTF-8 | Python | false | false | 817 | py | # from django.conf import settings
# from django.http import Http404
# from django.utils.deprecation import MiddlewareMixin
#
# from flatpages_i18n.views import flatpage
#
#
# class FlatpageFallbackMiddleware(MiddlewareMixin):
# def process_response(self, request, response):
# if response.status_code != 404... | [
"erik.telepovsky@gmail.com"
] | erik.telepovsky@gmail.com |
0feb26db0b3e1ad462a9a055b1f25937d285fe82 | 3f327d2654b85b922909925b9f475315d78f4652 | /Backend/newsapi/lib/python2.7/site-packages/newsapi/sources.py | a2865f6348bc04ca28a13159efcf5462a1d5167c | [
"MIT"
] | permissive | brianwang1217/SelfImprovementWebApp | 8db45914027537aee9614f9d218c93cc08dc90f8 | 7892fc4ee5434307b74b14257b29a5f05a0a0dd7 | refs/heads/master | 2022-12-13T15:01:08.595735 | 2018-06-23T04:46:06 | 2018-06-23T04:46:06 | 137,548,289 | 1 | 1 | MIT | 2022-05-25T01:28:29 | 2018-06-16T02:48:52 | Python | UTF-8 | Python | false | false | 4,265 | py | from newsapi.base_news import BaseNews
class Sources(BaseNews):
def __init__(self, API_KEY):
super(Sources, self).__init__(API_KEY)
self.endpoint = "https://newsapi.org/v1/sources"
self.sources = []
self.sources_base_info = {}
self.sources_id_info = {}
sel... | [
"talk2shreyas@gmail.com"
] | talk2shreyas@gmail.com |
c8742c451b8f04a368affdf326423791bc8e12b1 | 92237641f61e9b35ff6af6294153a75074757bec | /Algorithm/programmers/lv1_약수의 합.py | efcd4bdb217f84c5119f9de34b91c09be9bd7a7f | [] | no_license | taepd/study | 8ded115765c4f804813e255d9272b727bf41ec80 | 846d3f2a5a4100225b750f00f992a640e9287d9c | refs/heads/master | 2023-03-08T13:56:57.366577 | 2022-05-08T15:24:35 | 2022-05-08T15:24:35 | 245,838,600 | 0 | 1 | null | 2023-03-05T23:54:41 | 2020-03-08T15:25:15 | JavaScript | UTF-8 | Python | false | false | 513 | py | """
문제 설명
정수 n을 입력받아 n의 약수를 모두 더한 값을 리턴하는 함수, solution을 완성해주세요.
제한 사항
n은 0 이상 3000이하인 정수입니다.
입출력 예
n return
12 28
5 6
입출력 예 설명
입출력 예 #1
12의 약수는 1, 2, 3, 4, 6, 12입니다. 이를 모두 더하면 28입니다.
입출력 예 #2
5의 약수는 1, 5입니다. 이를 모두 더하면 6입니다.
"""
def solution(n):
return sum([i for i in range(1, n//2+1) if n % i == 0]) + n | [
"taepd1@gmail.com"
] | taepd1@gmail.com |
79a1d1b99544c0df6ff3fa556be040c933b22cd8 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /4AtqpqKdXAFofa566_16.py | ea18541665d34bf4ba2b25fbe302826b6e09da0e | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | """
Create a function that takes in a _number as a string_ `n` and returns the
number **without trailing and leading zeros**.
* **Trailing Zeros** are the zeros _after_ a decimal point which _don't affect the value_ (e.g. the _last three_ zeros in `3.4000` and `3.04000`).
* **Leading Zeros** are the zeros _be... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f36ffffea1f4374ec233376ec27a22b0aaeb5bf5 | 43c24c890221d6c98e4a45cd63dba4f1aa859f55 | /test/tests/thread_contention_test.py | 518e5dcd40cd8122d86907338a77f8d5d156ebea | [
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | jmgc/pyston | c8e4df03c33c6b81d20b7d51a781d9e10148238e | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | refs/heads/master | 2020-12-11T07:51:58.968440 | 2020-09-11T14:38:38 | 2020-09-11T14:38:38 | 39,242,644 | 0 | 0 | NOASSERTION | 2020-09-11T14:38:39 | 2015-07-17T08:09:31 | Python | UTF-8 | Python | false | false | 416 | py | from thread import start_new_thread
import time
work = []
done = []
def run(num):
for i in xrange(num):
t = work.pop()
work.append(t - 1)
done.append(num)
print "starting!"
nthreads = 2
N = 100000
for i in xrange(nthreads):
work.append(N)
for i in xrange(nthreads):
t = start_new_threa... | [
"kmod@dropbox.com"
] | kmod@dropbox.com |
227c8e7d7c7faf708582ddde5050af8f34a85ecd | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_4/models/smtp_server_get_response.py | b9d7c1f33db6e8adf4bc96d6abeba9d4958fb2b7 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,221 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.4, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
dbe872211a4755d36304647f012be4e14b572c81 | 8da76aabcf9cfea3478f56037edbb5fa1513140b | /maisemapaikka/dev_jt_01/maisemapaikka/apps/geomaps/widgets.py | c1ab884dc936bd34d6cf3c3c038d530f9564201b | [] | no_license | mikanyman/.virtualenvs-legacy | 039479f31f2ca9f9a3d3544d8837429ddd0a7492 | 5486128b5b3b7ddb9ec81d43e3bb601a23b4025a | refs/heads/master | 2020-12-31T07:10:07.018881 | 2017-02-01T02:16:55 | 2017-02-01T02:16:55 | 80,566,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | from django import forms
from django.db import models
from django.conf import settings
class LocationPickerWidget(forms.TextInput):
class Media:
css = {
'all': (
settings.ADMIN_MEDIA_PREFIX + 'css/location_picker.css',
)
}
js = (
'htt... | [
"mika.nyman@synapse-computing.com"
] | mika.nyman@synapse-computing.com |
46b43aae14e1edbb429984d0ea5f710a308d5c7d | 7433bb9a3e3a1ea89314c05a0ca22f52323eb33a | /task_LSTM_inbuild/step3_evaluate_line.py | a40d65169d18b78db2ed6db0a1619992e589b2ea | [
"Apache-2.0"
] | permissive | tianyunzqs/text_classifier_tasks | 685a70c70216865c28204d48bdbf9a1239edea86 | 444ac6676547f4e3ee0ccd5fb36439e8e02f56a9 | refs/heads/master | 2022-11-05T00:31:09.070088 | 2022-10-17T02:46:38 | 2022-10-17T02:46:38 | 175,388,072 | 10 | 6 | null | null | null | null | UTF-8 | Python | false | false | 3,879 | py | # -*- coding: utf-8 -*-
# @Time : 2019/7/26 10:18
# @Author : tianyunzqs
# @Description :
import os
import sys
import numpy as np
import tensorflow as tf
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from task_LSTM_inbuild.data_helper import Vocab, CategoryDict
from task_L... | [
"qszhu@fiberhome.com"
] | qszhu@fiberhome.com |
f9c790eb2cc47ba5039ad06c28c4aece60bbd206 | 8e0149f00f82f57216584b53180ec02870dee7e8 | /python/linked_list/heap/lc23.py | 80140fd3c24babfcf1832732796fa94aec1ba01e | [] | no_license | chao-ji/LeetCode | 5880e0fa91d84ad70b5abd47e24ac75646fdcdf9 | 69a960dd8f39e9c8435a3678852071e1085fcb72 | refs/heads/master | 2020-12-13T03:35:42.009204 | 2019-06-15T04:45:38 | 2019-06-15T04:45:38 | 51,043,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,748 | py | """23. Merge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.
Example:
Input:
[
1->4->5,
1->3->4,
2->6
]
Output: 1->1->2->3->4->4->5->6
"""
import heapq
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
#... | [
"chocobo1985@gmail.com"
] | chocobo1985@gmail.com |
e6cdba46aeece3e020f759b8414108b144310136 | 255dc7ff8fb676027021a674bd624fb6587fa2f7 | /compiler/tests/22_sram_func_test.py | 3a7ff5a3e9521545a1be95c25171bfa119148a16 | [
"BSD-3-Clause"
] | permissive | orbe7947/OpenRAM | 80b40462fb7c1044fdacf34908432820b71f6092 | 29c5ab48f0a82972337f4b17ee90695ff1f8f825 | refs/heads/master | 2021-08-16T11:35:10.528368 | 2017-11-14T21:24:14 | 2017-11-14T21:24:14 | 110,760,794 | 0 | 0 | null | 2017-11-15T00:14:12 | 2017-11-15T00:14:12 | null | UTF-8 | Python | false | false | 1,788 | py | #!/usr/bin/env python2.7
"""
Run a regresion test on various srams
"""
import unittest
from testutils import header
import sys,os
sys.path.append(os.path.join(sys.path[0],".."))
import globals
import debug
import calibre
OPTS = globals.get_opts()
#@unittest.skip("SKIPPING 21_timing_sram_test")
class sram_func_test... | [
"mrg@ucsc.edu"
] | mrg@ucsc.edu |
1da2e624120594b03a58fd0253262dd9d3ce45bb | cb836bde47c790c7ad990d44d86d60c13f43a2a0 | /markdown_it/token.py | 0c03ac1fc8f64c41339533f0ce672a0994fe315f | [
"MIT"
] | permissive | iooxa/markdown-it-py | 133028a981af715ce244554e26b92b16fc4443ac | 21837dfa0ce9be249de372bb10733a534f8e0a50 | refs/heads/master | 2022-11-19T14:23:23.618106 | 2020-07-20T15:57:16 | 2020-07-20T15:57:16 | 281,160,226 | 0 | 0 | MIT | 2020-07-20T15:57:17 | 2020-07-20T15:50:02 | null | UTF-8 | Python | false | false | 5,690 | py | from typing import List, Optional, Tuple, Union
import attr
@attr.s(slots=True)
class Token:
# Type of the token (string, e.g. "paragraph_open")
type: str = attr.ib()
# html tag name, e.g. "p"
tag: str = attr.ib()
# Level change (number in {-1, 0, 1} set), where:
# - `1` means the tag is ope... | [
"chrisj_sewell@hotmail.com"
] | chrisj_sewell@hotmail.com |
b6723850310e650934ca18886791a71dee495084 | 2fd8f1cafdabfdf9507a1a7e232e13ac7756767f | /data/data_models.py | ca393ea6ffc156bcc2ffa70f40a7fab6b96bb7a7 | [] | no_license | dewmal/fx_agent_sma | 34f3571fe37bfc18c72b8f9ec101dbbe5610a0bb | 7ecec6ab432d8d43daa6d9cb4a838b1ade1e0c13 | refs/heads/master | 2020-06-16T10:16:20.359791 | 2019-07-17T06:09:52 | 2019-07-17T06:09:52 | 195,536,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,508 | py | import datetime
from utils import round_time
class TickStream:
__type__ = "tick_stream"
symbol: str
ask: float
bid: float
quote: float
epoch: int
value: float
def __init__(self, tickId, symbol, ask, bid, quote, epoch, version="1.0") -> None:
super().__init__()
self.ti... | [
"dewmalnilanka@gmail.com"
] | dewmalnilanka@gmail.com |
3d817787469b94efb5701656e528c260991baace | d5751e2f2b2128079d3473cf14b02c67515dba72 | /flask_fundamentals/2.form_test/server.py | e5183bece53a77565141c9f57f8e5f49966d5057 | [] | no_license | seymakara/dojo_python | 814ed49b561703e3a993a1ade0f084c234e82b13 | ff8a56020d9ab337d930ec4ce4039f0bca2cfead | refs/heads/master | 2021-05-13T20:44:27.327035 | 2018-01-10T06:32:27 | 2018-01-10T06:32:27 | 116,917,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from flask import Flask, render_template, request, redirect
app = Flask(__name__)
# our index route will handle rendering our form
@app.route('/')
def index():
return render_template("index.html")
# this route will handle our form submission
# notice how we defined which HTTP methods are allowed by this route
@app.... | [
"seymakara88@gmail.com"
] | seymakara88@gmail.com |
6aaab26b75b53923e8a74876b16f34d30fbe0c44 | 3c5657492c401994eaaebcf16c2b13a5ebc0efd8 | /cresthh/tools/reduceSWW.py | 768a6bf1a89c6bb4c6c7d17e1ebe895143fd9d7a | [] | no_license | peggypan0411/CREST-iMAP | 0b01d1123f7be7806971ead4835ea2e7f61f81a9 | b2d80e2c3eb3fb575c678915fd89a96bdb30dbde | refs/heads/master | 2023-07-16T08:11:26.736833 | 2021-04-14T21:44:02 | 2021-04-14T21:44:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,949 | py | #!/home/ZhiLi/CRESTHH/python2/bin/python2
'''
A command line tool to get reduced geotiffs quickly
__author__: Zhi Li
__Date__: 2021/02/07
'''
import argparse
import numpy as np
import sys
sys.path.append('/home/ZhiLi/CRESTHH')
from cresthh.anuga.file_conversion.sww2dem import sww2dem
from cresthh.anuga import SWW_plo... | [
"chrimerss@gmail.com"
] | chrimerss@gmail.com |
3622942b7c93de7b6819004d190c5034570c3137 | eb33957e7b140c762fb77e5c83e5bba14aaeb8d3 | /jam/server/api/v1/namespace.py | 67e81b1ea025c04385aaeeced47b442bdb4acd19 | [] | no_license | AndrewSallans/jamdb | 8a4a9d5ec03ca77bd0ad45404f8031b558898270 | 6eb4c0b465034e7ef5a648873be2353c4093c863 | refs/heads/develop | 2021-01-15T11:19:59.679368 | 2016-03-04T23:37:02 | 2016-03-04T23:37:02 | 53,345,931 | 0 | 0 | null | 2016-03-07T17:46:52 | 2016-03-07T17:46:49 | HTML | UTF-8 | Python | false | false | 2,996 | py | import operator
import functools
from jam import Q
from jam import NamespaceManager
from jam.auth import Permissions
from jam.server.api.v1.base import View
from jam.server.api.v1.base import Serializer
from jam.server.api.v1.base import Relationship
class NamespaceView(View):
name = 'namespace'
plural = 'n... | [
"chriskseto@gmail.com"
] | chriskseto@gmail.com |
cd94742c9c7694054d5b7b202660c0becf1c5052 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/1700.py | 4c068771cbd023f47f2d94b37f052921066dddfa | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | def data(filename):
fi = open(filename,'r')
o = open(filename+".out",'w')
tests = fi.readline().strip()
a = fi.readlines()
for i in range(0,int(tests)):
c,f,x = map(float,a[i].strip().split())
nf = 1
t1 = x/2
t2 = c/2+x/(2+nf*f)
while (t1-t2 > 10**-7... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
d2c0be537b266e7b741920df715f2b942cf343bb | 3437f523434b86af02476fc0056030a67feaa9a5 | /examples/mpc_linear_svm/launcher.py | d88a1d33341b60a05cf1faa29f11c82ceea9e982 | [
"MIT"
] | permissive | facebookresearch/CrypTen | 481d0bfc94582eedef8b3510d91fd6b3ce253097 | 99c3a046b705c9d69d7a10fcab59a444ffbee39a | refs/heads/main | 2023-09-04T21:10:29.331999 | 2023-08-25T22:11:00 | 2023-08-25T22:11:00 | 202,443,088 | 1,388 | 323 | MIT | 2023-09-01T16:34:22 | 2019-08-15T00:00:31 | Python | UTF-8 | Python | false | false | 2,518 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
To run mpc_linear_svm example in multiprocess mode:
$ python3 examples/mpc_linear_svm/launcher.py --multiprocess
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e9dbfe8104201e8d10606f7234b30f1427f85c8c | c39f999cae8825afe2cdf1518d93ba31bd4c0e95 | /PYME/DSView/LUT/__init__.py | ad67a04cf4d26dc2ca675547218211dd1692f45c | [] | no_license | WilliamRo/CLipPYME | 0b69860136a9b2533f2f29fc29408d7471cb934d | 6596167034c727ad7dad0a741dd59e0e48f6852a | refs/heads/master | 2023-05-11T09:50:58.605989 | 2023-05-09T02:17:47 | 2023-05-09T02:17:47 | 60,789,741 | 3 | 1 | null | 2016-06-17T08:52:44 | 2016-06-09T16:30:14 | Python | UTF-8 | Python | false | false | 1,089 | py | #!/usr/bin/python
##################
# __init__.py
#
# Copyright David Baddeley, 2009
# d.baddeley@auckland.ac.nz
#
# 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 Licen... | [
"willi4m@zju.edu.cn"
] | willi4m@zju.edu.cn |
333f6a2ec3a9229e86c9318beb30008c51908041 | 591a1a5b334efc878d890c2492a2f1b6cf475b6c | /fixJobAccountant.py | 41d6c79ffadfea61bdaa333e5338c42660fc5f43 | [] | no_license | amaltaro/ProductionTools | b827fa8a80006443b00004f90658791fdea4fc26 | df85a4d4ae35e4f4c7523fcba9b22a1300329e06 | refs/heads/master | 2023-06-08T22:59:19.377928 | 2023-05-24T18:04:26 | 2023-05-24T18:04:26 | 22,791,862 | 0 | 3 | null | 2021-03-22T11:41:18 | 2014-08-09T17:55:03 | Python | UTF-8 | Python | false | false | 2,519 | py | """
__fixJobAccountant.py__
Fixes Report.pkl files when JobAccountant crashes reporting that
TaskName does not exist in the FJR.
Created on Oct 15, 2014.
@author: amaltaro
"""
import sys, os, subprocess
import threading
import logging
import time
from pprint import pprint
from optparse import OptionParser
try:
f... | [
"alan.malta@cern.ch"
] | alan.malta@cern.ch |
38059ca498d3f9141b84156a522fd5bca676ddfa | 0afc72deeb8928e6d488a1c3cb762ed0c4bd73fc | /scripts/02.transform/02.encode.py | da3e9cc96bd537a4a9ab5f8a61a53ebb8d4cb6cf | [] | no_license | Asky-M/dscnf-06 | cb5cd4a402938bcc53723dbc7bbf4e95b548c0f0 | cbe021d568c94b14929759e905592a11cefc7626 | refs/heads/master | 2023-03-27T03:28:05.390087 | 2021-04-03T06:30:51 | 2021-04-03T06:30:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | # encode/decode base64 with codecs
import codecs
s = b"Satria Ady Pradana"
t = codecs.encode(s, "base64")
print(t)
u = codecs.decode(t, "base64")
print(u)
# encode/decode base64 with base64
import base64
s = b"Satria Ady Pradana"
t = base64.b64encode(s)
print(t)
u = base64.b64decode(t)
print(u)
# encode/decode... | [
"me@xathrya.id"
] | me@xathrya.id |
72abe96e55888b2f816aee1fbf0a969dc95b4989 | ba602dc67ad7bb50133aeb312f3c6c54627b3dec | /data/3919/AC_py/508160.py | e46139c365eab6e0455d028613d93c2cc248b297 | [] | no_license | Dearyyyyy/TCG | 0d21d89275906157372d775f33309ce337e6bc95 | 7b80de16de2d3f5d95a7c4ed95d45a9e38882e67 | refs/heads/master | 2020-12-27T23:19:44.845918 | 2020-02-04T01:59:23 | 2020-02-04T01:59:23 | 238,101,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # coding=utf-8
import sys
while True:
a,b,c=map(int,input().split())
if(a+b>c and a+c>b and b+c>a):
if a==b and b==c:
print("DB")
else:
if a==b or b==c:
print('DY')
else:
if b*b+c*c==a*a or a*a+c*c==b*b or a*a+b*b==c*c:
... | [
"543271544@qq.com"
] | 543271544@qq.com |
988e4a4ea56c347a5b6641d6283315ce241c7248 | 884a128552b5f7e698194de22e4a8b4fd43e5db6 | /setup.py | f89439a6f5392e8b10d0a0504621730a8a2d2e6d | [
"Apache-2.0"
] | permissive | naivenlp/naivenlp-legacy | b3057bdeb54bc54b1df3de8fd3eb5a1af909690b | dbe0d6ac3b422618fe41a763c256077b27f75347 | refs/heads/master | 2022-11-25T11:48:18.411506 | 2020-07-22T08:01:25 | 2020-07-22T08:01:25 | 269,890,191 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | import os
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="naivenlp",
version="0.0.9",
description="NLP toolkit, including tokenization, sequence tagging, etc.",
long_description=long_description,
long_description_content_type="text/mar... | [
"zhouyang.luo@gmail.com"
] | zhouyang.luo@gmail.com |
8353cc7bb8452e9ef9ae1467ef3f8ec6c9d9f34e | 2a24dba82767419cf7d2269875bf0a297f41580c | /vispy/app/backends/_pyside.py | 00949a4951a577f056a9c62b2874f44b3055f725 | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | shjoshi/vispy | 58b300d23486b7478b786977b3548dd7225de847 | 2f3d169aa60c738467e766c59096f51570483d6f | refs/heads/master | 2020-12-25T12:40:36.545768 | 2014-08-06T22:59:35 | 2014-08-06T22:59:35 | 22,704,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2014, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
""" PySide proxy backend for the qt backend.
"""
import sys
from .. import backends
try:
# Try importing
from PySide import QtGui, QtCore, QtOpenGL # noqa
except E... | [
"almar.klein@gmail.com"
] | almar.klein@gmail.com |
d33c3d0bc0f509999dd2ca1132e50bf6291c76f8 | 4ebdc7053d9341ce7ad45f1e859ff86ef1455177 | /52_global.py | e2b5ca2d678a6f222101e9a4cc221547301aa89d | [] | no_license | daikiante/python | 1f4d55e1fd04eef22702b364148b8e1a2beea2d3 | 9d604b8dcd9e3cbe8b4db24ef16c5c969f6f894f | refs/heads/master | 2020-09-17T00:14:24.034179 | 2019-12-02T09:03:25 | 2019-12-02T09:03:25 | 223,928,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | # global
'''
def関数の中(local)ではglobal変数は使えない。
global変数を使う場合はlocalの中でglobal変数宣言をして使う。
'''
name = 'lohit'
age = 20
def person():
global age
print('my age is',age)
per = 'lohit badiger'
print('my name is',per)
person()
print('global name are',name)
print('global age is',age)
# Exsample
num1 = 1... | [
"daikiante@gmail.com"
] | daikiante@gmail.com |
b113e7e6e71c42480977c18e82a7bf4d3ecbfc8a | 2e10314f0a6a32cbfdce6b80c7767b84de421741 | /精品真题/精品-one.py | e2135999ef9f92009ca10a79d4df38384cd13fdb | [] | no_license | tang1323/Ing_Interview | 06a9cb19c932b2852dd55655b0d46b814ffa9095 | a1068d3739d2088a2edcf8314e18659e0e9003f8 | refs/heads/master | 2023-04-06T14:17:37.757618 | 2021-04-14T14:14:01 | 2021-04-14T14:14:01 | 357,929,558 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py |
# def add_Run(L=None):
# if L is None:
# L = []
# L.append('Run')
# return L
# add_Run()
# add_Run()
# print(add_Run(['Lying']))
# ds = {'av':2, 'vr':4, 'ls':9, 'path':6}
# print(ds.popitem(), len(ds))
# with open('D:/Py-Project/Ing_Interview/精品真题/txt/a', 'r') as f:
# print(f.read().split(... | [
"1171242903@qq.com"
] | 1171242903@qq.com |
737ec987dfe8f44ec60ce95839fb21130c803793 | 2a1a175efc9c482db0e6d96569f92b9583990acc | /eventex/subscriptions/tests/test_view_new.py | 351daeb6ab3b8abda88f2861141510e7c1378d8c | [] | no_license | mazulo/wttd_eventex | 2e97e3724f2b8396b8cc73175d15defd09b4a86b | 691008562d2143cc57c8b4bb5042aa2c1fdc6602 | refs/heads/master | 2021-01-10T07:29:20.343157 | 2016-03-16T18:21:10 | 2016-03-16T18:21:10 | 48,304,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,017 | py | from django.core import mail
from django.test import TestCase
from django.shortcuts import resolve_url as r
from eventex.subscriptions.forms import SubscriptionForm
from eventex.subscriptions.models import Subscription
class SubscriptionsNewGet(TestCase):
def setUp(self):
self.resp = self.client.get(r('... | [
"pmazulo@gmail.com"
] | pmazulo@gmail.com |
327bf3ff951ee285a77e0a2dfa30a0a852ac1426 | cceb97ce3d74ac17090786bc65f7ed30e37ad929 | /server/newfirst/migrations/0005_auto_20201024_0316.py | baaa7f017786874e8c0a9b6e7a9c50db448d3ef2 | [] | no_license | Catxiaobai/project | b47310efe498421cde794e289b4e753d843c8e40 | 76e346f69261433ccd146a3cbfa92b4e3864d916 | refs/heads/master | 2023-01-08T04:37:59.232492 | 2020-11-10T12:00:34 | 2020-11-10T12:00:34 | 291,014,545 | 1 | 4 | null | 2020-11-09T01:22:11 | 2020-08-28T10:08:16 | Python | UTF-8 | Python | false | false | 424 | py | # Generated by Django 3.1.1 on 2020-10-23 19:16
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('newfirst', '0004_scenes'),
]
operations = [
migrations.RemoveField(
model_name='item',
name='item_date',
),
... | [
"2378960008@qq.com"
] | 2378960008@qq.com |
91db8116494945ac4447f2c14fec8b83a4d5f470 | 66d184a2b36ab1db564305ea36be891aaf0e236b | /py/Python_Crash_Course/project2/two_d8.py | 52743e7fbb2329663e1615be5f979d1fb0082ff0 | [] | no_license | joyDDT/python_code | bef57936a1167fa65e28b6c52ab7857b34dc74a8 | 3aae56c51660579a4eaaa087ac2459c9bf2f2e23 | refs/heads/master | 2021-10-30T10:22:21.328633 | 2019-04-26T04:45:01 | 2019-04-26T04:45:01 | 112,004,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | import pygal
from die import Die
#创建两个个D8
die_1 = Die(8)
die_2 = Die(8)
#投掷色子多次,并将结果储存在一个列表中
results = [ ]
for roll_num in range(1000):
result = die_1.roll( ) + die_2.roll( )
results.append(result)
#结果分析
frequencies = [ ]
max_num = die_1.num_sides + die_2.num_sides
for value in range(2, max_num+1):
frequ... | [
"15894500833@163.com"
] | 15894500833@163.com |
05f3cbf560213a1004237cd81daf92637628f3b9 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/panpanpandas_ultrafinance/ultrafinance-master/deprecated/example/usTradingStrategy.py | ed1e6d309c7080a44956603b6c80661f73986aa1 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 216 | py | '''
Created on July 17, 2010
@author: ppa
'''
from ultrafinance.processChain.processChain import runProcessChain
if __name__ == '__main__':
configFile1 = 'usTradingStrategy.ini'
runProcessChain(configFile1) | [
"659338505@qq.com"
] | 659338505@qq.com |
819c11fb2ff6e9bbda0cb03380c26525458095b7 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.5_rd=0.8_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=35/sched.py | a3b742d5b6b87242902b200cb99b1c50add5a6e7 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | -X FMLP -Q 0 -L 3 120 400
-X FMLP -Q 0 -L 3 93 400
-X FMLP -Q 0 -L 3 80 400
-X FMLP -Q 1 -L 2 73 400
-X FMLP -Q 1 -L 2 63 250
-X FMLP -Q 2 -L 1 55 200
-X FMLP -Q 2 -L 1 45 400
-X FMLP -Q 3 -L 1 35 125
-X FMLP -Q 3 -L 1 35 150
22 100
21 100
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
e330b2c4ec0d709e389aa70c7b230a248e40cdff | 500b03fa6cb776c1d51db4a3a3aa252ddf5a50e6 | /book_exercise/py_intro/basics/Chapter 3: Numbers/name_random.py | f71fc4d460bda5325b87858fc9109a256951f46c | [] | no_license | carloslvm/learning-python | b3796a0a5b751baae8c551a9f6fe262f98980691 | 07f885454cf21b7d215a58da7fcb907715e546bd | refs/heads/master | 2022-07-27T21:39:11.937801 | 2022-07-09T17:47:56 | 2022-07-09T17:47:56 | 163,447,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | #!/usr/bin/python3
# Printing a name randomly between 1 and 10.
from random import randint
for name in range(randint(1, 10)+ 1):
name = 'David'
print(name)
| [
"cvaldez553@gmail.com"
] | cvaldez553@gmail.com |
2c3b054d93f45003c87f98cb0129da2c90a07b02 | 5551361c02ee4a78036e2452fea615fc912f406b | /tut4.py | 465358ee61083a2301be6d3e8df1a5bc8be26084 | [
"MIT"
] | permissive | Demfier/cs116-tut-solns | 3d93752e4ca2d3debbb36c901a13e7201e5bf0fe | 8277dae848ebf66522245fe15492ab91e48dac93 | refs/heads/master | 2020-12-13T13:32:52.551815 | 2020-02-14T05:25:45 | 2020-02-14T05:25:45 | 234,433,306 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,503 | py | # This file contains solutions to CS116, Tutorial 4
import math
import check
# CQ1: E)
def create_cards(values, suits):
"""
Purpose, Contracts & Requirements, and Examples go here
"""
return list(map(lambda x, y: [x, y], values, suits))
def create_cards_alt(values, suits):
"""
Purpose, Cont... | [
"sahu.gaurav719@gmail.com"
] | sahu.gaurav719@gmail.com |
2cc437f24c473125f7825b073b35dbc910657b40 | 963cac9e78c4b742f7e7800200de8d1582799955 | /lib/veetou/pzh/pzhmodel_.py | fe393d78cc1da6d7aec46d2741a126f14b156e44 | [] | no_license | ptomulik/veetou | c79ceb3ca3d7ef7b261b2219489b6f0a7a83e1fa | b30be2a604f4426f832ec9805547ecd6cc9083fe | refs/heads/master | 2021-01-22T17:28:57.271251 | 2019-01-05T01:46:43 | 2020-05-04T16:23:44 | 85,016,513 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,677 | py | # -*- coding: utf8 -*-
"""`veetou.pzh.pzmodel_`
Defines data model for pzh (Protokół Zaliczeń - HTML)
"""
from veetou.model import *
__all__ = ( 'PzHReport',
'PzHPreamble',
'PzHTr',
'PzHSummary',
'PzHDataModel' )
##def strn(s=None):
## if s is None:
## retur... | [
"ptomulik@meil.pw.edu.pl"
] | ptomulik@meil.pw.edu.pl |
02afa1f3ac1912f2e42968b1a9f8c171135d839e | fa795af74cda4d92604fa3332179ba939460a9b5 | /JUBioactivities/QSARDB/Papa_Property_pkNO3_Degradation_by_NO3_radicals_as_logkNO3/__init__.py | ed8bd3df2d2321a9d042e6cc65b02e98c183d8a1 | [] | no_license | JenniferHemmerich/JUBioactivities | 7329a89db0e2790aff9bcfe153ab4dcd2c19a489 | 87054ac135d91e034dcfb6028562b4a7930a3433 | refs/heads/master | 2020-04-26T03:56:36.177955 | 2019-03-07T13:08:08 | 2019-03-07T13:08:08 | 173,284,341 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | import os.path
import glob
import pandas as pd
import numpy as np
from ... import utils
__data_src__ = list(sorted(glob.glob(os.path.join(__path__[0], "compounds/0*.mol"))))
__data_src__ += [os.path.join(__path__[0], "properties/pkNO3.txt")]
def read_data(raw=False):
df = pd.DataFrame({'pkNO3_Index_Papa': np.l... | [
"jennifer.hemmerich@univie.ac.at"
] | jennifer.hemmerich@univie.ac.at |
c0d9310f0cd5790e4e0888b620c63cf325dc4d58 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/list_log_items_response.py | 4e3d6377a22a133cbef0e053c955f2b4d0817543 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 5,115 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListLogItemsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the va... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
fc80dafb1d1d6e219b60357d8bd2a5f407c26ca4 | 228ebc9fb20f25dd3ed2a6959aac41fd31314e64 | /google/cloud/aiplatform_v1beta1/types/index.py | 289ef763b8977f8503af013acbc9cfaa2abd7f63 | [
"Apache-2.0"
] | permissive | orionnye/python-aiplatform | 746e3df0c75025582af38223829faeb2656dc653 | e3ea683bf754832340853a15bdb0a0662500a70f | refs/heads/main | 2023-08-03T06:14:50.689185 | 2021-09-24T03:24:14 | 2021-09-24T03:24:14 | 410,091,957 | 1 | 0 | Apache-2.0 | 2021-09-24T20:21:01 | 2021-09-24T20:21:00 | null | UTF-8 | Python | false | false | 5,038 | 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 or... | [
"noreply@github.com"
] | orionnye.noreply@github.com |
a0b4d2b6558019c0e406f1ef097a97fcefb6b50f | e5f49057eac43349a7fa999d90cb951e49617440 | /filter/docclass.py | e6a113f9f13d3049b9b891fe7adaa77184535832 | [] | no_license | Hsingmin/CI_py2.7 | 2ae9464c687a1ecfadc7928c6e4915d828ffc10e | ef2906755d498a054beec20a99c4784351816cce | refs/heads/master | 2021-08-30T06:23:09.630058 | 2017-12-16T13:01:19 | 2017-12-16T13:01:19 | 110,184,772 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,701 | py |
# docclass.py
import re
import math
def sampletrain(c1):
c1.train('Nobody owns the water.', 'good')
c1.train('the quick rabbit jumps fences', 'good')
c1.train('buy pharmaceuticals now', 'bad')
c1.train('make quick money at the online casino', 'bad')
c1.train('the quick brown fox jumps', 'good')
de... | [
"alfred_bit@sina.cn"
] | alfred_bit@sina.cn |
86aa8e4a31017d6d63b19ac4cd3b040d922f3902 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/homework02/maoyanspiders/maoyanspiders/spiders/movies_20200628181659.py | ef1424ea237252dfb40fa01bde4bf24ab2c06ba7 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 2,603 | py | # -*- coding: utf-8 -*-
import scrapy
from maoyanspiders.items import MaoyanspidersItem
import lxml.etree
from bs4 import BeautifulSoup as bs
class MoviesSpider(scrapy.Spider):
name = 'movies'
allowed_domains = ['maoyan.com']
start_urls = ['http://maoyan.com/board/4']
header = {
'Content-Ty... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
42c55265daabb2470cae40ea23ca66ff4211931f | 94567834d7ca69fba178a9d2d0ae89a73f813741 | /analyses/monthly_time_series/China_prmsl/plot_ts.py | 630af662e02fee6a55708d2f481b49b4f71496c9 | [] | no_license | philip-brohan/Yangtze_floods | 41b6d655fd4f06f8129c4e5c10d51d5e74d6cec4 | 8ad376328f5b7866d82dd3613e6157cfa31abea1 | refs/heads/master | 2021-09-07T23:56:51.250070 | 2021-08-23T16:43:58 | 2021-08-23T16:43:58 | 243,798,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,964 | py | #!/usr/bin/env python
# 20CRv3 time-series: Monthly average, regional average.
# Each ensemble member as a seperate line.
# Uses pre-calculated time-series.
import os
import iris
import numpy
import datetime
import pickle
import matplotlib
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas... | [
"philip@brohan.org"
] | philip@brohan.org |
a7a89e0b98c823da3182800cda0c3e9b0acfaecc | 09a1d8a920ddb9193dfcc9b05ddd842b83b18e0d | /aerosandbox_legacy_v0/examples_legacy_v0/vlm4_conventional.py | 6d4ece711f7bb8d718aaa5d3f6e9995720f1a915 | [
"MIT"
] | permissive | aqreed/AeroSandbox | 8564b6adb1f297e94aec96872b55f59171ae8ac1 | a0c5f3b2760fcddee28cff2715eeddcb8bcbe655 | refs/heads/master | 2021-03-24T21:02:14.881986 | 2020-03-15T22:43:55 | 2020-03-15T22:43:55 | 247,564,677 | 1 | 0 | MIT | 2020-03-15T22:46:25 | 2020-03-15T22:46:24 | null | UTF-8 | Python | false | false | 3,281 | py | from aerosandbox import *
glider = Airplane(
name="Conventional",
xyz_ref=[0, 0, 0], # CG location
wings=[
Wing(
name="Main Wing",
xyz_le=[0, 0, 0], # Coordinates of the wing's leading edge
symmetric=True,
xsecs=[ # The wing's cross ("X") sections
... | [
"peterdsharpe@gmail.com"
] | peterdsharpe@gmail.com |
920bde8494004fccb4a049249d10f17b7726fe68 | f0181afd2eea9b086ce9487fb8d7fd949282140a | /bin/countgenbank.py | 173a4ff2ea62bc564b9bd89f321a8135b513e0b3 | [
"MIT"
] | permissive | linsalrob/EdwardsLab | 4a571676859c8b7238e733a0d3ad98ceb2e83c63 | 3c466acc07f1a56b575860ad26c92f900b272a53 | refs/heads/master | 2023-08-20T17:13:35.466103 | 2023-08-17T09:17:36 | 2023-08-17T09:17:36 | 25,702,093 | 36 | 25 | MIT | 2020-09-23T12:44:44 | 2014-10-24T18:27:16 | Python | UTF-8 | Python | false | false | 1,679 | py | """
Count features in a genbank file or directory of files
"""
import os
import sys
import argparse
from roblib import message, genbank_seqio
__author__ = 'Rob Edwards'
__copyright__ = 'Copyright 2020, Rob Edwards'
__credits__ = ['Rob Edwards']
__license__ = 'MIT'
__maintainer__ = 'Rob Edwards'
__email__ = 'raedwards... | [
"raedwards@gmail.com"
] | raedwards@gmail.com |
4079d5185261835ffa9df17e29142566cf46c3bd | dece3eb22be792aeac65ea12a1f183dd73498add | /coding/Mysql/1.py | 10119b94c419e57e3114923e1eb5292e80410ffd | [] | no_license | santanu5670/Python | 352515ad82f94157e7f74467c5e7dedd6c9069c8 | 48c2779ccf934588f2bfce7cd322088acec04080 | refs/heads/master | 2023-06-24T09:22:49.925654 | 2021-07-22T15:17:34 | 2021-07-22T15:17:34 | 387,683,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | import mysql.connector
mydb=mysql.connector.connect(host='localhost',user='nsec',password='nsec',database='mysql')
print(mydb)
if(mydb):
print('Connection successful')
else:
print('Connection Unsuccessful') | [
"santanu2539@gmail.com"
] | santanu2539@gmail.com |
0ae5aa472863f78daed685a05bb3eafc6c6f559c | fb6e7922df3da2e9cdc37a00150d6d7663e907ff | /environment/rtfm/dynamics/item/weapon/tridents.py | 7f513dd0c963025c039f762d29b6e88477da154d | [
"Apache-2.0"
] | permissive | Spiph/GTG | c54a587002c42a032c89e8eceb5ec638f6c8c05f | 4a45032290d0c1364e4398684582c51094b245f5 | refs/heads/main | 2023-09-02T14:44:14.946624 | 2021-10-27T12:29:05 | 2021-10-27T12:29:05 | 393,086,007 | 0 | 0 | Apache-2.0 | 2021-08-05T15:09:07 | 2021-08-05T15:09:07 | null | UTF-8 | Python | false | false | 465 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
from .base_weapon import Weapon
from ... import dice as D, material as M
class BaseTrident(Weapon):
pass
class Trid... | [
"jzyjiangzhengyao@gmail.com"
] | jzyjiangzhengyao@gmail.com |
259e794cad0040bcd4708de22d5d229d14681030 | c085b06c9eb220eb40b5ada840886c09a152f053 | /Libros de Python/web/web/ejer/tema-01/compose1.py.txt | d8040cca2291387aa8843870ff3af3f23cb0674a | [] | no_license | thanggc/libros | 7d3bf564c5a227f08390fbcc6721a0aed160e3e0 | 430c03fe97544d263b5c3a665327b527d9c223a8 | refs/heads/master | 2020-12-25T13:23:38.527089 | 2013-04-29T23:14:08 | 2013-04-29T23:14:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | txt |
def compose (*funcs):
def composed (x):
for f in reversed (funcs):
x = f (x)
return x
return composed
| [
"mini.guero@hotmail.com"
] | mini.guero@hotmail.com |
1f9f4decc5db879cfc598fe5c9b819fbed4f43a3 | b79bce0cf363d2b6dd11371d378d78d48e973270 | /kashgari/tasks/classification/base_model.py | 7000ff01695ba716d958546221c048d0d0394381 | [
"Apache-2.0"
] | permissive | CharlotteSean/Kashgari | 2d9338761b16d9804fb81ff92ce2ab1d256c80a7 | ab9970ecf6c0164416bfbbec1378c690b0f00d76 | refs/heads/master | 2022-01-22T03:52:12.284458 | 2019-07-17T03:48:04 | 2019-07-17T03:48:04 | 197,900,673 | 2 | 0 | Apache-2.0 | 2019-07-20T08:15:03 | 2019-07-20T08:15:03 | null | UTF-8 | Python | false | false | 8,165 | py | # encoding: utf-8
# author: BrikerMan
# contact: eliyar917@gmail.com
# blog: https://eliyar.biz
# file: base_classification_model.py
# time: 2019-05-22 11:23
import random
import logging
import kashgari
from typing import Dict, Any, Tuple, Optional, List
from kashgari.tasks.base_model import BaseModel, BareEmbedding... | [
"eliyar917@gmail.com"
] | eliyar917@gmail.com |
4887675c21970c73fbb8d10f2891370c490380cb | 387587c753e76d98a6a0401327766c45561d5109 | /ros_catkin_ws/devel_isolated/roslaunch/lib/python2.7/dist-packages/roslaunch/__init__.py | 8752f22becaf4ebc75be508c7fbdbba3736db545 | [
"MIT"
] | permissive | letrend/neopixel_fpga | 7a4819a566fab02bd602c3338b8aaa0ddf4bee85 | d9247417a9d311eceebad5898571846c6e33a44a | refs/heads/master | 2021-01-23T01:00:55.290431 | 2017-05-30T20:15:38 | 2017-05-30T20:15:38 | 92,855,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/root/ros_catkin_ws/src/ros_comm/roslaunch/src"... | [
"simon.trendel@tum.de"
] | simon.trendel@tum.de |
a63d008f4a88eae9d409a21dec51ccc26b7b1055 | 0946fc233478fec9eac9eb247d45667c3b3989e8 | /reassignment.py | ab002343bf6d67cf8ea6059c7d08a196ae10471d | [] | no_license | hoinx/music-processing-experiments | 0da954e268d6a7120729cb3b012f53d836cd1dc7 | bdd76fa8a8e1b90c8d4e610dcd3a6beadc2e7b1d | refs/heads/master | 2020-04-30T13:00:35.283119 | 2015-11-02T19:54:46 | 2015-11-02T19:54:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,545 | py | import os
import matplotlib.pyplot as plt
import numpy as np
import scipy
from files import load_wav
from spectrogram import real_half, create_window
from analysis import split_to_blocks
from tuning import pitch_to_freq, freq_to_pitch, pitch_bin_range, quantize_freqs_to_pitch_bins
def cross_spectrum(spectrumA, spectr... | [
"bohumir.zamecnik@gmail.com"
] | bohumir.zamecnik@gmail.com |
aa58c72a61686c3fcbfc652c3ea34db79cf29d43 | ec5c35ac5163c4e81262a81a6a6c46667c01733d | /server/auth.py | b279dc4faf0008a333cb253cdb50ed329e219f6b | [] | no_license | kotawiw/bytedance-exercise-2 | 27b32d81aa7e8040c1c8448acbe9c4ff20ff5b26 | 8db190487a6490ec852d8418d93ba62251a5437f | refs/heads/master | 2022-12-24T00:04:53.047395 | 2020-09-23T11:48:13 | 2020-09-23T11:48:13 | 297,948,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | import functools
from flask import Blueprint
from flask import g
from flask import request
from flask import session
from flask import abort
from flask import jsonify
from server.models.users import User
bp = Blueprint("auth", __name__, url_prefix="/api/auth")
def login_required(view):
@functools.wraps(view)
... | [
"you@example.com"
] | you@example.com |
0053a7079faf9fa027992cb3f4a7f048e6e8bee4 | 0e2768a4a21367c4c2f89976f2dadd5c94fec09b | /StarGAN/age_test.py | b6cf116b145149480910e3303ec1f6fc45ca770a | [] | no_license | xogus1107/Capstone | 1dcea5d7fd1d603c8b31133d7a64325fee8b72ed | e84fd5a2e5419da969a8013a4ee0b98b4c1d22cf | refs/heads/master | 2020-03-30T03:47:23.028610 | 2018-12-11T02:53:33 | 2018-12-11T02:53:33 | 150,708,066 | 1 | 1 | null | 2018-12-11T02:53:34 | 2018-09-28T08:16:27 | Python | UTF-8 | Python | false | false | 3,984 | py | import os
import argparse
from solver import Solver
from data_loader import get_loader
from torch.backends import cudnn
def str2bool(v):
return v.lower() in ('true')
def main(config):
# For fast training.
cudnn.benchmark = True
# Create directories if not exist.
if not os.path.exists(config.log_... | [
"lkjim0757@naver.com"
] | lkjim0757@naver.com |
b3aa4d9fb003f4ac0049040ec5cd7a6d3f657b93 | 2c4a2790457a2c16c9c92bc2e6feeb6cc9271994 | /laptop/catkin_ws/build/turtlebot3/turtlebot3_pointop/catkin_generated/pkg.installspace.context.pc.py | 2bf9e1ccc9e204260bada0f003da4a1983ed2144 | [] | no_license | Zoltan3057/skalman | df37e6f376665363b6ea73c6c16fe8312e473e07 | 0e4cead39f6328c74622dd11688837b77152ff17 | refs/heads/master | 2021-09-22T22:26:07.265321 | 2018-09-17T20:47:05 | 2018-09-17T20:47:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "rospy;geometry_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "turtlebot3_pointop... | [
"fregu856@student.liu.se"
] | fregu856@student.liu.se |
1ccb569c8cd950c90ba8af01abc664229472ddcc | 172c5da69ed8914dc899f65be8716e0fac55249b | /surveys/views.py | d8838fa92b0dc94e0cbbf96fee6d71ae1036af1a | [] | no_license | TheProrok29/django_questionnaires | cd75f0271e3b1012351c94b0fde4cb87f795ef5c | 2e62bf2e96fa58f96b80c84c04d08825dfb9ac37 | refs/heads/master | 2020-05-01T05:11:52.268230 | 2019-04-07T19:44:30 | 2019-04-07T19:44:30 | 177,295,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,222 | py | from django.shortcuts import render, HttpResponseRedirect
from .models import Survey, Question, Answer
from django.contrib.auth.decorators import login_required
from . import forms
from django.urls import reverse
from django.contrib import messages
@login_required
def surveys(request):
kwargs = {}
kwargs['sur... | [
"tomaszdbogacki@gmail.com"
] | tomaszdbogacki@gmail.com |
73e4c6bd217f7949adbe8e395dd344f590caaa88 | 57e37e1df9596cdaf86d3dc81cfbe15c5303157f | /SocialMediaenv/social_media/login_app/migrations/0007_auto_20200625_0059.py | b85ab48b079026324aa416a8e4f4f1f51ed52538 | [] | no_license | Tanzin-Ul-Islam/Django_Social_Media | 45d9240b25456768b4cc1976f4971c7921a6ceae | 7578aeb98702bbbb6ae820de11c2c5a4c237243a | refs/heads/master | 2022-11-29T11:37:07.949118 | 2020-08-10T20:15:45 | 2020-08-10T20:15:45 | 286,519,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | # Generated by Django 3.0.7 on 2020-06-24 18:59
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),
('login_app', '0006_auto_2... | [
"tanzin.cse@gmail.com"
] | tanzin.cse@gmail.com |
90593ff711ea932ec1a2f7a1ec6b49f285920849 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_75/1267.py | 24da43f932ff6c1352b5a0a632af37122acf1eab | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,444 | py | import unittest
def cut(s, size):
for i in range(0, len(s), size):
yield s[i:i + size]
def parse_combining(s):
d = {}
for mom, dad, kiddo in cut(s, 3):
d[frozenset((mom, dad))] = kiddo
return d
def parse_opposing(s):
l = []
for mom, dad in cut(s, 2):
l.a... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a3e3b87d073f41bae0250078bf35cd961afc03ef | 49f61714a6f78d984fd2194d6064d84e891bc5b7 | /2019-1/230/users/3356/codes/1599_842.py | 15af2a9064e98315942e60e03b8d7ff9b43b637d | [] | no_license | psbarros/Variaveis3 | b5c4e1517e7d94a846ee03791d25d5821a1c651c | 3dcf6f810709ce03c78335acf9533e008a2ae125 | refs/heads/master | 2023-06-13T07:05:00.878430 | 2021-07-06T17:51:37 | 2021-07-06T17:51:37 | 383,549,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | # Teste seu codigo aos poucos.
# Nao teste tudo no final, pois fica mais dificil de identificar erros.
# Nao se intimide com as mensagens de erro. Elas ajudam a corrigir seu codigo.
n = int(input())
soma = 0
while (n > 0):
resto = n % 10
n = n // 10
soma = soma + resto
print(soma)
| [
"psb@icomp.ufam.edu.br"
] | psb@icomp.ufam.edu.br |
a23d0a0133f0e15711d6f9797955758dc75ae16e | 4148260054c2cf4605dacb8bdef3605c82eca470 | /temboo/Library/Wordnik/Words/RandomWords.py | 682599bdf169426d581dbe717544f4ca5ebb9bb6 | [] | no_license | wimsy/actuarize-web | 0f23d5f00afe3d36d430621cdb497d2e64998416 | 5f43af3019da6fb08cafeec9ff0a89df5196b864 | refs/heads/master | 2021-03-12T19:38:21.887681 | 2012-12-19T01:13:50 | 2012-12-19T01:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,155 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# RandomWords
# Retrieves a list of random words.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreography
from te... | [
"mike.wimsatt@gmail.com"
] | mike.wimsatt@gmail.com |
2fec48c9bc4689497d616c4fab84161b86faed78 | ef61c5f177ee44ac08325335fc28a12f3fccbb58 | /resource_management/tests/interactors/test_create_resource.py | 2c7bedc0881b90bbee655ebca9a3137cfff9d3c2 | [] | no_license | bammidichandini/resource_management-chandini | 3c11c7b2eb5e2f8d3df5b55e4d3ee86a27ed5c3a | aa4ec50f0b36a818bebc2033cb39ee928e5be13c | refs/heads/master | 2022-12-01T19:59:25.366843 | 2020-07-23T09:10:42 | 2020-07-23T09:10:42 | 269,610,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | import pytest
from unittest.mock import create_autospec
#from resource_management.exceptions.exceptions import UserCannotManipulateException
from django_swagger_utils.drf_server.exceptions import Forbidden
from resource_management.interactors.storages.resources_storage_interface import StorageInterface
from resource_ma... | [
"chandini.bammidi123@gmail.com"
] | chandini.bammidi123@gmail.com |
a3078ed764f5a832bc8be4f0ed37f7616cbcaff7 | a52b63889017a7f099a2575abf251bfadc672349 | /main.py | 40f0b0bd54fb73bd86e5354c476a419e1fd0ed16 | [] | no_license | 602p/siscalc | cda58454a10780cceb018d0405377dbd49444911 | 0c82d1e1acdb0c1c99a09a7d02f47367ef036989 | HEAD | 2016-09-01T15:45:22.996359 | 2016-03-19T06:18:09 | 2016-03-19T06:18:09 | 54,244,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,419 | py | import browser
class Category(object):
def __init__(self, *a, **k):
self.container=browser.html.DIV()
self.assignments_container=browser.html.DIV()
self.percent=browser.html.INPUT(readonly=True)
self.weight=browser.html.INPUT(type="number")
self.add=browser.html.BUTTON("Add ... | [
"louis@goessling.com"
] | louis@goessling.com |
9006a9071155da1ddc1db98dd44bc61448f755f0 | 7374204324f6326663d12b3dd1fecc5bebb6854e | /algorithm-pattern/binary_op/136.py | 8443de71e568342720ea162d84e376931fc2706a | [] | no_license | KevinChen1994/leetcode-algorithm | c18b58df398027078b0c0f468c4c873e9419433b | 1bcf3206cd3acc428ec690cb883c612aaf708aac | refs/heads/master | 2023-02-07T11:35:47.747207 | 2023-01-29T11:08:49 | 2023-01-29T11:08:49 | 230,386,123 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | # !usr/bin/env python
# -*- coding:utf-8 _*-
# author:chenmeng
# datetime:2020/7/17 13:51
'''
solution: 使用异或运算,两个数相同为0,不同为1;因为异或操作满足交换律,例如:1^2^2=2^2^1=0^1=1(0异或任意数是等于任意数本身)
'''
class Solution:
def singleNumber(self, nums):
result = nums[0]
for num in nums[1:]:
result = result ^ num
... | [
"346521888@qq.com"
] | 346521888@qq.com |
cf253b4a79d908574d1f8ec1b551a5b8cb92373c | 1825283527f5a479204708feeaf55f4ab6d1290b | /leetcode/python/546/original/546.remove-boxes.0.py | 4414c0fc7ebe8b59905309e520e365b774e2b427 | [] | no_license | frankieliu/problems | b82c61d3328ffcc1da2cbc95712563355f5d44b5 | 911c6622448a4be041834bcab25051dd0f9209b2 | refs/heads/master | 2023-01-06T14:41:58.044871 | 2019-11-24T03:47:22 | 2019-11-24T03:47:22 | 115,065,956 | 1 | 0 | null | 2023-01-04T07:25:52 | 2017-12-22T02:06:57 | HTML | UTF-8 | Python | false | false | 1,077 | py | #
# @lc app=leetcode id=546 lang=python3
#
# [546] Remove Boxes
#
# https://leetcode.com/problems/remove-boxes/description/
#
# algorithms
# Hard (37.29%)
# Total Accepted: 8.4K
# Total Submissions: 22.4K
# Testcase Example: '[1,3,2,2,2,3,4,3,1]'
#
# Given several boxes with different colors represented by differen... | [
"frankie.y.liu@gmail.com"
] | frankie.y.liu@gmail.com |
cf3ff688eca559e72b7a03c95a74663b58dfad04 | 83a506a501561602ad3b259341225ddfbddab160 | /GameServer/socket_server/server/factorys/tornadoFactory.py | 287f7c09b26205ca9792a3d77952117fda7e9526 | [] | no_license | daxingyou/SouYouJi_Game | 9dc5f02eb28b910efb229653a8d0bffe425a7911 | 7311a994c9aba15b7234331709975ebc37e8453d | refs/heads/master | 2023-03-28T01:36:48.955107 | 2020-04-05T01:24:17 | 2020-04-05T01:24:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,412 | py | # -*- coding:utf-8 -*-
# !/bin/python
"""
Author: Winslen
Date: 2019/10/15
Revision: 1.0.0
Description: Description
"""
import traceback
import tornado
import tornado.httpserver
import tornado.ioloop
import tornado.log
import tornado.options
import tornado.web
from typing import *
from define.defi... | [
"ronnyzh@yeah.net"
] | ronnyzh@yeah.net |
ac7db187efbe323fedbbcc02c5b41ba4416264b0 | 57ec8eff01275cdae43243900a422b87836b807b | /arithmetic.py | bc77393ea397e581d0238d878fc231f7fe59759a | [] | no_license | Ihyatt/calculator-1 | 15624b997c1c19a6bf30ac422f55669838ea7115 | 43f5d63eb81398aff3cf10e3d2d77c4296bdddc8 | refs/heads/master | 2021-01-10T16:29:56.063120 | 2016-04-06T19:54:49 | 2016-04-06T19:54:49 | 55,635,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | def add(num1, num2):
""" This is function will add two numbers """
return num1 + num2
def subtract(num1, num2):
""" This function will subtract two numbers """
return num1 - num2
def multiply(num1, num2):
""" This function will multiply two numbers """
return num1 * num2
def divide(num1, num2):
""" This... | [
"info@hackbrightacademy.com"
] | info@hackbrightacademy.com |
2cf45b3d2a4735668005b263d62b610abb28794a | d897c2bc4ba9a84e7e8a2fe3e998d78cd116f920 | /max_seq/gen/generatore | 64aabc5dc9d2141313929567a4aedb167fe56ad7 | [] | no_license | romeorizzi/problemsCMS_for_LaboProg | 8907622744bc89752391024f24025a7e9706501b | 027b1b204efe602461e93d8b1c194a09eb6526cd | refs/heads/master | 2020-04-03T17:33:52.384915 | 2020-03-25T07:10:17 | 2020-03-25T07:10:17 | 155,449,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | #!/usr/bin/env python2
from limiti import *
from varie import *
from sys import argv, exit, stderr
import os
from numpy.random import random, randint, seed as nseed
from random import choice, sample, shuffle, seed as rseed
usage="""Generatore di "prova".
Parametri:
* N (numero)
* S (seed)
Constraint:
* 1 <= N <= %d... | [
"romeo.rizzi@univr.it"
] | romeo.rizzi@univr.it | |
f2f2a7316f41e31019494e9057e0c5e91b6b7285 | 117f066c80f3863ebef74463292bca6444f9758a | /api/4min/search/python-flask-server/swagger_server/test/test_search_controller.py | 81b88eb6a8b94cfdb820b62714ac0fb1f63005a0 | [] | no_license | cottrell/notebooks | c6de3842cbaeb71457d270cbe6fabc8695a6ee1b | 9eaf3d0500067fccb294d064ab78d7aaa03e8b4d | refs/heads/master | 2023-08-09T22:41:01.996938 | 2023-08-04T22:41:51 | 2023-08-04T22:41:51 | 26,830,272 | 3 | 1 | null | 2023-03-04T03:58:03 | 2014-11-18T21:14:23 | Python | UTF-8 | Python | false | false | 1,402 | py | # coding: utf-8
from __future__ import absolute_import
from swagger_server.models.search_request import SearchRequest
from swagger_server.models.search_response import SearchResponse
from . import BaseTestCase
from six import BytesIO
from flask import json
class TestSearchController(BaseTestCase):
""" SearchCon... | [
"cottrell@users.noreply.github.com"
] | cottrell@users.noreply.github.com |
2d590385ddba87310af206021f891c91aea028ef | df7b40e95718ac0f6071a0ba571b42efc81cf6de | /configs/deeplabv3/deeplabv3_r101-d16-mg124_512x1024_80k_cityscapes.py | de4a8a5e9f030f1e8a8802596885186163f23eed | [
"Apache-2.0"
] | permissive | shinianzhihou/ChangeDetection | 87fa2c498248e6124aeefb8f0ee8154bda36deee | 354e71234bef38b6e142b6ba02f23db958582844 | refs/heads/master | 2023-01-23T20:42:31.017006 | 2023-01-09T11:37:24 | 2023-01-09T11:37:24 | 218,001,748 | 162 | 29 | Apache-2.0 | 2022-11-03T04:11:00 | 2019-10-28T08:41:54 | Python | UTF-8 | Python | false | false | 368 | py | _base_ = './deeplabv3_r50-d8_512x1024_80k_cityscapes.py'
model = dict(
pretrained='open-mmlab://resnet101_v1c',
backbone=dict(
depth=101,
dilations=(1, 1, 1, 2),
strides=(1, 2, 2, 1),
multi_grid=(1, 2, 4)),
decode_head=dict(
dilations=(1, 6, 12, 18),
sampler=d... | [
"1178396201@qq.com"
] | 1178396201@qq.com |
6a2271851da9a4bd341bde931f2a28406cfaf4b2 | 741333ced9ea1b326997dc031e5de27529bad04a | /glue_vispy_viewers/extern/vispy/scene/cameras/_base.py | f3829d981ac94a9eacfd344537214be1e3f3a7af | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | jzuhone/glue-vispy-viewers | f1b7f506d3263c4b0c2f4032d4940b931b2c1ada | d940705f4ba95f8d7a9a74d37fb68c71080b490a | refs/heads/master | 2020-06-20T19:10:02.866527 | 2019-06-24T11:40:39 | 2019-06-24T11:40:39 | 197,217,964 | 0 | 0 | BSD-2-Clause | 2019-07-16T15:14:53 | 2019-07-16T15:14:52 | null | UTF-8 | Python | false | false | 1,263 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
from .base_camera import BaseCamera
from .perspective import PerspectiveCamera
from .panzoom import PanZoomCamera
from .arcball import ArcballCamera
from .turntable import Turn... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
a55df25f9f74de9e0ec69b926948719fa010268d | 6518c74441a68fc99b2b08423b5ea11480806499 | /tests/resources/mlflow-test-plugin/mlflow_test_plugin/dummy_evaluator.py | c88bd21d093219c4d2d59ada023cd3f754142dc2 | [
"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 | 3,149 | py | import mlflow
from mlflow.models.evaluation import (
ModelEvaluator,
EvaluationMetrics,
EvaluationArtifact,
EvaluationResult,
)
from mlflow.tracking.artifact_utils import get_artifact_uri
from mlflow.entities import Metric
from sklearn import metrics as sk_metrics
import time
import pandas as pd
import ... | [
"noreply@github.com"
] | criteo-forks.noreply@github.com |
097f90f0262110b4a39fec200710fa8f135f45a9 | db61f1b3db18ef698f08e456c60e2162a5479807 | /experiments/timit/data/test_load_dataset_joint_ctc_attention.py | 5825b2d4d7443ffef8d010fe251f20028c20fa14 | [
"MIT"
] | permissive | fresty/tensorflow_end2end_speech_recognition | 00aa1d827aa9b04862389ff1a8169259adcd6db9 | a95ba6a29208e70d6ea102bbca2b03ea492c708c | refs/heads/master | 2021-01-01T06:14:25.378685 | 2017-07-10T11:35:05 | 2017-07-10T11:35:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,269 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import re
import sys
import unittest
import tensorflow as tf
sys.path.append('../../../')
from experiments.timit.data.load_dataset_joint_ctc_attention import Dat... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
1204cb5de1ac2f1d3306c831671aeefb0c4286c2 | 1b9075ffea7d4b846d42981b41be44238c371202 | /tags/2007-EOL/applications/editors/qt_xhtmledit/actions.py | e00311a209fc6a3d1204dd6195e524b1ba17a2e5 | [] | no_license | pars-linux/contrib | bf630d4be77f4e484b8c6c8b0698a5b34b3371f4 | 908210110796ef9461a1f9b080b6171fa022e56a | refs/heads/master | 2020-05-26T20:35:58.697670 | 2011-07-11T11:16:38 | 2011-07-11T11:16:38 | 82,484,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | 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 autotools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
WorkDir = "htmledit"
def setup... | [
"turkay.eren@gmail.com"
] | turkay.eren@gmail.com |
0bbcecd2761b1b9dbb8ba24462c8f20153c402a6 | 41d9b92ef2a74a4ba05d27ffbe3beb87884c4ce7 | /supervised_learning/0x06-keras/0-sequential.py | e0175875bc17bcbc0416647a5a71d94f1109cf53 | [] | no_license | JosephK89/holbertonschool-machine_learning | 3f96d886c61d8de99a23e4348fb045b9c930740e | aa5c500f7d8ebeec951f9ab5ec017cae64007c25 | refs/heads/main | 2023-08-14T18:42:53.481354 | 2021-10-10T19:53:40 | 2021-10-10T19:53:40 | 386,248,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | #!/usr/bin/env python3
"""build nn with keras"""
import tensorflow.keras as K
def build_model(nx, layers, activations, lambtha, keep_prob):
"""function that build nn with keras library"""
sequential = []
shape = (nx,)
reg_l2 = K.regularizers.l2(lambtha)
for i in range(len(layers)):
if i is... | [
"josephkamel262@gmail.com"
] | josephkamel262@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.