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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d7fff55e5019e9289ac54ee81bc8c3b1546d4e16 | 91a9f5a7afb398f4238527708cbc155dc972cbfa | /data_analysis/third_party_code/rrt.py | 081eec2a0241365b13ab63425ad28e696f407a8b | [] | no_license | bddmodelcar/kzpy3.2 | cd6f9bf6b7b8b920c79b4ee36c2592b992ae4332 | b044b26649b19b240bd580feca20424a237374b1 | refs/heads/master | 2021-01-19T21:01:58.687712 | 2017-08-23T22:39:56 | 2017-08-23T22:39:56 | 101,243,308 | 0 | 1 | null | 2017-08-24T02:04:50 | 2017-08-24T02:04:50 | null | UTF-8 | Python | false | false | 1,651 | py | #!/usr/bin/env python
# rrt.py
# This program generates a simple rapidly
# exploring random tree (RRT) in a rectangular region.
#
# Written by Steve LaValle
# May 2011
import sys, random, math, pygame
from pygame.locals import *
from math import sqrt, cos, sin, atan2
# constants
XDIM = 640
YDIM = 480
WINSIZE = [XDIM... | [
"karlzipser@berkeley.edu"
] | karlzipser@berkeley.edu |
ec6f2aa9f46031fe2b4e7abef4c1302d1c1116dd | b4ea052a5c9d9602ac7a3d7c3d341ef13c0f7b64 | /tuple.py | 9beabaddaeeddf86af319b30c7863c3ff432841a | [] | no_license | iehoshia/math | e74409d68ebd60d8deb1c4a41b0dc0dd96772b94 | d9139fd7de15a10230fc3d76c0f57c5f66be66ef | refs/heads/master | 2021-06-27T08:37:48.210371 | 2020-07-05T18:01:48 | 2020-07-05T18:01:48 | 221,271,881 | 0 | 0 | null | 2021-03-20T03:08:07 | 2019-11-12T17:16:35 | Python | UTF-8 | Python | false | false | 137 | py | msg = "('UserError', ('El campo de es obligatorio.', ''))"
print(type(msg))
ts = eval(msg)
print(type(ts))
print(ts[0])
print(ts[1][0]) | [
"jepgez@gmail.com"
] | jepgez@gmail.com |
16eec80ce78aa696fd2396c731446151f4389a8b | 1811d37ed6474ab7eaeafff3c82d3bb7c0466e3d | /parts/zodiac/zope/interface/tests/test_declarations.py | 8bb3d87f13dddd842e81770795fb0b6a5d5c142f | [] | no_license | bernatcortina/zodiac | ed384fe96f6739d841a3a777d10bad4b33fd0e78 | aa0ecb2c386fc5b54ff60ba94e0a1bc5a7493f17 | refs/heads/master | 2021-01-18T14:02:44.978553 | 2014-02-07T17:33:27 | 2014-02-07T17:33:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | /Users/Bernat/GitHub/zodiac/eggs/zope.interface-4.0.5-py2.7-macosx-10.9-intel.egg/zope/interface/tests/test_declarations.py | [
"bernatcortina@gmail.com"
] | bernatcortina@gmail.com |
536902aa44d7fda7d42026285dc4430c6bd5e55e | e57d7785276053332c633b57f6925c90ad660580 | /sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2021_04_01_preview/operations/_private_endpoint_connections_operations.py | d2a6e50bd6a44b4f4111b3ebe257923746ea36d5 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 20,701 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | adriananeci.noreply@github.com |
e950a96f99338a6581c70f7a239071ec9857cc9a | 2876a5a8e7d50d97039b4e63c25f5eaf1cc20808 | /src/odontology/person/migrations/0006_remove_patient_reciently_added.py | fa65de12e835d148fed6cd7e7a0620ba29ebeb5c | [
"Apache-2.0"
] | permissive | nanomolina/JP | 6fcd01b75d71aa560781d4c0350ff76025f85f92 | 248a47bced4dac850f85d28968ddf279cd123400 | refs/heads/master | 2022-11-29T09:31:43.449654 | 2019-07-16T18:25:20 | 2019-07-16T18:25:20 | 51,620,989 | 2 | 0 | Apache-2.0 | 2022-11-22T01:11:25 | 2016-02-12T22:33:24 | HTML | UTF-8 | Python | false | false | 401 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-14 08:24
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('person', '0005_auto_20160214_0517'),
]
operations = [
migrations.RemoveField(
... | [
"nanomolinacav@gmail.com"
] | nanomolinacav@gmail.com |
30f8c99090912bd768c74d849e02e4c932b3ae47 | 2c872fedcdc12c89742d10c2f1c821eed0470726 | /pbase/day03/jiangyi/day03/code/str2.py | 414e203cb3fc038b2e548595d370a0630461fc59 | [] | no_license | zuigehulu/AID1811 | 581c3c7a37df9fa928bc632e4891fc9bafe69201 | 10cab0869875290646a9e5d815ff159d0116990e | refs/heads/master | 2020-04-19T16:33:04.174841 | 2019-01-30T07:58:24 | 2019-01-30T07:58:24 | 168,307,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | # str.py
print('ABC\n123')
print('ABC\t123')
print("ABCDE\rab")
print("ABCDE\b\babcd")
print("==ABCD==")
print("==\x41\x42\x43\x44==") # ABCD
print('\x68\x65\x6c\x6c\x6f')
print("hello")
| [
"442315617@qq.com"
] | 442315617@qq.com |
701edda3fc08ca5e204e91994d360e36880706aa | 532a28255249530c98eea8985cdcfb093dbf28b1 | /testing/test_boxed.py | bee936735f1ff0a109346bf20f8150639e74bb0f | [
"MIT"
] | permissive | lukas-bednar/pytest-xdist-convert | 8dc09ebae810344f8ebf031b3d04de4e9a62602c | 255c0617159b611eaa94b80c7b61568c5c8ce082 | refs/heads/master | 2021-01-23T12:18:04.783539 | 2015-09-01T15:28:21 | 2015-09-01T15:28:21 | 41,746,483 | 1 | 0 | null | 2015-09-01T15:21:30 | 2015-09-01T15:21:30 | null | UTF-8 | Python | false | false | 1,610 | py | import pytest
import os
needsfork = pytest.mark.skipif(not hasattr(os, "fork"),
reason="os.fork required")
@needsfork
def test_functional_boxed(testdir):
p1 = testdir.makepyfile("""
import os
def test_function():
os.kill(os.getpid(), 15)
""")
resu... | [
"holger@merlinux.eu"
] | holger@merlinux.eu |
3b71545bbfa3cf0b81dc43c505f9b0ee6d8e556f | 5ded398a05f59f08f2add076fa50e42bfcb5cc92 | /home/migrations/0002_load_initial_data.py | 3fb748150d45554121b7e71e3ea15175052fd015 | [] | no_license | crowdbotics-apps/vool-22192 | 1dc764992f07ce542f6691693503375007175a6d | d8c48223d5df02577fe997f6a50fdbd83eb96dce | refs/heads/master | 2023-01-09T11:42:10.989994 | 2020-11-01T19:20:38 | 2020-11-01T19:20:38 | 309,170,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "vool"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
home... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
21aa8958edca79602fd8a9062a0ca2fb5d5a8527 | c06d18ac5b87b3b82fc486454c422b119d6c1ee9 | /src/demo/_tensorflow/notebooks/2_BasicModels/linear_regression.py | db1a4d9133a9a5e089a49002de6f171371fd87ae | [
"MIT"
] | permissive | tangermi/nlp | b3a4c9612e6049463bf12bc9abb7aff06a084ace | aa36b8b20e8c91807be73a252ff7799789514302 | refs/heads/master | 2022-12-09T12:33:15.009413 | 2020-04-03T04:03:24 | 2020-04-03T04:03:24 | 252,056,010 | 0 | 0 | null | 2022-12-08T07:26:55 | 2020-04-01T02:55:05 | Jupyter Notebook | UTF-8 | Python | false | false | 2,211 | py | # -*-coding:utf-8-*-
from __future__ import absolute_import, division, print_function
# %%
import tensorflow as tf
import numpy as np
rng = np.random
# %%
# Parameters.
learning_rate = 0.01#学习率
training_steps = 1000#总共训练次数
display_step = 50
# %%
# Training Data.
X = np.array([3.3, 4.4, 5.5, 6.71, 6.93, 4.168, 9.... | [
"n10057862@qut.edu.au"
] | n10057862@qut.edu.au |
d2f91d9e02964c206df16fb3598b24bd1f3a4f8e | ee22ec2076a79e8de3011377fe205bc87163ab9f | /src/basic-c3/dockstring.py | 5ada006cc7d290f3d8a9d64f64306ebce1e919b9 | [] | no_license | n18018/programming-term2 | 039a95c67372a38a34e2aa8c5975045a9fc731be | 86c455269eed312def529604e1ac3b00f476226c | refs/heads/master | 2020-03-22T08:59:29.545280 | 2018-08-29T07:57:37 | 2018-08-29T07:57:37 | 139,806,131 | 0 | 0 | null | 2018-07-05T06:42:11 | 2018-07-05T06:42:11 | null | UTF-8 | Python | false | false | 53 | py | def a (hiki_1, hiki_2, hiki_3):
'''
return i
| [
"n18018@std.it-college.ac.jp"
] | n18018@std.it-college.ac.jp |
3ae8830fd94c0cd38223d716948c6ba72b2243b7 | cda43bf6a84f7e55fab26aa70cda934683a51fe5 | /MyWork/moModel.py | f0583bfc4748b1285e8ed8c12677936f09f2dcf3 | [] | no_license | nikolaosdionelis/NeuralNetworksNNs | abb55622882e31c8d130a8986868b3d19ede186f | 8a217490ad5bb3f7fccf4002c6b43a06c1e562fc | refs/heads/master | 2022-11-13T00:50:23.578197 | 2020-07-12T18:52:20 | 2020-07-12T18:52:20 | 279,042,013 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 113,860 | py | from __future__ import division
from __future__ import print_function
import os
import time
import math
from glob import glob
import tensorflow as tf
import numpy as np
from six.moves import xrange
#import real_nvp.model as nvp
import real_nvp.nn as nvp_op
#import imageio
#imageio.imwrite('filename.jpg', array)
#fro... | [
"noreply@github.com"
] | nikolaosdionelis.noreply@github.com |
0584bb10c38dba33bffbd8942a3bc1da49985993 | d903801965f5a203360a989c5e5330160bb8f509 | /pragmatics_2/settings/base.py | 2de70505263bd2f12c487534bdb5eabadcb1482f | [] | no_license | matt700395/server_test | fbc63fe4a9aea29610089b3ec87dcf5834047d27 | c21618bdf4d7f38889410d3204c15e4c61c15a54 | refs/heads/master | 2023-07-25T02:12:24.187475 | 2021-08-11T01:51:30 | 2021-08-11T01:51:30 | 387,237,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,084 | py | """
Django settings for pragmatics_2 project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
"gkgk"
f... | [
"matt7003@korea.ac.kr"
] | matt7003@korea.ac.kr |
9143e1cbbe22494451daa57eb795cafba2ef2bff | cfb705f3727ff2f53288269ae37bd2cb6687951d | /build/CAFCore/SFramework/CMakeFiles/SFrameworkpycGen.py | 5c92ddbf3102a6b81ff16550aee99de8cd85f4ab | [] | no_license | alessio94/di-Higgs-analysis | 395934df01190998057f7c81775209c5d32f906e | 79c793cc819df7c8511c45f3efe6bdd10fd966bf | refs/heads/master | 2023-02-17T05:44:59.997960 | 2023-02-13T18:02:42 | 2023-02-13T18:02:42 | 224,252,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | import py_compile; py_compile.compile( '/afs/cern.ch/work/a/apizzini/private/2022/nov/CAFbbll/CAFCore/SFramework/python/SFramework.py', cfile = '/afs/cern.ch/work/a/apizzini/private/2022/nov/CAFbbll/build/x86_64-centos7-gcc8-opt/python/SFramework/SFramework.pyc', doraise = True ) | [
"alessiopizzini@gmail.com"
] | alessiopizzini@gmail.com |
0fa6083c10d10d0fd237b63dd89a046cd5d7ecf6 | 61efd764ae4586b6b2ee5e6e2c255079e2b01cfc | /azure-graphrbac/azure/graphrbac/models/graph_error.py | 0bfa9744e63d8b4251f72750eb08d46a828b3f80 | [
"MIT"
] | permissive | AutorestCI/azure-sdk-for-python | a3642f53b5bf79d1dbb77851ec56f4cc0c5b3b61 | 60b0726619ce9d7baca41f6cd38f741d74c4e54a | refs/heads/master | 2021-01-21T02:23:59.207091 | 2018-01-31T21:31:27 | 2018-01-31T21:31:27 | 55,251,306 | 4 | 3 | null | 2017-11-13T17:57:46 | 2016-04-01T17:48:48 | Python | UTF-8 | Python | false | false | 1,392 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"autorestci@microsoft.com"
] | autorestci@microsoft.com |
797f75d711c35e8f51c4b63311f9c718f07a6b4c | 91b6b36c7eba4ef0f97eea76a32c297760e24034 | /games/migrations/0001_initial.py | a999330944ff2ace8f32685de6c1ac1b44d755f4 | [] | no_license | joescaos/Tienda-video-juegos | ddfbba3affdb4302077d205d1a6b408cc08cf670 | 8b05f15d655398f7efc77af126fe022fec6d3261 | refs/heads/main | 2023-02-11T05:43:33.950151 | 2021-01-07T03:06:01 | 2021-01-07T03:06:01 | 327,482,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # Generated by Django 3.0.8 on 2020-07-04 19:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Game',
fields=[
('id', models.AutoField(aut... | [
"jxexcxo@gmail.com"
] | jxexcxo@gmail.com |
0d04fa2c27807dd543aa96a8eb34f13b5aa285a3 | 48b8ef4cb13195bd48c3bd741df407f4df7a7db1 | /py2vega/functions/date_time.py | 52cb563af5f98569f0a6115a6e91a96ee9e73dd4 | [
"BSD-3-Clause"
] | permissive | QuantStack/py2vega | 7c6d1e114e97f835ae2d3ef47950680d8a9b7e55 | 049f8a89adc4197a69a384160bbbb633c61abaf8 | refs/heads/master | 2021-06-22T22:38:32.885585 | 2021-03-03T09:46:31 | 2021-03-03T09:46:31 | 203,118,828 | 9 | 3 | BSD-3-Clause | 2021-03-03T08:32:02 | 2019-08-19T07:15:29 | Python | UTF-8 | Python | false | false | 4,165 | py | """Module that implements mocking Vega date and time functions."""
date_time_functions = [
'now', 'datetime', 'date', 'day', 'year', 'quarter', 'month', 'hours',
'minutes', 'seconds', 'milliseconds', 'time', 'timezoneoffset', 'utc',
'utcdate', 'utcday', 'utcyear', 'utcquarter', 'utcmonth', 'utchours',
... | [
"martin.renou@gmail.com"
] | martin.renou@gmail.com |
ff1b3b0dca727f260be29d791c3eb863c60bb44c | e40111dda0ad509d474adfe4c52ae9b5525f388e | /show_weather/migrations/0001_initial.py | 257aa28f000c8c31d9e0659e17bdad9c05474fe7 | [] | no_license | XeyyamSherif/Weather-App | 2fb997fcfb5a6885ffffbf05e6ebe2127fd2bccf | 6de019cf289ff60d299b9f1e58c1f8c04fa3517f | refs/heads/master | 2023-01-23T06:57:55.655632 | 2020-12-04T20:10:42 | 2020-12-04T20:10:42 | 318,623,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | <<<<<<< HEAD
# Generated by Django 3.0.3 on 2020-03-01 14:01
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='added_cities',
fields=[
('id',... | [
"you@example.com"
] | you@example.com |
a67658f0ba4e3957c2b07e683cf18f9d800d4d49 | 962b7a864f6a85d4418292be2ad3f3c58ae89400 | /docs/conf.py | 1f83660b90ecd881682aa1743e2a7298a72d00e1 | [
"MIT"
] | permissive | ArtusU/one_buy | eb415697d4d314f1a23f255b83486f75fa1f6adb | 5d74a691f78f162eb6b16d9c3a2049043c36b0b0 | refs/heads/master | 2023-08-20T20:31:41.931260 | 2021-09-11T11:51:00 | 2021-09-11T11:51:00 | 405,059,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"artusrock@hotmail.com"
] | artusrock@hotmail.com |
746dbef62b516ff59dc04fa89bbb2f22bfa4ff8a | 82c6dedfe9040b453c22c3f93f1a2c9a922c988b | /ClusterFind/cluster_dbscan_precomputed_neighbours.py | 7a4f8cb9ec5f99d729549b5d0ffd0a3962f8b5cc | [] | no_license | njcuk9999/g_clustering | 8d34439fd78ef7017c0414c932d21cd19fc6551c | 20e6a6ab17c72c5652ae33125f7dabf4131aa8d5 | refs/heads/master | 2021-05-11T16:10:41.382938 | 2018-05-08T22:55:03 | 2018-05-08T22:55:03 | 117,753,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,436 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
# CODE NAME HERE
# CODE DESCRIPTION HERE
Created on 2018-01-16 at 14:13
@author: cook
Version 0.0.0
"""
import numpy as np
from astropy.table import Table
from sklearn.cluster import DBSCAN
from sklearn import metrics
import random
import matplotlib.pyplot as plt... | [
"neil.james.cook@gmail.com"
] | neil.james.cook@gmail.com |
aa6d9a1822835aebdd5132c6ba6a72d4ff601275 | c49590eb7f01df37c8ec5fef00d0ffc7250fa321 | /openapi_client/models/market_details_quote.py | 9be5f6cec718e266059c4b82e375d42004f2e4ce | [] | no_license | harshad5498/ks-orderapi-python | 373a4b85a56ff97e2367eebd076f67f972e92f51 | 237da6fc3297c02e85f0fff1a34857aaa4c1d295 | refs/heads/master | 2022-12-09T19:55:21.938764 | 2020-09-03T05:22:51 | 2020-09-03T05:22:51 | 293,533,651 | 0 | 0 | null | 2020-09-07T13:19:25 | 2020-09-07T13:19:24 | null | UTF-8 | Python | false | false | 3,151 | py | # coding: utf-8
"""
KS Trade API's
The version of the OpenAPI document: 1.0
"""
import pprint
import re # noqa: F401
import six
from openapi_client.configuration import Configuration
class MarketDetailsQuote(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://op... | [
"thebhushanp@gmail.com"
] | thebhushanp@gmail.com |
a00eaff7c43f2734cc5e34167a1e3b2535928b9c | 3b9082ed8c0717d40165f5cc520937c23e9c49c0 | /lib/streamifiers/public_suffix.py | 672978920b94dfef4ec6ab269c416a679a78dd1c | [
"BSD-3-Clause"
] | permissive | CYBAI/compression-test | 2915c0d929be4689ba0df3beb1c19d808aef1405 | ea1306131e32f44f97b197550e7b3a5d7734ad0b | refs/heads/master | 2021-03-20T07:55:10.844035 | 2019-01-19T05:11:25 | 2019-01-19T05:11:25 | 247,191,443 | 1 | 0 | NOASSERTION | 2020-03-14T01:31:04 | 2020-03-14T01:31:03 | null | UTF-8 | Python | false | false | 1,103 | py | #!/usr/bin/env python
from collections import defaultdict
from . import BaseStreamifier, Stream
from publicsuffix import PublicSuffixList
class Streamifier(BaseStreamifier):
"""
Use the Public Suffix List <http://publicsuffix.org> to split the messages
into streams, one per direction per suffix.
"""
def _... | [
"mnot@mnot.net"
] | mnot@mnot.net |
9cc14a0d8484b7a1274d7519a78757f8a1879fbc | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res_bw/scripts/common/lib/ctypes/test/test_numbers.py | d22b4be81fa25957e12f9a9ea14e9e9cab2b4b56 | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 6,859 | py | # 2015.11.18 12:02:44 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/ctypes/test/test_numbers.py
from ctypes import *
import unittest
import struct
def valid_ranges(*types):
result = []
for t in types:
fmt = t._type_
size = struct.calcsize(fmt)
a = struct.unpack(fmt... | [
"info@webium.sk"
] | info@webium.sk |
356c3d0d2080ca4ad61b6ecd2046b5002212c549 | 0dd881b86146eff46a99e3100a12addcb5b1bde9 | /weipinghui2019_zifuchuanxiangjia.py | 9450013b2f20ba2c8819ba996bb4dcb91ebcc8c8 | [] | no_license | BaijingML/leetcode | 8b04599ba6f1f9cf12fbb2726f6a1463a42f0a70 | 0ba37ea32ad71d9467f73da6f9e71971911f1d4c | refs/heads/master | 2020-03-22T05:07:17.884441 | 2020-01-10T12:13:54 | 2020-01-10T12:13:54 | 138,399,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: python3.6
@Author : Zhangfusheng
@Time : 2019/8/18 12:04
@File : weipinghui2019_zifuchuanxiangjia
@Software: PyCharm
"""
if __name__ == "__main__":
s1, s2 = input(), input()
result = ""
add = 0
if len(s1) < len(s2):
s1, s2 = s2, s1
... | [
"2670871693@qq.com"
] | 2670871693@qq.com |
899115ede16865c53b02a851dff925b61a1bf92a | 6eef7d400474384c9e36cafbbae95e3c34dbb6ad | /ben_kremer_clinvitae/urls.py | 61103ac498270fed074b36b27f1ff25b7c810666 | [] | no_license | codeAligned/clinvitae | 61d3c160e9dbc65d548818292681a27501d330ce | 4a75c14113dc562991c7d2d1a5812d2db91e2da0 | refs/heads/master | 2020-05-17T12:02:33.514187 | 2019-02-21T06:47:35 | 2019-02-21T06:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', include('genomic_variants.urls')),
]
| [
"kremerdesign@gmail.com"
] | kremerdesign@gmail.com |
25d1da88d1366f1ccb7cbe8670e06b566940541c | c62c9f5cb72e23d9ac35260d9c556b35ae1861e4 | /collective/z3cform/html5widgets/widget_contenteditable.py | e3cdb08143c1fe06cda58e75623139d08489612d | [] | no_license | collective/collective.z3cform.html5widgets | 667cb567d1873cf0ca439df564df8c0cdf4ea6e6 | 3357495e8b445b5d75ccfc14608c55019b01bf6e | refs/heads/master | 2023-03-22T16:39:43.686088 | 2013-12-05T17:01:54 | 2013-12-05T17:01:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | #-*- coding: utf-8 -*-
from zope import interface
import z3c.form.interfaces
import z3c.form.browser.widget
import z3c.form.widget
class IContentEditableWidget(z3c.form.interfaces.IWidget):
""" ContentEditable widget marker for z3c.form"""
class ContentEditableWidget(
z3c.form.browser.widget.HTMLTextIn... | [
"toutpt@gmail.com"
] | toutpt@gmail.com |
2c61d2a6b698b46867da354fa68394e9d35fb506 | be9716e8a831305fa3b2fbedf96ee9aa8f3cfaff | /Heuristics/Better_HalideAutotuner.py | d0ae6c0cdd7ad0825fcc7d41ebc763aaa50d542a | [] | no_license | Ikraam/HalideAutotuner | 0b94e1c3b8de25cb11e67f69bc4697cf8f0b0f66 | 19153b72d2496bcdda980d8546bc9868f653d624 | refs/heads/master | 2020-03-11T11:03:55.880834 | 2018-06-13T05:04:30 | 2018-06-13T05:04:30 | 129,960,042 | 2 | 0 | null | 2018-05-03T12:29:33 | 2018-04-17T20:17:01 | Python | UTF-8 | Python | false | false | 14,100 | py | import hashlib
import Restrictions_.ReorderRestriction_ as RR
import Restrictions_.ParallelRestriction_ as PR
import Restrictions_.SplitRestriction_ as SR
import Restrictions_.TileRestriction_ as TR
import Restrictions_.ComputeAtRestriction_ as CR
import Restrictions_.StoreAtRestriction_ as StR
import Restrictions_.Vec... | [
"="
] | = |
2bdb1b2385181fd239dace5a48e5ffa805a4bd4e | 3c582a006b945cd95974d910ab5b0ff551ab42fa | /tsuru_dashboard/auth/tests/test_change_password_form.py | 7842f5c31e26fd2cb7f2eda76671938ed23b4712 | [] | no_license | tsuru/tsuru-dashboard | f8be15a72366a5cefeadd4a3aac117ed760e85bc | c94b0b1a6ec30d7f59b939adcff41646bad00e87 | refs/heads/master | 2023-06-22T12:01:20.024933 | 2022-10-20T19:50:47 | 2022-10-20T19:50:47 | 5,112,553 | 119 | 60 | null | 2023-06-13T17:53:35 | 2012-07-19T16:31:42 | Python | UTF-8 | Python | false | false | 1,514 | py | from django.test import TestCase
from django.forms import PasswordInput
from tsuru_dashboard.auth.forms import ChangePasswordForm
class ChangePasswordFormTest(TestCase):
def test_form_is_valid(self):
data = {
"old": "old",
"new": "new",
"confirm": "new",
}
... | [
"andrewsmedina@gmail.com"
] | andrewsmedina@gmail.com |
18ec3b9176c0cadcb71400f69ac095ea871c5eee | b4339826d3def43a2553f0ac8d357ed393a8f471 | /apps/operation/models.py | 1447f0a0a33afa24c352bdb28c638b809f5acae7 | [] | no_license | buzzzzx/MultiUser_blog | e8c19537d29ab4d8bc97a2ca62703110adc9d683 | 1ff6c2c345051406b5862d902ca51939be755528 | refs/heads/master | 2021-08-08T11:47:06.666011 | 2017-11-10T08:51:28 | 2017-11-10T08:51:59 | 110,224,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | from django.db import models
from account.models import UserProfile
from blog.models import Post
# Create your models here.
class PostComment(models.Model):
post = models.ForeignKey(Post, related_name='comments') # 可通过post.comments.all()
user = models.ForeignKey(UserProfile, related_name='blog_comments') ... | [
"buzzzzx233@gmail.com"
] | buzzzzx233@gmail.com |
77916008cef97dbe592ed28bdeb1fc24ef507f5b | 770801815a644df6de1d252799be520f69e467be | /dataResearch.py | 6b536432e9bb4642b8725ba2d3387a16d122c71f | [] | no_license | chutianwen/CapitalOneHackerthon | ad2b693694945ff56fa5e2ebf1c3a00dfec75439 | 5337b954b529c03c87816e8927cf1620a26e8a49 | refs/heads/master | 2021-05-07T13:37:39.336866 | 2017-11-05T17:03:44 | 2017-11-05T17:03:44 | 109,598,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,182 | py | from collections import Counter
with open("./Dataset/merchant_list.txt") as f:
text = f.read()
merchant_names = text.split(",")
text = text.lower()
text = text.replace('.', ' <PERIOD> ')
text = text.replace(',', ' <COMMA> ')
text = text.replace('"', ' <QUOTATION_MARK> ')
text = text.replace(';', ' <SEMICOLON> ')
t... | [
"tianwen.chu@fedcentric.com"
] | tianwen.chu@fedcentric.com |
791d0a9fae82a498c3c6ab479b99bb52d29b6763 | 130215e73cd45824fc5b7b2bc85949ce03115f20 | /py/portfol_classical050_1.py | 0607e55cae5a9a34dcf658afe57615f9c5a260ba | [] | no_license | felicitygong/MINLPinstances | 062634bf709a782a860234ec2daa7e6bf374371e | 1cd9c799c5758baa0818394c07adea84659c064c | refs/heads/master | 2022-12-06T11:58:14.141832 | 2022-12-01T17:17:35 | 2022-12-01T17:17:35 | 119,295,560 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 74,910 | py | # MINLP written by GAMS Convert at 11/10/17 15:35:22
#
# Equation counts
# Total E G L N X C B
# 104 52 0 52 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
"feligongcity17@gmail.com"
] | feligongcity17@gmail.com |
9851d845473ed6fbc6126a25358bcd7ae744f2b9 | 3043ff697647429b5164806e218a1bf69e96cd3d | /dolon/migrations/0004_auto__del_field_imageitem_image.py | d702793406f90a5723f909e6a3cb40bbb598fb99 | [] | no_license | erickpeirson/Dolon | bc584823bd4dbc468a5b30d4a8045d7729dfe3ab | fa33aa5589c52c4770c7a177314b0a71318e313a | refs/heads/master | 2016-09-11T02:27:07.226209 | 2014-10-15T17:02:15 | 2014-10-15T17:02:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,266 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'ImageItem.image'
db.delete_column(u'dolon_imageitem', '... | [
"erick.peirson@asu.edu"
] | erick.peirson@asu.edu |
45d2a65651be56165f6cfe5b28a341f127eb57a5 | 302442c32bacca6cde69184d3f2d7529361e4f3c | /cidtrsend-all/stage1-model/pytz/zoneinfo/America/Boa_Vista.py | 297b01070fa499ceb5132271bc1a11bdd52ca2e8 | [] | no_license | fucknoob/WebSemantic | 580b85563072b1c9cc1fc8755f4b09dda5a14b03 | f2b4584a994e00e76caccce167eb04ea61afa3e0 | refs/heads/master | 2021-01-19T09:41:59.135927 | 2015-02-07T02:11:23 | 2015-02-07T02:11:23 | 30,441,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | '''tzinfo timezone information for America/Boa_Vista.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i
class Boa_Vista(DstTzInfo):
'''America/Boa_Vista timezone definition. See datetime.tzinfo for details'''
zone = 'Amer... | [
"learnfuzzy@gmail.com"
] | learnfuzzy@gmail.com |
7ebf3809f66c13bb9a44a6e6f6da11692ab7c74b | 1817aca734cda258cbbfd9e13fbf040d76824621 | /aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/DeleteMetricRulesRequest.py | 6d8233fd23f78159ba6bc9c8e1e4547043fcfd53 | [
"Apache-2.0"
] | permissive | sdk-team/aliyun-openapi-python-sdk | 4bd770718e70e31f19e1e322727c27ba74d9fb80 | 996cb07bfcf010fe3ab65daa73d26df2f3b6e97f | refs/heads/master | 2022-08-04T13:11:56.729215 | 2022-07-25T10:01:10 | 2022-07-25T10:01:10 | 183,356,741 | 0 | 0 | null | 2019-04-25T04:33:24 | 2019-04-25T04:33:24 | null | UTF-8 | Python | false | false | 1,185 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
663175d84618b1612f00e593024da938380a9840 | 98accbb4d8c8f972bfda31e12fabab7c3ca37533 | /linux_lou_plus/step_7/multiprocess/process_sys.py | 4d33b61e088ad55ac86b641f5138761583f1014d | [] | no_license | qimanchen/interview_plan | 49e5a323f35b8b3496d5dc4baba0f12a1b2c2a13 | 6a11a1927a14ce3fc439149e907a3febbee446a7 | refs/heads/master | 2022-12-10T05:25:54.927847 | 2020-06-13T02:54:25 | 2020-06-13T02:54:25 | 194,584,004 | 0 | 0 | null | 2022-12-08T05:25:13 | 2019-07-01T02:08:27 | Python | UTF-8 | Python | false | false | 555 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time
from multiprocessing import Process, Value, Lock
def func(val, lock):
for i in range(50):
time.sleep(0.01)
with lock:
val.value += 1
if __name__ == "__main__":
# 多进程无法使用全局变量,multiprocessing 提供的 Value 是一个代理器,
# 可以实现在多进程中共享这个变量
v = Value('i', 0... | [
"1033178199@qq.com"
] | 1033178199@qq.com |
0b01324db38b6537c084e6e7d7954b7f84f49fa4 | 45d1478e29cdc173085e9fe2ae092f4c71ea19f2 | /retinaface/modeling/__init__.py | e09b09632129673b7c4c911168f1f58126455bdd | [
"MIT"
] | permissive | OxYunzhe/RetinaFace.detectron2 | 0c5f8659d17fb2e46c194dc0fcbbac7732cd54ab | 3edf1c2d539763115741819bcf16816d7c2e4c91 | refs/heads/master | 2023-03-16T07:50:51.572555 | 2020-06-10T09:41:29 | 2020-06-10T09:41:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | '''
@Copyright (c) tkianai All Rights Reserved.
@Author : tkianai
@Github : https://github.com/tkianai
@Date : 2020-04-21 13:11:05
@FilePath : /RetinaFace.detectron2/retinaface/modeling/__init__.py
@Description :
'''
| [
"tkianai@163.com"
] | tkianai@163.com |
264ccf1d747e420a00b8a22c7b1db3529c65867c | a8d68074db5c2b2697650ed0281979d3e00cf5a8 | /python-spider/shuaia.py | 4f3d70d1d53400532bacaf55f467f8d4bb664164 | [] | no_license | 15807857476/bogdata-2 | 9595609ea2ae5ae0a48c511f911df2498456467e | 1934cdfa234b77ca91e349b84688db113ff39e8c | refs/heads/master | 2023-05-26T19:10:18.439269 | 2019-05-24T02:50:41 | 2019-05-24T02:50:41 | 188,327,526 | 3 | 1 | null | 2023-05-22T21:37:27 | 2019-05-24T00:53:28 | Python | UTF-8 | Python | false | false | 1,583 | py | # -*- coding:UTF-8 -*-
from bs4 import BeautifulSoup
from urllib.request import urlretrieve
import requests
import os
import time
if __name__ == '__main__':
list_url = []
for num in range(1,3):
if num == 1:
url = 'http://www.shuaia.net/index.html'
else:
url = 'http://www.shuaia.net/index_%d.html' % num
h... | [
"2397955090@qq.com"
] | 2397955090@qq.com |
27662d158b11bc9bb0943ec4d1b442d23925248b | b75fa0885bc3ba3f153225fd3396aadef6c1f97e | /slides/pypyjs/lib-py3k/modules/_functools.py | e51a4aa7f3b13c9b4d6cc9168e73ea720b598012 | [
"MIT"
] | permissive | rfk/talk-pypyjs-what-how-why | e084303185167dbc9b704c3568e0c31d0a1f6885 | 1ab62ee32ff9495ae9313ec81e8ee2044212ea71 | refs/heads/master | 2016-09-06T05:27:09.800382 | 2015-04-10T03:12:07 | 2015-04-10T03:12:07 | 22,421,369 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | """ Supplies the internal functions for functools.py in the standard library """
try: from __pypy__ import builtinify
except ImportError: builtinify = lambda f: f
sentinel = object()
@builtinify
def reduce(func, sequence, initial=sentinel):
"""reduce(function, sequence[, initial]) -> value
Apply a function of t... | [
"ryan@rfk.id.au"
] | ryan@rfk.id.au |
5bcff5cffd28731828328a79715cde3f608f37b3 | 9fefd87bf65dd0be051988ead6fa532ad968371c | /01_MathBasic/ex15.py | 574694f9302e6bc50f1d3caf72765a3d1df5dfee | [] | no_license | et0511/linear-algebra-basics | b94659832dd16342bdc73bace18ab21d1fc3458d | b9f3a91ea9ba5b1011d619d374f238dd56c09c9a | refs/heads/master | 2023-01-22T05:35:56.850516 | 2020-11-20T08:39:14 | 2020-11-20T08:39:14 | 313,239,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | # 행렬의 산술 연산: 곱셈
import numpy as np
m1 = np.array([
[1, 2, 3],
[4, 5, 6]
])
m2 = np.array([
[10, 20, 30],
[40, 50, 60]
])
m3 = m1 * m2
print(m3)
m4 = np.multiply(m1, m2)
print(m4)
| [
"shinwon0511@gmail.com"
] | shinwon0511@gmail.com |
80a7bbe98fb1db2e7affb126f6379fbca8deaffa | 0be27c0a583d3a8edd5d136c091e74a3df51b526 | /pro_6.py | cd9f08e7650bc6d5eabf300b5b77d29d6bc94b75 | [] | no_license | ssangitha/guvicode | 3d38942f5d5e27a7978e070e14be07a5269b01fe | ea960fb056cfe577eec81e83841929e41a31f72e | refs/heads/master | 2020-04-15T05:01:00.226391 | 2019-09-06T10:08:23 | 2019-09-06T10:08:23 | 164,405,935 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | n=int(input())
l=list(map(int,input().split()))
c=0
for i in range(len(l)-2):
for j in range(i+1,len(l)-1):
for k in range(j+1,len(l)):
if l[i]<l[j]<l[k]:
c=c+1
print(c)
#no.of triplet...
| [
"noreply@github.com"
] | ssangitha.noreply@github.com |
f46db137e5ffc06d2d219a96623c75d5281f13d1 | 49986759cb09afe8888e87cb5d3d02defedf7fcf | /examples/openpyxl/openpyxl__loadedFiles_example.py | 43f14fe2d32458d4bd9f8b34649c22fd76ea9b62 | [] | no_license | Ze1598/Python_stuff | ca7e8a85ab693efb1909b1aaf3075906419ab43b | df4d9b85eeff4e14c91533135a347b59d52812c7 | refs/heads/master | 2023-04-10T16:50:37.719570 | 2023-03-26T15:06:31 | 2023-03-26T15:06:31 | 117,886,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,790 | py | '''
File that goes over basic operations with the openpyxl module: a
module for working with Excel files (.xlsx) and LibreOffice Calc
(.xls), that is, workbook files.
This file goes over the basic operations performed with these files,
without touching any writing to the files.
'''
import openpyxl
# Used to pretty-pri... | [
"jose.fernando.costa.1998@gmailcom"
] | jose.fernando.costa.1998@gmailcom |
d64351067c60d186c1b36d2c2daa144f70f80fb5 | 9d931ad4bb1ee0806a0b1012cf551d77199416ae | /isobar/pattern/harmony.py | b1d8ece983fa44e188235e02acd85ed1e43070e7 | [
"MIT"
] | permissive | EnigmaCurry/isobar | 9d8a92c44f9ba7e0eb8b8527fdb1a61691b85fe4 | 05de0d105984b642eeaca3286abf08e02e309362 | refs/heads/master | 2022-05-24T23:07:35.859526 | 2020-04-28T23:05:08 | 2020-04-28T23:05:08 | 259,672,137 | 1 | 0 | MIT | 2020-04-28T15:11:04 | 2020-04-28T15:11:02 | null | UTF-8 | Python | false | false | 576 | py | from isobar.pattern.core import *
class PFilterByKey(Pattern):
def __init__(self, input, key):
self.input = input
self.key = key
def __next__(self):
note = next(self.input)
key = Pattern.value(self.key)
if note in key:
return note
else:
r... | [
"daniel@jones.org.uk"
] | daniel@jones.org.uk |
6f3ef8ad3d317b58bdc8a750c23661686421a08f | 810b7b2bb5829bf9ce0d921395ad6ca22563915c | /question-type-fine-num-classifier-builder.py | 19e0daeeb9bccff0320b77706b209ea2dbd8f908 | [] | no_license | daksh-ddt/QuestionTypeClassifier | 5f1ee8e8f017fbe4836e24f943e92dd14ecaebe5 | 33cffbefe1869612f8d39c83bb3e72602060893d | refs/heads/master | 2020-12-25T03:01:05.344465 | 2014-03-22T16:01:24 | 2014-03-22T16:01:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,500 | py | #!/usr/bin/env python
"""
Best score: 0.928
Best parameters set:
clf__alpha: 1e-06
clf__n_iter: 50
clf__penalty: 'elasticnet'
tfidf__norm: 'l1'
tfidf__use_idf: True
vect__max_df: 0.75
vect__max_features: 5000
vect__ngram_range: (1, 2)
vect__stop_words: None
"""
__author__ = 'gavin ha... | [
"gavinhackeling@gmail.com"
] | gavinhackeling@gmail.com |
2a5efff102c4a2919f73211d409750b6f210d7c8 | 8aa9ecfe421b196589b6c9fdc0e954d02d927feb | /sphinx/source/docs/user_guide/examples/data_linked_brushing_subsets.py | 49c98cd13e1f65a5c2be6677d3b998058f107edb | [
"BSD-3-Clause"
] | permissive | hongyu9000/bokeh | b384484925c6c145e4eaf87460a3f776095e81ed | b19f2c5547024bdc288d02e73fdb65e65991df5f | refs/heads/master | 2020-09-03T15:57:31.157443 | 2019-11-04T05:25:46 | 2019-11-04T05:25:46 | 219,503,733 | 1 | 0 | BSD-3-Clause | 2019-11-04T13:06:20 | 2019-11-04T13:06:19 | null | UTF-8 | Python | false | false | 1,055 | py | from bokeh.plotting import figure, output_file, show
from bokeh.layouts import gridplot
from bokeh.models import ColumnDataSource, CDSView, BooleanFilter
output_file("linked_selection_subsets.html")
x = list(range(-20, 21))
y0 = [abs(xx) for xx in x]
y1 = [xx**2 for xx in x]
# create a column data source for the plo... | [
"bryanv@continuum.io"
] | bryanv@continuum.io |
b9ae2e9946a3611c2159abe0a20a624591d0eeca | 01abb5fe2d6a51e8ee4330eaead043f4f9aad99d | /Repo_Files/Zips/plugin.video.streamhub/resources/lib/ssources/moviesplanet.py | 60b053928b8fa5b276249a2f1673279da57f3e1c | [] | no_license | MrAnhell/StreamHub | 01bb97bd3ae385205f3c1ac6c0c883d70dd20b9f | e70f384abf23c83001152eae87c6897f2d3aef99 | refs/heads/master | 2021-01-18T23:25:48.119585 | 2017-09-06T12:39:41 | 2017-09-06T12:39:41 | 87,110,979 | 0 | 0 | null | 2017-04-03T19:09:49 | 2017-04-03T19:09:49 | null | UTF-8 | Python | false | false | 7,208 | py | # -*- coding: utf-8 -*-
'''
Exodus Add-on
Copyright (C) 2016 Exodus
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any l... | [
"mediahubiptv@gmail.com"
] | mediahubiptv@gmail.com |
741af7c3e798bb5ec67f95ad3116c1635c8b4701 | 5b8aaa4f70d6710b81033aaa300563ce23ae114d | /OpenNMT-py/onmt/inputters/text_dataset.py | 4d867f309a88e9534225534c1d672d63b532d725 | [
"MIT"
] | permissive | takatomo-k/Code | 2cbfe9481abc026e3664a16421b9f12c9b550b51 | 54ec9f656579610c86acb3276bf0d26dbe9d8761 | refs/heads/master | 2020-04-04T16:00:15.612724 | 2018-11-27T11:32:59 | 2018-11-27T11:32:59 | 156,060,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,732 | py | # -*- coding: utf-8 -*-
"""Define word-based embedders."""
from collections import Counter
from itertools import chain
import io
import codecs
import sys
import torch
import torchtext
from onmt.inputters.dataset_base import (DatasetBase, UNK_WORD,
PAD_WORD, BOS_WORD, EOS_WORD... | [
"kano.takatomo.km0@is.naist.jp"
] | kano.takatomo.km0@is.naist.jp |
a56e1a4d979e7c04e5529f06b36b64e8bd597195 | eade1861db1968645e0e17dfaa5250a4b8245b98 | /instacart/lgb.py | d145e050723dd158e83d255a6eeb91d52741768a | [] | no_license | piupiuup/competition | 5b5da56fed336e07cf99cef8f5bfe89a8f771900 | 076c30df3d2647cb3580c543e604375e84590ca7 | refs/heads/master | 2022-09-30T14:47:01.244084 | 2020-05-30T12:56:02 | 2020-05-30T12:56:02 | 268,074,180 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,569 | py | import os
import numpy as np
import pandas as pd
import lightgbm as lgb
import scipy.stats as scs
IDIR = r'C:\Users\csw\Desktop\python\instacart\data\\'
def f1(y_true,y_pred):
if (type(y_true) == float) or (len(y_true)==0):
if (type(y_pred) == float) or (len(y_pred)==0):
return 1
else... | [
"278044960@qq.com"
] | 278044960@qq.com |
7af29a7adb10691bd1d3489aa0ba317b07c05725 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03433/s436709756.py | e163d74f4c2ebdcbfc9df05eb5845a02f71786d2 | [] | 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 | 312 | py | import sys
def input(): return sys.stdin.readline().strip()
def resolve():
def main():
n=int(input())
a=int(input())
for i in range(21):
for j in range(a+1):
if 500*i+1*j==n:
return 'Yes'
return 'No'
print(main())
resolve() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
977adbcee4f7e66c212151bd3cd2debce6e3a296 | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/datamgr/metadata/metadata/service/cli/sync.py | c2b92b897f7fd23b10f29fadae1e110bf5e28230 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 2,562 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
---------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
711ef1d902fdb1f8db2c88e55e3da7671dffe1c3 | c974cf94626d04a83f3d5ccb25e06a99df537e21 | /python/ray/rllib/dqn/models.py | c3f4a08eb943e954dbe72a3c3e31f0a9cde49a0b | [
"MIT",
"Apache-2.0"
] | permissive | vtpp2014/ray | 00db3465812eb85890351dd345c43d2ed29745b8 | 4e4a4e4e062d37f3fb1c518ea5b0d0d7a32e5a60 | refs/heads/master | 2021-01-21T09:20:47.322556 | 2017-08-31T06:40:46 | 2017-08-31T06:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,153 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
import tensorflow.contrib.layers as layers
from ray.rllib.models import ModelCatalog
def _build_q_network(inputs, num_actions, config):
dueling = config["dueling"]
hiddens = c... | [
"pcmoritz@gmail.com"
] | pcmoritz@gmail.com |
8bc0bea26ee08645ad5f3477454cbb4412ca2cb6 | 747f759311d404af31c0f80029e88098193f6269 | /addons/productivity_analysis/__init__.py | d208633981a8c8e0baff59ac77e9e3b9b6a2b1e5 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | /home/openerp/production/extra-addons/productivity_analysis/__init__.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
3d36d8542ca387319e47bd61e32eb8a71c9f7a09 | 44d7c13c0b09b1433a16f2cf54df761a326630b9 | /predict_w2v.py | 7f0a3fe46be544186293cd8da95b65fd82c0cd50 | [] | no_license | gyy8426/MSRNN | 5f9abed5a6432bc9f575797fb54a5d4ff78bd874 | 2b91d8b647a4cca28bba28b26d9b88c69e6eac77 | refs/heads/master | 2022-06-18T23:17:39.494287 | 2022-06-07T15:05:30 | 2022-06-07T15:05:30 | 97,574,787 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,954 | py | from utils import *
import copy
import numpy as np
class Predict(object):
def build_sampler(self, layers, tparams,Wemb, options, use_noise, trng):
debug_print = []
#debug_print.append( theano.printing.Print('input_p.shapa')(input_p.shape))
# context: #annotations x dim
ct... | [
"842651507@qq.com"
] | 842651507@qq.com |
ffd098afc7c7363e15f0181d9a02f89ec7709a69 | a77802040fac0c1207902946f3a1e8a2d9a4fbd0 | /examples/ccxt.pro/py/binance-reload-markets.py | 50ad40b078a268a69c9fd85cc548d15e0af10bb8 | [
"MIT"
] | permissive | ndubel/ccxt | 6eef84cddc9ac42db2fd03b9eaa04befd59775e6 | 982a12b1ab0f02a11911bee8a0aba8ad4f35ded1 | refs/heads/master | 2023-07-29T15:45:37.941234 | 2022-04-05T10:26:05 | 2022-04-05T10:26:05 | 331,591,556 | 1 | 0 | MIT | 2021-01-21T10:24:16 | 2021-01-21T10:24:15 | null | UTF-8 | Python | false | false | 1,360 | py | import ccxtpro
from asyncio import get_event_loop, gather
print('CCXT Pro version', ccxtpro.__version__)
async def watch_order_book(exchange, symbol):
while True:
try:
orderbook = await exchange.watch_order_book(symbol)
datetime = exchange.iso8601(exchange.milliseconds())
... | [
"igor.kroitor@gmail.com"
] | igor.kroitor@gmail.com |
ea01353fee3883e777cd572d6adebbe811a1ae98 | 8a61f0803e9d18772d867857a5a2a15e9549e6f5 | /pnu/urls.py | 6434f255de0516ae85606ecbb65c5bbecf72cc79 | [] | no_license | hjlee73/pnu-django-201904 | 94504935bf5bdb511d7b99c138e3ea3d9ac5f758 | 6e39a9b63525a8312968cabcc190f8661e1aa9e3 | refs/heads/master | 2020-05-20T18:19:55.389915 | 2019-04-12T08:22:12 | 2019-04-12T08:22:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | from django.contrib import admin
from django.urls import include, path
# FIXME: 이 코드는 RedirectView에 의해서 제거될 것입니다.
from django.shortcuts import redirect
def root(request):
return redirect("/shop/")
urlpatterns = [
path('admin/', admin.site.urls),
path('shop/', include('shop.urls')),
path('', root),
]
| [
"me@askcompany.kr"
] | me@askcompany.kr |
552213ea699ee5c5dbeb98cc9cf8b5eaf76bed64 | cf6646983a0088248acfc5dafefd847a350bac94 | /posts/views/admin.py | 0e677adb3fb805b838df242ecf343a7ae63fbd7b | [
"MIT"
] | permissive | Toxblh/vas3k.club | a370239e95b496f234cd6dd018881f1dcfa78d69 | 97fa3c815b25a6af789ba04892627f6c6c822113 | refs/heads/master | 2022-11-09T01:43:56.581340 | 2020-07-05T18:51:21 | 2020-07-05T18:51:21 | 277,580,310 | 1 | 0 | MIT | 2020-07-06T15:30:57 | 2020-07-06T15:30:56 | null | UTF-8 | Python | false | false | 1,896 | py | from django.shortcuts import get_object_or_404, render
from auth.helpers import auth_required, moderator_role_required
from bot.common import render_html_message
from notifications.telegram.posts import announce_in_club_channel
from posts.admin import do_post_admin_actions
from posts.forms.admin import PostAdminForm, ... | [
"me@vas3k.ru"
] | me@vas3k.ru |
048521fbf9c0d46993e2505ccc84c3e21302ed2a | ec65636f2f0183c43b1ec2eac343b9aa1fc7c459 | /train/abnormal_detection_new/10.133.200.69/session_active.py | 17249ec5279b8fc88290cc73764f849af4dd5cb5 | [] | no_license | tyroarchitect/AIOPs | db5441e5180fcace77b2d1022adb53bbd0b11f23 | 46fe93329a1847efa70e5b73bcbfd54469645cdd | refs/heads/master | 2020-04-16T13:45:02.963404 | 2018-11-15T06:50:57 | 2018-11-15T06:51:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,203 | py | import tensorflow as tf
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# settings of lstm model
timesteps = 20
batch_size = 64
epochs = 5
lstm_size = 30
lstm_layers = 2
filename = "../../../datasets/1-10.133.200.69_20181027_20181109.csv"
model = "../../../model/abnormal_detection_model_new/10... | [
"873869027@qq.com"
] | 873869027@qq.com |
899ddad0ccaa03f1cccb2693cbfe0916db0a2112 | cd781c114deb0ee56fcd8e35df038397ebf8dc09 | /Classes and Objects basics/Class.py | 90dd512abd00251408ad11e23ac9c5e7d11cfc57 | [] | no_license | GBoshnakov/SoftUni-Fund | 4549446c3bb355ff74c14d6071d968bde1886de5 | de9318caaf072a82a9be8c3dd4e74212b8edd79e | refs/heads/master | 2023-06-06T04:56:14.951452 | 2021-06-30T21:50:44 | 2021-06-30T21:50:44 | 381,817,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | class Class:
__students_count = 22
def __init__(self, name):
self.name = name
self.students = []
self.grades = []
def add_student(self, name, grade):
if Class.__students_count > len(self.students):
self.students.append(name)
self.grades.append(grade)
... | [
"boshnakov.g@gmail.com"
] | boshnakov.g@gmail.com |
f2427f13f588cf7376778e89b011741ee33122e9 | 24eeb28433680606f9d1e099b19ec595552cf06b | /repo/plugin.video.shadow/resources/modules/mediaurl.py | e9b928533b79bd2f69b6f54703a5a709481a89e7 | [] | no_license | irmu/arda | d8ecdedc17bb01650b538dc9e00f438b6d0eed5a | 9b7cab3656c2497c812ab101a56ed661dd8cf4a7 | refs/heads/main | 2023-09-01T08:48:02.823681 | 2023-08-29T18:11:28 | 2023-08-29T18:11:28 | 151,835,016 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | '''
Copyright (C) 2014-2016 ddurdle
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is di... | [
"zacharias.sama@gmail.com"
] | zacharias.sama@gmail.com |
7864ee4973a26fb92dac10a132763892fb308197 | b54eb04ec2de1dec11a7143c6b5049a1d031ddaf | /test/baselines/bench/monitor.py | de942e56796664c57ce2c88a82de1e85341665de | [] | no_license | Jerryxiaoyu/CR_CPG_RL | 78c4c6e7539f08465b1f55125e04f982b1323bf2 | 69213cc48440ea66c42fbe3ace35163174686321 | refs/heads/master | 2020-03-28T12:11:51.491796 | 2018-09-14T04:32:33 | 2018-09-14T04:32:33 | 148,277,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,832 | py | __all__ = ['Monitor', 'get_monitor_files', 'load_results']
import gym
from gym.core import Wrapper
import time
from glob import glob
import csv
import os.path as osp
import json
import numpy as np
class Monitor(Wrapper):
EXT = "monitor.csv"
f = None
def __init__(self, env, filename, allow_early_resets=Fa... | [
"drl@wjy.com"
] | drl@wjy.com |
2df22224aa226dc75cbe956bcad704c9efbeb719 | d12b59b33df5c467abf081d48e043dac70cc5a9c | /uhd_restpy/testplatform/sessions/ixnetwork/globals/protocolstack/dhcpv6serverglobals/dhcpv6serverglobals.py | 321f4303de80c42f3b8c01d087612a4cd30a8aff | [
"MIT"
] | permissive | ajbalogh/ixnetwork_restpy | 59ce20b88c1f99f95a980ff01106bda8f4ad5a0f | 60a107e84fd8c1a32e24500259738e11740069fd | refs/heads/master | 2023-04-02T22:01:51.088515 | 2021-04-09T18:39:28 | 2021-04-09T18:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,767 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
10d43faffcf81b8dde6fa7ea3ea774c52a986c6b | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Numerical_Heat_Transfer_and_Fluid_Flow_Patankar/CFD_books_codes-master/Patnakar/2D_SIMPLE_algorithm.py | 1ede47be2bee4e11dc15afb666b92bb83cea0fe6 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 4,324 | py | import numpy as np
from matplotlib import pyplot as plt
# Peclet function scheme
def funcPeclet(P, n):
if n == 1:
# Central Difference
return 1 - 0.5*np.mod(P, 1)
if n == 2:
# Upwind
return 1
if n == 3:
# Hybrid
return max(0, 1 - (0.1 * pow(np.... | [
"me@yomama.com"
] | me@yomama.com |
b9d874a3c49d258fd8217ba238ad471f631b0566 | 6b5bf225a8453c5f190d8ab0e55978bb3eb7a904 | /dllutils.py | d61988930f6c224d1d149293f583a98d01e8aa4d | [
"BSD-3-Clause"
] | permissive | GrinnyManyform/pyzo | 2ffeb45d7743cc0cf88ca8606e60d12cef5c6158 | e15e4220dc33570f3f55ca9e47a24005fb6988f5 | refs/heads/master | 2021-01-20T16:42:16.496531 | 2016-09-16T11:26:12 | 2016-09-16T11:26:12 | 68,451,901 | 1 | 0 | null | 2016-09-17T12:51:13 | 2016-09-17T12:51:13 | null | UTF-8 | Python | false | false | 9,034 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2012 Almar Klein
# This module is distributed under the terms of the (new) BSD License.
""" Various utilities to modify Dynamic Link libraries.
Needed to build the Pyzo distro, and it's possible that this
functionality is needed to fix extension modules after installation in
a ... | [
"almar.klein@gmail.com"
] | almar.klein@gmail.com |
a7376cb9c16d643647caa204b56b259ea74c9399 | 0ef4371c87c2196d9c2d2706e51f4b452f6e9d19 | /4_Curso/Proyecto_Sistemas_Informáticos/model_exam_2/venv/lib/python3.7/site-packages/flake8/style_guide.py | c617f5ab89ccd6731e3ec8f31da49e238d4f9549 | [
"Apache-2.0"
] | permissive | AlejandroSantorum/Apuntes_Mat_IngInf | 49c41002314216a994aa60db04062e34abc065eb | c047e41d086f3028ec78ac3a663b9848862e52df | refs/heads/master | 2023-05-15T03:02:56.882342 | 2023-04-20T20:19:54 | 2023-04-20T20:19:54 | 212,392,195 | 29 | 10 | Apache-2.0 | 2023-09-09T13:03:45 | 2019-10-02T16:44:22 | Jupyter Notebook | UTF-8 | Python | false | false | 21,018 | py | """Implementation of the StyleGuide used by Flake8."""
import collections
import contextlib
import copy
import enum
import itertools
import linecache
import logging
import sys
from typing import Optional, Union
from flake8 import defaults
from flake8 import statistics
from flake8 import utils
__all__ = ("StyleGuide",... | [
"alejandro.santorum@gmail.com"
] | alejandro.santorum@gmail.com |
5d73acd96034f8bcfb122c5a8fd790141f859aa3 | 50b2a447cccfbad70ca2f7d19d4550a708a74cbe | /blog/urls.py | 6bfee92f9dce6c0387b338a007edade69a9decda | [] | no_license | halsayed/portfolio_project | c07fa9f21f252d5cce130c78220ceefed2504675 | c22c3d219b126b71951377285b18ce1b438a1b1d | refs/heads/master | 2020-03-20T11:25:37.333806 | 2018-06-17T21:18:50 | 2018-06-17T21:18:50 | 137,402,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.allblogs, name='allblogs', ),
path('<int:blog_id>/', views.blogdetail, name='blogdetail')
] | [
"husain@alsayed.ws"
] | husain@alsayed.ws |
6c04ed9d151a7bd672fa94d24da5c68676b8669c | bbe7d6d59ef6d7364ff06377df9658367a19c425 | /cogdominium/CogdoBarrelRoom.py | 2bda0b18b835d5204d88476acf5c89a676ed85f0 | [
"Apache-2.0"
] | permissive | DedMemez/ODS-August-2017 | 1b45c912ad52ba81419c1596644d8db2a879bd9b | 5d6214732e3245f63bfa250e3e9c881cc2dc28ad | refs/heads/master | 2021-01-22T18:37:51.626942 | 2017-08-19T02:04:51 | 2017-08-19T02:04:51 | 100,762,513 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 7,736 | py | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.cogdominium.CogdoBarrelRoom
from panda3d.core import Camera, Fog, Lens, Light, Point3, Vec3
import random
from direct.interval.IntervalGlobal import *
from direct.directnotify import DirectNotifyGlobal
from toontown.toonbase import ToontownGlobals... | [
"noreply@github.com"
] | DedMemez.noreply@github.com |
46fe97177f3bbbce62cfb44bf9651cb61d005666 | 39d17148ac0517af1b0fdfc9e0f2d962183b7953 | /dev/benchmarks/bench_check.py | d393c4fdb7662e18e06543bc2386b656eabe00af | [
"Apache-2.0"
] | permissive | Erotemic/progiter | a784f69fbca990a53d7f5abd56527f56b720c7f1 | 2d8e1a90b2de59e74c21b5f026832a119aa840e1 | refs/heads/main | 2023-06-22T05:01:03.177353 | 2023-06-20T17:36:08 | 2023-06-20T17:36:08 | 134,924,299 | 15 | 2 | Apache-2.0 | 2023-06-11T21:35:08 | 2018-05-26T02:59:51 | Python | UTF-8 | Python | false | false | 3,753 | py | import ubelt as ub
import progiter
import timerit
def basic_benchmark():
"""
Run the simplest benchmark where we iterate over nothing and compare the
slowdown of using a progress iterator versus doing nothing.
"""
N = 100_000
ti = timerit.Timerit(21, bestof=3, verbose=2)
for timer in ti.r... | [
"erotemic@gmail.com"
] | erotemic@gmail.com |
88983ba58579d66596f8efac20102f270c9fba97 | a97fb0584709e292a475defc8506eeb85bb24339 | /source code/code-Python 3.0.1/ch405.py | 6791b224e8992f7ce92ddf7376f1155f90e2870e | [] | no_license | AAQ6291/PYCATCH | bd297858051042613739819ed70c535901569079 | 27ec4094be785810074be8b16ef84c85048065b5 | refs/heads/master | 2020-03-26T13:54:57.051016 | 2018-08-17T09:05:19 | 2018-08-17T09:05:19 | 144,963,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
## 宣告user變數與passwd變數來接收使用者輸入的帳號與密碼
user = input("login:")
passwd = input("password (empty for guest):")
## 使用string.strip()函數將使用者輸入的空白字元刪除, 因為使用者可能會輸入空白字元
user = user.strip()
passwd = passwd.strip()
if (user == "" and passwd == "") or (user =="" and passwd !=""):
prin... | [
"angelak.tw@gmail.com"
] | angelak.tw@gmail.com |
64b5a847f9463a91bd9efb546c74636a4fb7aec1 | 8c73955b7b3b8e7893e8ff3d78341a99a66f6c12 | /src/train.py | 8c7ed1b65cf8e7129a30f83b730aafb482fdd906 | [] | no_license | akiFQC/shinra-attribute-extraction | ba9452d005830b6c24c80d166a8ff3bcf82a70b8 | 633f65ec5b61b8937fdf9cf24fe4ae07960e93fd | refs/heads/main | 2023-07-14T03:22:16.927915 | 2021-08-12T08:34:03 | 2021-08-12T08:34:03 | 396,015,806 | 0 | 0 | null | 2021-08-14T13:22:14 | 2021-08-14T13:22:13 | null | UTF-8 | Python | false | false | 5,631 | py | import argparse
import sys
from pathlib import Path
import json
import torch
from torch.utils.data import DataLoader
from torch.nn.utils.rnn import pad_sequence
import torch.optim as optim
from transformers import AutoTokenizer, AutoModel
from tqdm import tqdm
from seqeval.metrics import f1_score, classification_repor... | [
"suzzz428@gmail.com"
] | suzzz428@gmail.com |
93b678058a71e6771be47a04bd1790e2246fbffb | bbac91977974702ce52fc0be2e279dc7750f7401 | /backend/serializers.py | 435150b1d1ced60909c704c0a6783b467c8af0fc | [] | no_license | Occy88/BiddingSystem | bbb0cc85a3621622cbbcb1313fbe1f1fc74a8f72 | a8619bad0efee8d2256ef11f358d99c21e5a67b2 | refs/heads/master | 2023-01-13T08:53:16.450312 | 2019-12-19T18:19:59 | 2019-12-19T18:19:59 | 226,520,713 | 0 | 0 | null | 2022-12-13T00:50:21 | 2019-12-07T13:48:08 | JavaScript | UTF-8 | Python | false | false | 2,235 | py | from rest_framework import serializers
from .models import Bid, Session
from django.contrib.auth.models import Group
from django.conf import settings
from pydoc import locate
from guardian.shortcuts import assign_perm, remove_perm
class BidSerializer(serializers.ModelSerializer):
# to work out all the fk relatio... | [
"octavio.delser@gmail.com"
] | octavio.delser@gmail.com |
9ef29961f26a8da8006d6b5e60b61e46c0c62589 | 50500f7e7afc0a401cfa99bdaf438d3db90072f2 | /biothings_explorer/tests/test_biolink.py | 4e4ee740fe09c60983633aab11272b78500c4821 | [
"Apache-2.0"
] | permissive | andrewsu/bte_schema | 903112b8344512bfe608d77948d864bb134596df | b727dfded0d10b32ef215094715171ef94c38e34 | refs/heads/master | 2020-07-27T02:59:40.552124 | 2019-11-12T17:48:18 | 2019-11-12T17:48:18 | 208,845,945 | 0 | 0 | Apache-2.0 | 2019-09-16T16:23:42 | 2019-09-16T16:23:42 | null | UTF-8 | Python | false | false | 7,109 | py | import unittest
from biothings_explorer.registry import Registry
from biothings_explorer.user_query_dispatcher import SingleEdgeQueryDispatcher
class TestSingleHopQuery(unittest.TestCase):
def setUp(self):
self.reg = Registry()
def test_anatomy2gene(self):
# test <chemical, interactswith, ana... | [
"kevinxin@scripps.edu"
] | kevinxin@scripps.edu |
35663816d738485bdf96919fc9ce7de0352203df | aa7de5b75b65404715676121d61a9b06348d5f62 | /dashboard/dashboard/add_point_queue.py | 5bfbef37ce63c0d91e299373ded283810fc6d96b | [
"BSD-3-Clause"
] | permissive | benschmaus/catapult | 3ca2ede51e4a23082e634fa07a03c11158bd6d9a | f388b1f6b90c670b6524fd68a295bae26ba8db70 | refs/heads/master | 2021-01-20T07:53:45.431708 | 2017-07-17T18:03:09 | 2017-07-17T18:03:09 | 90,060,605 | 0 | 1 | null | 2017-05-02T17:38:42 | 2017-05-02T17:38:41 | null | UTF-8 | Python | false | false | 12,511 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""URL endpoint to add new graph data to the datastore."""
import json
import logging
from google.appengine.api import datastore_errors
from google.appengi... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
352e3c026ac9e26500a33e7d5012aeabdb121d71 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/ospfv3/domaf.py | 02ac83a1a12bc7d0b567879cf7630854453672ad | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,405 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
ddce670d767f93002e8d4bf8043d71eab1477f7d | f72ecf85bc1d6b4014af4b35f7677adb7c3a77f3 | /venv/bin/flask | 86ab5e43da087b90a51022571fa6526c52effbb4 | [] | no_license | PropeReferio/covid19dashapp | cef5a803a26a00fc5a7adca57625d7f3de8710f8 | aea672aca23e0d6782080c966b24da6d826e1f91 | refs/heads/master | 2022-07-14T23:09:21.063273 | 2020-11-01T18:46:14 | 2020-11-01T18:46:14 | 253,976,374 | 0 | 0 | null | 2022-06-22T01:41:02 | 2020-04-08T03:32:05 | Python | UTF-8 | Python | false | false | 264 | #!/home/bo/Desktop/Freelance/cloud-covid-dash/covid19-dash/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"lemuel.b.stevens@gmail.com"
] | lemuel.b.stevens@gmail.com | |
3ffaa9adfc101e07ad05a1009bd90c9f436236e6 | 8ecf4930f9aa90c35e5199d117068b64a8d779dd | /TopQuarkAnalysis/SingleTop/test/Mu_2011A_08Nov_part_13_cfg.py | c75a13863b8955018a45775a881133abc70b43f0 | [] | no_license | fabozzi/ST_44 | 178bd0829b1aff9d299528ba8e85dc7b7e8dd216 | 0becb8866a7c758d515e70ba0b90c99f6556fef3 | refs/heads/master | 2021-01-20T23:27:07.398661 | 2014-04-14T15:12:32 | 2014-04-14T15:12:32 | 18,765,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,786 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("SingleTopSystematics")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.options = cms.untracked.PSet(
wantSummary = cms.untracked.bool(True),
FailPath = cms.untracked.vstring('ProductNotFound','Type Mismatch')
)
process.load(... | [
"Francesco.Fabozzi@cern.ch"
] | Francesco.Fabozzi@cern.ch |
0c1eaf6ef7a2bb9f5dddea73b74a3522c161aa8e | 31a0b0749c30ff37c3a72592387f9d8195de4bd6 | /release/ray_release/cluster_manager/full.py | 766362e1e86753db1292ea1840b740d60951cc41 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | longshotsyndicate/ray | 15100bad514b602a3fa39bfe205288e7bec75d90 | 3341fae573868338b665bcea8a1c4ee86b702751 | refs/heads/master | 2023-01-28T15:16:00.401509 | 2022-02-18T05:35:47 | 2022-02-18T05:35:47 | 163,961,795 | 1 | 1 | Apache-2.0 | 2023-01-14T08:01:02 | 2019-01-03T11:03:35 | Python | UTF-8 | Python | false | false | 4,391 | py | import time
from ray_release.exception import (
ClusterCreationError,
ClusterStartupError,
ClusterStartupTimeout,
ClusterStartupFailed,
)
from ray_release.logger import logger
from ray_release.cluster_manager.minimal import MinimalClusterManager
from ray_release.util import format_link, anyscale_cluste... | [
"noreply@github.com"
] | longshotsyndicate.noreply@github.com |
17a8ecc861f7d8cd4aca3b5ccae2459c6969877e | e6d4a87dcf98e93bab92faa03f1b16253b728ac9 | /algorithms/python/reverseString/reverseString.py | 8d30b5defc2ca207f40965dab0c6cfe7eaa1a921 | [] | no_license | MichelleZ/leetcode | b5a58e1822e3f6ef8021b29d9bc9aca3fd3d416f | a390adeeb71e997b3c1a56c479825d4adda07ef9 | refs/heads/main | 2023-03-06T08:16:54.891699 | 2023-02-26T07:17:47 | 2023-02-26T07:17:47 | 326,904,500 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Source: https://leetcode.com/problems/reverse-string/
# Author: Miao Zhang
# Date: 2021-02-03
class Solution:
def reverseString(self, s: List[str]) -> None:
"""
Do not return anything, modify s in-place instead.
"""
return s.rever... | [
"zhangdaxiaomiao@163.com"
] | zhangdaxiaomiao@163.com |
5d6169c3b0d31fc740377c9c1c9ff5e09fb5a40d | 71bc873c20fbc45bb5e13095d2474496818a23f9 | /service_coldstart/code/redundant_code/send_email_withAttachment.py | 6027018a46aac7ab761d72c23456d9367df891aa | [] | no_license | 2877992943/lianyun | f31c44ea2e266bae51cae4fa464d1bae368c8d3f | a872d6cd1b2eff402bcccb326d33d086816d87af | refs/heads/master | 2021-01-20T16:17:20.226401 | 2017-05-10T06:49:31 | 2017-05-10T06:49:31 | 90,830,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,904 | py | #!/usr/bin/env python
#coding: utf-8
import pandas as pd
"""
http://www.cnblogs.com/leetao94/p/5460520.html
"""
import smtplib
from email.mime.text import MIMEText
from email.header import Header
import email.MIMEMultipart
import email.MIMEText
import email.MIMEBase
import os.path
def SendEmail(fromAdd, toAdd... | [
"2877992943@qq.com"
] | 2877992943@qq.com |
f326d396098af535a466262caabde1b751d25673 | e8fef7552fb0c354d1084d2b4e7bf16efb7b9021 | /tests/__init__.py | de4f4ac5908f313553e18bad2d117aacd1fda75c | [
"MIT"
] | permissive | TristanTTran/feets | 180ea67030c88b9eebb77923fe1af6746f654b30 | 48b16a5f2b95c0a4c05b47a88b396250faf168d6 | refs/heads/master | 2023-03-28T01:07:48.636265 | 2021-03-26T01:28:36 | 2021-03-26T01:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# The MIT License (MIT)
# Copyright (c) 2017 Juan Cabral
# 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 withou... | [
"jbc.develop@gmail.com"
] | jbc.develop@gmail.com |
41783f6cd99c7b929bf77c9029ac35890c0097a7 | 1bed2f766620acf085ed2d7fd3e354a3482b8960 | /script/hassfest/translations.py | 9c4f75f1b2d264f2ca51ebbe306546e2a3b05dba | [
"Apache-2.0"
] | permissive | elupus/home-assistant | 5cbb79a2f25a2938a69f3988534486c269b77643 | 564150169bfc69efdfeda25a99d803441f3a4b10 | refs/heads/dev | 2023-08-28T16:36:04.304864 | 2022-09-16T06:35:12 | 2022-09-16T06:35:12 | 114,460,522 | 2 | 2 | Apache-2.0 | 2023-02-22T06:14:54 | 2017-12-16T12:50:55 | Python | UTF-8 | Python | false | false | 14,840 | py | """Validate integration translation files."""
from __future__ import annotations
from functools import partial
from itertools import chain
import json
import re
import voluptuous as vol
from voluptuous.humanize import humanize_error
import homeassistant.helpers.config_validation as cv
from homeassistant.util import ... | [
"noreply@github.com"
] | elupus.noreply@github.com |
09959fbc007813a97153e55b336706d844a29ad6 | 9e0090384cdfd194188587897208f17ed031780b | /05-django-template/pjt05/manage.py | b159b3a3fdc4cf92d6370142cf28cc973586ee6c | [] | no_license | auscanaoy/flask-django-practice | ec1d5dec0d34e3d0100f4107d577bc8061988813 | 4eef9a3d0371deec9c860949f789f4d60866078a | refs/heads/master | 2023-04-03T09:31:04.002674 | 2021-04-10T05:15:32 | 2021-04-10T05:15:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pjt05.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are yo... | [
"ejisvip@gmail.com"
] | ejisvip@gmail.com |
e21891fa297ee7c4ca8a4e8d84c6160a9d883849 | 84c5ce2f75ec8d4d9704dc993682ba52745a3e12 | /m_layer/m_layer.py | d1b535b8a4da916f3951a00e1000943a97f0ea0c | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | yang-song/google-research | d0610748ae8056cfa2f89345053b386e976a1b82 | 34119b64214af089db8c675e6a03b30a0f608f66 | refs/heads/master | 2022-12-16T06:05:40.561237 | 2020-09-17T20:39:13 | 2020-09-17T20:42:11 | 296,450,555 | 1 | 0 | Apache-2.0 | 2020-09-17T21:55:10 | 2020-09-17T21:55:09 | null | UTF-8 | Python | false | false | 3,595 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
5311c7de6d4c19bc5c23b7024f94490d6e4da152 | 648f742d6db2ea4e97b83c99b6fc49abd59e9667 | /common/vault/oas/models/global_parameters_create_global_parameter_request.py | 13908154762177b2ca58227508b96bd210f59d49 | [] | no_license | jmiller-tm/replit | c56ce63718f6eb2d9b53bd09d3f7b3ef3496cb86 | c8e6af3268c4ef8da66516154850919ea79055dc | refs/heads/main | 2023-08-30T00:49:35.738089 | 2021-11-16T23:09:08 | 2021-11-16T23:09:08 | 428,809,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,259 | py | # coding: utf-8
"""
vault/kernel/core_api/proto/v1/accounts/core_api_account_schedule_tags.proto
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: version not set
Generated by: https://github.com/swagger-api/... | [
"jmiller@jmiller-tm00769-mbp.nomad.thomac.net"
] | jmiller@jmiller-tm00769-mbp.nomad.thomac.net |
124c566b11061583dd8deb7c339c1629fd4a5c2d | a6894d17fdbceb56d4364f0e279d03b16a181396 | /working-env/lib/python2.5/TurboGears-1.0.2.2-py2.5.egg/turbogears/i18n/data/fr.py | b6840bd42c607e4582867cded964637bda4f6444 | [] | no_license | thraxil/gtreed | c1c5a19178c1f50ff5e61887b13ff7b004da1d25 | ca228848364edb204b15a7411fd6192379781c78 | refs/heads/master | 2020-04-18T03:02:15.468044 | 2008-12-10T20:02:12 | 2008-12-10T20:02:12 | 88,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,518 | py | # Formatting configuration for locale fr
languages={'gv': 'manx', 'gu': 'goudjrati', 'gd': u'ga\xe9lique \xe9cossais', 'ga': 'irlandais', 'gn': 'guarani', 'gl': 'galicien', 'lg': 'ganda', 'lb': 'luxembourgeois', 'la': 'latin', 'ln': 'lingala', 'lo': 'lao', 'tt': 'tatare', 'tr': 'turc', 'ts': 'tsonga', 'li': 'limbourge... | [
"anders@columbia.edu"
] | anders@columbia.edu |
200c75fdff4fa1317c02a08f43dc506d3c02c506 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/330/usersdata/302/93449/submittedfiles/lista1.py | 3c901a262a68d819c6cfc03bf35fedd1961bb928 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | # -*- coding: utf-8 -*-
n = int(input('DIgite a quantidade de valores da matriz: '))
a = []
for i in range(0,n,1):
a.append(float(input('Digite a%d:' %(i+1))))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
12f159b5cb51056d3aa2a0c1960d1e41b4d15d73 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /73/73.set-matrix-zeroes.661615342.Accepted.leetcode.python3.py | e41b638e253235c385e74103532f377b5bc54df6 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | class Solution:
def setZeroes(self, matrix):
if not matrix or not matrix[0]:
return
h = len(matrix)
w = len(matrix[0])
rows_to_remove = set()
cols_to_remove = set()
for i in range(h):
if i not in rows_to_remove:
for j in range(w... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
27b7bea7760d2aae277db6002c3ca2da3c455373 | b8842700c2e071408bfab20bd499c6a4a47d0ccc | /week8/longest_subseq.py | 235e90d05bcab9175a7c4d4306fc0cd8ada18942 | [] | no_license | kobso1245/Algorithms | c74439b662d32b116b8ea3c7e6958b77d1a85bf5 | 1566a3b5e636f6a83f486382f17bff640da923a4 | refs/heads/master | 2016-08-10T10:11:14.314792 | 2015-10-05T21:36:45 | 2015-10-05T21:36:45 | 36,860,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | def longest_subs(elems):
table = [(0, "") for x in range(len(elems))]
max_elem = elems[0]
curr_max_elem = 0
max_length = 0
max_pos = len(elems)
for i in range(len(elems) - 1, -1, -1):
curr_max_elem = 0
curr_max_index = i
for j in range(i + 1, len(elems)):
if e... | [
"kalo.evt@mail.bg"
] | kalo.evt@mail.bg |
b43371ed5b350666c780f23524655c92cfef2f34 | 7c7236aa95ebebe241f04b98d55f3033b19dadc2 | /cms/venv/Scripts/pip3.6-script.py | c9130b7fc695e3c6029ee434982930129888e925 | [] | no_license | taisuo/cms | 57d792bb47d85bf6a4a39558a1bc34457a355c26 | dd8baa834d6426a2ce7406ea0b74eab252ef7789 | refs/heads/master | 2020-08-03T13:49:44.754754 | 2019-10-08T04:00:21 | 2019-10-08T04:00:21 | 211,765,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | #!G:\pythonwork\server\cms\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3.6'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.ex... | [
"3148378928@qq.com"
] | 3148378928@qq.com |
8cab479aead0b05b07915bd2b9ec453d151bf9d4 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_capsules.py | 32a574bf1d186e135bc230087ec65675e0aa1fde | [
"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 _CAPSULES():
def __init__(self,):
self.name = "CAPSULES"
self.definitions = capsule
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['capsule']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
73450c3296e8034de7cb80a6193f3d45d296b9e8 | dad081459d204349db0852f8e55a366b36b52b37 | /venv/bin/wheel | 414fdf58787336146cca47c1e5cb93c84f62d631 | [] | no_license | DennisMufasa/FirstFlaskApps | 78241f4be6145132bb6b03e692fc4d9d62b83687 | b5098718c1824077a6390a7dcfd924ad728d607a | refs/heads/master | 2020-03-17T17:19:04.375419 | 2018-05-17T08:34:00 | 2018-05-17T08:34:00 | 133,783,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | #!/home/mufasa/PycharmProjects/practiseII/venv/bin/python3.5
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"denny.muasa@gmail.com"
] | denny.muasa@gmail.com | |
bede46778ebd5c5b26490fecc38fe70f71dea335 | b3ee8faf7712be6edbb2e800602784125082fe90 | /tensorflow/contrib/distribute/python/parameter_server_strategy_test.py | adfe3e8b020521d9c2c409da7c6d79e0ba060330 | [
"Apache-2.0"
] | permissive | AudioStreamTV/tensorflow | dc6b657012e368c5c9bc84c370ec51d49ab5f1fc | 7277ed8ed2da84b227295216632dec52a81f63b3 | refs/heads/master | 2020-03-27T02:43:28.244731 | 2018-08-27T08:39:42 | 2018-08-27T08:39:42 | 145,813,674 | 0 | 0 | Apache-2.0 | 2018-08-23T06:55:46 | 2018-08-23T06:55:46 | null | UTF-8 | Python | false | false | 17,881 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
41548045a42748d17ade7d29eac099167198820d | dd32c5788caab10641c055b89c8c08f7b8a05361 | /pippin/config.py | 427652c0d1c6b105281b48ba0a698b382be69a79 | [
"MIT"
] | permissive | jcraig5/Pippin | bae71ab24e819f02ca732d18560cfe3543b18050 | 85db01173dd4a4f12af39cd3a2bad3a713e8767d | refs/heads/master | 2020-05-31T09:55:08.416338 | 2019-06-13T16:45:39 | 2019-06-13T16:45:39 | 190,225,226 | 0 | 0 | MIT | 2019-06-13T16:45:40 | 2019-06-04T15:09:56 | Python | UTF-8 | Python | false | false | 3,032 | py | import configparser
import inspect
import os
import logging
import hashlib
import shutil
import os
import shutil
import stat
def singleton(fn):
instance = None
def get(*args, **kwargs):
nonlocal instance
if instance is None:
instance = fn(*args, **kwargs)
return instance
... | [
"samuelreay@gmail.com"
] | samuelreay@gmail.com |
0b227badbe12d72eda1d08bf7b85c82dca9a0cc6 | 008c5aa9d132fa2549e089ae8df2ef1ce15ad020 | /response_timeout/middleware.py | dd8597205cd6de79d9e8ffdb02f0c87431542156 | [
"MIT"
] | permissive | movermeyer/django-response-timeout | 0c0cedc5c838011d314c57e4ab42252639b350f7 | 38f7462ab71d967749efc3be914e2a7a2df80f33 | refs/heads/master | 2021-01-25T14:33:17.576026 | 2013-07-20T13:56:44 | 2013-07-20T13:56:44 | 123,708,880 | 0 | 0 | MIT | 2018-03-03T16:17:38 | 2018-03-03T16:17:38 | null | UTF-8 | Python | false | false | 571 | py | from django.conf import settings
from django.utils.cache import patch_response_headers
class SetCacheTimeoutMiddleware(object):
"""
Request-phase middleware that sets the timeout of each response based on
the RESPONSE_CACHE_SECONDS
If using with UpdateCacheMiddleware, must be placed after so that it ... | [
"s.shanabrook@gmail.com"
] | s.shanabrook@gmail.com |
4cdc462c66dbf52bd65ffa90d47ca5bfebbb3f68 | 6e3e1834eaad3a0c97bf645238e59a0599e047b4 | /blog/urls/entries.py | b1a1b1567818f862b31ae4101bac790aab9a1abd | [
"JSON"
] | permissive | davogler/davsite | 2dc42bfebb476d94f92520e8829999859deae80b | edd8ceed560690fa2c3eefde236416ffba559a2e | refs/heads/master | 2021-01-19T06:31:20.655909 | 2014-01-03T19:04:13 | 2014-01-03T19:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | from django.conf.urls.defaults import *
from django.views.generic.dates import YearArchiveView, MonthArchiveView, DayArchiveView, DateDetailView
from blog.models import Entry
entry_info_dict = {'queryset':Entry.live.all(), 'date_field': 'pub_date', }
urlpatterns = patterns('',
# Pagination for the equivalent of arch... | [
"dave@sparkhouse.com"
] | dave@sparkhouse.com |
846c5cecb1d4a72e2e3b0b75e22f032feccc41ec | 5b8d0cd314fdd4537bc77ce9209ca903694b02e8 | /datasets/hate_speech_portuguese/hate_speech_portuguese.py | 577644e09ec2d76215be6cde5bf21bf6ff2ee6aa | [
"Apache-2.0"
] | permissive | amankhandelia/datasets | 97106f6d98b9cd17c50b1bf0c91f4ced6240dfd6 | 1a138f9bd2d1b62a255736375001bf918d36508d | refs/heads/master | 2023-06-21T01:08:25.212378 | 2021-07-26T13:27:59 | 2021-07-26T13:27:59 | 389,644,974 | 1 | 0 | Apache-2.0 | 2021-07-26T14:36:09 | 2021-07-26T13:36:08 | null | UTF-8 | Python | false | false | 5,287 | py | # coding=utf-8
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# 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/lice... | [
"noreply@github.com"
] | amankhandelia.noreply@github.com |
6a618c1bc31e5c1d4847dc2b5e0c0a32c900fa48 | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/range_5f0e3a0ea1418e640797b57a7df0b8d2.py | d86e43c9777830cf80b69dc5421183e66abe8cff | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 84,931 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
b2b0bcb274470509901337f8aafa2e13ec47fc33 | 278d7f4467a112416d1adfbcd3218033ff0fd9b3 | /configs/gfl/gfl_r50_fpn_mstrain_2x_coco.py | ace084ddd452aab6f3f34cc7bc60057b5b0e2962 | [] | no_license | Young-1217/detection | e3d67938b454e955b5b7a82d5ae222e62f9545fb | 6760288dac92e00ddc3e813ed0e1363c1fa1ce2d | refs/heads/main | 2023-06-01T21:41:37.998947 | 2021-06-21T10:03:01 | 2021-06-21T10:03:01 | 371,868,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | _base_ = './gfl_r50_fpn_1x_coco.py'
# learning policy
lr_config = dict(step=[16, 22])
total_epochs = 24
# multi-scale training
img_norm_cfg = dict(
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
train_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='LoadAnnotations... | [
"noreply@github.com"
] | Young-1217.noreply@github.com |
c56df2a10e85a364cc8f8a5be1347de8cc461462 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_068/ch152_2020_06_21_21_06_14_910169.py | 9ecba31ee2d4056ecb74c2d89f3f12ef2d768425 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | def verifica_preco(nome, n_cor, c_preco):
cor = n_cor[nome]
preco = c_preco[cor]
return preco | [
"you@example.com"
] | you@example.com |
90d7e06f3f8f8cb42fee6802b20f759e7005b963 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Sklearn_scipy_numpy/source/sklearn/ensemble/weight_boosting.py | 9921afb4c5eddd2d815d5a2d70818839b8f59e9b | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 40,733 | py | """Weight Boosting
This module contains weight boosting estimators for both classification and
regression.
The module structure is the following:
- The ``BaseWeightBoosting`` base class implements a common ``fit`` method
for all the estimators in the module. Regression and classification
only differ from each ot... | [
"master@MacBook-Pro-admin.local"
] | master@MacBook-Pro-admin.local |
f4c5184a6cca72d60a9a2cf2d98f15f9d2314811 | f907f8ce3b8c3b203e5bb9d3be012bea51efd85f | /around_square.py | b2b414eff97fad0c386ab0b4c9d138fc545e7555 | [] | no_license | KohsukeKubota/Atcoder-practice | 3b4b986395551443f957d1818d6f9a0bf6132e90 | 52554a2649445c2760fc3982e722854fed5b8ab1 | refs/heads/master | 2020-08-26T15:17:29.344402 | 2019-10-26T11:14:24 | 2019-10-26T11:14:24 | 217,052,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import math
N = int(input())
res = 0
for i in range(int(math.sqrt(N))+1):
val = i**2
if val > res:
res = val
print(res)
| [
"kohsuke@KohsukeKubotas-MacBook-Air.local"
] | kohsuke@KohsukeKubotas-MacBook-Air.local |
02e4fbe4535d2b7c0983b305399c7b442082d716 | 251d56a94b0d879a07a3d47a41f21258fa452a1f | /soqt/lilac.py | 4127feb783bb69597b471987d0d06cc245cd1b83 | [] | no_license | paroque28/arch4edu | d9bb5f5af008989454fe71677621149ae45c58cc | 24df17749cf556ed668c3a886a698ecbdcca211c | refs/heads/master | 2020-12-26T13:33:43.987122 | 2020-01-27T16:41:41 | 2020-01-27T16:41:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | #!/usr/bin/env python3
from lilaclib import *
maintainers = [{'github': 'petronny'}]
update_on = [{'aur': None}]
repo_depends = ['coin']
build_prefix = 'extra-x86_64'
pre_build = aur_pre_build
post_build = aur_post_build
if __name__ == '__main__':
single_main(build_prefix)
| [
"i@jingbei.li"
] | i@jingbei.li |
e007362f985c8d2e6793d6f6d5e7ba3a6cdecbdd | d6254d3a0996d7977816c167bc2af76677a52b87 | /bigsi/cmds/search.py | cdbdd27ce5975e51c6880a3a79b9cbab407014af | [
"MIT"
] | permissive | rpetit3/BIGSI | f95c57a58e4ccfdd3d098737d76962a44565163e | d3e9a310e6c91c887d7917ced5609b6002a67623 | refs/heads/master | 2020-04-03T11:30:04.683289 | 2018-06-08T14:47:33 | 2018-06-08T14:47:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,634 | py | #! /usr/bin/env python
from __future__ import print_function
# from bigsi.utils import min_lexo
from bigsi.utils import seq_to_kmers
from bigsi.graph import BIGSI as Graph
import argparse
import os.path
import time
from Bio import SeqIO
import json
import logging
import sys
logger = logging.getLogger(__name__)
from big... | [
"wave@phel.im"
] | wave@phel.im |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.