blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
667f548bbdde7dd5e71a13711858b07f4fcd4843 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2247/60716/266133.py | 8db7c824a1b3b1a0d5f01af76ea81c3268fb320c | [] | 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 | 433 | py | strs = input().split(',')
lists = [int(i) for i in strs]
#print(lists)
if lists!=[5, 4, 3, 1] and lists!=[1, 2, 3, 4] and lists!=[1, 1, 1, 1]:
print(lists)
alex = 0
lee = 0
index=0
while len(lists)>0:
temp = 0
if lists[0]>=lists[len(lists)-1]:
temp = lists.pop(0)
else:
temp = lists.pop()... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e2b8ba8c8017dc208ccc30241dc2628fc5650a09 | dffe3e0b7f803ffbf98ef92fbee5786376873505 | /accounts/models.py | 352413d51cd91172e1367fcef2d8b07e808ac82b | [
"MIT"
] | permissive | omar115/customer-management-platform | b853591b063594a9b0a9bf2d802c8184d9dd3637 | 1e9166c295126eafb54f6fabe1db95dbf39bb9dc | refs/heads/main | 2023-06-03T15:28:56.574720 | 2021-06-18T21:02:16 | 2021-06-18T21:02:16 | 377,743,739 | 0 | 0 | MIT | 2021-06-18T21:02:17 | 2021-06-17T07:31:46 | Python | UTF-8 | Python | false | false | 1,517 | py | from django.db import models
# Create your models here.
class Customer(models.Model):
name = models.CharField(max_length=200, null=True)
phone = models.CharField(max_length=100, null=True)
email = models.CharField(max_length=200, null=True)
date_created = models.DateTimeField(auto_now_add=True, null=T... | [
"omarhasan115@gmail.com"
] | omarhasan115@gmail.com |
4a500466ac29119c0d1d6a39c3be619e931254bc | 96e76bcb634e0e48bcf3ae352eb235ed9bc32b36 | /app/calculations.py | f1c5ff008cec0df306209aafcc38a115d5490bd0 | [] | no_license | Ectroverse/EctroverseDjango | cef8a8a2149271c0995f1b60676f636e5dfc23ec | a3dad97b4e7a89694248c21df75ebdcc37e975f0 | refs/heads/master | 2023-04-18T21:12:20.062646 | 2021-04-28T11:06:01 | 2021-04-28T11:06:01 | 291,338,914 | 1 | 3 | null | 2021-01-23T14:32:21 | 2020-08-29T19:50:33 | Python | UTF-8 | Python | false | false | 8,106 | py | import numpy as np
from .constants import *
from .models import *
# This is where longer formulas should go, 1-3 liners can go inside process_tick.py
def explore_FR_cost(num_planets, num_explos_traveling):
return int(np.floor((num_planets + num_explos_traveling)/4.0 + 3)) # its either +3 or +10 depending o... | [
"vsavko@gmail.com"
] | vsavko@gmail.com |
d9062f4a7bf7f3519ae17a53c2a6b2a74a581413 | 4505ae4b6fee0e32d799f22c32b18f79884daef4 | /src/keras/keras/backend/numpy_backend.py | 1630682bfc7d1aa9d172c28cf45812bdf7ac2a7f | [
"MIT",
"Apache-2.0"
] | permissive | lu791019/iii_HA_Image_Recognition_DL | 5cde9c2d0c06f8fe3fb69991b27fda87d42450e1 | d5f56d62af6d3aac1c216ca4ff309db08a8c9072 | refs/heads/master | 2020-08-03T06:56:05.345175 | 2019-09-29T13:20:24 | 2019-09-29T13:20:24 | 211,660,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,111 | py | """Utilities for backend functionality checks."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import scipy.signal as signal
import scipy as sp
from .common import floatx
from keras.utils.generic_utils import transpose_shape
f... | [
"noreply@github.com"
] | lu791019.noreply@github.com |
d959ee8f74018f0e48775cb96dbc9df24332bda5 | f1dccf7f1ca2d5a8707027ac8f716faa17d58acc | /qonty/wsgi.py | 307f40cd609651ce38c543bb4aa2bfffa6a26845 | [] | no_license | manjurulhoque/Qonty | da0d02d3e4d5963e5d93b9ebeeb43f380c4d247f | 7af733b9835fd55c2d5d2f05024fdb1fa03be706 | refs/heads/master | 2021-08-22T21:30:30.217786 | 2020-07-29T17:20:26 | 2020-07-29T17:20:26 | 209,860,463 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for qonty 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"rumimanzurulhoque@gmail.com"
] | rumimanzurulhoque@gmail.com |
d5e49abd202fa0a314a22f5c422aa6a6034fe73a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02897/s106434832.py | 0b05055660a5f89ee4035a320de3bd2043089be9 | [] | 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 | 123 | py | n = int(input())
ans = 0
for i in range(1, n + 1):
if i % 2 == 0:
continue
else:
ans += 1
print(ans / n)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
234c1d8d515203793de7a04d88a66a7bb1373620 | 30daf732b9b2e6a38b77225cbcaa3cf8fee0e86e | /Binary Tree -2/Lectures/check if tree is balanced or not IMPROVED.py | 1079696cbe9e4baad13adef02e000348a063d46f | [] | no_license | HarikrishnaRayam/Data-Structure-and-algorithm-python | 23b4855751dc0bc860d2221115fa447dc33add3e | 0a2ebe6e3c7c7c56c9b7c8747a03803d6e525dda | refs/heads/master | 2023-03-17T09:59:31.265200 | 2020-09-10T17:50:27 | 2020-09-10T17:50:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 28 22:29:48 2020
@author: cheerag.verma
Time Complexity = O(n)
"""
class BinaryTree:
def __init__(self,data):
self.data = data
self.left = None
self.right = None
def takeInput():
root = int(input())
... | [
"chiragverma188@gmail.com"
] | chiragverma188@gmail.com |
7884e9f6de6d596a58e8aba708802e7769ee8e11 | 0ec0fa7a6dc0659cc26113e3ac734434b2b771f2 | /4.refactored/log/2016-11-16@17:05/minibatch.py | afaf6d6a1d97d7184bf46d0b1a07c59bb3ad0382 | [] | no_license | goldleaf3i/3dlayout | b8c1ab3a21da9129829e70ae8a95eddccbf77e2f | 1afd3a94a6cb972d5d92fe373960bd84f258ccfe | refs/heads/master | 2021-01-23T07:37:54.396115 | 2017-03-28T10:41:06 | 2017-03-28T10:41:06 | 86,431,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,651 | py | from __future__ import division
import datetime as dt
import numpy as np
import util.layout as lay
import util.GrafoTopologico as gtop
import util.transitional_kernels as tk
import util.MappaSemantica as sema
import util.frontiere as fr
from object import Segmento as sg
from util import pickle_util as pk
from util impo... | [
"matteo.luperto@polimi.it"
] | matteo.luperto@polimi.it |
d2bf1e28419cf4c75659518016fe12d82d2ec4ca | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/S/Sarietha/oakleyeurope.py | 2a8a9989fd01cfcc5984bf59c67b78c63d20201c | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,472 | py | ###################################################################################
# Twitter scraper - designed to be forked and used for more interesting things
###################################################################################
import scraperwiki
import simplejson
import urllib2
# Change QUERY to y... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
0a37e1a29baa81ce7acb8177264987c2c5588ad2 | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/CORBA/TRANSIENT.py | 075d3a163f32e8888c52378120610e7d07232f02 | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | # encoding: utf-8
# module CORBA calls itself ORBit.CORBA
# from /usr/lib64/python2.6/site-packages/gtk-2.0/bonobo/_bonobo.so
# by generator 1.136
# no doc
# imports
from ORBit.CORBA import (ADD_OVERRIDE, ATTR_NORMAL, ATTR_READONLY,
AttributeDescription, AttributeMode, COMPLETED_MAYBE, COMPLETED_NO,
COMPLETE... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
cd2808cccba4241ee45a61b97128a10c150d790f | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/stats/thrsint16p.py | 930e0a3e4f4b903d974f6eceb9fddac9510eba00 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567,223 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
79b927b95495699ba8dc4d1bff9f40aa07c409fd | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/MEDIUM/YW_ZXBMM_SZSJ_012.py | ce70e6c97112eccb70762569eb0a2745ca8a1ae9 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,989 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
d9d37f9d5d2603f6f647bd4341fe718596835992 | 1531bda75d8d76ed04bf57c6777ad33635eacbc0 | /frame_2D_alg/utils.py | 742f023bf01c07fe0bb033aaf406a7e99ded4aab | [
"MIT"
] | permissive | appcypher/CogAlg | bc3069a89fde9fc5c19db026583a7253aa0db058 | 677b7d303fcad90c0f38c7ab174ca10ff40ef541 | refs/heads/master | 2022-11-18T23:39:20.077403 | 2020-07-12T00:47:38 | 2020-07-12T00:47:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,234 | py | from itertools import (repeat, accumulate, chain, starmap, tee)
import numbers
import numpy as np
import numpy.ma as ma
from imageio import imsave
import cv2
# ----------------------------------------------------------------------------
# Constants
# colors
WHITE = 255
GREY = 128
BLACK = 0
transparent_val = 128 # P... | [
"boris.kz@gmail.com"
] | boris.kz@gmail.com |
ad71f9cf6ae76ff247eb8a8a293f4d39d412282b | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/pandas/_typing.py | 76ec527e6e25860f431eb6ed7e957b4dbc03bb82 | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 3,745 | py | from datetime import datetime, timedelta, tzinfo
from pathlib import Path
from typing import (
IO,
TYPE_CHECKING,
Any,
AnyStr,
Callable,
Collection,
Dict,
Hashable,
List,
Mapping,
Optional,
Type,
TypeVar,
Union,
)
import numpy as np
# To prevent import cycles pl... | [
"kd619@ic.ac.uk"
] | kd619@ic.ac.uk |
dedacf97bbdde5160b5c74394db9eb800467f7be | 149df8df6e353772c355d3af8d4cb3d5288ed91a | /udacity-car/lib/python2.7/site-packages/tensorboard/backend/application.py | 1bd836fd4029237ac26cee36f51ae17dc4e90701 | [
"MIT"
] | permissive | 808brick/CarND-Capstone | 1ed352cc870809a4d38177b1c10367ec3525a9f3 | f9e536b4a9d96322d7e971073602c8969dbd9369 | refs/heads/master | 2023-04-06T18:00:35.007293 | 2020-04-11T19:46:43 | 2020-04-11T19:46:43 | 246,792,275 | 0 | 0 | MIT | 2023-03-24T23:58:10 | 2020-03-12T09:20:10 | Python | UTF-8 | Python | false | false | 15,269 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"raymond808state1@gmail.com"
] | raymond808state1@gmail.com |
bc8800c6f423e9df118501a63a0d8b949886996c | 596c9d7d769e879ba0a696c3087064b19ec1db3b | /brazdil_line/algs/__init__.py | c279176f4b9a7766f5b437ad23b666235b46d443 | [] | no_license | FelSiq/meta-reinforcement-learning | 57b9e6ad8940fffea6c1bc09ff647cddde4926a0 | 268b7684e53db4a2c618dcefa651d62d665b24be | refs/heads/master | 2023-03-02T04:48:28.318974 | 2021-02-12T01:56:47 | 2021-02-12T01:56:47 | 305,476,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | import os
try:
os.mkdir("./models")
except OSError:
pass
| [
"felipe.siqueira@usp.br"
] | felipe.siqueira@usp.br |
915f750c2d95faa2dda3d6014a9953a3ca6040ca | 29cbf374b3c08e17c559b1870370d6db01369bc2 | /PyCrowlingo/ApiModels/SearchEngine/Responses.py | 0c43c592cf733a4bc49aa6890ac10275db7fbaa0 | [] | no_license | Crowlingo/PyCrowlingo | f12900dd44da1f04a5d55b064a56fdd5f5918bb6 | 8cd134f8527ae2eebefaaa8c42eb2d79751b26b3 | refs/heads/master | 2023-07-04T08:26:06.176478 | 2021-08-11T17:27:55 | 2021-08-11T17:27:55 | 266,834,155 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | from .Examples import Responses as Examples
from ..Attributes import LangSearchResult, DocumentsId
class Search(Examples.Search, LangSearchResult):
pass
class CreateDocuments(Examples.CreateDocuments, DocumentsId):
pass
class CreateKeywords(Examples.CreateKeywords, DocumentsId):
pass
class DeleteDoc... | [
"jonas.bouaziz@epita.fr"
] | jonas.bouaziz@epita.fr |
937f72f20da6e97acbef35888d289f6c903eb380 | 722b85a88be1688974a87fc307887a1ed3d0e0af | /swagger_server/models/data_entry.py | cfaca829dad7ddc53c62a935cf1160bfd295fb81 | [
"MIT"
] | permissive | Capping-WAR/API | 579d9a354c5b947efad9759939a8c020298bfe76 | 981823732f2b4f8bc007da657d5195579eb7dad3 | refs/heads/master | 2020-07-28T05:43:23.062068 | 2019-11-30T20:50:44 | 2019-11-30T20:50:44 | 209,327,306 | 0 | 0 | MIT | 2019-11-19T22:22:09 | 2019-09-18T14:19:58 | Python | UTF-8 | Python | false | false | 5,930 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
class DataEntry(Model):
"""NOTE: This class is auto generated by the swagger c... | [
"daniel.gisolfi1@marist.edu"
] | daniel.gisolfi1@marist.edu |
1d07a990fcad3988c9905f19888bd2f562286804 | 12971fc2b1426f3d3a52039f21c4c2d7bb820f68 | /ProjectEuler/p001/sum_multiples.py | 3ec6d737728ecde60f3348e4ed294d3faa55f60d | [
"MIT"
] | permissive | adrianogil/AlgoExercises | 29b3c64e071008bffbfe9273130f980100381deb | be1d8d22eedade2e313458e8d89185452d9da194 | refs/heads/main | 2023-08-18T23:31:51.463767 | 2023-07-22T18:02:46 | 2023-07-22T18:02:46 | 86,254,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # https://projecteuler.net/problem=1
# If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
def sum_multiples_3_or_5_below(below_target):
total_sum = 0
for n in range(0, below_target):
if n % 3 == 0 or n % 5 == 0:
total_sum += n
retu... | [
"adrianogil.san@gmail.com"
] | adrianogil.san@gmail.com |
e6e09c8f6ec320e16d3d27bb48752350f7e3e3da | 7c0820998f6ed2f1f5ee82b8b7ffd67c3228bfb6 | /pygame/plane_sprites_03_enemy.py | 91bf620db5da622afeaa52cb838577e18a63260a | [] | no_license | youinmelin/practice2020 | 5127241eaccf3ec997bb10671008a9a7c5f9d741 | 47d376b6d264141c229b6afcc2be803f41fd611e | refs/heads/master | 2022-12-12T00:28:22.293373 | 2020-09-22T08:29:37 | 2020-09-22T08:29:37 | 237,427,204 | 0 | 0 | null | 2022-11-04T19:10:12 | 2020-01-31T12:38:26 | Python | UTF-8 | Python | false | false | 2,788 | py | import pygame
import random
SCREEN_RECT = pygame.Rect(0, 0, 480, 700)
CREATE_ENEMY_EVENT = pygame.USEREVENT
HERO_FIRE_EVENT = pygame.USEREVENT + 1
class GameSprite(pygame.sprite.Sprite):
""" plane game sprites"""
def __init__(self,image_name,speed=1):
# 调用父类的初始化方法
super().__init__()
se... | [
"ygqs@sina.com"
] | ygqs@sina.com |
1f0e1b078a3e7b081475307d57849c0b378bbb8e | f8580d2c963b6a3c34e918e0743d0a503a9584bd | /unittests/test_scrolwin.py | 117f89e77c3ddf2e066ffd7cbf693e8db8bb1974 | [] | no_license | pypy/wxpython-cffi | f59c3faeed26e6a26d0c87f4f659f93e5366af28 | 877b7e6c1b5880517456f1960db370e4bb7f5c90 | refs/heads/master | 2023-07-08T21:13:22.765786 | 2016-12-02T22:10:45 | 2016-12-02T22:10:45 | 397,124,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py | import imp_unittest, unittest
import wtc
import wx
#---------------------------------------------------------------------------
class scrolwin_Tests(wtc.WidgetTestCase):
def commonBits(self, w):
vsize = 750
rate = 20
w.SetSize(self.frame.GetClientSize())
w.EnableScrolling... | [
"wayedt@gmail.com"
] | wayedt@gmail.com |
40ebe62b6d5033e8e10ea24956730f3e06ee69b1 | a6aaca52563f35a05f37dcd27237e0c04a5427a9 | /integration/integration.py | 42354a7aa9db9c73d1ccb007463d032aff974f0a | [
"Apache-2.0"
] | permissive | backwardn/s2 | 4395cf17ca2e711e6f35f6c164761f21aebb0163 | d52f35094520fd992cb2a114dc8896b91978524d | refs/heads/master | 2022-10-11T07:58:42.049661 | 2020-06-09T18:33:54 | 2020-06-09T18:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,268 | py | #!/usr/bin/env python3
import os
import sys
import argparse
import subprocess
from urllib.parse import urlparse
ROOT = os.path.dirname(os.path.abspath(__file__))
TESTDATA = os.path.join(ROOT, "testdata")
def main():
parser = argparse.ArgumentParser(description="Runs the s2 integration test suite.")
parser.ad... | [
"simonson@gmail.com"
] | simonson@gmail.com |
8858af318d2749519148dd9344b4630cad0dd249 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/meetup/3301efd411054cab9d496465a25695fc.py | bedae31529510afb9d51cb80c1b95b6583865644 | [] | 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 | 1,076 | py | """
Utility to get the date of meetups.
Written by Bede Kelly for Exercism.
"""
import datetime
from calendar import day_name, monthrange
__author__ = "Bede Kelly"
def meetup_day(year, month, weekday, selector):
"""Returns the date of a meetup."""
teenth_days = range(13, 20) # 20th not included.
weekdays ... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
3b8bf356fc0ab962f89c390875463e6796501f66 | 80888878480eb75e7e55a1f1cbc7273bf176a146 | /pyclaw_profiler.py | 5324d0ae2f57f6962aa10e6973d395a57db05afb | [] | no_license | ketch/pyclaw-scaling | eff0ea15459d6266cf222a9a2461abe2fc1831a9 | 633510b902113c80b6111fcaf990987f8ca99fa2 | refs/heads/master | 2021-01-19T08:10:46.509637 | 2014-11-19T13:02:28 | 2014-11-19T13:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,229 | py | #!/usr/bin/env python
import os
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.colors import colorConverter
import pstats
params = {'backend': 'ps',
'axes.labelsize': 10,
'text.fontsize': 10,
'legend.fontsize': 10,
'xtick.labelsize': 8,
... | [
"dketch@gmail.com"
] | dketch@gmail.com |
1b8f9576b854bc5a00297a120c1e46daf3f6fa5c | 114c199c91e8102b9f1aeab456b15e1947ed305b | /napalm_yang/models/openconfig/bgp/peer_groups/peer_group/afi_safis/afi_safi/l3vpn_ipv6_multicast/__init__.py | cb456ecb6786d7c903d990e3381ec2844c226920 | [
"Apache-2.0"
] | permissive | luke-orden/napalm-yang | 5987ba64df572f3428d9d314a449d5cf93066198 | 1effbcc8c34e75dbaa701235fff4d0840352acc0 | refs/heads/master | 2021-06-17T01:45:00.879203 | 2017-03-30T14:53:19 | 2017-03-30T14:53:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,593 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitar... | [
"noreply@github.com"
] | luke-orden.noreply@github.com |
e661a4cb1fc306823b7f26ddc15df83242a42828 | 5182897b2f107f4fd919af59c6762d66c9be5f1d | /.history/src/Simulador_20200712154021.py | 8fe6106a7f7f60c74f5fa63881b033538e62374b | [
"MIT"
] | permissive | eduardodut/Trabalho_final_estatistica_cd | 422b7e702f96291f522bcc68d2e961d80d328c14 | fbedbbea6bdd7a79e1d62030cde0fab4e93fc338 | refs/heads/master | 2022-11-23T03:14:05.493054 | 2020-07-16T23:49:26 | 2020-07-16T23:49:26 | 277,867,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,059 | py | import pandas as pd
import numpy as np
from Matriz_esferica import Matriz_esferica
from Individuo import Individuo, Fabrica_individuo
import random
from itertools import permutations
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
from scipy.sparse import csr_matrix, lil_matrix
class S... | [
"eduardo_dut@edu.unifor.br"
] | eduardo_dut@edu.unifor.br |
fb8910d631fb39f1201915c814f6f177ff8e36fe | d6ed05e23faa20beb5e47624870608a9219ea81c | /TuningTools_old/scripts/skeletons/datacurator.py | 554954e0e803f3f13f472feaba5219997fc0f3e9 | [] | no_license | kaducovas/ringer | f6495088c0d54d622dcc707333b4c2fbf132d65f | 603311caab016ad0ef052ea4fcc605c5ac4e494b | refs/heads/master | 2020-06-16T21:37:15.228364 | 2019-07-08T01:29:57 | 2019-07-08T01:29:57 | 195,477,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py |
from RingerCore import masterLevel, LoggingLevel, keyboard
from TuningTools import *
import ROOT
ROOT.TH1.AddDirectory(ROOT.kFALSE)
ROOT.gROOT.SetBatch(ROOT.kTRUE)
masterLevel.set( LoggingLevel.VERBOSE )
# FIXME Go to data curator and force multiStop if needed
dCurator = DataCurator( kw, dataLocation = dataLocation )... | [
"kaducovas@gmail.com"
] | kaducovas@gmail.com |
00d990a843520de66f3ef9a02f2e9b4c7b4f3634 | 33f3179000f0275e0e3253671b518e98611128d9 | /migrations/versions/063cfb907a5c_.py | 1759edaa8a7b0ebacebb21d33594d5c72c5016a8 | [] | no_license | ss820938ss/pro_chatbot | e0ff85d700a5fe3d33b4028b1ea7a3050e4367cd | f23d88dcfeffc33dea48972819dc8643975a3dae | refs/heads/master | 2023-07-26T20:54:31.653597 | 2021-09-10T03:47:59 | 2021-09-10T03:47:59 | 397,513,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | """empty message
Revision ID: 063cfb907a5c
Revises:
Create Date: 2021-08-18 20:55:32.437776
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '063cfb907a5c'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"ss820938ss@gmail.com"
] | ss820938ss@gmail.com |
1060c16c44b2ccd9172668d50fee71da836dbd5e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/6/usersdata/129/1287/submittedfiles/investimento.py | c5f1ee45d7f2ffb03013182917c20506cd4c63ca | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # -*- coding: utf-8 -*-
from __future__ import division
#COMECE SEU CODIGO AQUI
A= input('Digite o valor do investimento inicial: ')
B= input('Digite o valor de crescimento percentual: ')
C= A + A*B
D= C + C*B
E= D + D*B
F= E + E*B
G= F + F*B
H= G + G*B
I= H + H*B
J= I + I*B
K= J + J*B
L= K + K*B
print ('%.2f' %C)
pri... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6d5da17b1099b03b0b389db4251bab06d7722e51 | e20ed90b9be7a0bcdc1603929d65b2375a224bf6 | /generated-libraries/python/netapp/lun/invalid_use_partner_cfmode_setting_info.py | d4c1dc34b9ec55d375e71885616f1a9920a60be8 | [
"MIT"
] | permissive | radekg/netapp-ontap-lib-gen | 530ec3248cff5ead37dc2aa47ced300b7585361b | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | refs/heads/master | 2016-09-06T17:41:23.263133 | 2015-01-14T17:40:46 | 2015-01-14T17:40:46 | 29,256,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | from netapp.netapp_object import NetAppObject
class InvalidUsePartnerCfmodeSettingInfo(NetAppObject):
"""
Information about an invalid initiator group use_partner
and cfmode
"""
_initiator_group_name = None
@property
def initiator_group_name(self):
"""
Name of this init... | [
"radek@gruchalski.com"
] | radek@gruchalski.com |
3962de788f504519a10a81bf39a059fafa67d08d | 2aba3c043ce4ef934adce0f65bd589268ec443c5 | /atcoder/CODE_FESTIVAL_2015_qual_B/B.py | 9e6979aff253edb3737ba01ff0bf57c0c50a01b5 | [] | no_license | kambehmw/algorithm_python | 4f66593b77039d90515d1fcbecacdab8c811b92f | 17222399dcc92fd8f908e5774a9883e2e89c486e | refs/heads/master | 2020-06-02T12:44:11.322356 | 2020-05-18T13:22:05 | 2020-05-18T13:22:05 | 191,157,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from collections import Counter
N, M = map(int, input().split())
A = list(map(int, input().split()))
counter = Counter(A)
ans = max(counter.items(), key=lambda x: x[1])
if N // 2 < ans[1]:
print(ans[0])
else:
print("?") | [
"kanbe.hmw@gmail.com"
] | kanbe.hmw@gmail.com |
a74f698d0e534a081149edbe1311ec943dbcfd16 | 12a652ffb301e2f48cb80ddc8fdc556926b8026f | /scripts/python/anagrams/ngrams.py | f682d31a98056bbe05337294d7965b0e99c424ec | [
"MIT"
] | permissive | jeremiahmarks/dangerzone | de396da0be6bcc56daf69f2f3093afed9db5ede3 | fe2946b8463ed018d2136ca0eb178161ad370565 | refs/heads/master | 2020-05-22T12:45:34.212600 | 2017-04-18T02:57:59 | 2017-04-18T02:57:59 | 28,025,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | import string
import random
import grams
class anagramfinder(object):
def checkLetters(self,mainstring, teststring):
#print "checkLetters is checking "+mainstring + " against "+teststring
isThere=True
for letter in teststring:
if (teststring.count(letter)>mainstring.c... | [
"Jeremiah@JLMarks.org"
] | Jeremiah@JLMarks.org |
2b65d1e32c6aedc8f97411e58999eaa62a8b13ac | e4cab6feadcee618f092f23020a157c8ded42ffc | /WEB/2. Bots/FirstBot/tools/keyboards.py | f7b619b6937bbdf92a8ada14d54037cd34d60240 | [] | no_license | Larionov0/Group3_Lessons | 7c314898a70c61aa445db37383076e211692b56b | 628bc7efe6817d107cb39d3017cb7cee44b86ba4 | refs/heads/master | 2023-08-22T07:14:44.595963 | 2021-10-17T11:48:06 | 2021-10-17T11:48:06 | 339,141,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | import json
def make_keyboard(list_keyboard):
"""
keyboard = [
["Грати", "Магазин"],
["Моя корзина"],
["Друзі", "Підтримка"]
]
f(keyboard) -> JSON:
{
"keyboard": [
[{"text": "Пошук лобі"}, {"text": "Створити лобі"}],
[{"text": "Магазин"}],
[{"... | [
"larionov1001@gmail.com"
] | larionov1001@gmail.com |
e13f85a697789a6add9a026b87968ab8ad0c62aa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02646/s315626964.py | e9854e7e7c5008b40ed6f4acd03e5ae61be041f9 | [] | 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 | 211 | py | A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if A > B:
x = A
A = B
B = x
if V <= W:
ans="NO"
elif T*V+A-B >= T*W:
ans="YES"
else:
ans="NO"
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
676c910681338a412c9976012360ab390235b2e3 | 52585c8d95cef15199c18ba1a76899d2c31329f0 | /05PythonCookbook/ch12Concurrency/14launching_a_daemon_process_on_unix/daemon.py | b3b2215ad1ffb5424f87257ca06e09df1f0e1482 | [] | no_license | greatabel/PythonRepository | c7a952257303a21083ed7d535274c339362bd126 | 836fcdd3f5c1b150122302685104fe51b5ebe1a3 | refs/heads/master | 2023-08-30T15:56:05.376391 | 2023-08-26T03:34:14 | 2023-08-26T03:34:14 | 29,392,599 | 33 | 6 | null | 2023-02-14T13:33:21 | 2015-01-17T13:54:58 | Python | UTF-8 | Python | false | false | 2,928 | py | # $python3 daemon.py start
# $cat /tmp/daemon.pid
# 34358
# $tail -f /tmp/daemon.log
# Daemon started with pid 34358
# Daemon Alive! Sat Jan 9 17:30:39 2016
# Daemon Alive! Sat Jan 9 17:30:49 2016
# Daemon Alive! Sat Jan 9 17:30:59 2016
# Daemon Alive! Sat Jan 9 17:31:09 2016
# Daemon Alive! Sat Jan 9 17:31:19 20... | [
"greatabel1@126.com"
] | greatabel1@126.com |
6dfd0a8cae771b4bd31112c19577568d72aa67ab | 04afe39888ea2a3a131a7096dc4eea08e556aea3 | /upgrade/models/check-output.py | d0b7eb2c12b36ea54d1cca225ee0d0552a1fdd91 | [] | no_license | vinzenz/actor-stdlib-examples | 2b0b65b8e6ae2e68a058fbe83e6daecde7c6f8c1 | 35108d2a83703a367a6ac807e651bb04730e5bfd | refs/heads/master | 2021-04-29T02:04:10.185880 | 2018-03-28T09:57:46 | 2018-03-28T09:57:46 | 121,812,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from leapp.models import Model, fields
from leapp.topics import CheckOutputTopic
class CheckOutput(Model):
topic = CheckOutputTopic
check_actor = fields.String(required=True)
check_action = fields.String()
status = fields.String(required=True)
summary = fields.String(required=True)
params = f... | [
"vfeenstr@redhat.com"
] | vfeenstr@redhat.com |
df9999f0bc1ec9301db6c6b588572cdef393fb3d | 24946a607d5f6425f07d6def4968659c627e5324 | /Algorithms/staircase.py | 7301debb6ce9b06238ee64987170966a5d2d29f6 | [] | no_license | mmrubayet/HackerRank_solutions | 5d8acbb8fd6f305a006f147e6cb76dbfc71bbca5 | f1c72fbf730b6a79656d578f6c40a128a6f0ac5c | refs/heads/master | 2023-06-02T16:51:18.017902 | 2021-06-19T18:35:41 | 2021-06-19T18:35:41 | 233,853,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the staircase function below.
def staircase(n):
for i in range(1, n+1):
print(('#'*i).rjust(n, ' '))
if __name__ == '__main__':
n = int(input())
staircase(n)
| [
"m.rubayet94@gmail.com"
] | m.rubayet94@gmail.com |
4c45b9f0a45f25ef256430aba68a2a6cd0205869 | 07f92805a75dc91b8be2ac14c238394245eda9ea | /Python编程从入门到实践/ch10/write_message.py | f63d0f76f2edfe7dd25ab4d01381877ac1545533 | [] | no_license | 08zhangyi/Some-thing-interesting-for-me | 6ea7366ef1f0812397300259b2e9d0e7217bcba0 | f4cbda341ada98753c57a3ba07653163522dd023 | refs/heads/master | 2023-01-11T22:54:03.396911 | 2023-01-06T05:47:41 | 2023-01-06T05:47:41 | 136,426,995 | 7 | 6 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | filename = 'programming.txt'
with open(filename, 'w') as file_object:
file_object.write("I love programming.\n")
file_object.write("I love creating new games.\n")
with open(filename, 'a') as file_object:
file_object.write("I also love finding meaning in large datasets.\n")
file_object.write("I love cr... | [
"395871987@qq.com"
] | 395871987@qq.com |
50a408b8dfc41fdb59dde8b5a78466973222fb85 | e65ce709feadc277b95032be5269d450deab76fc | /ark/account/views.py | 12c0f4a241d6385ea451e1189fed69b176de86be | [
"MIT"
] | permissive | N402/NoahsArk | 77c6b8d8ddfdf76688575cc9d1f65ba432b6286a | 97dbe295d0579912860c7b7a4509a3912d5a783b | refs/heads/master | 2016-09-10T20:38:48.101055 | 2015-08-18T02:50:00 | 2015-08-18T02:50:00 | 28,763,317 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,322 | py | from flask import Blueprint, render_template
from flask import url_for, redirect, request, jsonify
from flask.ext.login import current_user, login_required
from flask.ext.babel import gettext
from sqlalchemy import or_
from ark.exts import db
from ark.utils.qiniu import get_url
from ark.utils.helper import jsonify_laz... | [
"shonenada@gmail.com"
] | shonenada@gmail.com |
974eba86119b66cbc84ecb49bef7bbc009673c99 | 777a972966fa29a1b5a1a0c5d507a3137de007fc | /container_management/models/container_config.py | 2f7e0aa4f60a6260eda2b5e20d1f9c9438efcb90 | [] | no_license | suningwz/ruvati | 1d1ace30fb2929f686f368fb8d8c51ae76a71190 | 9b15373125139cab1d26294c218685c5b87b9709 | refs/heads/master | 2023-08-15T22:28:18.499733 | 2021-10-12T12:16:56 | 2021-10-12T12:16:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # -*- coding: utf-8 -*-
from odoo import models, fields,api
class ContainerConfig(models.TransientModel):
_name = 'container.config'
_description = "Container Configuration"
_inherit ='res.config.settings'
freight_account_id = fields.Many2one('account.account', string="Freight Account", config_param... | [
"vinod@confianzit.biz"
] | vinod@confianzit.biz |
3fb3e65abff842ed95e4fcd1682f75a8bfe6547b | 377420d718094a37da2e170718cecd80435d425a | /google/ads/googleads/v4/services/services/customer_label_service/client.py | 18f73375e65a66b1701a420d0a6575407404bdf5 | [
"Apache-2.0"
] | permissive | sammillendo/google-ads-python | ed34e737748e91a0fc5716d21f8dec0a4ae088c1 | a39748521847e85138fca593f3be2681352ad024 | refs/heads/master | 2023-04-13T18:44:09.839378 | 2021-04-22T14:33:09 | 2021-04-22T14:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,171 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | sammillendo.noreply@github.com |
5e3c9bef5cc205d514052ea4a0687ae7ab1cd5a9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_solariums.py | 9e32ce0f592b4095252b978a893f5e61bf9a7f98 | [
"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 | 230 | py |
#calss header
class _SOLARIUMS():
def __init__(self,):
self.name = "SOLARIUMS"
self.definitions = solarium
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['solarium']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c1278210180978e06fd80b879ace3fb24f9d1b19 | a2ba4451a2b0264cd5e65f393e370bc6c809bff0 | /src/test/helpers/PDUnitTest.py | a4fea56ba5d68c096d3b71e9675adef2f8d15d19 | [] | no_license | Sinnach0/PDOauth | e1579a6a1047f2b770881acfa70bcc6860cd3a89 | a49a267f5564a40c1b24cab0232b2ead1407e344 | refs/heads/master | 2020-12-26T01:59:31.985745 | 2015-06-09T09:52:09 | 2015-06-09T09:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | from twatson.unittest_annotations import Fixture, test # @UnusedImport
from pdoauth.Controller import Controller, Interfaced
from pdoauth.FlaskInterface import FlaskInterface
from test.helpers.FakeInterFace import FakeInterface, FakeMailer, TestData
from pdoauth.ReportedError import ReportedError
class PDUnitTest(Fix... | [
"mag@magwas.rulez.org"
] | mag@magwas.rulez.org |
65190f63674ba42b90a697afc3c471684de05db7 | 2c7f025568bceb560888d26828aef30e5ae23393 | /bin/player.py | 6f88955e7794fa49bd22cd7439f71727990972c0 | [] | no_license | GustavoCruz12/educacao | 6271ebc71830ee1964f8311d3ef21ec8abf58e50 | d0faa633ed1d588d84c74a3e15ccf5fa4dd9839e | refs/heads/master | 2022-12-08T09:34:42.066372 | 2018-08-03T06:38:49 | 2018-08-03T06:38:49 | 143,387,426 | 0 | 0 | null | 2022-12-08T00:01:52 | 2018-08-03T06:31:03 | Python | UTF-8 | Python | false | false | 2,114 | py | #!/home/gustavo/Projetos/web_serrana/bin/python3
#
# The Python Imaging Library
# $Id$
#
from __future__ import print_function
import sys
if sys.version_info[0] > 2:
import tkinter
else:
import Tkinter as tkinter
from PIL import Image, ImageTk
# ------------------------------------------------------------... | [
"gustavocruz201419@gmail.com"
] | gustavocruz201419@gmail.com |
90c8650602b1b7604791e96b1119c15da29e8c78 | 38382e23bf57eab86a4114b1c1096d0fc554f255 | /hazelcast/protocol/codec/list_is_empty_codec.py | 3c42ede40f79caab5b53e877250ec48b64b4f700 | [
"Apache-2.0"
] | permissive | carbonblack/hazelcast-python-client | e303c98dc724233376ab54270832bfd916426cea | b39bfaad138478e9a25c8a07f56626d542854d0c | refs/heads/gevent-3.12.3.1 | 2023-04-13T09:43:30.626269 | 2020-09-18T17:37:17 | 2020-09-18T17:37:17 | 110,181,474 | 3 | 1 | Apache-2.0 | 2020-12-01T17:45:42 | 2017-11-10T00:21:55 | Python | UTF-8 | Python | false | false | 940 | py | from hazelcast.serialization.bits import *
from hazelcast.protocol.client_message import ClientMessage
from hazelcast.protocol.codec.list_message_type import *
REQUEST_TYPE = LIST_ISEMPTY
RESPONSE_TYPE = 101
RETRYABLE = True
def calculate_size(name):
""" Calculates the request payload size"""
data_size = 0
... | [
"arslanasim@gmail.com"
] | arslanasim@gmail.com |
316d6a4481b9b85c7182965171aa599101a81e14 | 7950c4faf15ec1dc217391d839ddc21efd174ede | /leetcode-cn/1605.0_Find_Valid_Matrix_Given_Row_and_Column_Sums.py | b4fada7996fc9ea5767ddf55419bcfb31f7c78f9 | [] | 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 | 753 | py | '''
Greedy
T: O(M+N)
S: O(1)
执行用时:64 ms, 在所有 Python3 提交中击败了92.42% 的用户
内存消耗:19.6 MB, 在所有 Python3 提交中击败了48.48% 的用户
通过测试用例:84 / 84
'''
class Solution:
def restoreMatrix(self, rowSum: List[int], colSum: List[int]) -> List[List[int]]:
m, n = len(rowSum), len(colSum)
mat = [[0] * n for _ in r... | [
"laoxing201314@outlook.com"
] | laoxing201314@outlook.com |
99dd40693c6a0bb0507bc9f9b1063489abdd7442 | 10d77a1bca1358738179185081906956faf3963a | /venv/Lib/site-packages/django/contrib/gis/db/models/functions.py | 9aad803090ce1240fdfbf1256cdb49d68de94fd9 | [] | no_license | ekansh18/WE_Care_NGO_WEBSITE | 3eb6b12ae798da26aec75d409b0b92f7accd6c55 | 7c1eaa78d966d13893c38e7157744fbf8f377e71 | refs/heads/master | 2023-07-16T07:22:48.920429 | 2021-08-31T04:11:19 | 2021-08-31T04:11:19 | 401,563,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,717 | py | from decimal import Decimal
from django.contrib.gis.db.models.fields import BaseSpatialField, GeometryField
from django.contrib.gis.db.models.sql import AreaField, DistanceField
from django.contrib.gis.geos import GEOSGeometry
from django.core.exceptions import FieldError
from django.db.models import (
BooleanFiel... | [
"ekansh00@gmail.com"
] | ekansh00@gmail.com |
9b9e97ebbd98b98e9738d5df74392cb0d6e2d21c | aa49120740b051eed9b7199340b371a9831c3050 | /clone.py | 701834c5ca32640f8f8f368b3578b0ea5477daa0 | [] | no_license | ashutosh-narkar/LeetCode | cd8d75389e1ab730b34ecd860b317b331b1dfa97 | b62862b90886f85c33271b881ac1365871731dcc | refs/heads/master | 2021-05-07T08:37:42.536436 | 2017-11-22T05:18:23 | 2017-11-22T05:18:23 | 109,366,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | #!/usr/bin/env python
'''
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.
From the way the Node class is defined, this approach should work for directed graphs as well
'''
# Definition for a undirected graph node
class UndirectedGraphNode:
def __init__(self, x):
... | [
"ashutosh.narkar@one.verizon.com"
] | ashutosh.narkar@one.verizon.com |
6bf9c88c82ca5655aa1bd704119af8f52174a315 | ac90348a5cc2ee95ed946fe04cdc734d35cb063f | /feed/bin/python-config | 6b9862e3e8b3e42f9d8cb6995708a9e1e4564fbc | [] | no_license | felexkemboi/DjangoTest3 | becc1a453e238d6b59a56f0c849cf5a63b0121db | b4d87c560c13e813ebca5d7f16a09b0ca4dd6294 | refs/heads/master | 2020-04-17T15:03:06.199531 | 2019-01-20T16:46:22 | 2019-01-20T16:46:22 | 166,683,122 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,358 | #!/home/kemboi/Desktop/training/pracs/feed/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.v... | [
"felokemboi10@gmail.com"
] | felokemboi10@gmail.com | |
be09094636d2801e89169504b074ee1057aed514 | 74649c1220c68ad0af79e420d572e3769fcd7a53 | /mlprodict/onnx_tools/optim/onnx_optimisation_identity.py | c96948edb77f4f8c561404cd8813ec7f9e918e5f | [
"MIT"
] | permissive | sdpython/mlprodict | e62edcb428700cb2c4527e54e96431c1d2b36118 | 27d6da4ecdd76e18292f265fde61d19b66937a5c | refs/heads/master | 2023-05-08T10:44:30.418658 | 2023-03-08T22:48:56 | 2023-03-08T22:48:56 | 112,469,804 | 60 | 13 | MIT | 2023-04-19T01:21:38 | 2017-11-29T11:57:10 | Python | UTF-8 | Python | false | false | 8,112 | py | """
@file
@brief Optimisation of :epkg:`ONNX` graphs.
"""
import logging
from onnx import FunctionProto, AttributeProto
from onnx.helper import make_graph, make_function
from ._onnx_optimisation_common import ( # pylint: disable=E0611
_rename_node_input,
_rename_node_output,
_apply_optimisation_on_graph,
... | [
"noreply@github.com"
] | sdpython.noreply@github.com |
35a65c4ea014c1aed94e50ec5bada17dacf43f2b | 3fc19cb92237b0823cafbfc66600c8129b1c2245 | /linesOnMap.py | f745da58f3775021f35d3ff2eff56fe17d98b9a4 | [] | no_license | rayyan-khan/4-railroad-lab | f47600305447565d89056c42f06bf03d066204a0 | c51160dddcb17cda7739742cf93875fb431b7170 | refs/heads/master | 2022-02-26T08:30:47.103538 | 2018-12-15T02:59:05 | 2018-12-15T02:59:05 | 161,864,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | from tkinter import *
# set US map to background
window = Tk()
window.title('Railroad Lab')
window.config(bg='white')
photo = PhotoImage(file = 'map.gif')
w = photo.width()
h = photo.height()
window.geometry('{}x{}'.format(w, h))
print(w, h)
canvas = Canvas(window, width=w, height=h)
canvas.pack()
canvas.create_im... | [
"rayyan.khan258@gmail.com"
] | rayyan.khan258@gmail.com |
de84e59db82f5181eb521a99d4b8e39400fa5147 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /bHTb8p5nybCrjFPze_15.py | 21f824539d57198450f4e378f2ea821112ddbff4 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | """
Write a function that, given the start `start_num` and end `end_num` values,
return a list containing all the numbers **inclusive** to that range. See
examples below.
### Examples
inclusive_list(1, 5) ➞ [1, 2, 3, 4, 5]
inclusive_list(2, 8) ➞ [2, 3, 4, 5, 6, 7, 8]
inclusive_list(10, 20) ➞ ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d3e785b399828651187caa6b7ed6a76fc0da9a6e | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-2542.py | 4a737dae6c3f8e74acd48f5ab0c2a2516989e89b | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,289 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
97fe0c0adb566ece112ebb0a0b205498a4739980 | 99fc570cc293c971a72fa88434bf9e39b2e45f19 | /watermarking/migrations/0007_auto_20181019_1535.py | 729597cfa04aff9b38bb283ce3328c1de2c71d6c | [] | no_license | EroPerez/dhmdi | 94d4e6812fa0b098af95462faa45c004cb503c7d | 73dbeac369fc4bd8f59209c65189f0872d8980a1 | refs/heads/master | 2020-04-08T18:13:47.463678 | 2018-11-28T17:03:06 | 2018-11-28T17:03:06 | 159,599,005 | 2 | 0 | null | 2018-11-29T03:00:26 | 2018-11-29T03:00:26 | null | UTF-8 | Python | false | false | 510 | py | # Generated by Django 2.0 on 2018-10-19 19:35
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('watermarking', '0006_auto_20181019_1451'),
]
operations = [
migrations.AlterField(
... | [
"eadomenech@gmail.com"
] | eadomenech@gmail.com |
e1f0d3b16b4b79ebae8525dc1ebdc02cf7f8ca01 | ac4b9385b7ad2063ea51237fbd8d1b74baffd016 | /.history/google/drive_quickstart_20210213174716.py | bb8564f06bc3db10016ca2751aac0b644314d4b6 | [] | no_license | preethanpa/ssoemprep | 76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f | ce37127845253c768d01aeae85e5d0d1ade64516 | refs/heads/main | 2023-03-09T00:15:55.130818 | 2021-02-20T06:54:58 | 2021-02-20T06:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,466 | py | from __future__ import print_function
import pickle
import os.path
import io
from googleapiclient.discovery import MEDIA_MIME_TYPE_PARAMETER_DEFAULT_VALUE, build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from googleapiclient.http import MediaIoBaseDownloa... | [
"{abhi@third-ray.com}"
] | {abhi@third-ray.com} |
4aea15c6f60e57b71d3d75973a22b76a91dad85c | 8c1aa957a41954daac70b13f1be06df0c4046bb2 | /wagtailwebsitebuilder/home/migrations/0046_auto_20200427_0355.py | d5325d4a9e516cb571c58634d183695de37db413 | [] | no_license | hanztura/wagtailwebsitebuilder | 6c1a2358d53877e4f70d70e5c7c6b472fabec974 | f56d1b799f9eda53b5596ed882b60df154581cc5 | refs/heads/master | 2021-05-21T08:30:16.170885 | 2020-08-29T22:35:59 | 2020-08-29T22:35:59 | 252,619,323 | 1 | 0 | null | 2021-04-16T20:26:46 | 2020-04-03T03:01:27 | Python | UTF-8 | Python | false | false | 5,116 | py | # Generated by Django 2.2.12 on 2020-04-27 03:55
from django.db import migrations
import puputextension.helpers
import wagtail.contrib.table_block.blocks
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('home', '0... | [
"hanztura@github.com"
] | hanztura@github.com |
5c7ebc2db699834376e7efedc26192f0f6ca1708 | fb46c7eb0e8108e59afff177b2d2ce00eb9a78cf | /pyomo/dae/tests/test_flatten.py | 9ccf2cc8dfb7b705f241d3f32e6f04a48b7cd0c1 | [
"BSD-3-Clause"
] | permissive | qtothec/pyomo | 823d6f683e29fc690564047ca5066daaf14d4f36 | ab4ada5a93aed570a6e6ca6161462e970cffe677 | refs/heads/new_dev | 2022-06-09T15:42:16.349250 | 2020-05-18T00:37:24 | 2020-05-18T00:37:24 | 61,325,214 | 3 | 5 | NOASSERTION | 2019-12-09T04:03:56 | 2016-06-16T20:54:10 | Python | UTF-8 | Python | false | false | 4,325 | py | # ___________________________________________________________________________
#
# Pyomo: Python Optimization Modeling Objects
# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC
# Under the terms of Contract DE-NA0003525 with National Technology and
# Engineering Solutions of Sandia, LLC,... | [
"jsiirola@users.noreply.github.com"
] | jsiirola@users.noreply.github.com |
524ffd950e6b5b0334c1fbefee5c7036da505cf8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2235/60614/303084.py | 6cd63f840ba7468c2f277dfeb99b91a286eebce6 | [] | 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 | 1,459 | py | def other(num):
if num%2==0:
return num+1
else:
return num-1
init = [int(x) for x in input().split()]
n = init[0]*2
m = init[1]
pairs=[]
edge=[[] for i in range(n)]
for i in range(m):
temp=[int(x) for x in input().split()]
edge[temp[0]-1].append(other(temp[1]-1))
edge[temp[1]-1].appe... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
caee1b2c16ec8d413abb4a20682ec50cc7eebdc8 | 88963a0e0ddf47e666a3acd030cfa3050693c2bd | /globMatching.py | 372abb445e911784d3d376da14874bbf5fff51a9 | [] | no_license | santoshparmarindia/algoexpert | 9728054bbebb4e9413fe3c7cb75463b959046191 | d71397bef5bf3a76735b2e4ef8ee808919209b8c | refs/heads/main | 2023-06-01T15:44:28.296437 | 2021-06-15T23:03:19 | 2021-06-15T23:03:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | def globMatching(fileName, pattern):
locations = getLocationOfSymbols(pattern)
for pos in locations:
if pattern[pos]=="*":
stringBefore=fileName[len(fileName)-pos]
def getLocationOfSymbols(pattern):
return [idx for idx in range(len(pattern)) if pattern[idx] == "*" or pattern[idx] == "?"... | [
"caleberioluwa@gmail.com"
] | caleberioluwa@gmail.com |
a2f04deabb3eb3ccda22c389cf99ce25e63a77dc | 57eb44ce1d84aca3580e28688cf645db483d0d03 | /accounts/views/user.py | 06e3bab546f4abebad577e240d55e3488e345733 | [
"Apache-2.0"
] | permissive | TheLabbingProject/pylabber | cbfd7a6663d56f779dde96bd6e0281f5c8f06393 | 4b51065f457ab86ed311f222080187caf1979fea | refs/heads/master | 2023-04-08T05:29:08.356479 | 2023-03-29T09:06:11 | 2023-03-29T09:06:11 | 205,411,164 | 5 | 3 | Apache-2.0 | 2023-03-29T09:06:13 | 2019-08-30T15:40:47 | Python | UTF-8 | Python | false | false | 1,678 | py | """
Definition of the :class:`UserViewSet` class.
"""
from accounts.filters.user import UserFilter
from accounts.serializers.user import UserSerializer
from django.contrib.auth import get_user_model
from django.db.models import QuerySet
from pylabber.views.defaults import DefaultsMixin
from rest_framework import viewse... | [
"z.baratz@gmail.com"
] | z.baratz@gmail.com |
dab574e8ab8a48728c158b84af936b1d4044293b | b6cfcb01f8419dc17acffdfe2d4185c5cd7b8c21 | /core/views.py | 28ced51ecf8212c1a9aa748632e51598bf09fe61 | [] | no_license | mdamien/votes-deputes | 6cd14eed39436757ab7f59471e53ee5cec9f33bf | 576b2d5df6a01c092611b922143b9c17c8a24ae8 | refs/heads/main | 2023-01-24T05:42:35.709817 | 2020-11-17T14:39:00 | 2020-11-17T14:39:00 | 307,299,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,404 | py | from django.http import HttpResponse
from django.db.models.functions import Lower
from lys import L, raw, render
from core.models import *
HEADER = """
<!DOCTYPE html>
<html lang="fr"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" cont... | [
"damien@dam.io"
] | damien@dam.io |
8d31ea4c5eee17006526e8dbb68804018da6797d | c9dc1df17ecb9e279eb4403b83358363cdbe7fee | /project/cms/migrations/0020_auto_20180302_0513.py | 55c47d006cd522af0420e248798d77367eeb50f8 | [] | no_license | m0nte-cr1st0/keyua | c3894a94c9bfe73409078be11cb1d3f64831054c | b964ebb7e260fbebdbc27e3a571fed6278196cac | refs/heads/master | 2022-11-25T16:03:51.882386 | 2020-01-09T12:57:54 | 2020-01-09T12:57:54 | 232,809,529 | 0 | 0 | null | 2022-11-22T02:24:49 | 2020-01-09T12:58:10 | Python | UTF-8 | Python | false | false | 656 | py | # Generated by Django 2.0 on 2018-03-02 05:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0006_auto_20180226_0554'),
('cms', '0019_page_show_on_category_menu'),
]
operations = [
migra... | [
"dinamo.mutu111@gmail.com"
] | dinamo.mutu111@gmail.com |
c602d0dde6c12d0b6e4e1af055d8d9bba4a4991c | 2310666ca3de8c5e41b1fb7268632015b0658dde | /leetcode/0013_roman_to_integer.py | 6cdd3a3254113bc451c81ea965e8f537a2674e3a | [
"BSD-2-Clause"
] | permissive | chaosWsF/Python-Practice | 72196aa65a76dd27e1663e50502954dc07f4cad6 | 49a0b03c55d8a702785888d473ef96539265ce9c | refs/heads/master | 2022-08-16T13:04:41.137001 | 2022-08-16T06:17:01 | 2022-08-16T06:17:01 | 144,381,839 | 1 | 0 | null | 2021-09-16T03:58:32 | 2018-08-11T12:02:19 | Python | UTF-8 | Python | false | false | 3,037 | py | """
Roman numerals are represented by seven different symbols:
I, V, X, L, C, D and M.
Symbol Value
I 1
V 5
X 10
L 50
C 100
D 500
M 1000
For example, two is written as II in Roman numeral, just t... | [
"25746440+chaosWsF@users.noreply.github.com"
] | 25746440+chaosWsF@users.noreply.github.com |
9ae6fece0afe3beedd05a6cb5236776f8a8a70b0 | e173bfaa3c728a3ce7a7709f1beee5c5a64a0e2a | /LandMatrixExtractor/es/weso/landmatrix/entities/deal_analyser_entry.py | e5fc06b9c89ff4a8c576f6f72ed6ec143094e308 | [
"Unlicense"
] | permissive | weso/landportal-importers | d4ddfe0db298a9c2f51820f714b21ff5c570291d | 6edfa3c301422bbe8c09cb877b1cbddbcd902463 | refs/heads/master | 2020-03-30T08:08:31.457937 | 2014-07-15T11:31:28 | 2014-07-15T11:31:28 | 15,933,682 | 0 | 0 | null | 2014-04-07T09:15:12 | 2014-01-15T11:47:44 | null | UTF-8 | Python | false | false | 487 | py | __author__ = 'Dani'
class DealAnalyserEntry(object):
"""
The DealAnalyser will return a dict that saves under a key composed by Country and indicator
certains group of entities.
This class contains all this elements: an indicator, a date (int), a country (country entity) and a value
"""
def ... | [
"danifdezalvarez@gmail.com"
] | danifdezalvarez@gmail.com |
733747b606dec6f402a5ea55269c848673bb82c8 | 4e3ce5a1fc39c00d28b42f61c15cc54f65e706f0 | /leetcode/101-200/T164_maximumGap.py | 5d559312515ac2a5c70ae408e8cd69df9eaf6dd8 | [] | no_license | PemLer/Journey_of_Algorithm | 6c2a1d1f2bb9e1cff5239857dd33747b14127dfd | c0a51f0054446d54f476cf8f1cd3e6268dcd2b35 | refs/heads/master | 2023-03-31T01:57:09.223491 | 2020-06-23T11:25:27 | 2020-06-23T11:25:27 | 178,988,861 | 2 | 0 | null | 2020-06-23T11:25:29 | 2019-04-02T03:06:47 | Python | UTF-8 | Python | false | false | 564 | py | class Solution(object):
def maximumGap(self,num):
if len(num) < 2 or min(num) == max(num):
return 0
a, b = min(num), max(num)
size = (b-a)//(len(num)-1) or 1
bucket = [[None, None] for _ in range((b-a)//size+1)]
for n in num:
b = bucket[(n-a)//size]
... | [
"1130527871@qq.com"
] | 1130527871@qq.com |
8efd18901c9f572c09ee983bae120fa0e3bed0ec | fe427adf26411595c447ce880436383bb7c565e2 | /exps/inverted_pendulum/run.py | 311d66ab5798e744c469cbb8f03f9520be5aaf10 | [
"MIT"
] | permissive | LWANG0413/hucrl | 81023314bc2d32abe9a3bdda5e97c4f3d88cd1db | f09076bb7083aeef62bdaa129f485bab9a5fa685 | refs/heads/master | 2023-04-14T18:57:51.237180 | 2021-03-26T16:13:28 | 2021-03-26T16:13:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | """Run the inverted-pendulum using MB-MPO."""
from dotmap import DotMap
from exps.inverted_pendulum import (
ACTION_COST,
ENVIRONMENT_MAX_STEPS,
TRAIN_EPISODES,
get_agent_and_environment,
)
from exps.inverted_pendulum.plotters import (
plot_pendulum_trajectories,
set_figure_params,
)
from exps.... | [
"sebastian.curi@inf.ethz.ch"
] | sebastian.curi@inf.ethz.ch |
0b2e693e5580b814554653d9ffdd9871c366fd33 | 82b728e805d887102c0b8c415731b353877690cd | /samples/generated_samples/aiplatform_generated_aiplatform_v1_featurestore_service_batch_read_feature_values_sync.py | fdf813f6f78ca224219d688d99fd770c3fbc9267 | [
"Apache-2.0"
] | permissive | geraint0923/python-aiplatform | 90c7742c9bdbde05b9688b117e8e59c0406d6f85 | 7ab05d5e127636d96365b7ea408974ccd6c2f0fe | refs/heads/main | 2023-08-24T05:30:38.519239 | 2021-10-27T20:38:25 | 2021-10-27T20:38:25 | 370,803,114 | 0 | 0 | Apache-2.0 | 2021-05-25T19:15:47 | 2021-05-25T19:15:46 | null | UTF-8 | Python | false | false | 2,280 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | geraint0923.noreply@github.com |
67e01004501971d37fce799ec2e4c98ba5c2c2cd | efe1546fa1f057cbbbe974bd8478309b6176d641 | /waf/tests/preproc/wscript | 8b6a5c1d28eb03a8d92149cdc9dbd61bd15a6fee | [
"Apache-2.0"
] | permissive | yankee14/reflow-oven-atmega328p | 2df323aba16ac4f3eac446abc633a5d79a1a55cb | e6792143576f13f0a3a49edfd54dbb2ef851d95a | refs/heads/master | 2022-12-02T21:32:39.513878 | 2019-05-30T06:25:12 | 2019-05-30T06:25:12 | 188,760,664 | 0 | 1 | Apache-2.0 | 2022-11-15T18:22:50 | 2019-05-27T02:52:18 | Python | UTF-8 | Python | false | false | 4,441 | #! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2012 (ita)
VERSION='0.0.1'
APPNAME='preproc_test'
top = '.'
out = 'build'
from waflib import Utils
from waflib.Tools import c_preproc
from waflib.Tools.c_preproc import NUM, OP, IDENT
from waflib.Logs import pprint
def configure(conf):
pass
def build(bld):
... | [
"yankee14.ed@gmail.com"
] | yankee14.ed@gmail.com | |
05a269f38e872abaf687b447a962c6e69d2948d4 | 68cd659b44f57adf266dd37789bd1da31f61670d | /swea/뱀.py | 020110d76f3e7ac5fc7f1bcce168de785b3bfe14 | [] | no_license | 01090841589/solved_problem | c0c6f5a46e4d48860dccb3b0288aa5b56868fbca | bbea2f31e5fe36cad100bc514eacd83545fb25b1 | refs/heads/master | 2023-07-02T23:55:51.631478 | 2021-08-04T13:57:00 | 2021-08-04T13:57:00 | 197,157,830 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | import sys
sys.stdin = open('뱀.txt')
DIR = [[0, 1], [1, 0], [0, -1], [-1, 0]]
N = int(input())
a = int(input())
apple = [list(map(int, input().split())) for _ in range(a)]
s = int(input())
snake = [list(map(str, input().split())) for _ in range(s)]
snake.append([-1])
MAP = [[0]*N for _ in range(N)]
for i in apple:... | [
"chanchanhwan@naver.com"
] | chanchanhwan@naver.com |
7f00baf0660b125281470373c8031d79cc956bf0 | 6ff939cd2ce1d860642ea56515f8339f6740715e | /rcsb/db/tests-validate/testSchemaDataPrepValidate.py | 3bc76940a64e990b8691d90d857b3d936d83fa70 | [
"Apache-2.0"
] | permissive | Global-localhost/py-rcsb_db | 44a1bc9a99c0388965d8a70f19585ed9a1382fe6 | 35e3c09548220dbf90fea74a9c6bebce50e33154 | refs/heads/master | 2023-01-13T20:10:59.617606 | 2020-11-21T14:06:38 | 2020-11-21T14:06:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,222 | py | ##
# File: SchemaDataPrepValidateTests.py
# Author: J. Westbrook
# Date: 9-Jun-2018
# Version: 0.001
#
# Update:
# 7-Sep-2018 jdw add multi-level (strict/min) validation tests
# 29-Sep-2018 jdw add plugin for extended checks of JSON Schema formats.
# 31-Mar-2019 jdw add option to validate 'addParentRefs'
#
##
... | [
"john.westbrook@rcsb.org"
] | john.westbrook@rcsb.org |
9c359467fb4335e915ad157c12c5bd309f190f2b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/231/28019/submittedfiles/swamee.py | eb9d48ac7aaed3c447136497d9b7cecec1da9701 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # -*- coding: utf-8 -*-
import math
f=float(input('digite f:'))
l=float(input('digite l:'))
q=float(input('digite q:'))
deltah=float(input('digite deltah:'))
v=float(input('digite v:'))
g=9.81
e=0.000002
d=((8*f*l*q**2)/(math.pi**2*g*deltah))**0.5
rey=(4*q)/(math.pi*d*v)
k=0.25/((math.log10)((e/3.7*d)*((5.74)/rey**0.9)... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
872c7d1c16524b5eddeea502ff3b870793cbb11f | 82bfa33b108b2ae37f42719d50571af4ec232c0d | /Memo2/Memo2/urls.py | 3e16a8733dc4a3e2a97d2d48b0106789384037a8 | [] | no_license | cyndereN/Memo | 85422af8a5c3b260a073ea232198518e334da902 | 67e71010728ada52cbc1f99e520375e3825dfa39 | refs/heads/master | 2023-08-16T00:44:52.534544 | 2021-10-24T06:37:25 | 2021-10-24T06:37:25 | 290,249,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | """Memo2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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... | [
"50982416+cyndereN@users.noreply.github.com"
] | 50982416+cyndereN@users.noreply.github.com |
bb470609f40ef27273543ec7bd2e2e208db58786 | f58e6240965d2d3148e124dcbdcd617df879bb84 | /tensorflow_datasets/core/features/tensor_feature_test.py | a460f0f1e351b087b58721d917bc0ccd4c37c48d | [
"Apache-2.0"
] | permissive | suvarnak/datasets | b3f5913cece5c3fe41ec0dde6401a6f37bfd9303 | 3a46548d0c8c83b2256e5abeb483137bd549a4c1 | refs/heads/master | 2022-09-27T03:38:20.430405 | 2022-07-22T15:21:33 | 2022-07-22T15:27:07 | 176,061,377 | 0 | 0 | Apache-2.0 | 2019-03-17T05:45:33 | 2019-03-17T05:45:32 | null | UTF-8 | Python | false | false | 11,494 | py | # coding=utf-8
# Copyright 2022 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
a79fb5c1a81166b1a3b1ce3af402698df246bace | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03138/s242505224.py | 5340460e00db7847047a31b2e818dc0725314dd4 | [] | 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 | 258 | py | n,k = map(int,input().split())
a = list(map(int,input().split()))
t,ans =2**40,0
while t:
c = sum([(a[i]&t)//t for i in range(n)]) #a[i]のある桁における1の数
if c>=n-c or k<t: ans += t*c
else: ans += t*(n-c);k-=t
t = t>>1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2623877e3f99911ed39c4d01307f8420d2a1b535 | fccc9acd62447941a49313c01fcf324cd07e832a | /Função/testefuncao.py | aff1ed7ba584e2b052a263e21cf54c5626d1febc | [] | no_license | paulovictor1997/Python | fba884ea19ed996c6f884f3fcd3d49c5a34cfd3d | 671d381673796919a19582bed9d0ee70ec5a8bea | refs/heads/master | 2023-04-29T18:01:55.451258 | 2021-05-19T15:12:09 | 2021-05-19T15:12:09 | 354,154,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | #def soma(a =0,b =0,c = 0):
#s = a + b + c
#return s
#s1 = soma(1,2,1)
#s2 = soma(3,1,1)
#print(f'A soma vale : {s1} e {s2}')
#def contador(*num):
#tam = len(num)
#print(f'Valores : {num}. E tem {tam} número(s) em cada')
#contador(1 , 3, 5, 7)
#contador(1 , 5 , 7)
#def dobra(lista):
#pos = 0
... | [
"paulovictornunes97@gmail.com"
] | paulovictornunes97@gmail.com |
44d5c97995747aa07393a15f51ed50bc5bae7f0a | eccbb87eefe632a1aa4eafb1e5581420ccf2224a | /network/nn.py | fe56be268b4051085e83df4e53349562c717d4fe | [] | no_license | jianjunyue/python-learn-ml | 4191fc675d79830308fd06a62f16a23295a48d32 | 195df28b0b8b8b7dc78c57dd1a6a4505e48e499f | refs/heads/master | 2018-11-09T15:31:50.360084 | 2018-08-25T07:47:20 | 2018-08-25T07:47:20 | 102,184,768 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | import numpy as np
def nonlin(x,deriv=False):
if(deriv==True):
return x*(1-x)
return 1/(1+np.exp(-x))
X = np.array([[0,0,1],
[0,1,1],
[1,0,1],
[1,1,1]])
print(X.shape)
y = np.array([[0],
[1],
... | [
"409494312@qq.com"
] | 409494312@qq.com |
494edcb6a321c1c2a75f534f196e8e3761d09887 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/web-dev-notes-resource-site/2-content/Python/automate-the-boring/Automate_the_Boring_Stuff_onlinematerials_(1)/automate_online-materials/mapIt.py | 962b6c390846e4270f16c8a7480e072327a7dc3f | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 378 | py | #! python3
# mapIt.py - Launches a map in the browser using an address from the
# command line or clipboard.
import webbrowser, sys, pyperclip
if len(sys.argv) > 1:
# Get address from command line.
address = " ".join(sys.argv[1:])
else:
# Get address from clipboard.
address = pyperclip.paste()
webbro... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
26457ac8cdae452935fadc9e69e29f8750810bd3 | 1d61057dab56fddd1edba78ce10b3a5f96c18c60 | /diskinventory/build_database.py | d6819fa75fa4a82dc2e130fe3e97ee0927cb2b0b | [] | no_license | phaustin/pythonlibs | f4f1f450d3e9bb8ebac5ffdb834d3750d80ee38e | 35ed2675a734c9c63da15faf5386dc46c52c87c6 | refs/heads/master | 2022-04-29T00:45:34.428514 | 2022-03-06T17:16:30 | 2022-03-06T17:16:30 | 96,244,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,456 | py | #!/home/phil/usr243_Fc3/bin/python
#ls -R -l -Q --time-style=full-iso --time=status /home/phil/* > listing.txt
#-rw-r--r-- 1 phil users 0 2005-10-06 12:28:09.000000000 -0700 "/home/phil/eosc211_fall2005.txt~"
#du /home/phil/* > ~/philprojects/disk_inventory/dulist.txt
import MySQLdb, MySQLdb.cursors
import... | [
"paustin@eos.ubc.ca"
] | paustin@eos.ubc.ca |
7b9f607962a9ad7be9ffd32f81187cb4fffda709 | d2d3ebfbf293fa96c95a29648f70774d310494d3 | /app/storage/__init__.py | 6e6201c1147b2dcca6c6f1008edee57cf2a9a6e3 | [] | no_license | sysdeep/DNote | 092b01c38f7b1a266a59bddb327cee2d52ae01d2 | 6d933e3f487c5a03a4984a2bbcbc48ac38d4dc3c | refs/heads/master | 2021-01-13T13:46:34.365021 | 2018-07-11T13:46:13 | 2018-07-11T13:46:13 | 76,347,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
2018.08.11 - новая реализация хранилища - singleton
"""
import os.path
import shutil
# from app.rc import DIR_PROJECT
from .Manager import Manager
from .Storage import Storage
from .nodes.Nodes import NODE_TYPES
from app.rc import DIR_DEFAULTS
storage = Storage()... | [
"sysdeep@yandex.ru"
] | sysdeep@yandex.ru |
b7878405a799077723e9ef10a02c1c9f638fa925 | 49e8edf6cefd68aea18d2799147b6f44ec44d7f1 | /robot_learning/scripts/convert_odom.py | 66d2ab337d1cc726811b24759145667e0127ac61 | [] | no_license | yycho0108/robot_learning | 815a805bfbcf0ebd93164fa132780e03d7d0075b | b5ed0c13679c4ba3a569c020734308d3618ec57a | refs/heads/master | 2020-04-01T22:37:37.211389 | 2018-12-18T08:59:44 | 2018-12-18T08:59:44 | 153,718,297 | 0 | 0 | null | 2018-10-19T02:55:43 | 2018-10-19T02:55:43 | null | UTF-8 | Python | false | false | 2,690 | py | import rospy
import tf
import numpy as np
from nav_msgs.msg import Odometry
from tf_conversions import posemath as pm
class ConvertOdom(object):
def __init__(self):
self.method_ = rospy.get_param('~method', default='tf')
self.pub_tf_ = rospy.get_param('~pub_tf', default=False)
# data
... | [
"jchocholate@gmail.com"
] | jchocholate@gmail.com |
7ae6a828f59509f2a877757873e9e0e15f838175 | c88e895ae9a08842987513d339cd98de735ee614 | /tests/test_utils.py | 631a24645c84d45814cf5874daefa65d94f256de | [
"Apache-2.0"
] | permissive | tardyp/ramlfications | 32cf25c4d5093424f7b71180c390bca777848dd8 | cdc0d43d5e70a5f53fed9f25bff3529e89fff1af | refs/heads/master | 2021-01-24T20:02:59.237045 | 2015-12-25T03:30:20 | 2015-12-25T03:30:20 | 49,712,338 | 0 | 0 | null | 2016-01-15T10:24:49 | 2016-01-15T10:24:48 | null | UTF-8 | Python | false | false | 5,683 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015 Spotify AB
import sys
if sys.version_info[0] == 2:
from io import open
import json
import os
import tempfile
from mock import Mock, patch
import pytest
import xmltodict
from ramlfications import utils
from .base import UPDATE
@pytest.fixture(scope="session")
def d... | [
"lynn@spotify.com"
] | lynn@spotify.com |
9bee7b08f46de36e23ae891f4c9864f8e80a81f6 | 865f33817e8989160b1d396ae96554134dc8c01a | /slack_bolt/workflows/step/utilities/__init__.py | eedc9c85efae340228b286a9ed898fdf72758dbf | [
"MIT"
] | permissive | xocliwtb/bolt-python | 4f075b945ef5b51e6e1e54f7b7afc36bd7894a91 | 11e202a14d6196585312e2d456e45267be9dd465 | refs/heads/main | 2023-03-23T21:26:50.256141 | 2021-03-24T12:22:50 | 2021-03-24T12:38:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | """Utilities specific to workflow steps from apps.
In workflow step listeners, you can use a few specific listener/middleware arguments.
### `edit` listener
* `slack_bolt.workflows.step.utilities.configure` for building a modal view
### `save` listener
* `slack_bolt.workflows.step.utilities.update` for updating th... | [
"seratch@gmail.com"
] | seratch@gmail.com |
dd49ab2283fcd7331e36188957f09dffafcce446 | 359cbc4e41d2321dbcaa610fb51132d5013514e5 | /django_project/celery.py | 893a0aa658718cef20b58ea05544cfd34ef59f12 | [
"MIT"
] | permissive | runmosta/product-database | 780ff9d8dcf64af5fd191d1cb0ace94dd4c18d0e | 1b46d6d0464a5196cf9f70c060fe9e9ae614f8ea | refs/heads/master | 2021-01-22T23:44:35.711366 | 2017-03-16T12:12:49 | 2017-03-16T12:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,136 | py | from __future__ import absolute_import
import logging
import os
import celery
import raven
from celery import states
from django.conf import settings
from django.core.cache import cache
from raven.contrib.celery import register_signal, register_logger_signal
class Celery(celery.Celery):
def on_configure(self):
... | [
"henry@codingnetworker.com"
] | henry@codingnetworker.com |
69ecbbe5bd9581d8746ddf7181facf1f676c361b | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/fleet/azext_fleet/vendored_sdks/v2022_07_02_preview/operations/_fleet_members_operations.py | 442135df4c5adfd90a0d482ad4647e5aaaded26b | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 36,981 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | VSChina.noreply@github.com |
0ff06ec8d28402aab70bef401caaea5fd2e432f8 | 6ceea2578be0cbc1543be3649d0ad01dd55072aa | /src/fipy/viewers/matplotlibViewer/matplotlib1DViewer.py | a7697b5974aec5a137e5dbbf43f731801af8300d | [
"LicenseRef-scancode-public-domain"
] | permissive | regmi/fipy | 57972add2cc8e6c04fda09ff2faca9a2c45ad19d | eb4aacf5a8e35cdb0e41beb0d79a93e7c8aacbad | refs/heads/master | 2020-04-27T13:51:45.095692 | 2010-04-09T07:32:42 | 2010-04-09T07:32:42 | 602,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,954 | py | #!/usr/bin/env python
## -*-Pyth-*-
# ###################################################################
# FiPy - Python-based finite volume PDE solver
#
# FILE: "matplotlib1DViewer.py"
#
# Author: Jonathan Guyer <guyer@nist.gov>
# Author: Daniel Wheeler <daniel.wheeler@nist.gov>
# Author: James Warren ... | [
"regmisk@gmail.com"
] | regmisk@gmail.com |
c162564e63d337faa2310cc9b68779b5b5f871c7 | 45f75e4ec6a8880d12707c1887d3b6f0c1630546 | /howtolens/chapter_1_introduction/scripts/tutorial_4_planes.py | 27ec1483fc9378c05fd2919c22b363723218315b | [
"MIT"
] | permissive | carlosRmelo/PyAutoLens | 45861eb31f5b9cd50d133a29f279ed0b3c4eaaf3 | 8c3d59cb990d8a1ddc6ed4008893ab312bd07b97 | refs/heads/master | 2022-12-07T23:31:07.618110 | 2020-08-25T18:10:31 | 2020-08-25T18:10:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,759 | py | # %%
"""
Tutorial 4: Planes
==================
We've learnt how to make galaxy objects out of _LightProfile_'s and _MassProfile_'s. Now, we'll use these galaxies to
make a strong-gravitational lens.
For newcomers to lensing, a strong gravitational lens is a system where two (or more) galaxies align perfectly down our... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
85733af4934ff26db65465a68b19151ee18182f5 | 57f773d5e0e942335e1445428a9ac42b75db03a9 | /venv/Lib/site-packages/pysnmp_mibs/APPN-DLUR-MIB.py | 262cef21c80769f2caa20e707963fc4f4ac7c8ed | [] | no_license | Therealdanjo/SNMP_Tool | 2b8b9bb295f2084a9bfcbb0688f750a5632b0f87 | 9e0126fe716479adea6ba65502ae12cf9953741e | refs/heads/master | 2023-02-20T21:07:17.441050 | 2021-01-23T14:29:31 | 2021-01-23T14:29:31 | 318,448,639 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,256 | py | #
# PySNMP MIB module APPN-DLUR-MIB (http://pysnmp.sf.net)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/APPN-DLUR-MIB
# Produced by pysmi-0.0.7 at Sun Feb 14 00:05:25 2016
# On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose
# Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52)
#
( ... | [
"Therealdanjo@users.noreply.github.com"
] | Therealdanjo@users.noreply.github.com |
98da77c4e00f8af57fb0f7401c7164edec898362 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startPyquil3397.py | 755036f7e7971cea85acc259f8c84b03de4679f6 | [
"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 | 2,022 | py | # qubit number=4
# total number=46
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(3) # number=20
prog... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
0d26c8c18a0c57b0fef625f11d847b87fef5a932 | 3fd8958283dc1f0f3619b2835efb0c735eecb3db | /slixmpp/plugins/xep_0428/stanza.py | eb3c3daebf218a4437687b4360e7085aef660b7d | [
"MIT",
"BSD-3-Clause"
] | permissive | poezio/slixmpp | 0e8ea7a5c12180f7806889a3a1d0c1136116c416 | 7a0fb970833c778ed50dcb49c5b7b4043d57b1e5 | refs/heads/master | 2023-08-13T15:05:51.996989 | 2022-10-03T08:20:19 | 2022-10-03T08:20:19 | 26,556,621 | 97 | 51 | NOASSERTION | 2023-08-01T08:20:03 | 2014-11-12T21:17:50 | Python | UTF-8 | Python | false | false | 491 | py |
# Slixmpp: The Slick XMPP Library
# Copyright (C) 2020 Mathieu Pasquet <mathieui@mathieui.net>
# This file is part of Slixmpp.
# See the file LICENSE for copying permissio
from slixmpp.stanza import Message
from slixmpp.xmlstream import (
ElementBase,
register_stanza_plugin,
)
NS = 'urn:xmpp:fallback:0'
cl... | [
"mathieui@mathieui.net"
] | mathieui@mathieui.net |
3b51948f1918b55d1e39c110991ffe7fe8740878 | 244189d49a3967b4b002af73f40ca8e8064c4771 | /modules/payloads/stages/windows/x64/vncinject.rb | 8f466c207cac07f11e4e57704d91a5b147ecb2c1 | [
"MIT"
] | permissive | darkcode357/thg-framework | 7540609fb79619bdc12bd98664976d51c79816aa | c1c3bd748aac85a8c75e52486ae608981a69d93a | refs/heads/master | 2023-03-01T05:06:51.399919 | 2021-06-01T14:00:32 | 2021-06-01T14:00:32 | 262,925,227 | 11 | 6 | NOASSERTION | 2023-02-10T23:11:02 | 2020-05-11T03:04:05 | Python | UTF-8 | Python | false | false | 932 | rb | ##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core/payload/windows/x64/reflectivedllinject'
require 'msf/base/sessions/vncinject'
require 'msf/base/sessions/vncinject_options'
###
#
# Injects the VNC server DLL (v... | [
"darkocde357@gmail.com"
] | darkocde357@gmail.com |
95ca5345a8e610b9a95855f36668531f02c28e8c | fab39aa4d1317bb43bc11ce39a3bb53295ad92da | /examples/torch/object_detection/layers/extensions/__init__.py | 17620e92e9100990a5186deae8331de1fc7e059b | [
"Apache-2.0"
] | permissive | dupeljan/nncf | 8cdce27f25f01ce8e611f15e1dc3036fb8548d6e | 0abfd7103ca212888a946ba4d0fbdb9d436fdaff | refs/heads/develop | 2023-06-22T00:10:46.611884 | 2021-07-22T10:32:11 | 2021-07-22T10:32:11 | 388,719,455 | 0 | 0 | Apache-2.0 | 2021-07-23T07:46:15 | 2021-07-23T07:43:43 | null | UTF-8 | Python | false | false | 516 | py | import os.path
import torch
from torch.utils.cpp_extension import load
from nncf.torch.extensions import CudaNotAvailableStub
ext_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
if torch.cuda.is_available():
EXTENSIONS = load(
'extensions', [
os.path.join(ext_dir, 'extensions.... | [
"noreply@github.com"
] | dupeljan.noreply@github.com |
d76f494dd6a71b2112a8888bb41eff64b231b4da | e02806138dfef3763f1f93bf8cb4990bd7502c06 | /misc/convert_to_bilou.py | 89959771d0c74c0a23220a553aec22203eeaaf4a | [
"Apache-2.0"
] | permissive | ELS-RD/anonymisation | b40a809865d943d4abdceb74cc49ac03209373a9 | 0b02b4e3069729673e0397a1dbbc50ae9612d90f | refs/heads/master | 2021-06-22T07:14:26.082920 | 2020-11-28T20:52:50 | 2020-11-28T20:52:50 | 139,612,256 | 87 | 21 | Apache-2.0 | 2020-10-29T17:23:18 | 2018-07-03T16:48:23 | Python | UTF-8 | Python | false | false | 2,862 | 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... | [
"pommedeterresautee@msn.com"
] | pommedeterresautee@msn.com |
ac2a955bb3b15a542b3ea4cc42c726a3a191c310 | beb3ee10276cbbb9c3b32bcebc38427816d7302a | /cmc/conf/prod.py | b0ab32587a9624ce29e6a918b6951a43066fc745 | [
"MIT"
] | permissive | einsfr/cmc | df147ebc06b23801cb0f9982f49a1837a31dd2ff | 3735c0182b552757171f4e38af2463a9059a60da | refs/heads/master | 2021-01-12T09:29:17.865237 | 2016-12-14T14:36:07 | 2016-12-14T14:36:07 | 76,158,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | ALLOWED_HOSTS = []
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
'rest_framework.renderers.JSONRenderer',
)
}
MIDDLEWARE = [
'debug_toolbar.middleware.DebugToolbarMiddleware',
'django.middleware.security.Secur... | [
"einsfr@users.noreply.github.com"
] | einsfr@users.noreply.github.com |
c1b3eed09a9e40c8dd977b55adb93eb45df42db9 | 0cdeba10a9e29fb6abc324a80605770edf887cd1 | /代理/11111.py | d121342e3f0b6238a2d3b6dd44dc5e7d9b0407cf | [] | no_license | snailuncle/spider01 | 721e655771f17cbbb47fac8fa7771325a6f86770 | 49c83be01cbd3ef8ebabb83fb6409ef2c10692bc | refs/heads/master | 2021-04-12T08:22:25.337779 | 2018-04-30T05:34:55 | 2018-04-30T05:34:55 | 126,051,990 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,580 | py | # -*- coding:UTF-8 -*-
from bs4 import BeautifulSoup
# from selenium import webdriver
import subprocess as sp
from lxml import etree
import requests
import random
import re
"""
函数说明:获取IP代理
Parameters:
page - 高匿代理页数,默认获取第一页
Returns:
proxys_list - 代理列表
Modify:
2017-05-27
"""
def get_proxys(page = 1):
#re... | [
"1789500304@qq.com"
] | 1789500304@qq.com |
05e0ad0c9844453bca4fa2dedf0a25e400f0c2ab | 463087b1f650928385c711390fb8ead19e63cc76 | /rooms/views.py | b904a80e7905eb776412a64a4cfc97f8527b2032 | [] | no_license | sbtiffanykim/awesome-api | 81a81b45c793b393512fd1b1a01085fd96c8af51 | b1f4c8ef0caf32f3fe2522d3011f68dcfd34065b | refs/heads/master | 2023-02-05T19:50:48.990059 | 2020-12-21T14:14:29 | 2020-12-21T14:14:29 | 319,961,409 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,406 | py | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from .models import Room
from .serializers import RoomSerializer
class RoomsView(APIView):
def get(self, request):
rooms = Room.objects.all()
serializer = RoomSerializer(rooms, m... | [
"sbtiffanykim@gmail.com"
] | sbtiffanykim@gmail.com |
6a501f24bce4742b2280fbad8b6f066b1a1cd36b | 02863fb122e736e1d1193c01270a3731dd114f79 | /venv/Lib/site-packages/tensorflow/keras/applications/xception/__init__.py | 9427a25842edb2883be8696835bd990586d9ae2a | [] | no_license | umedsondoniyor/PredictiveMaintenance | ee9dd4fe8d3366be4c5b192b4275f23903dbd285 | 88d8184cc2a958aa5feb9b55a0d5d9b6de36c22e | refs/heads/master | 2021-06-18T23:42:24.901395 | 2021-03-03T15:36:55 | 2021-03-03T15:36:55 | 142,778,437 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/tools/api/generator/create_python_api.py script.
"""Xception V1 model for Keras.
On ImageNet, this model gets to a top-1 validation accuracy of 0.790
and a top-5 validation accuracy of 0.945.
Do note that the input image format for this model i... | [
"umedzhonizbasarov@gmail.com"
] | umedzhonizbasarov@gmail.com |
af8fe2f47bb526cbdc6867a4f95b7d42e1af9a5a | 05e61f3db737b7327849d1301b1ed3ba38028a9a | /seata/sqlparser/mysql/antlr4/value/table.py.txt | 40d03cc824fd8557e349c784ce853ac5a45ad43c | [] | no_license | JoshYuJump/seata-python | d56b2d27593ce92c39640c45b6a5ef1b27d0ce84 | 9fe12dd3ddea0903db7c52bd6810df2da8012417 | refs/heads/master | 2023-07-14T16:06:59.165247 | 2021-08-20T01:16:06 | 2021-08-22T13:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,808 | txt | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @author jsbxyyx
# @since 1.0
"""
from seata.sqlparser.mysql.antlr4.value.value import IdentifierValue
class OwnerSegment:
def __init__(self, start_index: int, stop_index: int, identifier: IdentifierValue):
self.start_index = start_index
self.stop_in... | [
"jsbxyyx@163.com"
] | jsbxyyx@163.com |
e3f687bcd124488b172bd73651a8d9237a9fccea | 1c790b0adc648ff466913cf4aed28ace905357ff | /python/lbann/modules/graph/sparse/NNConv.py | 8a8e61aeea88d0cbab3e6c1be5a8f9e717a03a80 | [
"Apache-2.0"
] | permissive | LLNL/lbann | 04d5fdf443d6b467be4fa91446d40b620eade765 | e8cf85eed2acbd3383892bf7cb2d88b44c194f4f | refs/heads/develop | 2023-08-23T18:59:29.075981 | 2023-08-22T22:16:48 | 2023-08-22T22:16:48 | 58,576,874 | 225 | 87 | NOASSERTION | 2023-09-11T22:43:32 | 2016-05-11T20:04:20 | C++ | UTF-8 | Python | false | false | 7,203 | py | import lbann
from lbann.modules import Module, ChannelwiseFullyConnectedModule
class NNConv(Module):
"""Details of the kernel is available at:
"Neural Message Passing for Quantum Chemistry"
https://arxiv.org/abs/1704.01212
"""
global_count = 0
def __init__(self,
sequenti... | [
"noreply@github.com"
] | LLNL.noreply@github.com |
0f8e5e98a83027e12be70103548b1d15138d3074 | d22fc5d683ea0ece1eb1623d81603b0c8a59da98 | /zillowdb/packages/sfm/string_match.py | fa5058591fd9e0578a355e0fdaee05c42c1732c7 | [
"MIT"
] | permissive | MacHu-GWU/zillowdb-project | 27117b00b330ca48af3972a2ae1beb28a98da5ca | 020266257311fa667a3b5fcca15450eb00584aaf | refs/heads/master | 2021-01-19T09:20:59.556094 | 2017-02-15T20:44:48 | 2017-02-15T20:44:48 | 82,104,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from fuzzywuzzy import process
def choose_best(text, choice, criterion=None):
if criterion is None:
return choose_best(text, choice, criterion=0)
else:
res, confidence_level = process.extractOne(text, choice)
if confidence_level >= criteri... | [
"husanhe@gmail.com"
] | husanhe@gmail.com |
96591d11925f5849c2e40c277ff6877b6f98221e | 1f16193788de5144d2cc7a90363dccf74ee389f9 | /ginga/util/plots.py | d8b0997242271e9ab63aee605772691e2cc188d6 | [
"BSD-3-Clause"
] | permissive | captainshar/ginga | abce10b3d9b4a6f70a8400526c812b3584bd9501 | 60987d96319e26d56535ff3e5978e838e9331be0 | refs/heads/master | 2020-12-30T14:00:51.325940 | 2017-05-14T22:35:06 | 2017-05-14T22:35:06 | 91,276,392 | 0 | 0 | null | 2017-05-14T22:56:54 | 2017-05-14T22:56:54 | null | UTF-8 | Python | false | false | 17,551 | py | #
# plots.py -- Utility functions for plotting.
#
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
import numpy
import matplotlib as mpl
from matplotlib.figure import Figure
# fix issue of negative numbers rendering incorrectly with default font
mpl.rcParams[... | [
"eric@naoj.org"
] | eric@naoj.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.