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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
68615c0335fc693397ae3712ddd889db8865a5ec | cee65c4806593554662330368c799c14ec943454 | /src/dms-preview/azext_dms/vendored_sdks/datamigration/models/project_task.py | f06065a5bf044dac5eb01d8d79ccba2c49e5d1d2 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | azclibot/azure-cli-extensions | d5d1a4ecdfc87fd79f5ad042fb85cdbf881897d2 | c230646258d4b56efb7d44eb7a0230f2943da6f6 | refs/heads/master | 2023-08-28T03:55:02.311902 | 2019-04-04T16:05:45 | 2019-04-04T16:05:45 | 179,548,695 | 1 | 1 | MIT | 2021-07-28T15:26:17 | 2019-04-04T17:54:39 | Python | UTF-8 | Python | false | false | 1,660 | 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 ... | [
"wx44@cornell.edu"
] | wx44@cornell.edu |
308397ed048cf03a190ffa0c99b55d07196a45cf | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_97/591.py | 65f897b1fd4fe4677b641f162d03e1a08dcae786 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | # Recycled Numbers
# main code
fr = open('C-large.in', 'r')
fw = open('C-large.out', 'w')
numOfTestCase = int(fr.readline())
for x in range(0,numOfTestCase):
result = ""
print("========== Test case " + str(x+1) + " ==========")
line = fr.readline()
line = line.split(" ")
A = int(line[0])
B = int(line[1... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2136ceed7ded2995dc97b82ced276854c3146f10 | 6a044f45cd09695ea6f66f35bb8decf86a84607d | /installer/resources/pacbot_app/alb_https_listener.py | e285a11743e84dfb2706dd3e7435a718e88798c8 | [
"Apache-2.0"
] | permissive | ritesh74/pacbot | a07bdf82632342509f05b5c5dbb6eb6aaba40219 | 4b5361d99e7efbbc5603ec9c6568ba639105c773 | refs/heads/master | 2021-07-09T15:35:27.342903 | 2020-09-28T20:36:42 | 2020-09-28T20:36:42 | 199,405,428 | 1 | 0 | Apache-2.0 | 2019-07-29T07:53:26 | 2019-07-29T07:53:25 | null | UTF-8 | Python | false | false | 2,414 | py | from core.terraform.resources.aws.load_balancer import ALBListenerResource, ALBListenerRuleResource
from core.config import Settings
from resources.pacbot_app.alb import ApplicationLoadBalancer
from resources.pacbot_app import alb_target_groups as tg
PATH_PREFIX = '/api/'
class PacBotHttpsListener(ALBListenerResour... | [
"sanjnur@gmail.com"
] | sanjnur@gmail.com |
8848a2025763c8c406ee3f306ba82e82e8db0a70 | bf12e13c0ab5ccf2fc32509b02aaae6b6a2e3327 | /examples/hello_rect.py | 9f1bcbed6deb09a08632a4cee248572761d502d9 | [
"MIT",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | HighCWu/tpythonpp | 42b56c9eb3c77192cbda36f0e198707bb858fe38 | f1c15e1101993e4c9c7529739823b47759ea13f7 | refs/heads/master | 2023-06-30T16:17:09.409107 | 2021-03-19T04:16:12 | 2021-03-19T04:16:12 | 391,806,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | def test():
print('hello world')
r = rect(0,0, 320, 240)
print(r)
print(r.x)
print(r.y)
print(r.width)
print(r.height)
r.x = 2
print(r.x)
r.y += 0.1
print(r.y)
area = r.get_area()
print(area)
test() | [
"goatman.py@gmail.com"
] | goatman.py@gmail.com |
90f7ab7711d5790e74f9518e25d8c39a79edafd8 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/server_commands/service_npc_commands.py | 07e4d57abbcbb8550b95b267c098277d3e6c293a | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | py | from date_and_time import create_time_span
from sims4.commands import CommandType
import services
import sims4.commands
@sims4.commands.Command('service_npc.request_service', command_type=CommandType.Cheat)
def request_service(service_npc_type:str, household_id=None, _connection=None):
service_npc_tuning = serv... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
7ba1d723327bdcf4aef6f5d70f72674ce22431c7 | 5774101105b47d78adb7a57eefdfa21502bbd70c | /python 语法基础/d14_tkinter_python图形开发界面库/tkinter/3.button控件.py | 82895d1a97556d89642d20d2a44eb01bb5377143 | [] | no_license | zhlthunder/python-study | 34d928f0ebbdcd5543ae0f41baaea955c92f5c56 | 0f25dd5105ba46791842d66babbe4c3a64819ee5 | refs/heads/master | 2023-01-12T18:39:47.184978 | 2018-10-07T23:48:04 | 2018-10-07T23:48:04 | 90,516,611 | 0 | 1 | null | 2022-12-26T19:46:22 | 2017-05-07T07:39:48 | HTML | UTF-8 | Python | false | false | 615 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#author:zhl
import tkinter
def func():
print("zhl is good man")
win=tkinter.Tk()
win.title("zhl")
win.geometry("400x400+200+0")
##text:定义按钮上显示的命名
##command 定义点击按钮触发的函数
##height,width: 设置按钮的宽高
button1=tkinter.Button(win,text="按钮",command=func,width=5,height=5)
but... | [
"zhlthunder@163.com"
] | zhlthunder@163.com |
3537ab717502779be66add592bf5cff21cb46dca | 322e3003cc14c9beb7aa47363ca3c2f6038b82d5 | /lecture6/pyspark/basics.py | b7cd3c6d03c81beae10b26d0f9da81724997ec3c | [] | no_license | danielvachalek/MLOps | 039a393c71a418383ea46338e2d415e7c3936b56 | 0746e0380b73d93b2f12a22df04a74de7daf18a0 | refs/heads/master | 2023-02-09T01:21:53.874657 | 2021-01-02T22:49:32 | 2021-01-02T22:49:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,011 | py | # Databricks notebook source
# MAGIC %md In Cmd 2, the AWS_ACCESS_KEY and AWS_SECRET_KEY variables are set and kept hidden.
# COMMAND ----------
AWS_ACCESS_KEY = "AA"
AWS_SECRET_KEY = "BB"
# COMMAND ----------
sc._jsc.hadoopConfiguration().set("fs.s3n.awsAccessKeyId", AWS_ACCESS_KEY)
sc._jsc.hadoopConfiguration().s... | [
"you@example.com"
] | you@example.com |
79e82a9736205ebba06486b564cb8925c6d74af9 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/torch/_utils.py | 55f737a5974002ee337bfdaf7d920c2472a0fe84 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:03a04fffa1996df6bcab4d2bf79566d0e6b7d661fe5e37b292b5a766d648edfa
size 19786
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
e554ed1e3f0ef7ab8afac5e92e7db32e3179c2ce | 05a090ee8f9d6dc6bbcc3d20cf8d4a7c8a627bde | /kash/migrations/0003_auto_20201203_1658.py | 9da1a6f5d84271275e7fa8f9401985f96c9af90e | [] | no_license | Komilcoder/kash_app | 527e84c63b03264f72aba4e2d3039a219beae556 | 88ab937c3391b1104bbdbf733da49634ea645ecf | refs/heads/master | 2023-01-21T00:46:24.482017 | 2020-12-03T15:52:01 | 2020-12-03T15:52:01 | 318,185,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | # Generated by Django 3.1.4 on 2020-12-03 11:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('kash', '0002_auto_20201203_1648'),
]
operations = [
migrations.RemoveField(
model_name='news',
name='description',
... | [
"yaxshilikovkomil@gmail.com"
] | yaxshilikovkomil@gmail.com |
a4aa3cb66427702daeca11f1eba49736ef4dd8e8 | e81576012330e6a6024d14f3e241f88ca34b73cd | /python_code/vnev/Lib/site-packages/jdcloud_sdk/services/cps/models/Listener.py | f4508baf200e067c53fd0aa337482b86f24fb929 | [
"MIT"
] | permissive | Ureimu/weather-robot | eba6a84147755aa83c941a306bac1a7c4e95e23e | 7634195af388538a566ccea9f8a8534c5fb0f4b6 | refs/heads/master | 2021-01-15T07:23:42.274413 | 2020-03-23T02:30:19 | 2020-03-23T02:30:19 | 242,912,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"a1090693441@163.com"
] | a1090693441@163.com |
d089134e584d9b0d118d8a1e547907c28db88b65 | 9bc9885e9500083afc2cd6be4ff93ee2eb4fbfbb | /neuropower/apps/designtoolbox/migrations/0016_auto_20160907_1914.py | 5dbb860d6d601d9fe11f927ee47970a6189b6b04 | [
"MIT"
] | permissive | jokedurnez/neuropower | 50297af01bef55fe2c01355f038a9d184cde493d | ed8c1cf29d447b41dfbfbc7a8345443454e62a96 | refs/heads/master | 2021-01-15T08:36:45.191330 | 2016-11-20T00:56:30 | 2016-11-20T00:56:30 | 51,338,446 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-09-07 19:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('designtoolbox', '0015_auto_20160905_1717'),
]
operations = [
migrations.Alte... | [
"joke.durnez@gmail.com"
] | joke.durnez@gmail.com |
36baeb280fe445880f582412b5f140997661f413 | f4f181f2c970a163801b4202fc8d6c92a4e8113d | /google-cloud-sdk/lib/googlecloudsdk/api_lib/compute/addresses_utils.py | c24143684ff0332856f3e3da17ca890a539e8ee5 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | Sorsly/subtle | 7732a6cb910f5e2f4eed1ac0d3b5979001582340 | 718e79a3e04f1f57f39b6ebe90dec9e028e88d40 | refs/heads/master | 2021-05-24T01:21:39.218495 | 2017-10-28T01:33:58 | 2017-10-28T01:33:58 | 83,103,372 | 0 | 1 | MIT | 2020-07-25T11:21:05 | 2017-02-25T03:33:07 | Python | UTF-8 | Python | false | false | 3,225 | py | # Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"han300@purdue.edu"
] | han300@purdue.edu |
10ef50de6e155b9bb542e5c845172fff8a2bb9e6 | 16e26614611ae87de81388b435d88b142ca6189e | /pywind/decc/Report.py | d66f3fe5a42edfea4de68937f5228223d475ef93 | [] | no_license | tomwadley/pywind | d1d36007b0196730cba1389ef7940dd0ccabe5df | 0d86ff1c9a67b2f446e62c1471257e38bdc1d03c | refs/heads/master | 2021-04-09T15:41:49.823115 | 2013-06-26T09:18:24 | 2013-06-26T09:18:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,726 | py | from cookielib import CookieJar
import csv
from datetime import datetime
import urllib2
from pywind.decc.geo import osGridToLatLong, LatLon
def field_to_attr(fld):
fld = fld.lower()
for c in [' ', '-', '/']:
fld = fld.replace(c, '_')
return fld
class DeccRecord(object):
FIELDS = ['Reference',... | [
"zathrasorama@gmail.com"
] | zathrasorama@gmail.com |
47005a3669df2d29e09979c2bfd2bb18fede9e59 | b7e52aeabebf7448e31723d406755809cac63099 | /source/calc_fsun_tree/SConstruct | 9e270b942ba10dbe21a51f6c85d05cb22f763ba5 | [
"BSD-3-Clause"
] | permissive | bucricket/projectMASviirs | df31af86e024499ff87d2c2b707e3b9d24813f7c | 705abc89505122351f0ef78e0edb950b7e3b7f48 | refs/heads/master | 2021-01-01T18:31:16.748864 | 2018-05-30T15:14:07 | 2018-05-30T15:14:07 | 98,354,619 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | #!python
import os
import platform
import subprocess
AddOption('--prefix',
dest='prefix',
type='string',
nargs=1,
action='store',
metavar='DIR',
help='installation prefix')
env = Environment(PREFIX = GetOption('prefix'))
prefix = os.environ.get('PREFIX')
ba... | [
"bucricket@gmail.com"
] | bucricket@gmail.com | |
030faf212e0c96085fe19ef5907653e0f6de769f | cc6e36ce306a46c1accc3e979362de34b6063b7e | /game/management/commands/import_games.py | 1be5196a35dfa7b39b0710727bda8fd09f034eca | [] | no_license | bartromgens/petanque-stats-server | d51995e2b4d288a0a99563347c3bf3db863918bf | 9f7e48a7670b1c2c89f1bfcb2ac5ed8c8e9a7fe0 | refs/heads/master | 2020-03-22T19:23:18.230361 | 2018-07-29T00:46:02 | 2018-07-29T00:46:02 | 140,524,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | import json
import uuid
from django.core.management.base import BaseCommand
from django.contrib.auth.models import User
from django.db import transaction
from game.models import Game, Team, ScoreTeam, Player
class Command(BaseCommand):
help = 'Import scores from a custom format'
players_filepath = 'data/pla... | [
"bart.romgens@gmail.com"
] | bart.romgens@gmail.com |
6d25cc07becb9e59f730a67748abcca1e17b92d4 | 770f7b7155c33d2f8c27846b93b9b73db45b2e2a | /gofedinfra/system/plugins/simpleetcdstorage/fakeartefactdriver.py | 10293902c919cd5c9cb74e6cf1c783345335fd8e | [] | no_license | gofed/infra | b0f6186486e8aa7c8c640411ee92d6648cbc77ec | 2f402bbdf1e5fa7cb68262cc3408a2fc1436269f | refs/heads/master | 2022-10-16T02:46:09.226939 | 2018-06-07T23:16:44 | 2018-06-08T11:31:37 | 48,703,326 | 1 | 5 | null | 2022-10-11T11:17:16 | 2015-12-28T17:08:28 | Python | UTF-8 | Python | false | false | 346 | py | from .artefactdriver import ArtefactDriver
class FakeArtefactDriver(ArtefactDriver):
def __init__(self, artefact):
ArtefactDriver.__init__(self, artefact)
self.data = {}
def store(self, input):
key = self._generateKey(input)
self.data[key] = input
def retrieve(self, data):
key = self._generateKey(data)... | [
"jchaloup@redhat.com"
] | jchaloup@redhat.com |
742e69c1a22297de8f0a8cd58cecab3389d6f888 | a281d09ed91914b134028c3a9f11f0beb69a9089 | /tests/integration/docusaurus/connecting_to_your_data/cloud/gcs/pandas/inferred_and_runtime_yaml_example.py | e7ed0539f4232487def269d75f60499c9e167e07 | [
"Apache-2.0"
] | permissive | CarstenFrommhold/great_expectations | 4e67bbf43d21bc414f56d576704259a4eca283a5 | 23d61c5ed26689d6ff9cec647cc35712ad744559 | refs/heads/develop | 2023-01-08T10:01:12.074165 | 2022-11-29T18:50:18 | 2022-11-29T18:50:18 | 311,708,429 | 0 | 0 | Apache-2.0 | 2020-11-10T15:52:05 | 2020-11-10T15:52:04 | null | UTF-8 | Python | false | false | 4,209 | py | from typing import List
# <snippet>
from ruamel import yaml
import great_expectations as ge
from great_expectations.core.batch import Batch, BatchRequest, RuntimeBatchRequest
# </snippet>
# <snippet>
context = ge.get_context()
# </snippet>
# <snippet>
datasource_yaml = rf"""
name: my_gcs_datasource
class_name: Dat... | [
"noreply@github.com"
] | CarstenFrommhold.noreply@github.com |
a49e2981e3bf1e5622c75bb54165b0f55cecfe87 | 31c94ea00f0f6673f161a21a529f2272e7460a34 | /bindapi/routerApi.py | 4ea16209cd1e7101e783bcfeaa0d6ef1853e83b0 | [] | no_license | xgocn/bindapi | 0d3e51f696a9d3ec5dde4e05d1c2d5eb2fe52f5a | 343f07176de43c3e5ffc9b26c479c47c289fdc0e | refs/heads/master | 2023-03-15T08:01:22.550448 | 2018-05-09T06:19:22 | 2018-05-09T06:19:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
# author: kiven
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
from bind.views import DomainViewSet, RecordViewSet, AllDomainViewSet, XfrAclViewSet
router.register(r'domains', DomainViewSet)
router.register(r'records', RecordViewSet)
router.register(r'xf... | [
"kevin@126.com"
] | kevin@126.com |
17b6a63f5fd62343b7a3cb8a859ed7ef5cd184f7 | 521648e4e12366760da7baff15d35201e0b19a5e | /django_ansible/shell.py | 5dc1d4613af2d30156968e00bd67fc7c89c10b8e | [] | no_license | sashgorokhov/django-ansible | b54f596f7d50d239474eb2d4fd8e85c0da21f959 | ad32255b7c87bcada1bd6c8aa250c1ec52c8cd49 | refs/heads/master | 2021-01-22T07:52:55.457727 | 2017-02-13T19:46:23 | 2017-02-13T19:46:23 | 81,864,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | import subprocess
import logging
logger = logging.getLogger(__name__)
def _try_decode(b):
try:
return b.decode()
except:
return b
def run(executable, args, env=None, cwd=None, **kwargs):
"""
:param kwargs: Additional arguments passed to subprocess.run function
:rtype: subprocess... | [
"sashgorokhov@gmail.com"
] | sashgorokhov@gmail.com |
c31338954ced6e76da2274aa4b6340be2e11225e | aa8e6259f33bdcfdf21434da5185f31aa6927195 | /gtf_admm_gird_v1.py | ded9bf78405dafb35b2100bc464273be8ad8622f | [] | no_license | Ryanshuai/graph_trend_filtering_py | b32448cfdc4c50a9dfde144abe73e878891f26de | 243969bf7dd97e483693ac88e45ab2192cd4edbf | refs/heads/master | 2020-11-27T07:13:22.116640 | 2019-12-24T20:56:05 | 2019-12-24T20:56:05 | 229,349,019 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | import numpy as np
from numpy.linalg import norm
from grid_system import grid_system_2d, grid_system_3d
from get_Delta_grid import get_Delta_grid
from soft_thresh import soft_thresh
from construct_O import construct_O
def gtf_admm_grid_v1(y: np.array, k, lamb, rho, max_iter=1000):
y_size = y.size
y_shape = y... | [
"1018718155@qq.com"
] | 1018718155@qq.com |
28dccbb9398db07f45d327d9f7177a7907e88734 | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /python/paddle/distributed/launch/controllers/ipu_controller.py | bf2c5f34b3bdf946f0f16b99225771bd139022e5 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 6,679 | py | # Copyright (c) 2022 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
e2f068cbe30c6a0e2ced7c56d424860a07838c8b | d0cd3064e1b24542e02518961fd6643af56738f0 | /ticha-django-site/handwritten_texts/views.py | 96faec09e23c5252e504753c7de6a6f472a2b205 | [] | no_license | zhanpengwang888/Docker-Test | 126bd74301b7550de753eb7539795e20ace285c5 | 2f0eefb684622d6eead3977697e8ccf4761ba1be | refs/heads/master | 2022-12-15T11:49:46.899365 | 2017-09-29T21:02:05 | 2017-09-29T21:02:05 | 104,515,096 | 0 | 0 | null | 2022-12-07T23:56:40 | 2017-09-22T20:16:17 | HTML | UTF-8 | Python | false | false | 1,899 | py | from django.shortcuts import render
from .models import HandwrittenText
from django.views.generic import ListView
class HandwrittenListView(ListView):
model = HandwrittenText
template_name = 'handwritten_texts/list.html'
EN_TO_ES = {
'title': 'título', "language": "idioma", "document_type": "tipo_del_doc... | [
"zhanpengwang@Zhanpengs-MacBook-Air.local"
] | zhanpengwang@Zhanpengs-MacBook-Air.local |
0a4496a02194dde02d89f94e065bb5e8d08c414d | b77cc1448ae2c68589c5ee24e1a0b1e53499e606 | /leave/migrations/0011_auto_20170216_1404.py | 583d88c706e6ecb11c94de53c4d77eac4b435c0f | [] | no_license | PregTech-c/Hrp_system | a5514cf6b4c778bf7cc58e8a6e8120ac7048a0a7 | 11d8dd3221497c536dd7df9028b9991632055b21 | refs/heads/master | 2022-10-09T07:54:49.538270 | 2018-08-21T11:12:04 | 2018-08-21T11:12:04 | 145,424,954 | 1 | 1 | null | 2022-10-01T09:48:53 | 2018-08-20T13:58:31 | JavaScript | UTF-8 | Python | false | false | 421 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-02-16 11:04
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('leave', '0010_auto_20170215_1712'),
]
operations = [
migrations.RenameModel(
... | [
"imugabi64@yahoo.com"
] | imugabi64@yahoo.com |
7b88efcd16638abbf9a7b7bf5405d75f01442fa0 | 4ef12965654c4bc9d6a0635ecf8188ecf2defed8 | /my_new_application_1046/wsgi.py | 3cb6a828d03839b76f908d22de5a1756e8c484a1 | [] | no_license | crowdbotics-apps/my-new-application-1046 | 2d30662ae59e1675d0fee78789898852a1b81b45 | e3ee98e6318bac0a61b3519d148b4b6b80c9c6f5 | refs/heads/master | 2022-12-21T22:11:11.515569 | 2019-02-23T00:42:41 | 2019-02-23T00:42:41 | 172,153,638 | 0 | 0 | null | 2022-12-08T01:40:51 | 2019-02-23T00:41:51 | Python | UTF-8 | Python | false | false | 424 | py | """
WSGI config for my_new_application_1046 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefa... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
cf5d0a7771e323b24bd3ee042f85b1bcbe5f004f | 2233f520493f64c6070dd3e77722e53a7dd738e8 | /day5/my_devices_na.py | 2721f252d62d9ee537165a0fe29a355f3aca4d31 | [
"Apache-2.0"
] | permissive | mpjeffin/pynet-ons-oct17 | 690bb31600b8ef5131439bb25ddce35b4855ba6a | d0daf9c250f79bc34b3b8b06b67004f56ef834a2 | refs/heads/master | 2021-09-07T00:00:02.234456 | 2018-02-13T19:58:11 | 2018-02-13T19:58:11 | 125,467,721 | 1 | 0 | null | 2018-03-16T05:26:10 | 2018-03-16T05:26:10 | null | UTF-8 | Python | false | false | 1,517 | py | """
pynet-rtr1 (Cisco IOS) 184.105.247.70
pynet-rtr2 (Cisco IOS) 184.105.247.71
pynet-sw1 (Arista EOS) 184.105.247.72
pynet-sw2 (Arista EOS) 184.105.247.73
pynet-sw3 (Arista EOS) 184.105.247.74
pynet-sw4 (Arista EOS) 184.105.247.75
juniper-srx 184.105.247.76
"""
from getpass import getpass
password = ... | [
"ktbyers@twb-tech.com"
] | ktbyers@twb-tech.com |
438dfdf0b19a083bd9b1157b53d2919d688c2a8a | 958b0471c52eff93415216cdd1a2b2ad3947a89b | /blueoil/templates/lmnet/object_detection.tpl.py | cf5170303d51745396007741b7ffa0160df7ae0d | [
"Apache-2.0"
] | permissive | fumihwh/blueoil | 4deb606e334b8456e7ace41e3f091ad6dc41afb6 | acb5a270f201f34fe5a5b27a4b395d9c3a838b27 | refs/heads/master | 2020-04-01T22:29:27.525697 | 2018-10-18T09:23:37 | 2018-10-18T09:23:37 | 153,711,347 | 1 | 0 | null | 2018-10-19T01:49:02 | 2018-10-19T01:49:02 | null | UTF-8 | Python | false | false | 4,402 | py | # -*- coding: utf-8 -*-
# Copyright 2018 The Blueoil 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
#
# Unles... | [
"matsuda@leapmind.io"
] | matsuda@leapmind.io |
1c6b5467cecb01f1ce0b31daf841a086b27f5729 | 2305ce053d16652d31823bd07faf38553b4f9b63 | /books/CrackingCodesWithPython/Chapter07/PracticeQuestions/Question2.py | 8a2180532dbdb37385f07898cf49f7569908be5b | [
"MIT"
] | permissive | leihuagh/python-tutorials | cff3c5e250a152252d4b725bca19f55721483249 | 33831b983d7bd1491e367b6c7654e687d5ba709b | refs/heads/master | 2020-03-29T17:59:31.226400 | 2018-09-24T08:41:26 | 2018-09-24T08:41:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # Is each spam a global or local variable?
spam = 42 # global/local
def foo():
global spam
spam = 99 # global/local
print(spam)
foo() # mind == blown
| [
"jose@JoseALerma.com"
] | jose@JoseALerma.com |
ffce63d94730102d0599826ce2ea7e70963a22c9 | 0c9ec5d4bafca45505f77cbd3961f4aff5c10238 | /openapi-python-client/openapi_client/models/process_instance_modification_dto.py | a2247513acf2154c0228b1c01bcedaba8beea8c1 | [
"Apache-2.0"
] | permissive | yanavasileva/camunda-bpm-examples | 98cd2930f5c8df11a56bf04845a8ada5b3bb542d | 051f8f28c62845e68ce4059ab64264c5a0bdc009 | refs/heads/master | 2022-10-19T20:07:21.278160 | 2020-05-27T15:28:27 | 2020-05-27T15:28:27 | 267,320,400 | 0 | 0 | Apache-2.0 | 2020-05-27T14:35:22 | 2020-05-27T13:00:01 | null | UTF-8 | Python | false | false | 7,337 | py | # coding: utf-8
"""
Camunda BPM REST API
OpenApi Spec for Camunda BPM REST API. # noqa: E501
The version of the OpenAPI document: 7.13.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from openapi_client.configuration import Configuration
clas... | [
"noreply@github.com"
] | yanavasileva.noreply@github.com |
c0eb4bc8412ecaaaa4487ae33bba16b07ed34654 | 0b5ab7349485da4ea40ca343bc50f4cab74c917c | /week06/c11_02.py | 6f2b70e99e3507ef95e9e833368280cb7b5ebef7 | [] | no_license | workherd/Python006-006 | 9bf2782ccda037de9af98eb7daa87fd1edeb3caf | 7aa176c3cf4effd015802b550edfb70f859e94d9 | refs/heads/main | 2023-04-29T14:37:43.545376 | 2021-05-16T04:13:08 | 2021-05-16T04:13:08 | 323,247,475 | 1 | 0 | null | 2020-12-21T06:13:42 | 2020-12-21T06:13:42 | null | UTF-8 | Python | false | false | 712 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2021/1/30 21:06
# @Author : john
# @File : c11.py
# 使用type元类创建类
def pop_value(self, dict_value):
for key in self.keys():
if self.__getitem__(key) == dict_value:
self.pop(key)
break
# 元类要求,必须继承自type
class DelVal... | [
"1330430077@qq.com"
] | 1330430077@qq.com |
477f6768361db49f12efc9b40192ff00dd8077a5 | 1f2860bf84fa87e2d6c3b5e5b1a62e76879a642a | /q41_50/049.py | 5ff4e3fbd4c56fc5ad1ac2c8c1db93e208b34745 | [] | no_license | Vegctrp/pic100knock | 222dc4c981e7d20180a2338184109987f56d1518 | 134a41c9a3fcfc49667a26625cfeaf7bc4a91899 | refs/heads/master | 2020-07-08T17:17:43.869124 | 2019-09-23T15:23:08 | 2019-09-23T15:23:08 | 203,730,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | import cv2
import numpy as np
import lib4150
import matplotlib.pyplot as plt
import sys,os
sys.path.append(os.getcwd())
from q01_10 import lib0110
if __name__ == '__main__':
img = cv2.imread("Gasyori100knock/Question_41_50/imori.jpg")
img2 = lib0110.OTSU_binarization(lib0110.BGR2GRAY(img))
out =... | [
"kem.altair@gmail.com"
] | kem.altair@gmail.com |
2b381525fefdeac0ef1e5cd6af040849d7ab9e4e | 99b0631baa2fd9ab2455d848b47febf581916272 | /zhijieketang/chapter11/ch11.3.6.py | 5ed6d9e5c1c618b89767775b7f3df937094f87bb | [] | no_license | seceast/PyProjects | a934e366cb619f2610d75b9a0fb47d818814a4de | 7be7193b4126ce920a3d3ffa4ef5d8743b3fa7d1 | refs/heads/master | 2023-03-07T22:23:21.229489 | 2021-02-25T05:37:58 | 2021-02-25T05:37:58 | 265,480,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # coding=utf-8
# 代码文件:chapter11/ch11.3.6.py
class Animal(object):
"""定义动物类"""
def __init__(self, age, sex=1, weight=0.0):
self.age = age # 定义年龄实例变量
self.sex = sex # 定义性别实例变量
self.weight = weight # 定义体重实例变量
def eat(self):
self.weight += 0.05
print('eat...')
... | [
"yangyadong25@163.com"
] | yangyadong25@163.com |
30d160a89cb021b89ffa3a81257339d90f223c24 | b44df2be270793884ca5bd5e79d22c991edae001 | /app/auth/views.py | 9ac180988110a27bb0106dfd45b959fc130d2335 | [] | no_license | Wakarende/Blog | d45c423be8a86227ad4106bbdae429a79ef3dcf2 | 2e2d2f89c55c4f5dbe0cf6fe09f83212bf905f5c | refs/heads/master | 2023-04-23T00:18:47.343723 | 2021-05-05T06:46:51 | 2021-05-05T06:46:51 | 363,127,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | from flask import render_template,redirect,url_for,flash,request
from . import auth
from flask_login import login_required,login_user,logout_user
from ..models import User
from .forms import RegistrationForm,LoginForm
from .. import db
from ..email import mail_message
@auth.route('/login', methods=['GET','POST'])
def... | [
"joykirii@gmail.com"
] | joykirii@gmail.com |
71f210792e7bb560ed5a7e5db4e79a338bba1c63 | ba15fac9fbe53578d3823ceeac67fc338e2312e9 | /tests/functional/filters/e2e_filtering.py | 2980783ed05dd42c1c343efb2ed74a65e966af43 | [
"Apache-2.0"
] | permissive | dblenkus/resolwe-bio-py | 0694dcc32f485ccdd5ad43496ccef985c83819c7 | b6610ef26625492f39fdeef846d3e5a89a0009b3 | refs/heads/master | 2021-01-21T03:33:39.831803 | 2020-05-25T14:29:46 | 2020-05-26T07:48:34 | 55,721,959 | 0 | 0 | null | 2016-04-07T19:26:12 | 2016-04-07T19:26:12 | null | UTF-8 | Python | false | false | 3,627 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import os
import unittest
import six
from ..base import FILES_PATH, BaseResdkFunctionalTest
class BaseResdkFilteringTest(BaseResdkFunctionalTest):
def setUp(self):
super().setUp()
self.endpoint = self.res.data
... | [
"zmrzlikar.jure@gmail.com"
] | zmrzlikar.jure@gmail.com |
9375ac379d9e628b7e3443a2979108c2d4b929d6 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/sieve/e7fe59df2209451392330ca4b6e3a767.py | 92ce912956b69c6858c7563937f5b3852a638d3c | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 408 | py | def sieve(lim):
rng = range(2,lim+1)
output = range(2,lim+1)
for i in range(len(rng)):
count = 0
for j in range(len(output)):
if output[count] != rng[i]:
if not output[count] % rng[i]:
output.remove(output[count])
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
394523d7bb019d8ca4af4992d2c5ef47409c3c40 | 88a02059cbf16303dad9745a774230b2e078410f | /1163.py | 4ea1e789406c0eacec92cc075cfdac006f318799 | [] | no_license | nekoTheShadow/my_answers_of_yukicoder | 2e3a94b6dab214fda1ae3c53f879190e6eedc31f | d607dee056a84f08305a51d6eb0bac9faa5d74ed | refs/heads/master | 2022-01-16T06:31:48.776630 | 2022-01-04T08:11:27 | 2022-01-04T08:11:27 | 132,351,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | n, x = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
for i in range(n):
a[i] -= x
m = sum(a)
if m >= 0:
print(0)
exit()
if max(a) < 0:
print(-1)
exit()
dp = [{} for _ in range(n+1)]
dp[0][m] = 0
for i in range(n):
for k in dp[i]:
if... | [
"h.nakamura0903@gmail.com"
] | h.nakamura0903@gmail.com |
0f0f5d0b1c85ad0e5682d38e9cb7c54b8cbd0dd4 | 6c29a72dfe9eed38f4667babf74c3ae98983be6f | /tests/test_fixtures.py | 445ff550251b679e46e044775df9352aed857bb4 | [
"Apache-2.0"
] | permissive | ryan-rs/pytest-examples | 0149f79a069a2fb272486d3bf25a756c341f38e8 | 9ca2368c5e86f651497e42bb304415cf2ae3a0df | refs/heads/master | 2020-03-26T15:04:17.374972 | 2018-11-27T16:38:47 | 2018-11-27T16:38:47 | 145,020,977 | 0 | 0 | NOASSERTION | 2018-11-12T19:14:40 | 2018-08-16T17:43:30 | Python | UTF-8 | Python | false | false | 3,540 | py | # -*- coding: utf-8 -*-
# ======================================================================================================================
# Imports
# ======================================================================================================================
import os
import pytest
# ===============... | [
"ryan.gard@rackspace.com"
] | ryan.gard@rackspace.com |
485f78bf0f29fec745e66e6f68080ca1aaf408bf | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02574/s928939056.py | 075c9216b7de983528e8012b9dc8198741dc64ee | [] | 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 | 614 | py | from math import gcd
from functools import reduce
k=10**6+1
def judge(n,a):
c=[0]*k
for x in a:
c[x]+=1 #対応する数の個数を記録
t=any(sum(c[i::i])>1 for i in range(2,k)) #自身を約数に持つ数が2つ以上与えられたリストに存在するような数が一つでもあるかどうか
t+=reduce(gcd,a)>1 #全体について1以外の公約数があれば1加える
return ['pairwise','setwise','not'][t]+' coprime' #全体に公約数があれば... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1619841e22d47095341a3633936eb0d746446e6c | 1ff31cedc4794083e213e6637deaacab49cfdd9a | /pyatv/mrp/tlv8.py | c8675b1741300017851aee0f599941efce39e7b5 | [
"MIT"
] | permissive | dschu012/pyatv | 910cefec45fcfe94fe9b3fee59672299215db24b | 6496548aee09ff95f5515abb172c1ba19b9d995b | refs/heads/master | 2020-12-04T06:35:25.957921 | 2020-01-01T14:38:54 | 2020-01-01T18:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | """Implementation of TLV8 used by MRP/HomeKit pairing process.
Note that this implementation only supports one level of value, i.e. no dicts
in dicts.
"""
# Some of the defined tags used by the pairing process
TLV_METHOD = '0'
TLV_IDENTIFIER = '1'
TLV_SALT = '2'
TLV_PUBLIC_KEY = '3'
TLV_PROOF = '4'
TLV_ENCRYPTED_DATA... | [
"pierre.staahl@gmail.com"
] | pierre.staahl@gmail.com |
c37fddbe72a4bf5e7895fef5d2695c5dec44a3c9 | f3c2fa4c6ef32e01b98ac56a2e25419152d69208 | /gpio-utils/radiosimulator.py | 2c6810bd11fb90a6e076c1bbac1c5bd5e6bd0e97 | [
"MIT"
] | permissive | deets/brombeerquark | bd4687d42f9466cd5f6843df6a49e647cf3e2fcc | 9314bc6adaf19ee3868612c8aafdce0f1ebbabb9 | refs/heads/master | 2021-07-19T07:02:22.427227 | 2021-02-28T12:45:57 | 2021-02-28T12:45:57 | 47,883,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,399 | py | from __future__ import print_function
from functools import partial
import time
import threading
import Queue
from tfa import TimedFiniteAutomaton
def simulate_gpio_events(queue):
time.sleep(1.0)
# just increase volume by pressing/releasing once
queue.put("volume+pressed")
queue.put("volume+released")... | [
"deets@web.de"
] | deets@web.de |
342f10467123051dda12ff9cfcfa59cb2048ea18 | 7bdc1a3565ba8964658a749fb05ddc27f20d0a33 | /scripts/mvn_incremental | d92faf0f5cebe8ccda4cf17fbd1335426c57b1b4 | [] | no_license | wuan/ci-tools | 375cd64d0197e7e482255661c998f11e06c3e404 | 6796ee0a9f0b11a4c4ac7c05bdad047e6edd3313 | refs/heads/master | 2020-12-24T16:24:02.820016 | 2016-03-04T07:33:19 | 2016-03-04T07:33:19 | 39,160,905 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | #!/usr/bin/env python
# coding=utf-8
"""
Copyright 2015 Andreas Würl
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 require... | [
"andi@tryb.de"
] | andi@tryb.de | |
03d53a2fa862909aa754424596e338d8baa4977a | 03cbc74c3b5c3147e2a5ccfe668594350ac32e09 | /lib/game_controller.py | 9ce9f53324d0447b7aa41f4d4860de35d7426544 | [] | no_license | yapo/scoreboard | 51e1b5ae07ad23390b920c2a8cad13f4e9e71a4f | f35457125e377d19d912509b3b7c7749fc5a15aa | refs/heads/master | 2021-01-18T12:05:53.859445 | 2014-08-30T21:33:58 | 2014-08-30T21:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,895 | py | import sys
class game_controller(object):
def __init__(self, config):
self.config = config
self.player1 = player('white')
self.player2 = player('black')
self.last_scored_player = None
self.victory_callbacks = []
self.danger_zone_callbacks = []
self.combo_breaker_callbacks = []
self.first_blood_callba... | [
"root@raspberrypi.(none)"
] | root@raspberrypi.(none) |
dff6b6a5b2d3975ef21308b798a270290acf6b65 | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/twisted-Zope-3.2.1/twisted/vfs/pathutils.py | a5eb45e442945312b73e304ec7158ad550551c8a | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,390 | py | from zope.interface import Interface, Attribute, implements
def getAbsoluteSegments(path, cwd='/'):
"""
@param path: either a string or a list of string segments
which specifys the desired path. may be relative to the cwd
@param cwd: optional string specifying the current working directory
retur... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
2e37a656e0edae2639a95df75b96978d92948395 | 6c547e3312e2d1bd3dab123b831053ed7aef7b6d | /pages/MYCL/gain_loss/realized.py | cdacebeed29d6225098e87c9886c149079ecb7fb | [] | no_license | kenito2050/BICL | 8c4239f1e897e4dfc04aa35e827816242b41d5dd | 82891aba56cc49c9cf96ce82472847c4cb10828f | refs/heads/master | 2020-12-31T22:10:44.784193 | 2020-02-10T23:00:10 | 2020-02-10T23:00:10 | 239,039,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from selenium.webdriver.common.by import By
from config_globals import *
class realized():
def __init__(self, driver):
self.driver = driver
def Page_Elements(self):
# Table Header
self.table_header = self.driver.find_element(By.XPATH, "/html/body/div[1]/div[3]/div/div/ui-view/div/div... | [
"ken.villarruel@gmail.com"
] | ken.villarruel@gmail.com |
7088ef175232c41f87a46face5ef3c3f34a5927d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02256/s464205146.py | 66f0c6b76ec4f68636fea32269d78178a8e85ded | [] | 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 | 778 | py | a, b = map(int, input().split())
c = []
if a > b:
a, b = b, a
if b%a == 0:
print(a)
else:
while True:
for i in range(a):
x = i + 2
#print(a, x)
if a%x == 0:
if b%x == 0:
c.append(x)
a = a//x
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e5889701fc9377bce8eda18387d6adaea7a0c042 | 50bd113a98b1657d735a933c0fcc446dd8c35e3e | /companies/migrations/0011_auto_20190807_0332.py | 59e7718a743d90f137978161d15d48a3cf61152f | [
"Apache-2.0"
] | permissive | fuseumass/hackerforce | ab0d7e2fcb0c25276eac977fd628a0c67411e059 | dfb6ac1304a7db21853765de9da795e8e9ef20bf | refs/heads/development | 2022-12-23T09:44:38.319260 | 2019-12-05T00:11:59 | 2019-12-28T06:22:01 | 194,482,639 | 13 | 7 | Apache-2.0 | 2022-12-08T03:16:40 | 2019-06-30T06:21:44 | CSS | UTF-8 | Python | false | false | 575 | py | # Generated by Django 2.2.3 on 2019-08-07 07:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('companies', '0010_auto_20190807_0322'),
]
operations = [
migrations.AlterField(
model_name='industry',
name='color',... | [
"j@wogloms.net"
] | j@wogloms.net |
88065cf2fd2349c82ab8c1843bf968f43a975af1 | 98be00ee32971cade82d10c067aff532c3394a62 | /geeksforgeeks/linked_list_merge_sort.py | 200e6d2c43b2057dfa6cccd4818f7680ebebc6f6 | [] | no_license | vigneshhari/Competitive_solutions | 5ab34933ea8d84eab67bdef9bb9e4562f6b90782 | 7a35e1386e5cff71cb5746b6797ccc0f03ceb3f4 | refs/heads/master | 2023-01-11T02:53:01.456863 | 2022-12-29T13:50:03 | 2022-12-29T13:50:03 | 115,146,700 | 4 | 2 | null | 2019-10-26T09:15:03 | 2017-12-22T20:03:51 | Python | UTF-8 | Python | false | false | 391 | py |
class ll:
next = None
def __init__(self,val):
self.val = val
def setnext(self,next):
self.next = next
def stringll(node):
if(node == None):return ""
return str(node.val) + " " + stringll(node.next)
head = ll(-1)
looper = head
for i in range(input()):
temp = ll(input())
... | [
"vichuhari100@gmail.com"
] | vichuhari100@gmail.com |
ebaa610d6c8eb57c44c39600b076754a616c11b1 | 2ce46e0e82fca0c69228e56e38f33bbb198f9f04 | /homework/homework_pageobject_pytest_siye/PageObjects/tender_page.py | 536bf0d6128bbae18aad74d9189795e558e4f593 | [] | no_license | seesun1/LemonClass | 157ad65e0818bd76e4edafcc7e0889b89109d961 | 39fc70d467079ed8e9a229f03858160bf8d37926 | refs/heads/master | 2021-09-15T08:04:00.517038 | 2017-12-25T14:26:30 | 2017-12-25T14:26:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,775 | py | # -*- coding: UTF-8 -*-
#!/usr/bin/env python
# @Time : 2017/12/4 0:01
# @Author : SiYe
# @PROJECT_NAME : LemonClass
# @File : project_page.py
# @Software: PyCharm
#-------------------------------------------------------------------------------
from selenium.webdriver.support.wait import WebDriverWait
from se... | [
"1076168822@qq.com"
] | 1076168822@qq.com |
87ece04732cb2acc1a56a4842377caf258f57fdf | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_securely.py | 354e1a50d4dc2383607cb4a3d91f2d7302d29de2 | [
"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 | 545 | py |
#calss header
class _SECURELY():
def __init__(self,):
self.name = "SECURELY"
self.definitions = [u'in a way that avoids someone or something being harmed by any risk, danger, or threat: ', u'positioned or fastened firmly and correctly and therefore not likely to move, fall, or break: ']
self.parents = []
s... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9137b4b1bc0d434921790dbb3b1ea233760b6e87 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /4_set/6300. 最小公共值-集合交集.py | aa23a024dc580e11d35f90f6d3c465c7f728a010 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | from typing import List
# 给你两个整数数组 nums1 和 nums2 ,它们已经按非降序排序,
# 请你返回两个数组的 最小公共整数 。
# 如果两个数组 nums1 和 nums2 没有公共整数,请你返回 -1 。
class Solution:
def getCommon(self, nums1: List[int], nums2: List[int]) -> int:
"""数组已经排序"""
i, j = 0, 0
while i < len(nums1) and j < len(nums2):
... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
b41b6d17177d2576edcafb7c2692ea634c2d003b | c97fc7658c39feb51c0ed42c04783797c8675b8a | /2018/pcy1/day28上--算法/算法6_重复范围.py | e72fd01cd5d72606f8d44868a30549fcced23ef7 | [] | no_license | githubvit/study | 8bff13b18bea4954e8ed1b4619a091b134b8ff97 | 845e19d1225f1aa51c828b15effac30be42fdc1b | refs/heads/master | 2023-02-20T15:59:19.635611 | 2021-12-15T08:30:54 | 2021-12-15T08:30:54 | 241,928,274 | 1 | 1 | null | 2023-02-02T06:18:48 | 2020-02-20T16:08:06 | Python | UTF-8 | Python | false | false | 1,648 | py | #_*_coding:utf-8_*_
'''
经典语句:程序就是算法加数据结构。
算法(Algorithm):一个计算机的计算过程,用来解决问题的方法
'''
'''
给定一个升序列表和一个整数,返回该整数在列表中的下标范围。
例如:列表[1,2,3,3,3,4,4,5],若查找3,则返回(2,4);若查找1,则返回(0,0)。
思路:
因为是有序,所以可以用二分查找找到3,
找到3后,定义左右两个指针,左指针左移,看是不是3,是就继续左移,直到不是就退出。
右指针同理,最后返回左右两指针,就得到了范围。
注意,指针不能越界
'''
def bin_serach_sum(olist,v):
#初始化指针
low=... | [
"sgq523@163.com"
] | sgq523@163.com |
d8b39a1c516d2f5c17f94296c319054c25bd24e2 | 871690900c8da2456ca2818565b5e8c34818658e | /boj/silver/14501.py | 3000b1c08b7c01ae991fcf0d109895fc4640310b | [] | no_license | kobeomseok95/codingTest | 40d692132e6aeeee32ee53ea5d4b7af8f2b2a5b2 | d628d72d9d0c1aef2b3fa63bfa9a1b50d47aaf29 | refs/heads/master | 2023-04-16T09:48:14.916659 | 2021-05-01T11:35:42 | 2021-05-01T11:35:42 | 311,012,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from sys import stdin
READ = lambda : stdin.readline().strip()
n = int(READ())
t, p = [], []
dp = [0] * (n + 1)
for _ in range(n):
ti, pi = map(int, READ().split())
t.append(ti)
p.append(pi)
max_val = 0
for i in range(n-1, -1, -1):
time = t[i] + i
if time <= n:
dp[i] = max(p[i] + dp[time],... | [
"37062337+kobeomseok95@users.noreply.github.com"
] | 37062337+kobeomseok95@users.noreply.github.com |
8cd065138546caa19d8dfb80cad98bd36cc575af | 1f4505ed66f4fd68c6d1edf18ecff58362742fad | /algorithm/TwoPointer/18_4Sum.py | 97632d69454427fc6ac5b7ebff3128538fed3770 | [
"MIT"
] | permissive | nishitpatel01/Data-Science-Toolbox | 0d9b63a365698cc4a423abd5881cde8f6bf672be | 80dc1310d103c9481feff8792426c550ddcc0a36 | refs/heads/master | 2020-05-19T08:26:40.319321 | 2019-05-04T05:58:48 | 2019-05-04T05:58:48 | 184,921,541 | 1 | 1 | MIT | 2019-05-04T16:53:21 | 2019-05-04T16:53:20 | null | UTF-8 | Python | false | false | 2,264 | py | class Solution:
# combination of two fixed number, reducing the rest of the problem to 2-sum
def fourSumPart1(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[List[int]]
"""
nums.sort()
print(nums)
N = 4
ans = [... | [
"shawlu@github.com"
] | shawlu@github.com |
1b86c9cfdddd0628d6c56e3cdd522b0b23889b15 | 62c10b93d7c80df17b6a38f53300d697dea04b00 | /cryptoparty/mixins.py | 340e284535616cc7a9f6b33b5f4eea158cae7b93 | [] | no_license | cryptopartydk/cryptoparty.dk | bf2512330b2776c70c71b677df2a6ee36cba48d8 | 49d5fa04ed253c771d5c72f395a9819fec4d8fe6 | refs/heads/master | 2021-01-17T07:05:31.314722 | 2016-05-15T10:48:18 | 2016-05-15T10:48:18 | 28,929,476 | 1 | 1 | null | 2016-04-22T09:26:20 | 2015-01-07T19:14:05 | JavaScript | UTF-8 | Python | false | false | 284 | py | from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
class LoginRequiredMixin:
@method_decorator(login_required)
def dispatch(self, request, *args, **kwargs):
return super().dispatch(request, *args, **kwargs) | [
"valberg@orn.li"
] | valberg@orn.li |
f14980ac0bf82ecaf233ca9e8cad6c3dbb13e8b6 | f8b9e5de8823ff810ec445b6fa6d0e34f7b6319f | /Django/PracticeExam2_project/apps/Dashboard_app/models.py | 27d48bb144c743729cd67c2f88ef043234207b43 | [] | no_license | amalfushi/Python | 6c042443a8aeae15fc96a41a692abdbea05db863 | 067c2cef722457e884833f77baf9f44f45a4a165 | refs/heads/master | 2021-01-24T04:08:21.278071 | 2018-02-26T06:25:59 | 2018-02-26T06:25:59 | 122,923,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from ..LoginReg3_app.models import User
# Create your models here.
class CommentManager(models.Manager):
def createComment(self, postData):
tempComment = self.create(
comment_text = postData['newComment... | [
"dustin.p.schroeder@gmail.com"
] | dustin.p.schroeder@gmail.com |
9a2147565b1ba65de24b5cc99f64ed5f4e1fa0ee | e6871ff61d28e5e2acf201b459da29c20a8d3dca | /setup.py | 79685d9e4a85ba9dad9f06f7069a611467159ac2 | [
"Apache-2.0"
] | permissive | csams/squerly | 9d2f38b23cae4034308806f1ebdcc99a0208d868 | 62e416dfc8b418d1cc361b59f401accc8c111b52 | refs/heads/master | 2022-11-29T09:32:48.019336 | 2020-08-12T22:17:06 | 2020-08-12T22:17:06 | 261,189,120 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
runtime = set([
"pyyaml",
])
develop = set([
"coverage",
"flake8",
"pytest",
"pytest-cov",
"setuptools",
"twine",
"wheel",
])
docs = set([
"Sphinx",
"sphinx_rtd_theme",
])... | [
"csams@redhat.com"
] | csams@redhat.com |
c79b0645329cf6d9eb5b20d1430672e0d0dc2f1d | e51742f3b8026d6ae44761445689ac47f1f2e495 | /plot_two_file_groups.py | 57eed9c40f8b30805a5ecb90effe559dc0679f8d | [] | no_license | igridchyn/neuro-analysis | a2979692ea6a2c99dc0991bc371125f0ec6edb5d | c0b1bb6abc9b34328aa515ce4a9098f3cbc9f05a | refs/heads/main | 2023-06-26T09:48:46.250806 | 2021-07-29T09:34:53 | 2021-07-29T09:34:53 | 390,671,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,447 | py | #!/usr/bin/env python
# plot data from two groups of files (obtained by find through given
from matplotlib import pyplot as plt
from sys import argv
import subprocess
import numpy as np
from math import sqrt
import os
from scipy.stats import ttest_ind
if len(argv) < 2:
print '(1)<wildcard 1> (2)<wildcard 2>'
wc1 ... | [
"igor.gridchin@gmail.com"
] | igor.gridchin@gmail.com |
f8337cceff2742fc8e0488c9ed9833cc0cb05521 | a36eb4685fd050c8e1ecb4a333470724bd76df60 | /Leetcode/Jul20/050720/AntPlank/test.py | c4254221c68a019d0bd254ce37bb1ae5ea5e8bcb | [] | no_license | phibzy/Contests | c9cff976909234cfafc51db9d9dde01c26123168 | 24aac4c81f34916945be03ed0b7c916dae4dbbb4 | refs/heads/master | 2023-01-20T06:23:06.837937 | 2020-11-30T06:54:58 | 2020-11-30T06:54:58 | 265,750,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | #!/usr/bin/python3
"""
Test Cases:
"""
import unittest
from antPlank import Solution
class testPlank(unittest.TestCase):
a = Solution()
def testAllRight(self):
self.assertEqual(self.a.getLastMoment(7, [], [0,1,2,3,4,5,6,7]), 7)
def testAllLeft(self):
self.assertEqual(self.a.getLa... | [
"phibzy@gmail.com"
] | phibzy@gmail.com |
fbb4ce7292b75c77504d3408177443a56cbf6a6f | 7c4878b4881d79dd4daa3291e9c498e0706a7603 | /lesson15/index/task1.py | 7ec8ad71cd52424fb426eb3959d9f4db69b6d38c | [
"MIT"
] | permissive | zainllw0w/skillbox | 4cbdbb44762439c1aa1793a07683d7620500ddd7 | 896287b6f7f5612cf589094131fd1a12b0b192ba | refs/heads/main | 2023-04-27T16:07:16.613359 | 2021-05-20T14:12:11 | 2021-05-20T14:12:11 | 329,755,030 | 0 | 0 | null | 2021-05-20T14:06:42 | 2021-01-14T23:01:15 | Python | UTF-8 | Python | false | false | 471 | py | nums_list = []
N = int(input('Кол-во чисел в списке: '))
for _ in range(N):
num = int(input('Очередное число: '))
nums_list.append(num)
maximum = nums_list[1]
minimum = nums_list[1]
for i in nums_list:
if maximum < i:
maximum = i
if minimum > i:
minimum = i
print('Максимальное ... | [
"77465388+zainllw0w@users.noreply.github.com"
] | 77465388+zainllw0w@users.noreply.github.com |
459f40f5198fa6e892d8a8fa7a96f60e4f6eff43 | a707312fc63fdf0b1b719d8d593695de082cad7f | /betterRest_jira_example/__init__.py | 875da41c9e3be43e1c5860b292e19e04e70a3fc2 | [] | no_license | fdev31/bugrest | e75f7c1f387ead4636f56994bfbdbb5afca24368 | 2713712b8ae2b2d9b3b5a8b43c8c5e302da6271a | refs/heads/master | 2023-02-08T19:48:55.702820 | 2023-01-27T19:02:51 | 2023-01-27T19:02:51 | 83,884,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | __all__ = ["commands"]
class CFG:
@classmethod
def asDict(kls):
return {}
jira_plugin = {}
def init(env, opts):
# must be loaded after the jira plugin !!
jira_plugin["mod"] = env["plugins"]["jira"]
jira_plugin["cfg"] = env["plugins"]["jira"].CFG
def get_jira_object():
return jira... | [
"fdev31@gmail.com"
] | fdev31@gmail.com |
88181d49242a84e85aa17f9e8c5e203a41cbf39f | 2ce0c37ac7d9beeac23db688f97a1f502b92d13a | /products/migrations/0001_initial.py | 8c3c7cb80e517b9df5e5a887ea84aba26a843734 | [] | no_license | AmrElsayedEG/inventory-system | 0cdb0634b33117b13bfcae8642f979448d831369 | d4bc483612c3b721918d75f24ab0d7fa29b78ce3 | refs/heads/main | 2023-08-20T22:32:25.113740 | 2021-10-04T08:55:44 | 2021-10-04T08:55:44 | 413,344,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | # Generated by Django 3.2 on 2021-09-02 12:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('merchants', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='C... | [
"elsayed.amr50@gmail.com"
] | elsayed.amr50@gmail.com |
5e76891c6fd61b4b76cbc83b35b90119affe864e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_188/ch43_2019_04_16_13_18_38_414865.py | 9d7a9dc016757aa22b66c02a79763c38cff18db9 | [] | 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 | 370 | py | def sequencia_collatz(n):
contador = -1
while n!= 1:
if n % 2 == 0:
n /= 2
else:
n = (3*n) + 1
contador += 1
return contador
numero = 1000
maior = 0
while numero > 0:
teste = sequencia_collatz(numero)
if teste > maior:
maior = teste
re... | [
"you@example.com"
] | you@example.com |
eeaca050f85a8469d941da81394dbfc600b85fc2 | 1b42b04a27c33bfa704f4f108c9986cd558d7545 | /external_libs/pyzmq-14.5.0/python3/ucs4/32bit/zmq/tests/test_pair.py | 48473f08b608acc7577818b210bc9c2b80ae0831 | [] | no_license | Nandan307/trex_stl_lib | addbe9e42cc69a84fba59b385b108f4f22165534 | 8b3a204308475bff79a6bb7dd1419bbf18c10ffd | refs/heads/master | 2021-01-25T00:33:17.552192 | 2018-02-28T14:41:56 | 2018-02-28T14:41:56 | 123,301,115 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | # Copyright (C) PyZMQ Developers
# Distributed under the terms of the Modified BSD License.
import zmq
from zmq.tests import BaseZMQTestCase, have_gevent, GreenTest
x = b' '
class TestPair(BaseZMQTestCase):
def test_basic(self):
s1, s2 = self.create_bound_pair(zmq.PAIR, zmq.PAIR)
msg1 = b'me... | [
"nakulkar@nakulkar.bos.csb"
] | nakulkar@nakulkar.bos.csb |
5072ea5d23fdff3d70a3bb7c00566d5eafeb2462 | d552a3c92155d82ad146cd99ea9b8b4a3b65eab7 | /openstack/tests/unit/accelerator/v2/test_device.py | 22b17b336ec7b59cf89ffb03febaf3e54fa4d5c5 | [
"Apache-2.0"
] | permissive | jlyheden/openstacksdk | 600201d4fbf23fd8a4fa9a53b398b29811446051 | 7e0dcaaa4a69b17b97e746ce8de104689c60becc | refs/heads/master | 2022-11-30T19:15:16.113961 | 2020-06-07T18:02:22 | 2020-06-07T18:02:23 | 270,694,856 | 0 | 0 | Apache-2.0 | 2020-06-08T14:15:36 | 2020-06-08T14:15:35 | null | UTF-8 | Python | false | false | 2,029 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"mordred@inaugust.com"
] | mordred@inaugust.com |
3165e50dd296edb0a5d28b024e1c4e2ee1969e43 | 7a2d2cfbe99a13920e55e462bd40627e34d18f23 | /openbb_terminal/cryptocurrency/overview/sdk_helpers.py | ccec6062d9340aec34117974ad16ac948ae80aba | [
"MIT"
] | permissive | conrad-strughold/GamestonkTerminal | b9ada627929dbc1be379f19c69b34e24764efcff | c9aa674d979a7c7fd7f251410ceaa1c8a4ef2e6e | refs/heads/main | 2023-06-24T02:59:45.096493 | 2023-05-16T15:15:20 | 2023-05-16T15:15:20 | 342,313,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | """Crypto OV SDK Helper Functions."""
__docformat__ = "numpy"
import pandas as pd
from openbb_terminal.cryptocurrency.dataframe_helpers import (
lambda_long_number_format_with_type_check,
)
from openbb_terminal.cryptocurrency.overview import coinpaprika_model, pycoingecko_model
def globe(source: str = "CoinGeck... | [
"noreply@github.com"
] | conrad-strughold.noreply@github.com |
4fd5872538497ddefc32a9afbb191cc29aaefc25 | 9cbacb28ae219c3b16e0ba0e5fc9e14a7f36e4c6 | /paper-code/tensorflow_src/models/task/task_chatter.py | 3c8bc4ac778984da4cb57f12b2ce7f7af574b9f4 | [
"Apache-2.0"
] | permissive | hquzhuguofeng/nlp-paper-1 | 7be27a30d304d789d9f6b45bef0803ff90e31aa2 | e710574c95b671e848f4e3b6ad1d275a4adbf1fb | refs/heads/master | 2023-08-27T07:47:54.575198 | 2021-10-22T12:28:22 | 2021-10-22T12:28:22 | 420,844,157 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,215 | py | import os
import sys
import time
import tensorflow as tf
import model.model as task
from common.kb import load_kb
sys.path.append(sys.path[0][:-10])
from model.chatter import Chatter
import common.data_utils as _data
from common.common import CmdParser
import config.get_config as _config
from common.pre_treat import p... | [
"1210212670@qq.com"
] | 1210212670@qq.com |
f1905277edc4ede3808ba32c2600771cc11cb93f | 210691d0d62955bb1cb45e4221718418545c37f8 | /t/test_wc.py | 12001d56bf64f7578b338f0d5b81beb4c5fabe16 | [] | no_license | szabgab/pytools | d0445e1fc612592beb5706cb7af617ed2fb56df8 | c0cd51768a1a728b55c7d78fbba35c2aeda53d7c | refs/heads/master | 2021-01-18T18:25:15.914492 | 2012-11-15T07:51:26 | 2012-11-15T07:51:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | import unittest
#import sys
#sys.path.append('bin')
#import wc
class TestWC(unittest.TestCase):
def setUp(self):
pass
# create temporary file
def test_wc(self):
self.assertTrue(True)
if __name__ == '__main__':
unittest.main() | [
"gabor@szabgab.com"
] | gabor@szabgab.com |
23b4f421a0a3dfcf6dd0e936f4b47bf527924735 | cf74841051a2ea1d11a6765fa76d64a1caad9293 | /mysite/settings.py | 7e6e00aa76b52ef0affa6a33b9c1eab72b1cfd8e | [] | no_license | kattosai/my-first-blog | 6e8e39e5300632c66418c45265eb34aa4263f9e3 | b18c6149711b4ab512d2686be6576bf37820e810 | refs/heads/master | 2020-05-05T11:12:00.849690 | 2019-04-08T13:27:33 | 2019-04-08T13:27:33 | 179,979,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,183 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.13.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
#... | [
"you@example.com"
] | you@example.com |
8fef98c2654ba9af7518648c1307f2dfd67c0ac1 | 8246092010e656920e7199f889f9cbf54b83a729 | /pycoin/symbols/ric.py | 0cb5179b08fc317c81336784f54f585757c5fe15 | [
"MIT"
] | permissive | richardkiss/pycoin | 5717411a11445773ac922c1d1c1b7dbe4835cd77 | b41ad7d02e52d9869a8c9f0dbd7d3b2b496c98c0 | refs/heads/main | 2023-08-07T12:14:04.974934 | 2023-04-18T02:27:15 | 2023-04-18T02:27:15 | 10,917,677 | 1,306 | 489 | MIT | 2023-06-03T23:24:50 | 2013-06-24T19:17:52 | Python | UTF-8 | Python | false | false | 319 | py | from pycoin.networks.bitcoinish import create_bitcoinish_network
network = create_bitcoinish_network(
symbol="RIC", network_name="Riecoin", subnet_name="mainnet",
wif_prefix_hex="80", address_prefix_hex="3c", pay_to_script_prefix_hex="05",
bip32_prv_prefix_hex="0488ade4", bip32_pub_prefix_hex="0488b21e")
| [
"him@richardkiss.com"
] | him@richardkiss.com |
d689b65e58f4d60db8f65090a8b0e8b0bdbffa84 | 8546c0e45ea7a10e07d4e5f9f8123026ecb0e54e | /backend/ancient_art_29276/urls.py | 93c0e60acd785ae79a01048668d4100015d480b4 | [] | no_license | crowdbotics-apps/ancient-art-29276 | a799ab4abbbe0ab2583c661552d7095f25650413 | e31537524839e28b1ed44ebddffe9ac95e47c582 | refs/heads/master | 2023-07-03T16:46:51.569667 | 2021-07-29T23:15:17 | 2021-07-29T23:15:17 | 390,872,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,229 | py | """ancient_art_29276 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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')
C... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
bdbf206496a0420317ec6c60a8d1a7b1c3577906 | 12cfd1678317f40ca778b8c65d7323637c8c358d | /2018腾讯广告算法大赛/team1_lgb&nffm/src/014_CV_cvr_select_p.py | 7582b0de170d96bf099fdfb6df27df2bb75f6f8b | [] | no_license | moonlight1776/competitions | e73d0ce358d2b5662b801820fd2f6434f2af4e2e | a372a2051a2a1580feb280ce6842a785459cf8d1 | refs/heads/master | 2022-03-21T09:31:20.276644 | 2019-11-09T05:37:46 | 2019-11-09T05:37:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,000 | py | ##筛选特征
col_new = ['cvr_of_aid_and_onehot7',
'cvr_of_age_and_onehot7',
'cvr_of_consumptionAbility_and_onehot1',
'cvr_of_aid_and_onehot3', 'cvr_of_advertiserId_and_onehot3',
'cvr_of_advertiserId_and_onehot1', 'cvr_of_gender_and_onehot2',
'cvr_of_campaignId_and_onehot7', 'cvr_... | [
"327643958@qq.com"
] | 327643958@qq.com |
e934a0bdc018a0da5a8ea763e93fcfd986997a79 | 0d2d3058feddb9be205427a142e0320821a0ca9c | /myapp/urls.py | 42aae4734d65f266b9c79707e4e90aa112ccaba2 | [] | no_license | Emad-ahmed/Leading_university_website | 76085d93df2f24940b9a2023873add6d26c044f3 | db12faca90041c606972a7eccf8fb62701b26a88 | refs/heads/main | 2023-06-06T21:10:54.051778 | 2021-07-07T03:42:56 | 2021-07-07T03:42:56 | 383,501,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | from myapp.views.faculty import eng
from django.urls import path
from myapp.views import HomeView, shownotice, shownews, LoginView, SignupView, user_logout, EmailView, bba, cse, eng, StudentView
from django.contrib.auth import views as auth_views
from .forms import MyPasswordResetForm, MySetPasswordForm, MyPasswordChan... | [
"amadahmed1234678@gmail.com"
] | amadahmed1234678@gmail.com |
ea9cf5a73ecf15898db5b9d376aa74ae41b4575a | 812f9822ddbfc986f4f230a9e6814f22c7c50e2f | /branching/nested.py | baba8661b3a2dfe6f2a4379b635ee0c8de297c89 | [] | no_license | devopsvj/PythonAndMe | 31b4aa9bade1431d6f13917122dc12bf6a118da6 | 0b1362023960b7c77c79856d4bdef0a58fec1446 | refs/heads/master | 2023-07-25T23:06:39.081191 | 2019-01-15T09:50:08 | 2019-01-15T09:50:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | #Program for if statements
#Author:K.Vani
#Date:16.12.1018
#Batch :Devops December 2018
print "Example for if satement"
print "----------------------"
x=input("Enter the Value for x:")
y=input("Enter the value for y:")
z=input("Enter the Value for z:")
a=input("Enter the value for a:")
"""if x>y and x>z and x>a :
p... | [
"vani_kani@hotmail.com"
] | vani_kani@hotmail.com |
8e05f8316c34e11f625d1119368230bc445d4dac | 6e99c57261bcc5ba1f31bffc6ee1d854a00cdd56 | /examples/anon-bucket-sort/bootstrap.py | f447c9c9c8a419ea35d419379552bf8f0ced50c9 | [
"MIT"
] | permissive | chrisseto/Still | 5a0249b8eb28956b2be5538d07fb8091e3c54c49 | 3e4df26b824227472e5f487905779deafc76b4dd | refs/heads/master | 2021-01-10T13:43:33.098299 | 2015-10-12T05:22:24 | 2015-10-12T05:22:24 | 43,833,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | import os
import json
import asyncio
from wdim import client
from wdim.client.permissions import Permissions
from wdim.orm import Storable
from wdim.orm import exceptions
from wdim.orm.database import MongoLayer
from wdim.orm.database import EmbeddedElasticSearchLayer
cards_loc = os.path.join(os.path.split(__file__)... | [
"chriskseto@gmail.com"
] | chriskseto@gmail.com |
f2c07af575636924d36d2f3874cd92e1c7c7d55f | 8b8da03245af2d7dd3513bf4ba9a1cf9f4923275 | /bingads/v12/bulk/entities/bulk_account.py | 37f2eefd971a7145b4193bbb6a6a02f5e9f27f37 | [
"MIT"
] | permissive | dev0505/BingAds-Python-SDK | 42233f4c41209da99ad3e5c494babdd2e13ead69 | ec8e98f5ff1f472b2ca5801c4dc230039c5b83f9 | refs/heads/master | 2020-05-07T19:34:50.000451 | 2019-03-21T05:04:22 | 2019-03-21T05:04:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,325 | py | from bingads.v12.internal.bulk.string_table import _StringTable
from bingads.v12.internal.bulk.entities.single_record_bulk_entity import _SingleRecordBulkEntity
from bingads.v12.internal.bulk.mappings import _SimpleBulkMapping
from bingads.v12.internal.extensions import *
class BulkAccount(_SingleRecordBulkEntity):
... | [
"qitia@microsoft.com"
] | qitia@microsoft.com |
2965fe1e208f712e3e99e3ebf5778e835be9fd11 | 910c97ce255f39af7ef949664b4346e8cb5d6a0e | /monitorcenter/monitor/mirror/disk.py | b149464a149accec9348522008b7e46f181d867e | [] | no_license | sun3shines/manager_monitor | f3742a4fde95b456f51d0a18feb78f3d4048c560 | f49d741203d8476f2249a49d90fecc86143ac622 | refs/heads/master | 2021-01-17T06:47:14.375088 | 2016-04-29T06:43:05 | 2016-04-29T06:43:05 | 57,361,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,143 | py | # -*- coding: utf-8 -*-
from managerlib.db.table.dynamic.stat_disk import Disk,insert_disk,update_disk
from managerlib.db.table.dynamic.stat_disk import hid2attrs as DISKhid2attrs
from monitorcenter.monitor.mirror.base import MirrorBase
class MirrorDisk(MirrorBase):
def __init__(self,db,hid):
super(Mirror... | [
"sun__shines@163.com"
] | sun__shines@163.com |
c928d652311163cd67c3071a7f3513d7ce86b16b | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /nlp/cloze_test/glm/pytorch/GLMForMultiTokenCloze/base/train/event/log.py | ca169d8b4fe1aecee27cdc806aa66540ed65822d | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 5,275 | py | import copy
import inspect
import os
import os.path as ospath
from typing import Tuple, Union, Iterable
from torch import Tensor
from torch.cuda.amp import GradScaler
from torch.optim import Optimizer
from config.config_manager import get_properties_from_config
from utils.logging import PerfLogger, LogEvent, PerfLogL... | [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
3048a911894df5b04b0c4d54932f486ff3601d6e | 6bc42771a987b503df1866ad3fb8cf3126805806 | /examples/plot_transforms.py | 760cabe6244bdbc69117042c21ae3f85915a1207 | [
"Apache-2.0"
] | permissive | anchandm/fooof | 82c479ebd08e154cb1a3feedf60804ede81a76cb | dcc93b14c4a6987ce7e394696af3221dd2a7bbd6 | refs/heads/master | 2020-05-02T07:51:03.064334 | 2019-03-20T03:06:19 | 2019-03-20T03:06:19 | 177,828,211 | 1 | 0 | Apache-2.0 | 2019-03-26T16:30:30 | 2019-03-26T16:30:29 | null | UTF-8 | Python | false | false | 1,265 | py | """
Transforming Power Spectra
==========================
Apply transformations to power spectra.
"""
###################################################################################################
# Imports
from fooof.synth.gen import gen_power_spectrum
from fooof.synth.transform import rotate_spectrum
from fo... | [
"tdonoghue@ucsd.edu"
] | tdonoghue@ucsd.edu |
7e98137ff59ad45092492d5017693683fffe0cc2 | 0e51815b524229c7562572f10d178eb446cb7715 | /project18/app18/apps.py | 2929b85d78d69c8157c514f030b31065a05443dd | [] | no_license | Eswar0407/Django-10Am | 4d38cc795d7233bf5b6d1792755b018584a7c627 | c668b96dd69c72daba09bc944134302073827fae | refs/heads/master | 2023-07-16T23:52:52.820204 | 2021-09-05T17:57:14 | 2021-09-05T17:57:14 | 374,605,139 | 0 | 0 | null | 2021-06-13T16:20:40 | 2021-06-07T09:16:52 | Python | UTF-8 | Python | false | false | 142 | py | from django.apps import AppConfig
class App18Config(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'app18'
| [
"eswarbablu@gmail.com"
] | eswarbablu@gmail.com |
f8ddf2cb07624eabe3a281e2d346f7452b28d233 | 80831d77ef6fc3b485be80501b73ccb30ce5e444 | /networkapi/api_equipment/tests/sanity/test_equipment_get.py | 56e5f87ba6ac8d169743fd61137b14ced95d0430 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | globocom/GloboNetworkAPI | e2fdf5a9e6070359e90801bf3e45c2d499f199c5 | eb27e1d977a1c4bb1fee8fb51b8d8050c64696d9 | refs/heads/master | 2023-06-25T21:34:04.923940 | 2023-05-29T12:07:20 | 2023-05-29T12:07:20 | 22,734,387 | 86 | 74 | Apache-2.0 | 2023-05-29T12:07:21 | 2014-08-07T19:47:43 | Python | UTF-8 | Python | false | false | 1,317 | py | # -*- coding: utf-8 -*-
import logging
from django.test.client import Client
from networkapi.test.test_case import NetworkApiTestCase
log = logging.getLogger(__name__)
class EquipmentGetTestCase(NetworkApiTestCase):
fixtures = [
'networkapi/system/fixtures/initial_variables.json',
'networkapi/... | [
"ederson.brilhante@corp.globo.com"
] | ederson.brilhante@corp.globo.com |
891121b9606027367e79edf296778c24e1863184 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Difference/trend_ConstantTrend/cycle_12/ar_12/test_artificial_1024_Difference_ConstantTrend_12_12_20.py | 255ad8d8fc80ccb9aa8b7a9077af1162adb8c95e | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 272 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 12, transform = "Difference", sigma = 0.0, exog_count = 20, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
53aa879f095b39f36320336ad01e799973484d25 | 2d0bada349646b801a69c542407279cc7bc25013 | /docsrc/source/doxygen/pydoc/execute_async.py | 782a192a068fbb6bb04256d4ec4f587d475fa660 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-other-permissive... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | Python | false | false | 472 | py |
"""!
@brief Executes the runner. This is a blocking function.
@param inputs : List[vart.TensorBuffer], A list of vart.TensorBuffer containing the input data for inference.
@param outputs : List[vart.TensorBuffer], A list of vart.TensorBuffer which will be filled with output data.
@return ... | [
"do-not-reply@gitenterprise.xilinx.com"
] | do-not-reply@gitenterprise.xilinx.com |
7a88d8fa4488ba5fa2c2b4c39da14e4c4686d172 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2796/60692/251559.py | a8bf87a7e07b8477d2a22079daf8e9c61c1ab118 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | nums = int(input())
list1 = input().split(" ")
list1 = [int(i) for i in list1]
def isPower(num):
low = -num
high = num
while low < high:
mid = (low + high) // 2
if mid ** 2 < num:
low = mid + 1
elif mid ** 2 > num:
high = mid - 1
else:
r... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d690476d5c1f08c02cc4bbdc52aee63f034af167 | aaa204ad7f134b526593c785eaa739bff9fc4d2a | /airflow/providers/vertica/operators/vertica.py | 50463a7771ececc01a00331495f8974e4a7ac3e7 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | cfei18/incubator-airflow | 913b40efa3d9f1fdfc5e299ce2693492c9a92dd4 | ffb2078eb5546420864229cdc6ee361f89cab7bd | refs/heads/master | 2022-09-28T14:44:04.250367 | 2022-09-19T16:50:23 | 2022-09-19T16:50:23 | 88,665,367 | 0 | 1 | Apache-2.0 | 2021-02-05T16:29:42 | 2017-04-18T20:00:03 | Python | UTF-8 | Python | false | false | 2,050 | 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... | [
"noreply@github.com"
] | cfei18.noreply@github.com |
7bb26aa80818a9ed70dcae325f932f5178923f9a | 2a4ad073755ff447926e44b7c2e0b56b5ded37d2 | /NowCoder/36S_两个链表的第一个公共结点.py | 52164b5ccc6a09928f661889ab429d8a262f6a87 | [] | no_license | wcb2213/Learning_notes | 3a9b3fdb7df5c6844a9031db8dd7e9dd858e093c | d481e1754c15c91557027bee872f4d97da3c0fca | refs/heads/master | 2021-07-06T15:54:56.199655 | 2020-09-04T14:05:50 | 2020-09-04T14:05:50 | 174,832,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | #!/usr/bin/env/ python
# -*- coding:utf-8 -*-
# Created by: Vanish
# Created on: 2019/3/22
# 24ms
# 输入两个链表,找出它们的第一个公共结点。
# 公共节点具有相同的地址
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def FindFirstCommonNode(self, pHead1, pHead2):
# write cod... | [
"wcb2213@163.com"
] | wcb2213@163.com |
d2e724651959af6b3b9bbfed7c6ca532e920040d | c9d5ca04f42226d3c6b10f2318aebacfb43cfda7 | /tests/test_algebra/test_vector.py | 3ff9a7d064ee6f944d468e6db8a6a538ef3349e5 | [
"MIT"
] | permissive | ioztelli/ezdxf | cfb81deb7b666fa4e0ed32f1b0753fbe5faa57ee | 59605dc34c44fe4ad3a8162d6520a3b4776582b4 | refs/heads/master | 2020-04-21T18:37:37.022364 | 2018-11-28T12:56:19 | 2018-11-28T12:56:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,141 | py | import sys
import pytest
import math
from ezdxf.algebra.vector import Vector, is_close
PY3 = sys.version_info.major > 2
def test_init_no_params():
v = Vector()
assert v == (0, 0, 0)
assert v == Vector()
def test_init_one_param():
v = Vector((2, 3))
assert v == (2, 3) # z is 0.
v = Vector((... | [
"mozman@gmx.at"
] | mozman@gmx.at |
26d60373ba20e7c396d6b3c3eb3d41e21eca9b0c | 284f4f56aed56573eb5516aa67c99bf41e595522 | /Leetcode/Queue & Stack/p1337.py | d64c819ab7d4db49c53ed975f32e633aa2a8b4c6 | [] | no_license | rohangoli/PythonAdvanced | 537a05eff9ec305a6ec32fa2d0962a64976cd097 | 6448a5f0d82c7e951b5e476638e15a3c34966cd9 | refs/heads/develop | 2023-07-20T04:33:50.764104 | 2023-07-14T04:04:18 | 2023-07-14T04:04:18 | 126,811,520 | 0 | 0 | null | 2022-06-10T23:07:10 | 2018-03-26T10:20:16 | Jupyter Notebook | UTF-8 | Python | false | false | 4,649 | py | ## Design Circular Queue
# Example 1:
# Input
# ["MyCircularQueue", "enQueue", "enQueue", "enQueue", "enQueue", "Rear", "isFull", "deQueue", "enQueue", "Rear"]
# [[3], [1], [2], [3], [4], [], [], [], [4], []]
# Output
# [null, true, true, true, false, 3, true, true, true, 4]
# Explanation
# MyCircularQueue myCircular... | [
"rohanr27@gmail.com"
] | rohanr27@gmail.com |
f23f1f92ebec803ab3cfd711f847c4a7e60f5e61 | cf652cb90f9d6b22b5943e7d025af631214a904d | /contrib/build-wine/deterministic.spec | 01dff8d60d15b6e08d3e971bbaa7ad2890eb9531 | [
"MIT"
] | permissive | ddude1/TestLite | 02919c68013d2ede9195d618d94260b842a5e292 | 3f3c00e4ef03dd9b23b99b02f9a8895da8d65aef | refs/heads/master | 2022-12-11T12:22:25.029101 | 2018-06-13T14:11:51 | 2018-06-13T14:11:51 | 136,489,568 | 0 | 0 | MIT | 2022-09-23T21:47:03 | 2018-06-07T14:31:31 | Python | UTF-8 | Python | false | false | 3,262 | spec | # -*- mode: python -*-
import sys
for i, x in enumerate(sys.argv):
if x == '--name':
cmdline_name = sys.argv[i+1]
break
else:
raise BaseException('no name')
hiddenimports = [
'lib',
'lib.base_wizard',
'lib.plot',
'lib.qrscanner',
'lib.websockets',
'gui.qt',
'mnemo... | [
"32743542+ddude1@users.noreply.github.com"
] | 32743542+ddude1@users.noreply.github.com |
67478ebc3d95f581efd04b7e8f9785e8c7356d45 | 7afcf3cf0f55ecc255aabdda3b90c44528f53b50 | /Crawler/ai/ai/ai/items.py | ed1681a61ab48cf04819544016e5a09308405564 | [] | no_license | entscheidsuche/scraper | 368c6ac8fd14e15116c26f936f32d2ed0acac2ae | b9fafd3f1c2600a78471d4e4c466250ab11a8f33 | refs/heads/master | 2023-04-05T22:09:20.270314 | 2021-04-18T19:29:24 | 2021-04-18T19:29:24 | 264,894,732 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class AiItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
name = scrapy.Field()
link = scrapy.Fiel... | [
"joern@erbguth.net"
] | joern@erbguth.net |
354f84a91bfa9fb50948ba4a5b0b9fca0a5a2e8d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_95/784.py | c996bf19a378d7bdffef6baad4ca8a6bd272cf74 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py |
f = file('cipher')
string_mapping = []
char_mapping = {}
x = int(f.readline())
for i in range(x):
string_mapping.append([f.readline()])
for i in range(x):
string_mapping[i].append(f.readline())
for i in range(x):
for j in range(len(string_mapping[i][0])):
x1 = string_mapping[i][0][j]
x2 ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
55e705dfe0e11bc045a55ecd85bc6dc9f54a1d2b | 455cab19b8c1b7fa43d97e93137834431ab479b1 | /hw0/1a.py | d88e062b989e94269b9eb3674a8829010c0dbae4 | [] | no_license | janeon/hsieh-stat339 | f5c731503d17798be4bd18e33601e9060c7d5b88 | 8927e45da48b2a867e10cd94ac138b76c0767843 | refs/heads/master | 2021-01-03T04:30:39.101070 | 2020-02-12T04:04:58 | 2020-02-12T04:04:58 | 239,923,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | import numpy as np
import matplotlib.pyplot as plt
x = np.arange(10)
y = np.floor(x)
plt.xlabel('x axis')
plt.ylabel('y axis')
print(type(plt.step(x, y)))
plt.show()
| [
"jhsieh@oberlin.edu"
] | jhsieh@oberlin.edu |
fcd8f4b935de79b3970106ec58f17b968edefb80 | a46897f8610749db614e53208c39b2f0308011b3 | /usage_report.py | 391c50d21343498a8efc1599eae83b780b32f90b | [] | no_license | seidelj/uprogram-math | 4bd269c2a2fe4218529f4369555cbd51e04b4363 | 4a73ec6db1de48624046abe321d483f094e6ee1c | refs/heads/master | 2021-01-19T03:25:19.077484 | 2016-10-15T01:15:47 | 2016-10-15T01:15:47 | 52,285,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | import website.wsgi
from request.models import Request
from mathtutor.models import Student
import csv
csvFile = open("access.csv", 'w')
writer = csv.writer(csvFile, csv.excel)
columns = [f.name for f in Request._meta.get_fields()]
writer.writerow(columns)
for r in Request.objects.all():
if r.user_id:
row ... | [
"seidel.jp@gmail.com"
] | seidel.jp@gmail.com |
d5e9ddbf4cd946d176d9f9410b47c88c0bc6f578 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/feature/vt/gui/task/ForceApplyMarkupItemTask.pyi | a0d1f4c08ef41ab1d8ca046c6f84079e18d142a4 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | pyi | import ghidra.feature.vt.gui.task
import ghidra.util.task
import java.lang
class ForceApplyMarkupItemTask(ghidra.feature.vt.gui.task.ApplyMarkupItemTask):
def __init__(self, __a0: ghidra.feature.vt.api.main.VTSession, __a1: java.util.Collection, __a2: ghidra.framework.options.ToolOptions): ...
def addT... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
a3e82a1f2efc481e4336c6020234f9bf90f84a93 | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /normal/809.py | 4bae6be20deb773c0675bd27ac9141f4cb83b3b5 | [] | no_license | longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | class Solution(object):
def expressiveWords(self, S, words):
def RLE(S):
return zip(*[(k, len(list(grp)))
for k, grp in itertools.groupby(S)])
R, count = RLE(S)
ans = 0
for word in words:
R2, count2 = RLE(word)
if R2 != R:... | [
"jinlha@jiedaibao.com"
] | jinlha@jiedaibao.com |
566430d6408c4043b198fd0bf8b7b62bdb08e899 | 665add8c434df0445294931aac7098e8a0fa605b | /ver1/ch10/echoClient.py | 2d9a1570d99f6a3819cc5cd98efcebde98e3e02a | [] | no_license | swkim01/RaspberryPiWithIOT | f43cef567ca48f2ce9deec0cba87fa801dcbcbe2 | d4b5c9aeb09490429a551f357d3c83ab04deed82 | refs/heads/master | 2023-04-14T20:04:33.924243 | 2023-04-12T05:15:32 | 2023-04-12T05:15:32 | 48,477,439 | 4 | 14 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | import socket
import sys
HOST, PORT = "<arduino ip>", 7
data = " ".join(sys.argv[1:])
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
sock.connect((HOST, PORT))
sock.sendall(data + '\n')
received = sock.recv(1024)
finally:
sock.close()
print "Sent: {}".format(data)
print "Received: {... | [
"swkim01@gmail.com"
] | swkim01@gmail.com |
c4dae2d58da8f29eacf1744564d8c1d490614f4b | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1484496_0/Python/zifmia/equalsums.py | 070fef3e61ff34fceaa4a7e4767191dd421f5cee | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | # google code jam 2012 round 1b
# equal sums
import itertools
def numlist(s, n, v):
answer =""
for i in range(n):
if (1<<i & v):
answer += " " + str(s[i])
return answer[1:] + "\n"
f = open("c:\\users\\James\\Downloads\\C-small-attempt0.in", "r")
#f = open("equ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
290788da9c02368ec2297cca7a6283e7fc5b95a1 | 9f6e256b96f20fb4f9e13c42066b49d43d22f47f | /docs/extensions/details.py | 231d1c55eabc4bda563a504930f732a7da5cf3f3 | [
"MIT"
] | permissive | bijij/Donphan | 4daa75fee451e6b911e4e24f2c14c27b56102ee3 | c583332d290473c19a8cdd9f7c14cf17a7d17de1 | refs/heads/master | 2023-08-16T21:32:35.382536 | 2023-08-13T11:52:15 | 2023-08-13T11:52:15 | 188,970,855 | 19 | 3 | NOASSERTION | 2022-12-22T15:23:47 | 2019-05-28T06:49:48 | Python | UTF-8 | Python | false | false | 1,708 | py | from docutils.parsers.rst import Directive
from docutils.parsers.rst import states, directives
from docutils.parsers.rst.roles import set_classes
from docutils import nodes
class details(nodes.General, nodes.Element):
pass
class summary(nodes.General, nodes.Element):
pass
def visit_details_node(self, node... | [
"josh.ja.butt@gmail.com"
] | josh.ja.butt@gmail.com |
17dd1dfa08c75cbef333ad95c13333ffad288d3b | 325bee18d3a8b5de183118d02c480e562f6acba8 | /HongKong/HCK_l/build/lib/HCK_l/settings.py | 5039699bcf1b52e9bf5fae7767ce72cd5c06eca0 | [] | no_license | waynecanfly/spiderItem | fc07af6921493fcfc21437c464c6433d247abad3 | 1960efaad0d995e83e8cf85e58e1db029e49fa56 | refs/heads/master | 2022-11-14T16:35:42.855901 | 2019-10-25T03:43:57 | 2019-10-25T03:43:57 | 193,424,274 | 4 | 0 | null | 2022-11-04T19:16:15 | 2019-06-24T03:00:51 | Python | UTF-8 | Python | false | false | 4,260 | py | # -*- coding: utf-8 -*-
# Scrapy settings for ChinaSpider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/la... | [
"1370153124@qq.com"
] | 1370153124@qq.com |
976b6f40f74fe705396ec1586f10765ac82dc20a | ec9590c45c34d3314869cb65712143cbeb70372d | /samples/use_management_resource.py | fc631a1b88bbdf7009690ee8ee7897acf69bed66 | [
"MIT"
] | permissive | areed1192/sigma-azure-management | 522cee4d858ad7dfbcd8277ddfa15c89ccc0b74f | 65edeac081e9e2b1ba85d2aa262e73e5f89ae5ca | refs/heads/master | 2022-12-18T07:54:27.659804 | 2020-09-20T23:22:42 | 2020-09-20T23:22:42 | 288,521,057 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | from pprint import pprint
from configparser import ConfigParser
from azure.mgmt.resource import ResourceManagementClient
from azure.common.credentials import ServicePrincipalCredentials
# These are only imported for Type Hinting and Intellisense.
from azure.mgmt.resource.resources.models import ResourceGroup
from azu... | [
"alexreed1192@gmail.com"
] | alexreed1192@gmail.com |
3ee38e56dbc5fd7ee935ef1c4b6bc3eb7c3e8d41 | 9296896cb6cdc68a27052a36a8fbed48aaf7fac9 | /aanim/state.py | e178a422403d16b8489fc71fbf9a50269a72a687 | [] | no_license | francolq/algo2 | 28da0cdb35a8d6c32121dc6a4b9747eb4c4a7171 | ea4940b7d42cf9ae29a57bcc238e475b9427621c | refs/heads/master | 2022-07-14T03:55:35.473395 | 2020-05-13T01:02:41 | 2020-05-13T01:02:41 | 263,446,665 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | from manimlib.imports import *
from aanim.code import code_text
class State(VGroup):
def __init__(self, vars_values):
VGroup.__init__(self)
self.var_dict = var_dict = {}
for i, (name, value) in enumerate(vars_values):
# values to the right
#var = algorithms.code(... | [
"francolq@famaf.unc.edu.ar"
] | francolq@famaf.unc.edu.ar |
8b3538ad3cfd11dfb423b95da253abaf6ea09ee2 | e7272e2e1e2da1e60dee1e4dad7154d339a83a9d | /migrations/versions/31888642621b_.py | e731df004f6c06b046a4ae8901b23a7f1051b43f | [] | no_license | Shumpei-Kikuta/rental_app | 2cdfbb349293b798697c11b3a71b4d199272760d | e2c1cf4cfe467a8dd3b9aa692fb13ccdc15cac83 | refs/heads/master | 2020-03-22T22:57:11.677838 | 2018-09-19T13:13:16 | 2018-09-19T13:13:16 | 140,780,864 | 0 | 0 | null | 2018-07-26T03:45:04 | 2018-07-13T01:22:07 | HTML | UTF-8 | Python | false | false | 1,209 | py | """empty message
Revision ID: 31888642621b
Revises: e1adc6885ee7
Create Date: 2018-07-01 16:59:23.157768
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '31888642621b'
down_revision = 'e1adc6885ee7'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"shunpei-kikuta775@g.ecc.u-tokyo.ac.jp"
] | shunpei-kikuta775@g.ecc.u-tokyo.ac.jp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.