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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ba96bc54e21848c73345987d7adeeb6c34db2b6c | e7a87d9eca87d8be7b23b3a57c1d49f0ad6d20bc | /django_evolution/compat/apps.py | 4d3b0b6371ada68f0f9cff1a5f2c8ad5d844b0dc | [
"BSD-2-Clause"
] | permissive | beanbaginc/django-evolution | 19a775a223b61861f503925216fb236b822122c0 | 756eedeacc41f77111a557fc13dee559cb94f433 | refs/heads/master | 2023-06-22T07:25:32.401292 | 2022-11-10T03:23:50 | 2022-11-10T03:23:50 | 14,189,401 | 22 | 13 | null | 2015-01-07T01:15:08 | 2013-11-07T00:04:43 | Python | UTF-8 | Python | false | false | 6,122 | py | """Compatibility functions for the application registration.
This provides functions for app registration and lookup. These functions
translate to the various versions of Django that are supported.
"""
from __future__ import unicode_literals
from django.conf import settings
from django.core.exceptions import Imprope... | [
"christian@beanbaginc.com"
] | christian@beanbaginc.com |
268f750797e1a7249652d7a0247d8f5253ffa2fb | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_org_apache_sling_caconfig_impl_configuration_resolver_impl_info.py | 6e1f1ee41c0859498fa2cb56c04756c1d3068ad7 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,345 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-... | [
"michael.bloch@shinesolutions.com"
] | michael.bloch@shinesolutions.com |
a1dc08be45495a4750667ad658b66fe840bd1528 | 1b19103c7781c31b4042e5404eea46fa90014a70 | /cenit_learnifier_api_1_1_0/models/config.py | 46db87206b9fdca0f2085e8f92dc0a166911f7e3 | [] | no_license | andhit-r/odoo-integrations | c209797d57320f9e49271967297d3a199bc82ff5 | dee7edc4e9cdcc92e2a8a3e9c34fac94921d32c0 | refs/heads/8.0 | 2021-01-12T05:52:26.101701 | 2016-12-22T03:06:52 | 2016-12-22T03:06:52 | 77,223,257 | 0 | 1 | null | 2016-12-23T12:11:08 | 2016-12-23T12:11:08 | null | UTF-8 | Python | false | false | 2,516 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010, 2014 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | [
"sanchocuba@gmail.com"
] | sanchocuba@gmail.com |
27726be64a543a5d321945af0c9442e9b320c003 | 74d66269984cec1527dbfb5aa9772775e2198ad6 | /examples/framework_examples/dqn_apex.py | 42bdec84702b7a4b2522097834c9976c900b3c83 | [
"MIT"
] | permissive | Silas-Asamoah/machin | 34dfa0717ba266a70e7ae11d60bf0055f222b2b3 | af1b5d825e27a98deab7130eedbe1c2505dacf9d | refs/heads/master | 2023-01-28T21:17:42.690424 | 2020-12-05T09:18:36 | 2020-12-05T09:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,177 | py | from machin.frame.helpers.servers import model_server_helper
from machin.frame.algorithms import DQNApex
from machin.parallel.distributed import World
from machin.utils.logging import default_logger as logger
from torch.multiprocessing import spawn
from time import sleep
import gym
import torch as t
import torch.nn as... | [
"hanhanmumuqq@163.com"
] | hanhanmumuqq@163.com |
bedae5fc6afce8230f9020cf03d6faa9d338190f | 3b11a2535689377b63717a9086d2075e0443a1f7 | /backend/home/migrations/0001_load_initial_data.py | 43b8b03911ca58c6189c200ef9cbc035c11a9c5a | [] | no_license | Maria7786/mute-dawn-31229 | 80aa3d6a3d56987edd092a5e23e494a94d2ec878 | 85c408914566443049d9b4ed90fd6bb95896bde2 | refs/heads/master | 2023-08-12T02:28:53.782642 | 2021-10-08T06:31:03 | 2021-10-08T06:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "mute-dawn-31229.botics.co"
site_params = {
"name": "Mute Dawn",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_or_crea... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c1647c310f7856e0d4e48b1f44eae86b399b09a7 | 2cc6d07914e4b46f5a1f46c616fd0260f1edf646 | /docker-task/ret2win32/bin/ret2win32.py | af96e7d5608af8c208bc9361c997650863f979ce | [] | no_license | qingyiangran/rop_emporium | 17abc26f048fab749745f5e9655b0086993f14f2 | 98a16f274eabd245eb00ffc50d1fc2b6aa1947ee | refs/heads/master | 2022-09-30T19:21:53.710952 | 2020-06-08T06:24:11 | 2020-06-08T06:24:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | #!/usr/bin/python
#coding=utf-8
#__author__:TaQini
from pwn import *
local_file = './ret2win32'
local_libc = '/lib/x86_64-linux-gnu/libc.so.6'
remote_libc = local_libc # '../libc.so.6'
is_local = False
is_remote = False
if len(sys.argv) == 1:
is_local = True
p = process(local_file)
libc = ELF(local_li... | [
"742954809@qq.com"
] | 742954809@qq.com |
d5abedab589ced124c3687f1c1bc19016d446727 | 45489e34d62e2b4a1f940e02a05d2d02fec22209 | /SpiderKingdom/urls.py | d787e02a160e3db9b868403d08c0d71526e13922 | [] | no_license | yin6516008/TS | 3dde76a9ef9682578441df8f1c72df236567902a | 9f83d7fcf4a2ee9d729892be2c02b2b09361aae2 | refs/heads/master | 2020-03-24T17:32:00.035079 | 2018-08-01T10:30:44 | 2018-08-01T10:30:44 | 142,862,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | from django.conf.urls import url
from django.conf.urls import include
from SpiderKingdom import views
from rest_framework import routers
from SpiderKingdom import views
router = routers.DefaultRouter()
router.register(r'users', views.UserViewSet)
router.register(r'groups', views.GroupViewSet)
router.registe... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
8fa3718facd97ec9c61d956e50fe22639699156e | c2c03e034513a766c7de8298be428fb3eab3ab7b | /chainerrl/NeverSay20/env/bin/f2py | 4ecd45b705ee1bd2aae9806f80f61bb6ef1b1145 | [] | no_license | hamko/sample | 434adeca12e11587edce8cad799162b84c7f5071 | 9b0624b99e3e551d6b72b632d3a7d1a38aac7a9f | refs/heads/master | 2021-01-17T02:51:25.174354 | 2018-10-23T02:40:04 | 2018-10-23T02:40:04 | 9,640,383 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 800 | #!/home/hamko/git/sample/chainerrl/TicTacToe/env/bin/python3
# See http://cens.ioc.ee/projects/f2py2e/
from __future__ import division, print_function
import os
import sys
for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]:
try:
i = sys.argv.index("--" + mode)
del sys.argv[i]
... | [
"wakataberyo@gmail.com"
] | wakataberyo@gmail.com | |
e53ad4103953f54232b6f350f6e9129a291a2e1c | 0a1f8957a798006deaa53d10d09f733fab1e6b05 | /bin/Python27/Lib/site-packages/omniORBpy-4.2.0/lib/python/omniORB/COS/CosTypedNotifyChannelAdmin__POA/__init__.py | 274eb1c95e96e81dcde9e097b1e0a4dcbd0ab9b1 | [
"LicenseRef-scancode-other-permissive"
] | permissive | metamorph-inc/meta-core | a89504ccb1ed2f97cc6e792ba52e3a6df349efef | bc7a05e04c7901f477fe553c59e478a837116d92 | refs/heads/master | 2023-03-07T02:52:57.262506 | 2023-03-01T18:49:49 | 2023-03-01T18:49:49 | 40,361,476 | 25 | 15 | NOASSERTION | 2023-01-13T16:54:30 | 2015-08-07T13:21:24 | Python | UTF-8 | Python | false | false | 301 | py | # DO NOT EDIT THIS FILE!
#
# Python module CosTypedNotifyChannelAdmin__POA generated by omniidl
import omniORB
omniORB.updateModule("CosTypedNotifyChannelAdmin__POA")
# ** 1. Stub files contributing to this module
import CosTypedNotifyChannelAdmin_idl
# ** 2. Sub-modules
# ** 3. End
| [
"kevin.m.smyth@gmail.com"
] | kevin.m.smyth@gmail.com |
099019d67635e8959d837c8791dbfe078e97ed65 | b41dbe2c3223e22f1fbd834fa1b74ec484702534 | /setup.py | aaa4eae972614b13522dcee31057104e77f1712b | [] | no_license | kwoolter/gpx_analysis | f12d30e5416f525d39f7109bceb2ad9f60bd06a9 | 2d809ace82d96b3fbcd2d3cd61ce1d142c3e6c0c | refs/heads/master | 2022-09-07T13:14:16.289614 | 2020-05-19T09:03:43 | 2020-05-19T09:03:43 | 264,803,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | from setuptools import setup
setup(
name='gpx_analysis',
version='',
packages=['gpx_analysis'],
url='',
license='',
author='kwoolter',
author_email='',
description='',
install_requires = ['pandas', 'gpxpy']
)
| [
"keith.woolterton@gmail.com"
] | keith.woolterton@gmail.com |
88544e4dcca7e40ad343bee1ddd2615bc291628b | 4ede96380f20c65e014f7e5748789c81a4700115 | /complex/complex_pb2.py | ff516978458d5fdd60ba76304e68e746e4c84f0b | [] | no_license | DavidWalshe93/Python_Protobuf | 1724689fc4d24c51d2bf40cb5ac2655355ed9aae | 1af5ecf7ac9fd479b7e283d9cb5ef1c5dd54a94a | refs/heads/master | 2022-04-20T08:04:38.660161 | 2020-04-18T00:26:51 | 2020-04-18T00:26:51 | 256,630,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 4,187 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: complex.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_d... | [
"david.walshe93@gmail.com"
] | david.walshe93@gmail.com |
f8b82507e3b52ddf92cdc39752e6e581f4a584b7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03036/s201107725.py | 1af652533bcb364e1fcefd93bc68c188b9e1c8a1 | [] | 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 | 130 | py | def mass(r, D, x):
return r*x - D
r, D, x = map(int, input().split())
for _ in range(10):
x = mass(r, D, x)
print(x) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
63bc0d71d7cde2d387dd3fb81c3b8f9c797a1e07 | fac51719e067ee2a70934e3bffdc98802d6dbb35 | /src/stronghold/rosalind_fibd.py | ebae89a00d6c3c43b933588319bfb333d3363c14 | [
"MIT"
] | permissive | cowboysmall-comp/rosalind | 37730abdd03e86a2106ef39b39cdbae908f29e6e | 021e4392a8fc946b97bbf86bbb8227b28bb5e462 | refs/heads/master | 2022-03-05T14:30:21.020376 | 2019-11-20T02:03:09 | 2019-11-20T02:03:09 | 29,898,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../tools'))
import files
import combinatorics
def main(argv):
n, m = files.read_line_of_ints(argv[0])
print combinatorics.fibonacci_with_mortality(n, m)
if __name__ == "__main__":
main(sys.argv[1:])
| [
"jerry@cowboysmall.com"
] | jerry@cowboysmall.com |
cb8b62f68af536bf53106f52a181962b4a62d27e | f76e11d4da15768bf8683380b1b1312f04060f9a | /lex_dep_conll_randomly.py | 91cf5c46bb79db6faaa0d519b070f648911847b0 | [] | no_license | rasoolims/scripts | 0804a2e5f7f405846cb659f9f8199f6bd93c4af6 | fd8110558fff1bb5a7527ff854eeea87b0b3c597 | refs/heads/master | 2021-07-07T03:53:20.507765 | 2021-04-13T14:53:00 | 2021-04-13T14:53:00 | 24,770,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | import os,sys,codecs,random
from mst_dep_tree_loader import DependencyTree
from collections import defaultdict
from random import randint
def read_grams(file_path):
reader = codecs.open(file_path,'r')
bigrams = defaultdict(list)
trigrams = defaultdict(list)
unigrams = defaultdict(list)
line = reader.readline()
... | [
"rasooli.ms@gmail.com"
] | rasooli.ms@gmail.com |
f3a17057535a5470347aec5d7e9082c1fba794a3 | 1f1e8b335470065b67cce28338cfb4a6da503c95 | /0x03-python-data_structures/9-max_integer.py | 1036fa892e7ca0e930e4e0fb28fac2535bc40339 | [] | no_license | guxal/holbertonschool-higher_level_programming | 48353071e719a509e10f3067f0c3f88cb44bd27d | fffd287c510602dc45e36df486f60cdfa1205335 | refs/heads/master | 2020-07-22T23:40:03.266880 | 2020-02-14T02:42:11 | 2020-02-14T02:42:11 | 207,370,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | #!/usr/bin/python3
def max_integer(my_list=[]):
if len(my_list) is 0:
return (None)
_max = my_list[0]
for i in my_list[:]:
if (_max < i):
_max = i
return (_max)
| [
"jonathanacp93@gmail.com"
] | jonathanacp93@gmail.com |
13a53613fcd588305d4af4cf3127fd1af004d65c | ba744a96d4c8fbcbaa15bcdbc5c3efe3860578b7 | /apps/trade/migrations/0001_initial.py | f030621112e685196238e8bb53928904d33295b9 | [] | no_license | zhangliang852469/Mx_shop_afterend | d84107887936baf122ed489de766f5d22958865b | 9d04de806d6ec87778f2ebe002459ee6a854915e | refs/heads/master | 2022-12-17T21:03:21.315285 | 2019-06-18T09:49:51 | 2019-06-18T09:49:51 | 192,023,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,744 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2019-06-13 07:36
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('goods', '0001_initial'),
]
ope... | [
"710567585@qq.com"
] | 710567585@qq.com |
ca921fc2fbaabafea8ea8a27c3a5c456d9de049e | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /build/pal_simulation_msgs/catkin_generated/pkg.develspace.context.pc.py | ef59934517d574ec416e392bcf9c47a693ac42db | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/sandeepan/tiago_public_ws/devel/.private/pal_simulation_msgs/include".split(';') if "/home/sandeepan/tiago_public_ws/devel/.private/pal_simulation_msgs/include" != "" else []
PROJECT_CATKIN_DEPEN... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
5f674d770f55421b0aea0d1f856866842bd347bc | 5b3090dece7d3d276922f53bfba18fdff3a5ba12 | /app/res/language/chinese.py | e1f1e471b598aca0a8ca550835d409bc133ca151 | [
"MIT"
] | permissive | HsOjo/PyJSONEditor | 338978b36a545982bec7285ba1de9aa5704f39b0 | c2cf5398fa569ba0575048f3deebbf23028a61a1 | refs/heads/master | 2020-06-30T00:35:40.215143 | 2019-10-15T11:27:01 | 2019-10-15T11:27:01 | 200,668,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | from .english import English
class Chinese(English):
l_this = '简体中文'
unknown = '未知内容: (%s)'
cancel = '取消'
ok = '确定'
preferences = '偏好设置'
untitled = '未命名'
node_root = '根节点'
node_item = '项目'
node_items = '项目'
node_none = '(无)'
node_num = '(%d 个%s)'
col_key = '键'
col... | [
"1134031392@qq.com"
] | 1134031392@qq.com |
a6e1433feed00f513880cc74887b39790b9279f6 | 6f255449d5790a1124ca56bec0e3dc457c1b3958 | /final-exam/z5103095.files/question_1.py | 8d913a44608897cd62ed013f3c4b56efdd012829 | [] | no_license | tomtang110/comp9021 | ac8995f3f558ffdfff7af76a08c67e208fe26aa4 | 6c9e6404f515a72bc94a185c1c98d5aba49266c8 | refs/heads/master | 2020-03-23T18:56:41.177586 | 2018-07-24T04:56:23 | 2018-07-24T04:56:23 | 141,943,053 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,854 | py | from random import seed, randint
import sys
def f(arg_for_seed, nb_of_elements, max_element):
'''
>>> f(0, 0, 10)
Here is L: []
The decomposition of L into longest sublists of even numbers is: []
>>> f(0, 1, 10)
Here is L: [6]
The decomposition of L into longest sublists of even... | [
"tomtang110@outlook.com"
] | tomtang110@outlook.com |
336358a0ad3cb966e795d63dcf4df7dc65bebfd0 | b4ddc954a7dc0d24352de64a567c10c9e7231eee | /LeetCode/Find_The_Highest_Altitude.py | 5aa48147d753e47d66b4ede34758f663c816763b | [] | no_license | sharadbhat/Competitive-Coding | 4d80c99093bf05a2213799c95467309cf3e40d07 | 79eec04cc6b1ac69295530bda1575ecb613a769e | refs/heads/master | 2023-07-05T02:25:33.397140 | 2023-06-27T05:38:12 | 2023-06-27T05:38:12 | 78,031,600 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # Leetcode
# https://leetcode.com/problems/find-the-highest-altitude/
class Solution:
def largestAltitude(self, gain: List[int]) -> int:
maximum = curr = 0
for i in gain:
curr += i
maximum = max(curr, maximum)
return maximum
| [
"sharad.mbhat@gmail.com"
] | sharad.mbhat@gmail.com |
79e334c49ed3d3a075006d71c996f566dcc982ef | 2c4efe2ce49a900c68348f50e71802994c84900a | /braindecode-master/braindecode/torch_ext/modules.py | 57a1d4161d2312d7d0d5b863cd63e97d67fa9f82 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | sisi2/Masterthesis | b508632526e82b23c2efb34729141bfdae078fa0 | 7ce17644af47db4ad62764ed062840a10afe714d | refs/heads/master | 2022-11-19T15:21:28.272824 | 2018-08-13T15:02:20 | 2018-08-13T15:02:20 | 131,345,102 | 2 | 1 | null | 2022-11-15T14:08:07 | 2018-04-27T21:09:21 | Python | UTF-8 | Python | false | false | 4,098 | py | import numpy as np
import torch
import torch.nn.functional as F
from braindecode.torch_ext.util import np_to_var
class Expression(torch.nn.Module):
"""
Compute given expression on forward pass.
Parameters
----------
expression_fn: function
Should accept variable number of objects of type... | [
"dansyefila@gmail.com"
] | dansyefila@gmail.com |
c4fe238528f8bb4be22c782626032f888f42d1e7 | 74f8d8c8030ce0c8cd3622cb99f0a668ba93a7e8 | /dialogue-engine/test/programytest/aiml_tests/nlu_tests/test_nlu_slot.py | 0b797c7c29de2c01824c888d826a4eee3e344040 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Tommytosik/cotoba-agent-oss | 3124a376ac0ca1147a58405a8f269a0eb68bc014 | 78e5c2c244b92e71755783d972228904c4d0d373 | refs/heads/master | 2022-12-08T15:44:27.731731 | 2020-08-04T08:36:41 | 2020-08-04T08:36:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,774 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
019cbaa07ad0766032c2a89bc17316db464fda96 | fc20620a1fe41c83cb4c17ce36e5d3e6d5dd58fa | /src/python/dicomifier/bruker_to_dicom/modules/__init__.py | 8505c3863b861b74d2df358cc07af97daa8ae843 | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | lamyj/dicomifier | bdd3ad5756563365fe59a31166cbcaa14f98603f | 8601760917f7ef47d87fbd61d2c647c3d9cbeb3e | refs/heads/master | 2023-04-28T15:45:52.571809 | 2023-04-20T15:50:03 | 2023-04-20T15:50:03 | 32,533,252 | 33 | 11 | NOASSERTION | 2022-09-12T16:53:20 | 2015-03-19T16:28:40 | Python | UTF-8 | Python | false | false | 763 | py | #########################################################################
# Dicomifier - Copyright (C) Universite de Strasbourg
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
# for... | [
"lamy@unistra.fr"
] | lamy@unistra.fr |
834701c6886d9fc50ad7caaac9114177ec009c26 | cfb4e8721137a096a23d151f2ff27240b218c34c | /mypower/matpower_ported/lib/t/t_scale_load.py | cfcda91b7bde4b86375aa3eeedd50b764ef7a0b3 | [
"Apache-2.0"
] | permissive | suryo12/mypower | eaebe1d13f94c0b947a3c022a98bab936a23f5d3 | ee79dfffc057118d25f30ef85a45370dfdbab7d5 | refs/heads/master | 2022-11-25T16:30:02.643830 | 2020-08-02T13:16:20 | 2020-08-02T13:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | def t_scale_load(*args,nout=3,oc=None):
if oc == None:
from ....oc_matpower import oc_matpower
oc = oc_matpower()
return oc.t_scale_load(*args,nout=nout)
| [
"muhammadyasirroni@gmail.com"
] | muhammadyasirroni@gmail.com |
fc55491fbed4cacbf6017d6389f90e8d5df11cb8 | 6534d071078db552573aa7ad7fd66c6beba15f35 | /rexlex/log_config.py | bd5fdccc5e69dda40c0cdb90e7422d3f05e81111 | [
"BSD-3-Clause"
] | permissive | twneale/rexlex | 7f40f4db30485d409ec5ceea3fb1053cbdf81e95 | 6c451a3b7e9134cbdf895a7ec5682e480480ef1a | refs/heads/master | 2021-01-20T11:06:17.888743 | 2017-01-22T03:59:14 | 2017-01-22T03:59:14 | 18,271,416 | 1 | 1 | BSD-3-Clause | 2018-03-05T00:40:18 | 2014-03-30T19:11:41 | Python | UTF-8 | Python | false | false | 7,091 | py | '''
Establish custom log levels for rexlexer's verbose output.
'''
import logging
from rexlex.config import LOG_MSG_MAXWIDTH
# ---------------------------------------------------------------------------
# Establish custom log levels.
# ---------------------------------------------------------------------------
# Use... | [
"twneale@gmail.com"
] | twneale@gmail.com |
752dd8866e161902f3d6aac9099c7dfaea881ff2 | b299e95c1660aeb9933d83b15689d39e3af60456 | /www_douyin_com/config.py | 5a60a49447d372f7bfce14b609fd8a28db5669ab | [] | no_license | beckfun/spider_world | 537e700ec84e00efb18fbe4c78ace18f0fe54151 | 06a39872d7dfaf1421b19dbed78ad3c8139f0a19 | refs/heads/master | 2020-05-04T09:06:19.995407 | 2019-04-02T01:19:48 | 2019-04-02T01:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | #!/usr/bin/env python
# coding:utf-8
DEFALUT_REQ_TIMEOUT = 5
MAX_RETRY_REQ_TIMES = 3
RETRY_RANDON_MIN_WAIT = 1000 # ms
RETRY_RANDON_MAX_WAIT = 5000 # ms
COMMON_HEADERS = {"User-Agent": "okhttp/3.10.0.1"}
APPINFO = {
"version_code": "290",
"app_version": "2.9.0",
"version_name": "2.9.0",
"device_p... | [
"funblessu@gmail.com"
] | funblessu@gmail.com |
3c4f26b39fa995a853f94619629f1d94f6dcdd2c | a3b4db7fce646268abf3763cbc105534febf8713 | /Functional Programming/functional_programming_filter.py | 45f3803e0403c755328e910f72f8270ffe5360fd | [
"MIT"
] | permissive | brianchiang-tw/Python_Toolbox | 5d50df67153ef62a05595da17aebc66f570eddb4 | 9fed9c8734745f8998bc178694b0bdb780142a89 | refs/heads/master | 2020-11-24T21:35:47.099063 | 2019-12-24T11:52:39 | 2019-12-24T11:52:39 | 228,350,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | def demo_filter():
num_list = list( range(1, 11) )
## Example_#1:
# pick even number
result = list( filter( lambda x:x%2==0, num_list) )
# [2, 4, 6, 8, 10]
print( result )
## Example_#2:
# pick odd number
result = list( filter( lambda x:x%2==1, num_list) )
# [1, 3, 5, 7, 9... | [
"brianchiang1988@icloud.com"
] | brianchiang1988@icloud.com |
9281e896a60cfa26ef19185971c84b694854a02d | 5c099927aedc6fdbc515f40ff543c65b3bf4ec67 | /algorithms/symmetric-tree/src/Solution.py | 3c4be730abd0ef2e7a6b6f156a31cef45ad5def5 | [] | no_license | bingzhong-project/leetcode | 7a99cb6af1adfbd9bb1996a7f66a65679053c478 | ba82e7d94840b3fec272e4c5f82e3a2cfe4b0505 | refs/heads/master | 2020-04-15T09:27:33.979519 | 2020-03-10T03:43:07 | 2020-03-10T03:43:07 | 164,550,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def isSymmetric(self, root):
"""
:type root: TreeNode
:rtype: bool
"""
def symmetric(paths):
... | [
"zhongyongbin@foxmail.com"
] | zhongyongbin@foxmail.com |
846156dea3633908b6dc661e9d7f8eecb044c23b | 4be944cfcd6a9fd45c727e063765d59c77079877 | /Anaklit.py | 3a87ae792b14bff93447e29150343826ed94bcb0 | [] | no_license | Igor-Zhuk/Lessons-IZ- | f1b67c94de85c8f3796c37a30f33e49f2bbb62ce | 120b94cc115395632dd872b7ef62cac86aa65d15 | refs/heads/master | 2021-01-11T20:37:44.636402 | 2017-01-27T17:33:08 | 2017-01-27T17:33:08 | 79,156,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | from selenium import webdriver
driver = webdriver.Chrome()
driver.get('http://uk.wikipedia.org')
seach_form = driver.find_element_by_css_selector('#searchInput')
seach_form.send_keys('список римських пап')
seach_button = driver.find_element_by_css_selector('#searchButton')
seach_button.click()
pope_cletus = driver... | [
"test@test.com"
] | test@test.com |
621dc95e864026fe0243c7a2462182de011d8f60 | 299fe2ca879e509798e95c00b7ba33914031f4a7 | /eruditio/shared_apps/django_metatagging/forms.py | ed4aeffd7ebd07107be6b4732d04b510f4c4f84f | [
"MIT"
] | permissive | genghisu/eruditio | dcf2390c98d5d1a7c1044a9221bf319cb7d1f0f6 | 5f8f3b682ac28fd3f464e7a993c3988c1a49eb02 | refs/heads/master | 2021-01-10T11:15:28.230527 | 2010-04-23T21:13:01 | 2010-04-23T21:13:01 | 50,865,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | import django.forms as forms
import django_utils.form_widgets as form_widgets
import django_utils.html_helpers as html_helpers
import django_utils.form_helpers as form_helpers
from tagging.models import Tag
def build_retag_form(object):
initial_tags = [tag.name for tag in Tag.objects.get_for_object(object)]
t... | [
"genghisu@6a795458-236b-11df-a5e4-cb4ff25536bb"
] | genghisu@6a795458-236b-11df-a5e4-cb4ff25536bb |
d15218fea4676e1d776105758f2846a22272c89d | 7d8c7866b15a90f732d46bbbea686f96f104c77a | /lidar/protox2d_consume.py~ | 3fc2755d66902b09750f3dafd59ba447594c8713 | [] | no_license | lforet/astroid | 285cf1d7c6d081095292fea11913a86286d762a6 | 245ffda31d4f11039e8798faf6ca959ed087ac65 | refs/heads/master | 2020-12-24T15:58:24.335543 | 2015-05-15T12:37:13 | 2015-05-15T12:37:13 | 13,452,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | #!/usr/bin/python
import pika
import thread, time, sys, traceback
''' USAGE:
lidar = consume_lidar(channel_name.#, ip_of_publisher)
EXAMPLE:
lidar = consume_lidar('lidar.1', 'localhost')
'''
class consume_lidar():
def __init__(self, channel_name, host_ip):
self.id = None
self.rpm = None
self.data = N... | [
"laird@isotope11.com"
] | laird@isotope11.com | |
3a75dd6f6af19d4710fd04b52d23f4908db05a5e | 9a4de72aab094c87cfee62380e7f2613545eecfb | /deploy/utils/HedwigRegistration.py | d21b9e6c5889a69dfc70076ee782c9dc0df3e2ca | [] | no_license | jamesduan/asset | ed75765c30a5288aaf4f6c56bbf2c9a059105f29 | f71cb623b5ba376309cb728ad5c291ced2ee8bfc | refs/heads/master | 2021-01-10T00:06:41.120678 | 2017-05-27T11:40:48 | 2017-05-27T11:40:48 | 92,730,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | # -*- coding: utf-8 -*-
from server.models import ServerStandard
from util.httplib import httpcall2
from django.conf import settings
from django.core.cache import get_cache
from deploy.utils.DeployError import DeployError
from deploy.utils.DeployCommon import i2
import json
class HedwigRegistration:
def __init__(... | [
"duanlingxiao@yhd.com"
] | duanlingxiao@yhd.com |
f9ab1c3c7ef0193482098d941e3cd7ed5f28368a | c62bd77742f921b8f50b886db7488ce03725f5ab | /aether/gallery/signals.py | 863e74fd222dbcc9ae022b59073f50e8e9ecde03 | [
"MIT"
] | permissive | katajakasa/aetherguild4 | a361688a87d86ae2284a4c07aa9fe9d6b91d2fbb | 2d51f73fad15bfa9a0da052f2509b308d566fafa | refs/heads/master | 2023-08-03T19:51:43.808931 | 2023-07-28T17:35:01 | 2023-07-28T17:35:01 | 143,641,102 | 0 | 0 | MIT | 2023-05-09T22:42:13 | 2018-08-05T19:17:15 | Python | UTF-8 | Python | false | false | 179 | py | from django.urls import reverse
from aether.utils.cache import expire_page
def invalidate_cache(sender, instance, created, **kwargs):
expire_page(reverse("gallery:index"))
| [
"katajakasa@gmail.com"
] | katajakasa@gmail.com |
4b42af7817fa95de8c35a0ffcd2982a8252f6986 | bf5935cecf1b65461b1de9a67a013f0b03c3d1d0 | /boutique/migrations/0022_reactions.py | 647ad1fa7974382b266bcb9546bb40c4a3275ab3 | [] | no_license | meriemay/Shop | 53287aab6382163e6069130c8e5304ed7ffd0e3b | f5d44193e030c4ef9b5cf27896754767beaee3ef | refs/heads/master | 2021-01-18T17:50:49.688779 | 2017-08-29T14:34:34 | 2017-08-29T14:34:34 | 100,497,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-03 11:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('boutique', '0021_auto_20170801_0931'),
]
operations = [
migrations.CreateMo... | [
"you@example.com"
] | you@example.com |
240e7802a9c640da7dacbe2731ba8831291f84e7 | 59153ef9b6947c5400c4a3cdf208c320e850a1bb | /functions_modules/random/random_learn.py | c737c03046faa3246b53be4f269c063d089ef675 | [] | no_license | QAMilestoneAcademy/PythonForBeginners | fd0089eee1c719853c359c57c310f41a6898ee55 | bf6eac132eee1ffd5fe356497457f9cc12ff5b00 | refs/heads/master | 2022-12-12T10:08:19.919708 | 2020-09-08T05:56:28 | 2020-09-08T05:56:28 | 283,969,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | import random
print("random float:",random.random())
print("random int:",random.randint(1,10))
print("random from range with step:",random.randrange(1,10,2))
print("random element from a sequence:",random.choice(['computer','telephone','tv','nintendo']))
| [
"48306511+QAMilestoneAcademy@users.noreply.github.com"
] | 48306511+QAMilestoneAcademy@users.noreply.github.com |
708ab8176b24a3a3194b4dbd961757684d5752bf | 7bff109bf258f053644b5bd4ceb26f6193eec1f4 | /objfromconfig/objfromconfig.py | ea762f84008dd4c5e7423019ad393983538feca9 | [
"Apache-2.0"
] | permissive | johann-petrak/python-objfromconfig | 3f6529cbf95c07acfe3c1a3da2019f68500712c0 | fc0f11839cfc0da1bd9b8381538fa5a080e575c6 | refs/heads/main | 2023-04-30T00:20:19.813933 | 2021-05-14T18:42:48 | 2021-05-14T18:42:48 | 367,435,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | """
Module for creating objects from configuration dicts and retrieve the configuration dicts from objects.
"""
from inspect import signature
from inspect import Parameter
import importlib
def build_args(func, cfg):
"""
Matches a configuration dictionary against the function parameters.
"""
sig = si... | [
"johann.petrak@gmail.com"
] | johann.petrak@gmail.com |
5978c5ee6ec473a050a68ff64a46ead480340d4d | d7e160a2512b9d70b18adbffde4c6d9a61521a12 | /구현/04LockAndKey.py | 66f8d4f12679f5491dde093d3b6d761abe9b1f66 | [] | no_license | EoJin-Kim/CodingTest | 14b6cf7a3bb45954c065efdf9d1e05143cb321a3 | 975c753ee572f605f4d9a12a3dc54ab0d437dade | refs/heads/master | 2023-06-19T16:06:50.625143 | 2021-07-14T13:10:17 | 2021-07-14T13:10:17 | 356,877,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | py | import copy
def solution(key, lock):
keyLen=len(key)
lockLen = len(lock)
plane = [ [0] * (2*keyLen + lockLen) for _ in range(2*keyLen + lockLen)]
for i in range(len(lock)):
for j in range(len(lock[0])):
plane[keyLen+i][keyLen+j] = lock[i][j]
# 바닥 확인
#for i in plane:
# ... | [
"62640679+EoJin-Kim@users.noreply.github.com"
] | 62640679+EoJin-Kim@users.noreply.github.com |
16197d78cfaf44c38142ce9123d79719a4b50199 | ab519d86d6b336286064450cac7527d798f17880 | /Python/Collections/collections-namedtuple.py | 34220c5cf66721d2312dd6c7ff4363dd4f69418e | [] | no_license | dennisnderitu254/HackerRank-3 | a084f1b1ec72186b6421541d48e74dd75846ce83 | ed6e1eb3ac78bac1063db5b7cadec3f7f5a199f9 | refs/heads/master | 2020-03-11T08:25:20.797174 | 2017-08-03T17:53:52 | 2017-08-03T17:53:52 | 129,883,607 | 1 | 0 | null | 2018-04-17T09:55:02 | 2018-04-17T09:55:01 | null | UTF-8 | Python | false | false | 213 | py | #!/bin/usr/python3
from collections import namedtuple
n = int(input())
x = namedtuple("Student", input().strip().split())
avg = 0
for i in range(n): avg += float(x(*input().strip().split()).MARKS)
print (avg / n)
| [
"groove679@gmail.com"
] | groove679@gmail.com |
7ab6e8c266f0105d0e490fb7472865ee98ffd55a | 7f86f46f5048fad45cfdebe43b56dfe179688856 | /mmgpy/metamodel/rfr.py | ce46bb761ff9acec123d266f6831102326a192ab | [] | no_license | geoffreygarrett/metamodel-guidance-with-python | 502cc2055427c34d45b55129e290f31ec31d385a | d048a420c69e2fc019478784fcd04be3ae1d72b7 | refs/heads/master | 2022-03-30T09:00:11.520493 | 2020-01-16T13:30:36 | 2020-01-16T13:30:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,612 | py | from ._base import SurrogateModelBaseRegression
from sklearn.ensemble.forest import RandomForestRegressor as sklearnRFR
DEFAULT_RFR_PARAMS = {
"n_estimators": 'warn',
"criterion": "mse",
"max_depth": None,
"min_samples_split": 2,
"min_samples_leaf": 1,
"min_weight_fraction_leaf": 0.,
"max_f... | [
"g.h.garrett13@gmail.com"
] | g.h.garrett13@gmail.com |
2e9a186467e3f17ea0677fcfe75b85d6b1ce018d | 885303f19848405485a210100ac26f6e776113bb | /chapter12/GUI/callDispProducts.pyw | 8c66307569b8c2de963548b9b5d11c1e1531146f | [] | no_license | Rabidza/INF2611 | cc2120d56c918da23ed4c5e01dc0a753e9fd1fd7 | 24e9b9c52ab831e6f30042ad2ef293b448d98dc6 | refs/heads/master | 2020-03-20T02:38:35.092322 | 2018-09-24T15:31:40 | 2018-09-24T15:31:40 | 137,118,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,339 | pyw | import sys
from DispProducts import *
from PyQt4 import QtSql, QtGui
from chapter12 import settings
def createConnection():
db = QtSql.QSqlDatabase.addDatabase("QMYSQL")
db.setHostName(settings.HOST)
db.setDatabaseName(settings.DATABASE)
db.setUserName(settings.USER)
db.setPassword(settings.PASSWO... | [
"neillhenning@gmail.com"
] | neillhenning@gmail.com |
0d2ff7147b9af069b96b1cdd823195b2d2617120 | d820c8efb25c9adb77015650a0f7dc6f1e983bfe | /abc/abc114_c.py | 10c62426f6542d1d4ff29bb49808e1bfbea68b22 | [] | no_license | toshikish/atcoder | 73fdaa2310f23f846279f9f7466bdb969448371f | 33676630d6820dd92ccf0931425b8906b065bedd | refs/heads/master | 2022-05-16T20:00:52.665762 | 2022-04-02T11:55:44 | 2022-04-02T11:55:44 | 173,099,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | N = int(input())
def dfs(s):
if int(s) > N:
return 0
ans = 1 if all(s.count(c) > 0 for c in '753') else 0
for c in '753':
ans += dfs(s + c)
return ans
print(dfs('0'))
| [
"toshiki@nanshika.com"
] | toshiki@nanshika.com |
bbaaf7c75067a4c26aed3aed58d0409cdb84e268 | d2332604fc80b6d622a263b2af644425a7e703de | /top_interview_questions/math/6_divide_two_integers.py | 533e4903124f79edaa24c2c9ee56c21793dbf652 | [] | no_license | abhijitdey/coding-practice | b3b83a237c1930266768ce38500d6812fc31c529 | 6ae2a565042bf1d6633cd98ed774e4a77f492cc8 | refs/heads/main | 2023-08-14T23:31:06.090613 | 2021-10-18T21:35:56 | 2021-10-18T21:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | def divide(self, dividend: int, divisor: int) -> int:
# Constants.
MAX_INT = 2147483647 # 2**31 - 1
MIN_INT = -2147483648 # -2**31
HALF_MIN_INT = -1073741824 # MIN_INT // 2
# Special case: overflow.
if dividend == MIN_INT and divisor == -1:
return MAX_INT
# We need to convert b... | [
"ashiz2013@gmail.com"
] | ashiz2013@gmail.com |
2868f60f8010ce7f44464f510a83a6dec6145354 | 578f4950b843c2b0a199d9dbcbb99c6148483b40 | /pytext/models/embeddings/contextual_token_embedding.py | 93be4ec0374dc6a5a9d24c1e5e480d14e7012510 | [
"BSD-3-Clause"
] | permissive | appatsekhar/pytext | 2a9725cb3eb8c3283587777873b241d9244c6b34 | f82830da00339392fd17c70572cf1920262d6d74 | refs/heads/master | 2020-08-06T11:20:21.065498 | 2019-10-04T22:35:46 | 2019-10-04T22:37:00 | 212,957,720 | 3 | 0 | NOASSERTION | 2019-10-05T06:56:14 | 2019-10-05T06:56:13 | null | UTF-8 | Python | false | false | 1,522 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import torch
from pytext.config.field_config import ContextualTokenEmbeddingConfig
from .embedding_base import EmbeddingBase
class ContextualTokenEmbedding(EmbeddingBase):
"""Module for providing token embeddings from a... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
eb353673048b1119249215a1b55d0f840e72568b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_atomic.py | 35cc43462c3df24a4ec447fb1d31a5b6264c1ffa | [
"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 | 440 | py |
#calss header
class _ATOMIC():
def __init__(self,):
self.name = "ATOMIC"
self.definitions = [u'relating to atoms: ', u'using the energy that is created when an atom is divided: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self,... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f28483dc2e673080f7855f8385ce80201400739e | cbda89443b351bb2047180dad4e300c13dc3df7f | /CalcPol/nTs_multipars.py | ebfe87a269d2f475191ac7edc591eb6f08108575 | [] | no_license | sheridanfew/pythonpolarisation | 080f52979f98d26360a46412a10c8e3f51ee4549 | 178e2684e9a239a8e60af5f7b1eb414ac5f31e92 | refs/heads/master | 2021-07-10T01:07:40.978790 | 2021-03-11T16:56:37 | 2021-03-11T16:56:37 | 96,101,351 | 0 | 0 | null | 2017-07-03T13:37:06 | 2017-07-03T10:54:52 | null | UTF-8 | Python | false | false | 3,447 | py | import sys
sys.path.append('../')
from BasicElements import *
from BasicElements.Register import GetRegister
from BasicElements.MoleculeFactory import ReadMoleculeType
from BasicElements.MoleculeFactory import GetMolecule
from BasicElements.Crystal import *
from Polarizability.GetDipoles import get_dipoles,split_dipole... | [
"sheridan.few@gmail.com"
] | sheridan.few@gmail.com |
89d2637b7ecb3c046c9cf2ac5e189c50f8e4d35d | 54d2887e3c910f68366bd0aab3c692d54245e22a | /abc/abc_001_041/abc011/d.py | 723dc876991401fff8adfa9d7cf1dbf1fa1fc016 | [] | no_license | Kevinrobot34/atcoder | 7aec367fd2c6b589e9d583dae7b3c7520ce9fa12 | 482ea508f098f81e4f19522fe518dd22c781aca9 | refs/heads/master | 2022-07-10T23:44:45.290022 | 2022-06-29T11:30:26 | 2022-06-29T11:30:26 | 158,081,477 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | def comb(n: int, k: int) -> int:
if n < k or n < 0 or k < 0:
return 0
k = min(k, n - k)
ans = 1
for i in range(1, k + 1):
ans *= n - i + 1
ans //= i
return ans
n, d = map(int, input().split())
x, y = map(int, input().split())
if x % d == 0 and y % d == 0:
x //= d
y... | [
"kevinrobot34@yahoo.co.jp"
] | kevinrobot34@yahoo.co.jp |
c5eb61801d7b041d9a1c3f7598d72a8cec4b843b | 27f7a9849d9c3f2c6b3607a7233bf73a49f62348 | /146.LRU_Cache.py | 3a5aa1399a641fd70c13232abe6f6663134c8e9e | [] | no_license | welsny/solutions | 32dcd878e2842e76bd6519d93b22a4990b87a28b | f4cd43f082b58d4410008af49325770bc84d3aba | refs/heads/master | 2021-06-05T04:21:28.880359 | 2020-04-21T14:49:50 | 2020-04-21T14:49:50 | 69,113,825 | 1 | 0 | null | 2020-04-21T14:49:51 | 2016-09-24T16:27:52 | Python | UTF-8 | Python | false | false | 1,357 | py | #!/usr/bin/env python3
class Node:
def __init__(self, key, val, next=None):
self.key = key
self.val = val
self.next = next
class LRUCache:
def __init__(self, capacity: int):
head = Node(None, None)
self.head = head
self.curr = head
self.cap = capacity
... | [
"zengw@mssm.org"
] | zengw@mssm.org |
4b6f6c167b59f0873d8f3a739cdb2949a0a0ffb7 | 6a1081f3db1e98cb29e67da6d7041388d3cf2f52 | /survey/middleware.py | fbc8097435ea7882f156c4894ddb729c614240a9 | [
"MIT"
] | permissive | watchdogpolska/ankieta-rodzic-po-ludzku-nfz | 5b3827d10b3c5221bc4374c69fd4e19c8f296620 | 68b1d1ccac969ca51416761d1168678effb1e6c6 | refs/heads/master | 2021-01-20T10:32:20.075351 | 2016-12-02T02:17:50 | 2016-12-02T02:17:50 | 74,078,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | from django.utils.deprecation import MiddlewareMixin
class ForceDefaultLanguageMiddleware(MiddlewareMixin, object):
"""
Ignore Accept-Language HTTP headers
This will force the I18N machinery to always choose settings.LANGUAGE_CODE
as the default initial language, unless another one is set via session... | [
"naczelnik@jawnosc.tk"
] | naczelnik@jawnosc.tk |
88a3b065af89c241bf090090b2dac18b3996945a | f3d38d0e1d50234ce5f17948361a50090ea8cddf | /백준/Silver/Silver 5/20411번 ; 추첨상 사수 대작전! (Normal).py | cfdf13c3ce3e1479bf025821524fe12ff4bc6d7c | [] | no_license | bright-night-sky/algorithm_study | 967c512040c183d56c5cd923912a5e8f1c584546 | 8fd46644129e92137a62db657187b9b707d06985 | refs/heads/main | 2023-08-01T10:27:33.857897 | 2021-10-04T14:36:21 | 2021-10-04T14:36:21 | 323,322,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # https://www.acmicpc.net/problem/20411
from sys import stdin
m, Seed, X1, X2 = map(int, stdin.readline().split(' '))
a, c = 1, 1
ac_founded = False
for a in range(0, m):
for c in range(0, m):
if X1 == (a * Seed + c) % m and X2 == (a * X1 + c) % m:
print(a, c)
ac_founded = True
... | [
"bright_night_sky@naver.com"
] | bright_night_sky@naver.com |
6be5d424f2c64add9c3d0e6b9bdac6fb207e8c77 | 0ed9a8eef1d12587d596ec53842540063b58a7ec | /cloudrail/knowledge/context/azure/resources_builders/terraform/function_app_builder.py | 0fd39b1b2470cd6bae0490d4302a2981b27d133e | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | cbc506/cloudrail-knowledge | 8611faa10a3bf195f277b81622e2590dbcc60da4 | 7b5c9030575f512b9c230eed1a93f568d8663708 | refs/heads/main | 2023-08-02T08:36:22.051695 | 2021-09-13T15:23:33 | 2021-09-13T15:24:26 | 390,127,361 | 0 | 0 | MIT | 2021-07-27T21:08:06 | 2021-07-27T21:08:06 | null | UTF-8 | Python | false | false | 1,015 | py | from cloudrail.knowledge.context.azure.resources.constants.azure_resource_type import AzureResourceType
from cloudrail.knowledge.context.azure.resources.webapp.azure_function_app import AzureFunctionApp
from cloudrail.knowledge.context.azure.resources.webapp.constants import FieldMode
from cloudrail.knowledge.context.... | [
"ori.bar.emet@gmail.com"
] | ori.bar.emet@gmail.com |
a56065794e6125d049d8c77b43c8f19352abf99c | 4950b0412d5a764075af0d6bdfb95c1a6fcc971a | /core/src/main/python/akdl/entry/base_entry.py | 54f048a7a0b7d058cdc56c1d7f2c7462bde0f3d6 | [
"Apache-2.0"
] | permissive | zhu1971/Alink | 7cae17e0fad1ca3efd940299e76042e22df9611a | d600bbf215c16b710d99b9b2404fc3da3e508997 | refs/heads/master | 2023-08-29T20:06:12.148089 | 2021-11-02T03:55:42 | 2021-11-02T03:55:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,461 | py | import abc
from typing import Dict, Callable
import tensorflow as tf
from flink_ml_framework.context import Context
from flink_ml_framework.java_file import *
from ..runner import tf_helper, io_helper
from ..runner.output_writer import DirectOutputWriter
try:
from flink_ml_tensorflow.tensorflow_context import TF... | [
"shaomeng.wang.w@gmail.com"
] | shaomeng.wang.w@gmail.com |
ebd96c8b735de3f30f45191d761b2314a815da03 | bf0e884ed3c9b57d0bc022c45b4bd50f7f5ba34a | /tomheon/day16/day16-1.py | 35f010badc8a70fc58d03b9433adaa3d8b05f42c | [
"MIT"
] | permissive | sean-hart/advent2020 | 8db117f3e778ec8044e97ce8a0d17edeb6351415 | 1174afcedf9a8db5134803869e63ea182637fc29 | refs/heads/main | 2023-02-07T15:52:57.956987 | 2020-12-27T00:42:55 | 2020-12-27T00:42:55 | 317,643,649 | 0 | 8 | MIT | 2020-12-27T00:42:56 | 2020-12-01T19:17:17 | Python | UTF-8 | Python | false | false | 1,704 | py | import sys
from itertools import takewhile, dropwhile
class Rule:
def __init__(self, field, ranges):
self.field = field
self.ranges = ranges
def __repr__(self):
return f'Rule {self.field} {self.ranges}'
def is_valid(self, value):
return any([lower <= value <= upper for (... | [
"tomheon@gmail.com"
] | tomheon@gmail.com |
83892bf39e11723b6592e08710e80767f34d392a | bf80f309b6deb240be5fa82428ccffaedcb7ecf1 | /test/functional/wallet_disableprivatekeys.py | 71b4d7115620940c19e0c2d11d800254c7ca095a | [
"MIT"
] | permissive | danxb827/vektorcoin | b4677be9320de92a514d40eac213f51d1bc5e106 | be2a7adba6d00d1e378c969c77ea90daeecef9f7 | refs/heads/main | 2023-03-06T11:49:18.688978 | 2021-02-09T14:54:10 | 2021-02-09T14:54:10 | 336,577,132 | 1 | 1 | MIT | 2021-02-09T14:54:12 | 2021-02-06T16:05:36 | null | UTF-8 | Python | false | false | 1,275 | py | #!/usr/bin/env python3
# Copyright (c) 2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test disable-privatekeys mode.
"""
from test_framework.test_framework import VEKTORCOINTestFramework
from t... | [
"sourcedecho@outlook.com"
] | sourcedecho@outlook.com |
5d3fe22ea2528297fb0d306ace18125cb8d09444 | c46754b9600a12df4f9d7a6320dfc19aa96b1e1d | /examples/research_projects/lxmert/processing_image.py | 4343cfdbce846e9bf0a0cef33dbdde6e78f0ba8c | [
"Apache-2.0"
] | permissive | huggingface/transformers | ccd52a0d7c59e5f13205f32fd96f55743ebc8814 | 4fa0aff21ee083d0197a898cdf17ff476fae2ac3 | refs/heads/main | 2023-09-05T19:47:38.981127 | 2023-09-05T19:21:33 | 2023-09-05T19:21:33 | 155,220,641 | 102,193 | 22,284 | Apache-2.0 | 2023-09-14T20:44:49 | 2018-10-29T13:56:00 | Python | UTF-8 | Python | false | false | 5,747 | py | """
coding=utf-8
Copyright 2018, Antonio Mendoza Hao Tan, Mohit Bansal
Adapted From Facebook Inc, Detectron2
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/license... | [
"noreply@github.com"
] | huggingface.noreply@github.com |
513d127c57faca126f4109777231420faaaeaec5 | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/cloud_load_test/v4_1/models/test_drop_ref.py | b3b8c06b81e04f5cdadb22ea76c34dd594a80941 | [] | no_license | u-blavins/secret_sasquatch_society | c36993c738ab29a6a4879bfbeb78a5803f4f2a57 | 0214eadcdfa9b40254e331a6617c50b422212f4c | refs/heads/master | 2020-08-14T00:39:52.948272 | 2020-01-22T13:54:58 | 2020-01-22T13:54:58 | 215,058,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | [
"usama.blavins1@gmail.com"
] | usama.blavins1@gmail.com |
72f28dbdfa4a58e7d3644a80084ca9459ef4cb7e | 2eb297cbb82d6a52fe8596dcf9a30a11b2f40f5b | /ui/input.py | 00f4078531853f8819177dea3216bd6918d46918 | [
"MIT"
] | permissive | martijndeb/sublime_db | 909cce11b038c05549c5337c1ef2d5847356fbc3 | 0d1cac7b87b32f843e65d8bee6583cadd5f9ea6a | refs/heads/master | 2023-04-18T12:36:20.218397 | 2019-04-25T14:32:05 | 2019-04-25T14:32:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,713 | py |
from sublime_db.core.typecheck import (
Any,
Callable,
Optional
)
import sublime
import sublime_plugin
from . import view_drag_select
command_id = 0
command_data = {}
sublime_command_visible = False
is_running_input = False
class SublimeDebugInputCommand(sublime_plugin.WindowCommand):
def run(self, command_id, ... | [
"2889367+daveleroy@users.noreply.github.com"
] | 2889367+daveleroy@users.noreply.github.com |
396ea058a84cb8b5082227faae609f9771c8e101 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_principals.py | 16f3fb65ff96b20997c351c44f1c60a775c5e89e | [
"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 | 234 | py |
#calss header
class _PRINCIPALS():
def __init__(self,):
self.name = "PRINCIPALS"
self.definitions = principal
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['principal']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a66968d41f968900b87bb7951d047e994dad4c09 | ea393959886a5cd13da4539d634f2ca0bbcd06a2 | /25.py | bf36705e4f07d2004a75a4ce2f12358aab1d6d03 | [] | no_license | zhangchizju2012/LeetCode | f605f35b82f16282559af71e4e61ec2629a90ebc | 0c4c38849309124121b03cc0b4bf39071b5d1c8c | refs/heads/master | 2020-04-05T12:12:14.810639 | 2018-08-09T10:24:52 | 2018-08-09T10:24:52 | 81,021,830 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sat Jul 8 01:15:40 2017
@author: zhangchi
"""
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
# 粗粗地看了解法https://discuss.leetcode.com/topic/71... | [
"zhangchizju2012@zju.edu.cn"
] | zhangchizju2012@zju.edu.cn |
6cb71d90adc94c50b55376b5146b6cc26ddb32d5 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/SUSYGluGluToHToTauTau_M-140_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467520/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_34/run_cfg.py | 4bc803d42d7d1aa922511e475adb6ea13772dc42 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/SUSYGluGluToHToTauTau_M-140_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467520/HTT_24Jul_newTES_manzoni... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
664edc8cab885513f5ccd3738e50408ce10f11a2 | 10d17864a685c025bb77959545f74b797f1d6077 | /capitulo 09/09.25.py | 003c9c3b9fcfcc1cfd1681a56ca7483c17d12614 | [] | no_license | jcicerof/IntroducaoPython | 02178d2dfcaa014587edbd3090c517089ccef7c2 | 02e619c7c17e74acdc3268fbfae9ab624a3601dd | refs/heads/master | 2020-04-24T18:12:21.422079 | 2019-02-23T05:14:43 | 2019-02-23T05:14:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2019
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terce... | [
"jose.cicero@gmail.com"
] | jose.cicero@gmail.com |
b885ba8f387ada4c7ad6cb63a67d0b8cf0c862d8 | 176839e6f94e593fb957f0af1bd5682c95e44f8f | /exoplanet/light_curves_test.py | be8699a85c7d2b5d7e809bde2bd08d05d2d5009e | [
"MIT"
] | permissive | Junjun1guo/exoplanet | 8a0a9d4deb351744a78db54801c4a9d9834e7f7a | 5df07b16cf7f8770f02fa53598ae3961021cfd0f | refs/heads/master | 2020-05-17T17:51:14.836055 | 2019-04-26T20:10:28 | 2019-04-26T20:10:28 | 183,867,012 | 2 | 0 | null | 2019-04-28T06:38:30 | 2019-04-28T06:38:30 | null | UTF-8 | Python | false | false | 3,522 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function
import numpy as np
import theano
import theano.tensor as tt
from theano.tests import unittest_tools as utt
import starry
from .orbits import KeplerianOrbit
from .light_curves import StarryLightCurve
def test_light_curve():
u = tt.vector(... | [
"foreman.mackey@gmail.com"
] | foreman.mackey@gmail.com |
fefac4e918be7150dde77f0dc4af9eff39814d30 | 81357d11785eb03ec9abceb93e545e5fd9bcc156 | /tags/migrations/0001_initial.py | 96a74f82b4f97700d6efa346dfa4a211da721506 | [] | no_license | ytshaha/my-first-blog | f63dcc8372aac8cd0b1bfad47a67200b2b19772d | 7ee8c893e8c98cd0c290a1121b94f34110018525 | refs/heads/master | 2023-04-19T15:31:29.996220 | 2021-05-11T18:22:12 | 2021-05-11T18:22:12 | 328,199,497 | 0 | 0 | null | 2021-04-02T07:48:22 | 2021-01-09T16:39:27 | HTML | UTF-8 | Python | false | false | 804 | py | # Generated by Django 2.0.13 on 2021-02-06 05:46
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('products', '0009_auto_20210206_1411'),
]
operations = [
migrations.CreateModel(
name='Tag',
fie... | [
"ytshaha@naver.com"
] | ytshaha@naver.com |
6fbbb3bc315903eca11f7f74467a6a187015f9b9 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy1712.py | 46f0c4c4192bdb4d1174a0955aa2b82bfb1f84e5 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,594 | py | # qubit number=5
# total number=59
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
79d2fec2bf81ef4ccc513a92b42f779ce80f0a75 | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW10_20210724225915.py | 1e1595c2eeb3d376be15b9124994b1197d270cce | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | """
Georgia Institute of Technology - CS1301
Homework 08 - Object Oriented Programming
"""
class Mario:
def __init__(self, name, lives, coins, isAlive):
self.name = name
self.lives = lives
self.coins = coins
self.isAlive = isAlive
# the following method is provided to y... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
3a0ee48998c73dcaba59b9b6952779f01f19b873 | b3ac393b2e30d8dfa403a0f70ef3e112781aef05 | /tensorflow_attention/Dynamic-Memory-Networks-in-TensorFlow/attention_gru_cell.py | 681887ced27dfd2aba57b28ab75d3eccb1d9b039 | [
"MIT"
] | permissive | xiongfeihtp/attention | d948038dd8dd3c633fde003b61b48fd74308b5bb | ad2140235462e423860e1ddc3be6f2d587f5aed9 | refs/heads/master | 2021-05-16T16:25:27.541002 | 2018-02-02T06:23:55 | 2018-02-02T06:23:55 | 119,941,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,962 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import collections
import math
from tensorflow.python.framework import ops
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import clip_ops
from tensorflow.python.ops import embedding_ops... | [
"386344277@qq.com"
] | 386344277@qq.com |
86e22796fd49804a0b71c6dc36f1b9ad6bb9a40b | 7950c4faf15ec1dc217391d839ddc21efd174ede | /leetcode-cn/0888.2_Fair_Candy_Swap.py | c6375c9f5055643919390828fb7f897dce3fe0f8 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | '''
approach: Set
Time: O(M + N + M * 1) = O(M + N)
Space: O(N)
执行结果:通过
显示详情
执行用时:328 ms, 在所有 Python 提交中击败了91.76%的用户
内存消耗:15.5 MB, 在所有 Python 提交中击败了21.18%的用户
'''
class Solution(object):
def fairCandySwap(self, A, B):
"""
:type A: List[int]
:type B: List[int]
:rtype: List[int]
... | [
"lixiang@rxthinking.com"
] | lixiang@rxthinking.com |
0e55056f6bf6705900cc18bca79256d0f9cdfd70 | 200e0840fb8d5c71de509c1325fc1295336109f8 | /E_Pasal/urls.py | c85b9fe9aa3ca600b55f56d73781c551f6dc3e23 | [] | no_license | LakpaSherpa/E-pasal | d27ee490f6efdd27dee6b27c798e00402d6da07a | c144d45ecaa7e9feee8c507a9e54dd84632c314d | refs/heads/master | 2020-05-04T04:49:03.426196 | 2019-04-02T01:48:13 | 2019-04-02T01:48:13 | 178,974,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | """epasal URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"you@example.com"
] | you@example.com |
e734bd3f2156c38cad54ed1111896981ce383c57 | ea7d2090ba1d66fc5bf91b255742ae07e1f74c3d | /exploit_education/phoenix/challs/stack-zero.py | 4bdf71baace7d0a28f3bf95cfd665fd60991737f | [] | no_license | arty-hlr/CTF-writeups | 1a3e29b9a3c3b80e33df0c9489cacd6ec09e46fe | 64bcda1d1d8893c2ece308f82348755a2c62ca9e | refs/heads/master | 2022-08-04T20:26:07.428393 | 2022-07-30T11:11:34 | 2022-07-30T11:11:34 | 167,851,059 | 4 | 3 | null | 2022-07-30T10:55:11 | 2019-01-27T19:47:03 | Python | UTF-8 | Python | false | false | 1,294 | py | from pwn import *
context(terminal=['tmux','new-window'])
exe = context.binary = ELF('stack-zero')
host = args.HOST or 'localhost'
port = int(args.PORT or 2222)
user = args.USER or 'user'
password = args.PASSWORD or 'user'
remote_path = '/opt/phoenix/amd64/stack-zero'
# Connect to the remote SSH server
shell = None... | [
"flrn.pjd@protonmail.com"
] | flrn.pjd@protonmail.com |
348c1cf02933653a42d99e5cfad410ff4ad2f63a | 4df60d6ad3e6227caaefac1b6775e66718ff28ea | /easemob/client.py | e7210c34f3219eeb9354d72da9d570bef5414f79 | [] | no_license | cash2one/ESNS | 00d09a73e33705a8421438e762fdfc52aba58b8d | f8b5cb3adcb8c907834ec3fad1f82bf36be688b7 | refs/heads/master | 2021-01-13T17:01:23.622918 | 2016-03-23T03:11:15 | 2016-03-23T03:11:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,020 | py | # coding=utf-8
# Date: 15/1/19'
# Email: wangjian2254@icloud.com
import threading
from requests.auth import AuthBase
from easemob.models import HuanXin
from django.conf import settings
__author__ = u'王健'
import requests
import json
from time import time
JSON_HEADER = {'content-type': 'application/json'}
# EASEMOB_H... | [
"appleface2050@qq.com"
] | appleface2050@qq.com |
f7ac58f84c3577f4f603147ee5be49f96f1f5b4a | b9f21bc90eed396dde950c30a1b482be0fb8ba30 | /library/web/mechanicaloup/prac2.py | 33041236a8c20f86afca8d40825615f2cf26c19d | [] | no_license | nanigasi-san/nanigasi | 127a21db1b31759908fd74cebabe240e5abf8267 | 5e3c3e78344dd9558cafe439beb272b9a80d0f3a | refs/heads/master | 2020-04-03T18:57:40.132489 | 2019-06-19T15:03:38 | 2019-06-19T15:03:38 | 155,504,101 | 1 | 0 | null | 2019-02-20T09:40:05 | 2018-10-31T05:33:11 | Python | UTF-8 | Python | false | false | 324 | py | """Example usage of MechanicalSoup to get the results from
DuckDuckGo."""
import mechanicalsoup
# Connect to duckduckgo
browser = mechanicalsoup.StatefulBrowser()
browser.open("https://github.com")
button_list = browser.get_current_page().find_all("button")
for button in button_list:
print(button)
print("="*... | [
"nanigasi.py@gmail.com"
] | nanigasi.py@gmail.com |
aa510a127eef08160fbd491053f6d820ca9c708e | 0bbc13968c2793878f24045b318a17bb31524eb1 | /new_adventure/UnconstrainedOptimizers.py | ad37c3048a40cf5310c67dcff1c0a2e191876b0d | [] | no_license | daniellengyel/new_adventure | 572f82baa5d159cdc541ba9d377a863c7f424981 | 2f83060f4005b9d35e40f0f0d4c6ed0875a26a93 | refs/heads/main | 2023-08-24T21:32:28.003051 | 2021-10-17T17:02:47 | 2021-10-17T17:02:47 | 307,684,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,505 | py | import numpy as np
import jax.numpy as jnp
from jax import random as jrandom
import jax
from functools import partial
from jax import lax
import time, sys
import pickle
from .Functions import LinearCombination, GaussianSmoothing
from .utils import get_barrier, get_potential
import os, psutil
process = psutil.Process(os... | [
"daniel.lengyel@berkeley.edu"
] | daniel.lengyel@berkeley.edu |
5172cab88859eb1b658049d394587109ef3cccaa | 118c520121813b23d9307fb379d4d9406adef2e4 | /03_Classification/logistic_regression.py | bb3bfa5540aa92fb7d3c945e1c807de8a199a5e6 | [] | no_license | a-bautista/machine-learning-udemy | 63735c9f00544c3a79d395d00afa45d395cc7316 | 2632cab6e40dcecdc330e77c024f9ef21c65159b | refs/heads/master | 2021-04-18T19:37:16.347178 | 2019-04-10T05:02:16 | 2019-04-10T05:02:16 | 126,140,328 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,088 | py | # !Python 3.5.2
# Author: Alejandro Bautista Ramos
# Importing the libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LogisticRegression
from sklearn.met... | [
"alex.bautista.ramos.90@gmail.com"
] | alex.bautista.ramos.90@gmail.com |
fcd62d09668e2e1f3fe8eca20e9315837789c1fd | e4f9e39ba878211e0257430376e9d69658b24d1d | /DataBase_Results_ver0.1/perform_spec2000_ncore_CINT_2csv.py | 484023f76f15277d194ba63ec8117c2e390b7666 | [] | no_license | jianxiamage/DataBase_Project | 4e8eb422dda8a1feeeec29673c877377e10a16f8 | ce4475f7d1eb9a512a4b7e60ca625ab3044f23e7 | refs/heads/master | 2021-03-11T17:11:17.568626 | 2020-03-20T06:51:49 | 2020-03-20T06:51:49 | 246,545,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,607 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys #引入模块
import os
import traceback
import ConfigParser
reload(sys)
sys.setdefaultencoding('utf-8')
#防止自动将ini文件中的键名转换成小写
class myconf(ConfigParser.ConfigParser):
def __init__(self,defaults=None):
ConfigParser.ConfigParser.__init__(self,defaults=None... | [
"jianxiamage@163.com"
] | jianxiamage@163.com |
239f50c79dd17cfe7a1322e937ba0f328b6160ea | 8f265edd1c8dd292b7d5163b14d8bb59087cd221 | /.history/concert/ticketSales/models_20210721234452.py | 0fd5e605d6887a05e690034190de3497687b75d7 | [] | no_license | marabpour/ConcertReservation | 8d81b89806db4838a5f833109c4a15e1303133cf | c8726c8186c392c2aa68bd08d43df20aada2727b | refs/heads/main | 2023-07-12T01:15:49.610834 | 2021-08-02T10:08:41 | 2021-08-02T10:08:41 | 391,527,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | from django.db import models
# Create your models here.
class concertModel(models.Model):
Name=models.CharField(max_length=100)
SingerName=models.CharField(max_length=100)
length=models.IntegerField()
def __str__(self):
return self.SingerName
class locationModel(models.Model... | [
"baran.arabpour@gmail.com"
] | baran.arabpour@gmail.com |
735978fe2022e5282e9cfd6f5482ac533e740fc2 | ac64fda7f1bfc92f7897efd60b8f3f0aeb22b4d7 | /syntactic_mutations/cifar/mutants/mutant28.py | 19cad1bdf036b947307a97f300c8a7c7d43b5cce | [] | no_license | dlfaults/mutation_operators_evaluation | ea7f33459ba7bcf7d70092d9db8b40f9b338d516 | 7d1ff30e901931a46bf8908e9bb05cae3daa5f0f | refs/heads/master | 2020-12-27T15:45:07.262012 | 2020-02-03T12:22:01 | 2020-02-03T12:22:01 | 237,955,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | import keras
from keras.models import Sequential
from keras.layers import Conv2D, MaxPooling2D
from keras.datasets import cifar10
from keras.layers import Dense, Activation, Flatten, Dropout, BatchNormalization
from keras.layers import Conv2D, MaxPooling2D
def train_model(x_train, y_train, x_test, y_test, model_name):... | [
"gunel71@gmail.com"
] | gunel71@gmail.com |
25be5ada9a19e6c17fe33f959be3ecf452cd4e8e | c8c0d3e83dbec83ccb89a751dc3e656bb482a2ce | /ZombieGame/modules/timer.py | f5e15b11ecb24d468562459b6766baa19904fa42 | [] | no_license | Yamase31/python-zombie-game | 80658bcfcb05b819265dfc75c5563391f19b1861 | dfd931ecf5caac9348b652862fc0b018979491d9 | refs/heads/main | 2023-07-07T08:58:43.314898 | 2021-08-10T00:33:36 | 2021-08-10T00:33:36 | 394,479,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from random import randint
class Timer(object):
"""
Object that ticks down from a set value.
The value is reset to a random amount between
minValue and maxValue.
"""
# Timers for zombies and item
TIMER_ZOMBIE_MIN = 5
TIMER_ZOMBIE_MAX = 10
TIMER_ITEM_MIN = 10
TIMER_ITEM_MAX = 1... | [
"noreply@github.com"
] | Yamase31.noreply@github.com |
e3ac68071a6eff0398b5b8462979d4f472aa6db9 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc031/D/3472289.py | 87e6ab70910a2e64fa5cbb2deb4bfa8dede46447 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | k,n = map(int,input().split())
a = []
for i in range(n):
x,y =input().split()
a.append([x,y])
for i in range(3**k):
b = []
while i:
c = i %3
b.append(c+1)
i = (i-c)//3
while len(b) < k:
b.append(1)
ans = [[None] for i in range(k)]
flag = 0
for j in range(n):
kazu = a[... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
eb2ad42772a6494b5c6be782285061d8a6aba402 | 4520f56d4952c788e198ee7eee39911c9a76c60f | /01_Jump_to_python/0_example/6_0705/greet_user.py | f5b06332ed72e03fbd804e71a04069abccde9117 | [] | no_license | SuHyeonJung/iot_python2019 | bef8877a1cd41981ad2125291f5af44f4fd1701c | 7860630ae28c53677a3c2761c9e997b28ea55f26 | refs/heads/master | 2020-06-14T22:18:27.503781 | 2019-11-08T05:50:41 | 2019-11-08T05:50:41 | 195,142,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # import sys
# # args = sys.argv[1:]
# # for i in args:
# # print("Hello,"+i.upper()[0]+i[1:]+"!")
def greet_users(usernames):
username = ['janny', 'hannah', 'margot', 'kevin', 'min']
for i in username:
print("Hello,"+i.upper()[0]+i[1:]+"!")
greet_users(1)
| [
"galma94815@naver.com"
] | galma94815@naver.com |
02cd6046e07b44a1bc4a490c27ff00e3b0dfd1e2 | 654eafecd9c70f30100c5a2f5928880c14892b71 | /src/transmogrifier_ploneblueprints/users.py | 89fc7e63180d471679f0f0dd7fcd8d07ee5b0aca | [] | no_license | datakurre/transmogrifier_ploneblueprints | 5f6bb420d464e08a030d37d1f5c35a12de388646 | ad9c7e1ab43c4178a0ae9b3f19e6ce77183f5b16 | refs/heads/master | 2020-12-23T02:02:47.110049 | 2017-11-05T20:02:36 | 2017-11-05T20:02:36 | 28,266,208 | 0 | 2 | null | 2017-08-04T11:52:32 | 2014-12-20T12:14:40 | Python | UTF-8 | Python | false | false | 1,909 | py | # -*- coding: utf-8 -*-
from plone import api
from transmogrifier.blueprints import Blueprint
from transmogrifier.blueprints import ConditionalBlueprint
from venusianconfiguration import configure
@configure.transmogrifier.blueprint.component(name='plone.users.get')
class GetUsers(Blueprint):
def __iter__(self):
... | [
"asko.soukka@iki.fi"
] | asko.soukka@iki.fi |
e624861b544e31329f7b153bd528e9d585c32c92 | fb76abc1b89e14a0b7a4a1f3cf21f2d6df484df4 | /server/routes/routes_home.py | e081c5d12b9962572128797a7438414280fa4139 | [
"MIT"
] | permissive | leohmoraes/firedash | 2f6bdaca5df1be138abc5f8476f3f8dfb965d768 | 324b04615bd454b7918261eaaa9b8380597195f1 | refs/heads/master | 2020-08-06T08:31:40.010655 | 2019-06-29T21:50:19 | 2019-06-29T21:50:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | import os
from flask import render_template, Blueprint, send_from_directory, current_app
routes_home = Blueprint('home', __name__)
@routes_home.route('/', defaults={'path': ''})
@routes_home.route('/<path:path>')
def action_catch_all(path):
return render_template('index.html')
@routes_home.route('/favicon.ico... | [
"paulo@prsolucoes.com"
] | paulo@prsolucoes.com |
9b673b68addcdab5690a1057af9e25e6e234b6de | be026334d457b1f78050f8262cd693922c6c8579 | /onnxruntime/python/tools/quantization/operators/embed_layernorm.py | 1e96b7bd7508bc0adaaa3ae8d03ee0016056b10d | [
"MIT"
] | permissive | ConnectionMaster/onnxruntime | 953c34c6599c9426043a8e5cd2dba05424084e3b | bac9c0eb50ed5f0361f00707dd6434061ef6fcfe | refs/heads/master | 2023-04-05T00:01:50.750871 | 2022-03-16T15:49:42 | 2022-03-16T15:49:42 | 183,019,796 | 1 | 0 | MIT | 2023-04-04T02:03:14 | 2019-04-23T13:21:11 | C++ | UTF-8 | Python | false | false | 3,764 | py | import onnx
import logging
from .base_operator import QuantOperatorBase
from ..quant_utils import attribute_to_kwarg, ms_domain
from onnx import onnx_pb as onnx_proto
'''
Quantizes the EmbedLayerNorm fused ONNXRuntime Op.
This Quant operator keeps the input and segment IDs at int32 but will quantize all initializer a... | [
"noreply@github.com"
] | ConnectionMaster.noreply@github.com |
1df70ae22fccbeff3312dc64c4e1f42076504c0b | 5c1c6af292d91e70080b500fac0d8c0b751305f3 | /sciunit/utils.py | 3199273593f9e0c75b0852d750f973248128d2c5 | [
"MIT"
] | permissive | rgerkin/sciunit | ce3d56dc1754e03765bd3db7cad91c29b20f4260 | f0ce6ea79bd46c4500b4d79e85d40c3b1dbf8a58 | refs/heads/master | 2021-01-24T00:10:22.965603 | 2015-10-23T22:17:06 | 2015-10-23T22:17:06 | 8,079,154 | 0 | 1 | null | 2015-05-11T17:36:34 | 2013-02-07T18:48:47 | Python | UTF-8 | Python | false | false | 890 | py | """
Utility functions for SciUnit.
"""
from __future__ import print_function
from quantities.dimensionality import Dimensionality
from quantities.quantity import Quantity
PRINT_DEBUG_STATE = False # printd does nothing by default.
def printd_set(state):
global PRINT_DEBUG_STATE
PRINT_DEBUG_STATE = (state i... | [
"rgerkin@asu.edu"
] | rgerkin@asu.edu |
9926460214a0bc3f2d699ba6c54b7cee0beae598 | 00d40264e44a0ff6ee6871c2264faa42a3c7b132 | /quiz/G2/Aybek Addullayev/back/quizBack/api/views.py | 8aaaf374c0f3c944bd2a400284358c801ed93733 | [] | no_license | Akmaralym/WD2019Spring | 09f878fec0f9f985fd44eed758e238d7439eb361 | a2b0dab4ed2024959018a511ad64c74e5acbd152 | refs/heads/master | 2021-05-18T04:14:19.114732 | 2019-05-20T05:29:26 | 2019-05-20T05:29:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | from django.http import HttpResponse, Http404
from rest_framework.response import Response
from rest_framework import generics, status
from rest_framework.authtoken.serializers import AuthTokenSerializer
from rest_framework.views import APIView
from rest_framework.authtoken.models import Token
from rest_framework... | [
"bobur.muhsimbaev@gmail.com"
] | bobur.muhsimbaev@gmail.com |
d6f71e35c5fa54517d1c867a1c2d2b89274235fc | f72113a33217820b9bc16097568b041083802719 | /test/test_image.py | 1a297a9101d543c61e8cf457085a0ab9135169e8 | [
"BSD-3-Clause"
] | permissive | celestialized/yoga | 95d320446ae50e0ac3d5ac0eaf423f0aac344a19 | 67c2aff568c806a4e8c9d8ca7b875e9412e2738e | refs/heads/master | 2023-08-31T11:18:13.612232 | 2021-10-15T08:00:48 | 2021-10-15T08:00:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,883 | py | import io
import os
import pytest
from PIL import Image
import yoga.image
from yoga.image.encoders.jpeg import is_jpeg
from yoga.image.encoders.png import is_png
from yoga.image.encoders.webp import is_lossy_webp
from yoga.image.encoders.webp_lossless import is_lossless_webp
class Test_optimize(object):
@pytest... | [
"flo@flogisoft.com"
] | flo@flogisoft.com |
fee04a2ce585c18e0abdd8ac8045c4d1e98b73e8 | 5c8f8e34579f8b2609648b106daed5b313d54ff8 | /2020/In Development/26_1_2020/MappingTest/Test Functions/pathMapping.py | 3dba00bb77d5d8e74bd5ffbc854324ac8a2e2ea7 | [] | no_license | CaithyJo/Compete-with-CoSpace | 357f35dac71599238855d6b3e1bd2a0fdb311244 | cdf3c969a71fe2cf46ec001f0a77d16b968ef4db | refs/heads/master | 2023-03-16T06:06:50.758364 | 2021-01-03T17:13:25 | 2021-01-03T17:13:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,677 | py | from PIL import Image
import sys
sys.path.append('./Python_Libraries/')
from ImageCalculation import *
def standardInputLines():
lines = []
while True:
data = input()
if data == "": break
lines.append(data)
return lines
def cppInput(x1, y1, x2, y2):
#os.system("g++ astar.cpp -... | [
"zunmun@gmail.com"
] | zunmun@gmail.com |
05cf9539b5593166a6ca2b77fd944d9d536ca31e | c97b9ae1bf06757ba61f90905e4d9b9dd6498700 | /venv/Lib/site-packages/markupsafe/_native.py | f4c3e63ba0250f65ba5bb193a47944e02054786b | [] | no_license | Rahulk1p/image-processor | f7ceee2e3f66d10b2889b937cdfd66a118df8b5d | 385f172f7444bdbf361901108552a54979318a2d | refs/heads/main | 2023-03-27T10:09:46.080935 | 2021-03-16T13:04:02 | 2021-03-16T13:04:02 | 348,115,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:2f0b1893e187a0fb0f6e8443fed342ebf8d39828f730bb6c9c3162b3b1e3139d
size 1942
| [
"rksc.k1p@gmail.com"
] | rksc.k1p@gmail.com |
d28849e73d7395237791fdcf7361553e6c5140ce | 3e30e334d759a3606be1dce6dca1154568808d68 | /xlsxwriter/test/comparison/test_autofilter01.py | 0fe9cd39837a51b1f53c5a6cdaa1f4caa5096c36 | [
"BSD-2-Clause-Views"
] | permissive | cimarronm/XlsxWriter | 59668816c4faf5b2e5fc7b96a4ab98d5797891b7 | b440055bebfcc08339bc3e43cc2ce9819a142004 | refs/heads/master | 2021-01-18T10:07:21.729676 | 2014-08-12T23:17:43 | 2014-08-12T23:17:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2014, John McNamara, jmcnamara@cpan.org
#
import unittest
import os
from ...workbook import Workbook
from ..helperfunctions import _compare_xlsx_files
class TestCompareXLSXFiles(unittest.... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
96bd3159f7830d3224ff7077eabb35e57a3d226a | 7f2efccdd6413eb658161c91d75da7c0fe941505 | /catnap/parsers.py | 09befce809b08387315463842f709cef12545631 | [
"BSD-2-Clause"
] | permissive | aehlke/django-catnap | 82b093b9ee07f9edd294dac3e9ff3784fb2ac5cb | 4272cff0de639a65f5cc0fe131370e1531fc2e11 | refs/heads/master | 2016-09-10T15:49:43.799102 | 2016-01-26T03:02:44 | 2016-01-26T03:02:44 | 1,428,424 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # Adapted from https://github.com/tomchristie/django-rest-framework/blob/3d999e4be38f0836063aacdf31d1396fbbb3a5fc/rest_framework/parsers.py
import json
from webob.acceptparse import MIMEAccept
from catnap.exceptions import ParseError
class BaseParser(object):
mime_accept = None
@classmethod
def accept... | [
"alex.ehlke@gmail.com"
] | alex.ehlke@gmail.com |
88dff878e8a4dabbbde036ca86b56a9e9352c65a | fc79fcfac8a51f35dde0d931cc5b58e9a60498f4 | /sbds/storages/db/tables/operations/virtual/comment_payout_update.py | 167916c8cfb5eb0621aa59c6b0be938019ea5a7f | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause"
] | permissive | Jblew/sbds | 9306ea0fc403a4841be4f3291df309f5f3944f21 | ec1c9cb48d61f78e8a22158b948a50872f44cf51 | refs/heads/master | 2020-03-07T14:55:58.419898 | 2018-03-31T15:55:21 | 2018-03-31T15:55:21 | 127,540,058 | 0 | 0 | null | 2018-03-31T14:37:25 | 2018-03-31T14:37:25 | null | UTF-8 | Python | false | false | 2,649 | py | # -*- coding: utf-8 -*-
import dateutil.parser
from sqlalchemy import DateTime
from sqlalchemy import String
from sqlalchemy import Column
from sqlalchemy import Numeric
from sqlalchemy import Unicode
from sqlalchemy import UnicodeText
from sqlalchemy import Boolean
from sqlalchemy import SmallInteger
from sqlalchemy... | [
"john.gerlock@gmail.com"
] | john.gerlock@gmail.com |
d7f21dc308cc0c1bf12ac7c40b297d3fd7c49832 | cf293781d511de38130049fe92a75c85d5d20da4 | /apps/phonebook/migrations/0004_inviterFK.py | c26962c5f53712e78a89094997b05696efd15ee5 | [] | no_license | jdm/mozillians | e989e044bfc690bbe8d13308ced349125f39c821 | b7a6deb05e33be9b1d025a56a5ddf8a59a9f39ae | refs/heads/master | 2021-01-15T20:28:14.356913 | 2012-01-19T22:36:08 | 2012-01-19T22:36:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,700 | py | # encoding: utf-8
import datetime
from django.db import models
from django.db.utils import IntegrityError
import commonware.log
from south.db import db
from south.v2 import DataMigration
from users.models import UserProfile
log = commonware.log.getLogger('m.migrator')
class Migration(DataMigration):
def forw... | [
"dd+github@davedash.com"
] | dd+github@davedash.com |
911b89bac770bb745ece42e19bcc10845fea6125 | 6d69b249a81e076d79787dd08eb8957908052052 | /projects/inflection/scripts/bin/dev/version.py | 8543f8ddd73421c12337a62f94f1e268282affb5 | [] | no_license | 2vitalik/wiktionary | 02ee1f1327c3b82fc7b4d7da12083b1431b1eb8b | 8edae2f7dcf9089084c5ce7033c4fb0b454f4dfa | refs/heads/master | 2023-02-06T11:28:41.554604 | 2023-02-05T22:49:01 | 2023-02-05T22:49:01 | 121,025,447 | 7 | 2 | null | 2021-10-13T17:36:32 | 2018-02-10T15:06:24 | Lua | UTF-8 | Python | false | false | 425 | py |
version = '4.5.13'
desc = 'Попытка исправить "старшой" (надеюсь, ничего не сломается другое)'
# todo: почистить старые неиспользуемые модули на ВС (старые имена)
# todo: разные файлы запуска для dev-версии и для prod-версии
# todo: append history changes entry to some page on wikt
| [
"vitaliy.lyapota@anvileight.com"
] | vitaliy.lyapota@anvileight.com |
10150760c6a4c2e0101c502f8885772070e14c6c | 933e89e2d45803ff021cc684b4b78cd2e14a5b15 | /AllBehaviours/GreedyExplore.py | ca7ef5c1053e2d1a2d5139501868e15443fe2aac | [] | no_license | Occy88/MultiAgents | 8123d2718df5f3ad202410097f821c6d69eadd7b | c49d89caf2db49dcc3571d87fa4fb4bade516226 | refs/heads/master | 2022-12-14T18:36:02.343056 | 2021-01-01T13:38:10 | 2021-01-01T13:38:10 | 214,148,130 | 0 | 0 | null | 2022-11-22T04:36:34 | 2019-10-10T10:00:00 | Python | UTF-8 | Python | false | false | 2,309 | py | import vacuumworld
from vacuumworld.vwc import action, direction
import math
from agent_util import AgentPercepts
from agent_util import get_closest_agent
from agent_util import GridDirections
from agent_util import get_cam_detections
from agent_util import CommunicationKeys
from agent_util import GridState
import rand... | [
"octavio.delser@gmail.com"
] | octavio.delser@gmail.com |
ee5cef4c42b866c99b6379512fec4733153ba628 | 34d5ebe9e6de9d6742c234dabfa9b38f0adb7774 | /carriage_return/dm.py | 646e2bf2b6a0ecb6d28c26fc2dcef2ed447891c6 | [] | no_license | campagnola/return-to-carriage | f37acaf8e41ccf04e7089018574732a1fdcd2a64 | eeb7f31b16e2c236c875c867a0295173fa6f4b0a | refs/heads/master | 2021-08-05T14:02:49.988526 | 2021-07-31T08:38:17 | 2021-07-31T08:38:17 | 84,014,684 | 0 | 2 | null | 2021-07-30T02:48:13 | 2017-03-06T00:55:55 | Python | UTF-8 | Python | false | false | 1,090 | py |
class DungeonMaster:
"""Responsible for managing turns, accepting requests to change the world state, and
deciding what actual changes to make.
"""
def __init__(self, scene):
self.scene = scene
def request_player_move(self, player, newpos):
"""Attempt to move the player to newpos.... | [
"luke.campagnola@gmail.com"
] | luke.campagnola@gmail.com |
351320168f45d58e0903ed4baddef25e5b8579a3 | 1577e1cf4e89584a125cffb855ca50a9654c6d55 | /pyobjc/pyobjc/pyobjc-framework-Cocoa-2.5.1/Examples/AppKit/CocoaBindings/TableModelWithSearch/ToolbarCreator.py | e19e19ca5fce6827a2c200a9aca211088ffb0281 | [
"MIT"
] | permissive | apple-open-source/macos | a4188b5c2ef113d90281d03cd1b14e5ee52ebffb | 2d2b15f13487673de33297e49f00ef94af743a9a | refs/heads/master | 2023-08-01T11:03:26.870408 | 2023-03-27T00:00:00 | 2023-03-27T00:00:00 | 180,595,052 | 124 | 24 | null | 2022-12-27T14:54:09 | 2019-04-10T14:06:23 | null | UTF-8 | Python | false | false | 3,785 | py | #
# ToolbarCreator.py
# TableModelWithSearch
#
# Created by Bill Bumgarner on Sun Apr 04 2004.
# Copyright (c) 2004 __MyCompanyName__. All rights reserved.
#
from Cocoa import *
kToolbarIdentifier = "TableModel Toolbar Identifier"
kSearchFieldItemIdentifier = "TableModel Search Field Identifier"
from FilteringAr... | [
"opensource@apple.com"
] | opensource@apple.com |
1ab4d96b3175a9f1c1ed07bdcdf9de41fe98944e | 632099ac0d895943cbbeb9048a2cdfcd21102411 | /Axiom_AIR_25_49_61/__init__.py | 456888a88e3b9d6b5be158e5d1745b620420cede | [] | no_license | Toniigor/AbletonLive9_RemoteScripts | 7f4bbf759a79629584413f6d1797005e8cd7f2ff | fed1e5ee61ea12ea6360107a65a6e666364353ff | refs/heads/master | 2021-01-16T21:19:25.330221 | 2014-06-06T12:33:03 | 2014-06-06T12:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | #Embedded file name: /Users/versonator/Jenkins/live/Projects/AppLive/Resources/MIDI Remote Scripts/Axiom_AIR_25_49_61/__init__.py
from Axiom_AIR_25_49_61 import Axiom_AIR_25_49_61
from _Framework.Capabilities import controller_id, inport, outport, CONTROLLER_ID_KEY, PORTS_KEY, NOTES_CC, SCRIPT
def get_capabilities():
... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
4fa18cacdc15dddf259b9dda69a1697ed7fa9be0 | 5ab1130ae04735463fc44102adbe7d7072d9b8c9 | /pylearn/tensorflow/linear_regression_tf_contrib_learn.py | 9a9d2931d3ecbb9f377a94cafa2a573d69e8ac7f | [] | no_license | sigirisetti/python_projects | 8f917a6d052d7cb717f48fde8b791e4638ea821d | 123386b2f91be870e4795df14109142d7cd2eb96 | refs/heads/master | 2023-08-23T04:34:36.464290 | 2023-08-13T11:15:33 | 2023-08-13T11:15:33 | 130,079,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | import tensorflow as tf
# NumPy is often used to load, manipulate and preprocess data.
import numpy as np
# Declare list of features. We only have one real-valued feature. There are many
# other types of columns that are more complicated and useful.
features = [tf.contrib.layers.real_valued_column("x", dimension=1)]
... | [
"sigirisetti@yahoo.com"
] | sigirisetti@yahoo.com |
a806892617cccf3028b5001dfe9ff1c763831907 | 426f216e3d38d2030d337c8be6463cc4cd7af6c3 | /day04/decrator/main1.py | 14d6df4ce8c267532c3ae30ace6b10d6f046ab7d | [
"Apache-2.0"
] | permissive | zhangyage/Python-oldboy | c7b43801935fc9e08e973ee0b852daa8e8667fb7 | a95c1b465929e2be641e425fcb5e15b366800831 | refs/heads/master | 2021-01-23T02:59:37.574638 | 2019-10-27T05:35:58 | 2019-10-27T05:35:58 | 86,039,220 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
装饰器学习
装饰器可以在我们为函数批量添加功能时候节省我们的工作量
'''
#装饰器函数
def outer(fun):
def wrapper(arg): #传递参数
print '验证' #在这里加入一行,在我们再次执行函数的时候就可以在多输出这一喊
reslute1 = fun(arg)
return reslute1 #这样使用可以是我们的函数带有返回值
print '就是这样做的'
return wrap... | [
"zhangyage2015@163.com"
] | zhangyage2015@163.com |
db04af0f0c67badbff86956e43c7929a80ba4e8d | 11b420a9e6dbe371167227f41ef8e344e3382612 | /ConvNets/FINAL_Averaged_Experiments/ALL_RESULTS/ANALYSIS/Non_Linearity/Accuracy.py | b5403cb764d9b69b01bfad217db65070766d85f5 | [
"MIT"
] | permissive | tarek-ullah/Active-Learning-Bayesian-Convolutional-Neural-Networks | 7092386758b68dc922efaa2c2eba055930bf2896 | f8b68038bd3b97c473e9c1de6b6cdee4538021f4 | refs/heads/master | 2021-01-13T06:57:19.343775 | 2016-11-02T12:22:16 | 2016-11-02T12:22:16 | 81,338,773 | 1 | 0 | null | 2017-02-08T14:34:15 | 2017-02-08T14:34:15 | null | UTF-8 | Python | false | false | 1,230 | py | # http://www.scipy-lectures.org/intro/matplotlib/matplotlib.html
import numpy as np
import matplotlib.pyplot as plt
from pylab import *
from matplotlib import rc, rcParams
import matplotlib.dates as dates
# activate latex text rendering
rc('text', usetex=True)
rc('axes', linewidth=2)
rc('font', weight='bold')
rcPara... | [
"riashat.islam.93@gmail.com"
] | riashat.islam.93@gmail.com |
3cbba942bb011ade06f464f83e1eb6dd2f492c8e | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorboard/compat/tensorflow_stub/flags 2.py | 769d1d5906e07cbbd043ad36316e3cfd2f9bfbf2 | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:8a51fcd6ca1170457f8161558624e113316ceaa217471a9e1325b2a82eb7c143
size 4235
| [
"business030301@gmail.com"
] | business030301@gmail.com |
b0e9ba0e3c917b392dd5109b88a13eb5eaacb52d | 72b77f97876983025eb05a5aa1d6f248a1be3074 | /count_words_obtained_after_adding_a_letter.py | 78069c6fffd0c81de8f3de2f4b842aeb3fabdf91 | [
"Apache-2.0"
] | permissive | erjan/coding_exercises | 4c6bccb2cdac65ccbc3107a482914275ecd157f7 | 68dac358a6d4dabd41d47dbd4addb2ec50e0ca11 | refs/heads/master | 2023-09-02T07:25:30.886175 | 2023-08-27T06:13:06 | 2023-08-27T06:13:06 | 236,281,070 | 5 | 0 | Apache-2.0 | 2020-05-05T15:08:49 | 2020-01-26T07:32:09 | Python | UTF-8 | Python | false | false | 2,824 | py | '''
You are given two 0-indexed arrays of strings startWords and targetWords. Each string consists of lowercase English letters only.
For each string in targetWords, check if it is possible to choose a string from startWords and perform a conversion operation on it to be equal to that from targetWords.
The conversion... | [
"noreply@github.com"
] | erjan.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.