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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3fb2e07f62201caffa8b67a78f4e24fe0fe44f69 | 0d178d54334ddb7d669d212b11dd23ef5607cf8e | /LeetCode/Array/4Sum.py | 11f7a1109fd6bbfb0bdb4c287a979f1a7fa60b2f | [] | no_license | mrunalhirve12/Python_CTCI-practise | 2851d2c61fd59c76d047bd63bd591849c0781dda | f41348fd7da3b7af9f9b2df7c01457c7bed8ce0c | refs/heads/master | 2020-04-17T11:09:29.213922 | 2019-09-28T02:36:24 | 2019-09-28T02:36:24 | 166,529,867 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | """
Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.
Note:
The solution set must not contain duplicate quadruplets.
Example:
Given array nums = [1, 0, -1, 0, -2... | [
"mrunalhirve@gmail.com"
] | mrunalhirve@gmail.com |
99d474d6de01788f9f44e8db380fcd8057be8c85 | 2e996d6870424205bc6af7dabe8685be9b7f1e56 | /code/processing/20190325_r3_O3_IND_titration_flow/file_rename.py | 51d27275b95739132c62e7ef1b063c6806355426 | [
"CC-BY-4.0",
"MIT"
] | permissive | minghao2016/mwc_mutants | fd705d44e57e3b2370d15467f31af0ee3945dcc2 | 0f89b3920c6f7a8956f48874615fd1977891e33c | refs/heads/master | 2023-03-25T03:56:33.199379 | 2020-06-26T20:09:00 | 2020-06-26T20:09:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | # -*- coding: utf-8 -*-
import numpy as np
import fcsparser
import os
import glob
# Define the details fo the expriment.
USERNAME = 'gchure'
DATE = 20190325
RUN_NO = 3
FCS_PATTERN = 'RP2019-03-25'
savedir = '../../../data/flow/csv/'
# Define the order of rows and the cols.
R = (0, 0, 260, 260, 260, 260)
ROWS = ('aut... | [
"gchure@caltech.edu"
] | gchure@caltech.edu |
79a91e47db28a01386fb815a32b47a218c215852 | f3b233e5053e28fa95c549017bd75a30456eb50c | /tyk2_input/31/31-46_MD_NVT_rerun/set_7.py | 83bf1b35f537aee7c2dd8f6127d9919cfeab9ce4 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/tyk2/L31/MD_NVT_rerun/ti_one-step/31_46/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_7.in'
temp_pbs = filesdir + 'temp_7.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lam... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
b24b3b508692c9d3bbffa96ff99acdc158a53fa4 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007.1/desktop/kde/base/kdesdk/actions.py | ab36d22af81fe87c89ebff98566184311e00fa96 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import kde
def setup():
autotools.make("-f admin/Makefile.common")
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
db0afec86c62701b4b6b347de2fe3cb745f7d55f | ef32b87973a8dc08ba46bf03c5601548675de649 | /pytglib/api/functions/get_chat_sponsored_message.py | 71868b22788dde705d4134cc9c51f27345d2e10d | [
"MIT"
] | permissive | iTeam-co/pytglib | 1a7580f0e0c9e317fbb0de1d3259c8c4cb90e721 | d3b52d7c74ee5d82f4c3e15e4aa8c9caa007b4b5 | refs/heads/master | 2022-07-26T09:17:08.622398 | 2022-07-14T11:24:22 | 2022-07-14T11:24:22 | 178,060,880 | 10 | 9 | null | null | null | null | UTF-8 | Python | false | false | 776 | py |
from ..utils import Object
class GetChatSponsoredMessage(Object):
"""
Returns sponsored message to be shown in a chat; for channel chats only. Returns a 404 error if there is no sponsored message in the chat
Attributes:
ID (:obj:`str`): ``GetChatSponsoredMessage``
Args:
chat_id (:... | [
"arshshia@gmail.com"
] | arshshia@gmail.com |
fc77eaf0993fe68fe4b3692b3b0971b77c561865 | 8bb6fad924eae0aa03e36e70816ab9659131c190 | /test/account_test.py | 47ce554ce9c49f948983a15223a1f0369c55b25b | [
"MIT"
] | permissive | birkin/illiad3_client | 98c6f2200a24b140dc1a489692a16d552554d402 | d9dc3a1dbdc9b4c3181111eedc02867ab0d59088 | refs/heads/master | 2020-12-03T04:01:20.922533 | 2018-07-13T13:06:20 | 2018-07-13T13:06:20 | 95,804,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,263 | py | import os, sys, pprint, unittest
## add project parent-directory to sys.path
parent_working_dir = os.path.abspath( os.path.join(os.getcwd(), os.pardir) )
sys.path.append( parent_working_dir )
from illiad3_client.illiad3.account import IlliadSession
class AccountTest(unittest.TestCase):
def setUp(sel... | [
"birkin.diana@gmail.com"
] | birkin.diana@gmail.com |
f6ebb3862bcfeae9cb815cf8f6f75caf7ece1cbf | c4a57dced2f1ed5fd5bac6de620e993a6250ca97 | /huaxin/huaxin_ui/ui_android_xjb_2_0/register_page.py | f36c00fdfd14245afe93d9b85d7c54953dbe4ae2 | [] | no_license | wanglili1703/firewill | f1b287b90afddfe4f31ec063ff0bd5802068be4f | 1996f4c01b22b9aec3ae1e243d683af626eb76b8 | refs/heads/master | 2020-05-24T07:51:12.612678 | 2019-05-17T07:38:08 | 2019-05-17T07:38:08 | 187,169,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | # coding: utf-8
from _common.page_object import PageObject
from _common.xjb_decorator import gesture_close_afterwards, user_info_close_afterwards, robot_log
from _tools.mysql_xjb_tools import MysqlXjbTools
from huaxin_ui.ui_android_xjb_2_0.binding_card_page import BindingCardPage
import huaxin_ui.ui_android_xjb_2_0.ho... | [
"wanglili@shhxzq.com"
] | wanglili@shhxzq.com |
9f51a684b8c7951a2e4fc7e6f2705499041116ae | 8f7a30fd1c4d70535ba253d6e442576944fdfd7c | /Topics/Magic methods/10 puppies/main.py | e444a74a24c6ddca7f787232073b25a34c423935 | [] | no_license | TogrulAga/Coffee-Machine | 9596c3d8ef1b7347d189249f20602b584d8842e3 | f065de747bd1b626e4e5a06fac68202e41b6c11e | refs/heads/master | 2023-04-11T20:54:21.710264 | 2021-05-09T23:01:48 | 2021-05-09T23:01:48 | 365,864,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | class Puppy:
n_puppies = 0 # number of created puppies
# define __new__
def __new__(cls):
if cls.n_puppies >= 10:
return None
cls.n_puppies += 1
return object.__new__(cls)
| [
"toghrul.aghakishiyev@ericsson.com"
] | toghrul.aghakishiyev@ericsson.com |
5b8468dad0ffc2610646ee99a9814491cbdeb199 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/eve/client/script/ui/eveUIProcs.py | ea6ae5bc59cf6e80cb3020348a440d2d503d85e2 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 3,969 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\eveUIProcs.py
import uthread
import eve.common.script.sys.eveCfg as util
import locks
import random
import svc
import carbonui.const as uiconst
import localization
class EveUIProcSvc(svc.uiProcSvc):
_... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
580505ac4ba1e1a284893894570d873fee8578a5 | 3bc7db0cc5f66aff517b18f0a1463fffd7b37a6f | /generate.py | 5162c4a370a08417a9a630111ec0eec988adcd19 | [
"MIT"
] | permissive | patilvinay/docker-python-node | 6643f96fd89214c7fe54c0010890052030e60016 | fbab922c579ea0b6b12ce2183fe8d0e48cdd666a | refs/heads/master | 2021-10-08T04:05:59.094149 | 2018-12-07T15:09:01 | 2018-12-07T15:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,020 | py | #!/usr/bin/env python3
import itertools
import os
from copy import deepcopy
from glob import glob
from os.path import dirname
from os.path import join
from shutil import unpack_archive
from typing import List
from urllib.request import urlretrieve
import requests
import yaml
from dockerfile_compose import include_doc... | [
"austin@austinpray.com"
] | austin@austinpray.com |
513e63af05b9489a3168b1f4f389088edf36f4a2 | 0cf316b6a125442294acdf78fe725de42a3ce6b4 | /python/CosmiQNet.training.py | 6d6e36cca5b642da0885b772be944269f78223c1 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | GPrathap/utilities | 2a5f9ef2df9fdaa7a2ee9208aa8bbbca879be1f2 | 0624564e53a2860e66265654c23908688067798a | refs/heads/master | 2021-01-19T17:59:00.588299 | 2017-08-26T14:08:38 | 2017-08-26T14:08:38 | 101,102,401 | 0 | 0 | null | 2017-08-22T20:01:22 | 2017-08-22T20:01:22 | null | UTF-8 | Python | false | false | 4,008 | py | # The NN
with tf.device(gpu):
# Input is has numberOfBands for the pre-processed image and numberOfBands for the original image
xy = tf.placeholder(tf.float32, shape=[None, FLAGS.ws, FLAGS.ws, 2*numberOfBands])
with tf.name_scope("split") as scope:
x = tf.slice(xy, [0,0,0,0], [-1,-1,-1,numberOfBands... | [
"ggeesara@gmail.com"
] | ggeesara@gmail.com |
eab79d50f246b41e7ca2d6791bef6ec5ac89c03c | ea4e3ac0966fe7b69f42eaa5a32980caa2248957 | /download/unzip/pyobjc/pyobjc-14/pyobjc/stable/PyOpenGL-2.0.2.01/OpenGL/Demo/NeHe/lesson3.py | 499a6e4689f5adda4626afec603848f84836b3c1 | [] | no_license | hyl946/opensource_apple | 36b49deda8b2f241437ed45113d624ad45aa6d5f | e0f41fa0d9d535d57bfe56a264b4b27b8f93d86a | refs/heads/master | 2023-02-26T16:27:25.343636 | 2020-03-29T08:50:45 | 2020-03-29T08:50:45 | 249,169,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,888 | py | #!
# This is statement is required by the build system to query build info
if __name__ == '__build__':
raise Exception
import string
__version__ = string.split('$Revision: 1.8 $')[1]
__date__ = string.join(string.split('$Date: 2002/12/31 04:13:55 $')[1:3], ' ')
__author__ = 'Tarn Weisner Burton <twburton@us... | [
"hyl946@163.com"
] | hyl946@163.com |
3257118e28b9313b80431811480ac0d8a136bdf6 | dd6c23aa9e514b77c3902075ea54e8b754fd3bce | /docs/source/conf.py | e32250b11378e8936ab862fdc86707876239259d | [
"MIT"
] | permissive | gvx/wurm | 78b71880ff9acbd503281fbe61d77063bac59643 | c6702aee03785713035ed75632b3898f4fee1664 | refs/heads/master | 2023-05-02T06:14:37.251061 | 2021-05-26T15:34:09 | 2021-05-26T15:34:09 | 328,152,422 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"gyvox.public@gmail.com"
] | gyvox.public@gmail.com |
dc2c585ae7d7fca0beee6bf3a1ad69b954519988 | 1577e1cf4e89584a125cffb855ca50a9654c6d55 | /pyobjc/pyobjc/pyobjc-framework-Quartz-2.5.1/Examples/TLayer/TLayerDemo.py | d71e50b3335c923a766abb8f7e771799cc0a1a04 | [
"MIT"
] | permissive | apple-open-source/macos | a4188b5c2ef113d90281d03cd1b14e5ee52ebffb | 2d2b15f13487673de33297e49f00ef94af743a9a | refs/heads/master | 2023-08-01T11:03:26.870408 | 2023-03-27T00:00:00 | 2023-03-27T00:00:00 | 180,595,052 | 124 | 24 | null | 2022-12-27T14:54:09 | 2019-04-10T14:06:23 | null | UTF-8 | Python | false | false | 1,877 | py | from Cocoa import *
from PyObjCTools import NibClassBuilder
from Quartz import *
import objc
import ShadowOffsetView
class TLayerDemo (NSObject):
colorWell = objc.IBOutlet()
shadowOffsetView = objc.IBOutlet()
shadowRadiusSlider = objc.IBOutlet()
tlayerView = objc.IBOutlet()
transparencyLayerButto... | [
"opensource@apple.com"
] | opensource@apple.com |
b1ce9c9f3c6a4da4e41e158cd3872a64af2f9ff2 | 6671be3a542925342379d5f6fc691acfebbe281f | /discounts/src/app.py | 496dec244427273c6b9407c558f1a2a838d82d7d | [
"Apache-2.0"
] | permissive | dalmarcogd/mobstore | e79b479b39474873043345b70f7e972f304c1586 | 0b542b9267771a1f4522990d592028dc30ee246f | refs/heads/main | 2023-04-29T22:27:20.344929 | 2021-05-18T12:00:00 | 2021-05-18T12:00:00 | 365,539,054 | 0 | 0 | Apache-2.0 | 2021-05-17T23:22:58 | 2021-05-08T14:46:34 | Go | UTF-8 | Python | false | false | 880 | py | from concurrent import futures
import grpc
from src import settings
from src.consumer import sqs
from src.discountsgrpc import discounts_pb2_grpc
from src.handlers.disounts import Discounts
from src.handlers.products import handle_products_events
from src.handlers.users import handle_users_events
class Server:
... | [
"dalmarco.gd@gmail.com"
] | dalmarco.gd@gmail.com |
61b8e12ef142755e0f21788aadb9c6115e531a51 | 9abc2f4fbf1b31b5a56507437b4a8d9c3f3db7e6 | /newsletter/migrations/0001_initial.py | 7ec8cdad3f338cedbfa3b2dd1bbe2848327e86e9 | [] | no_license | odbalogun/ticketr | e9fe8461d66dabe395f0e1af8fbecc67dbb16e97 | 94f24c82f407f861f1614a151feb3fdd62b283e5 | refs/heads/master | 2022-11-30T22:40:30.931160 | 2019-08-09T14:34:38 | 2019-08-09T14:34:38 | 188,833,600 | 0 | 0 | null | 2022-11-22T03:50:30 | 2019-05-27T11:50:07 | Python | UTF-8 | Python | false | false | 742 | py | # Generated by Django 2.2.1 on 2019-06-09 23:51
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Subscribers',
fields=[
('id', models.AutoFi... | [
"oduntan@live.com"
] | oduntan@live.com |
c48d1ed17bcbb58954275bb553132df81fc90245 | 6b6e20004b46165595f35b5789e7426d5289ea48 | /endpoints/csrf.py | 11c225924f6a0baa17a9604c9e0d567a54eb5a0a | [
"Apache-2.0"
] | permissive | anwarchk/quay | 2a83d0ab65aff6a1120fbf3a45dd72f42211633b | 23c5120790c619174e7d36784ca5aab7f4eece5c | refs/heads/master | 2020-09-12T18:53:21.093606 | 2019-11-15T19:29:02 | 2019-11-15T19:29:02 | 222,517,145 | 0 | 0 | Apache-2.0 | 2019-11-18T18:32:35 | 2019-11-18T18:32:35 | null | UTF-8 | Python | false | false | 2,375 | py | import logging
import os
import base64
import hmac
from functools import wraps
from flask import session, request, Response
import features
from app import app
from auth.auth_context import get_validated_oauth_token
from util.http import abort
logger = logging.getLogger(__name__)
OAUTH_CSRF_TOKEN_NAME = '_oauth_c... | [
"jimmy.zelinskie+git@gmail.com"
] | jimmy.zelinskie+git@gmail.com |
7c82324df8e0c124b32fe046b39e3485192ab117 | afcb260d6f0c1d88232d2e300d26d8fb71b5ef43 | /django-app/config/urls.py | 34c68213f81c1a11280acec317c46cb45ec32129 | [] | no_license | JeongEuiJin/deploy-eb-docker | e5d10f65166ca8a1a4a5fdd32c9647c0d8f5feed | 1f5b57aa5e119f68c169f059e9bf88d5fbf76850 | refs/heads/master | 2020-12-02T17:46:19.905183 | 2017-07-13T07:32:36 | 2017-07-13T07:32:36 | 96,424,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"hehar1020@gmail.com"
] | hehar1020@gmail.com |
82d795efd4da1007bea5644cb68b779be1ba7674 | 865bd0c84d06b53a39943dd6d71857e9cfc6d385 | /126-word-ladder-ii/word-ladder-ii.py | 3d138f153124ee6bf15e58335c36caca5c1977cc | [] | no_license | ANDYsGUITAR/leetcode | 1fd107946f4df50cadb9bd7189b9f7b7128dc9f1 | cbca35396738f1fb750f58424b00b9f10232e574 | refs/heads/master | 2020-04-01T18:24:01.072127 | 2019-04-04T08:38:44 | 2019-04-04T08:38:44 | 153,473,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,174 | py | # Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation sequence(s) from beginWord to endWord, such that:
#
#
# Only one letter can be changed at a time
# Each transformed word must exist in the word list. Note that beginWord is not a transformed word.
#
#
# Note:
... | [
"andyandwei@163.com"
] | andyandwei@163.com |
8b29bf46fef31ffb57cdaf9a8c463b8d3377add4 | ab9de9d522d9f50a29fd5b7a59bced5add5c588b | /zoom_api/migrations/versions/c358b3b57073_added_required_tables.py | 2ef4ddfa4eb8d57d410605b440c7c06a905bab61 | [] | no_license | DmytroKaminskiy/booksharing | c97d473547109af16b58d25d6a2183493a8f17ae | 26c89a0954d07c1c9d128d05538eff879a061d2f | refs/heads/main | 2023-04-08T13:55:26.430532 | 2021-04-22T18:34:39 | 2021-04-22T18:34:39 | 330,433,074 | 0 | 0 | null | 2021-01-24T15:17:54 | 2021-01-17T16:19:35 | Python | UTF-8 | Python | false | false | 561 | py | """Added required tables
Revision ID: c358b3b57073
Revises: ddbbb5334900
Create Date: 2021-04-15 18:31:39.907841
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c358b3b57073'
down_revision = 'ddbbb5334900'
branch_labels = None
depends_on = None
def upgrade()... | [
"dmytro.kaminskyi92@gmail.com"
] | dmytro.kaminskyi92@gmail.com |
c27b701be44617207b94395a37a36f5e6ab2037f | 484a348682d9fa515666b94a5cd3a13b1b725a9e | /Leetcode/最近最少使用-缓存机制.py | 995ecc50910ddde2ceeae5df99c69464c1689d74 | [] | no_license | joseph-mutu/Codes-of-Algorithms-and-Data-Structure | 1a73772825c3895419d86d6f1f506d58617f3ff0 | d62591683d0e2a14c72cdc64ae1a36532c3b33db | refs/heads/master | 2020-12-29T17:01:55.097518 | 2020-04-15T19:25:43 | 2020-04-15T19:25:43 | 238,677,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,999 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2020-02-04 11:32:08
# @Author : mutudeh (josephmathone@gmail.com)
# @Link : ${link}
# @Version : $Id$
import os
'''
1. 当 put 一个键值对的时候,如果已经存在相应的键,则重写该值
2. 当 get 一个键时,将相应的节点提取到 head 之后
3. 一个 Hash 表中键为 key (一个值),其存储的即为双向链表中的节点地址
'''
class ListNode(object)... | [
"josephmathone@gmail.com"
] | josephmathone@gmail.com |
a30ff5b0bb92c54ed0b0a2e6332f0b6d13fcba74 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq1553.py | 7ea844d2f64eef952d9421759e00decb9d0d2c5e | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,374 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=64
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
6f609631be0bfde1bb461c37c628c17074c4b46e | b45d66c2c009d74b4925f07d0d9e779c99ffbf28 | /tests/unit_tests/economics_tests/test_helper_latest_econ.py | 49ac894caf61856731d392068233abe9b6b76693 | [] | no_license | erezrubinstein/aa | d96c0e39762fe7aaeeadebbd51c80b5e58576565 | a3f59ba59519183257ed9a731e8a1516a4c54b48 | refs/heads/master | 2021-03-12T23:44:56.319721 | 2016-09-18T23:01:17 | 2016-09-18T23:01:17 | 22,665,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,506 | py | from common.helpers.common_dependency_helper import register_common_mox_dependencies
from common.utilities.inversion_of_control import dependencies, Dependency
from economics.helpers.helpers import get_latest_econ_month
import datetime
import unittest
import mox
__author__ = 'jsternberg'
class EconomicsHelperLatestE... | [
"erezrubinstein@hotmail.com"
] | erezrubinstein@hotmail.com |
491e2f2be0b5d03dad974f7cf3db6d9cc05b6006 | 3a788125cd884688b0be8beb1cf47a4a0b6bbdeb | /bin/util/pcurl.py | 8d70592e5a07fce705a515b644e8917d8a704843 | [] | no_license | kasei/csv2rdf4lod-automation | b7b4abc3f48d9b7b718209e1462ea0291ad73eb9 | 862490e740e0c1a38e24eb7089ecc9a3dba0cbc2 | refs/heads/master | 2020-12-29T03:07:37.685161 | 2011-09-19T18:42:10 | 2011-09-19T18:42:10 | 2,156,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,319 | py | #!/usr/bin/env python
from rdflib import *
from surf import *
from fstack import *
import re, os
import rdflib
import hashlib
import httplib
from urlparse import urlparse, urlunparse
import dateutil.parser
import subprocess
import platform
from serializer import *
from StringIO import StringIO
# These are the na... | [
"mccusker@gmail.com"
] | mccusker@gmail.com |
0c90e4f791313bdfc472bd54d64c298ab5c62abe | 44220db46e8aee08eab0e7ba0ab4bc5f9daf3ee3 | /dcgan.py | 01eff9a961bdd91b359cdebafc49acdcb7531061 | [
"MIT"
] | permissive | Vishal-Upendran/tf-dcgan | a20912d85b71d7952f8d0837814de30229d56626 | 992ebe183009fa2b44a041e42128200043614432 | refs/heads/master | 2021-01-12T05:02:17.801845 | 2016-12-06T11:29:53 | 2016-12-06T11:29:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,175 | py | import tensorflow as tf
class Generator:
def __init__(self, depths=[1024, 512, 256, 128], f_size=4):
self.reuse = False
self.f_size = f_size
self.depths = depths + [3]
def model(self, inputs):
i_depth = self.depths[0:4]
o_depth = self.depths[1:5]
out = []
... | [
"sugi1982@gmail.com"
] | sugi1982@gmail.com |
134ffb7fb24df0a3817025b3502c84b399572d60 | 913110006f5f6ff03ccd2cb4bbe205ffa51a2910 | /py_scripts/NMR/NMRresidue.py | 9fad638076567d59d9d32c77712caa9107ac9c26 | [] | no_license | jonathaw/fleishman_pymol | ce8f464295ba77ac1118dfbe715194e827b2af9d | d54ce690aa94e13c15c02394dbb8423d124068fa | refs/heads/master | 2020-05-17T08:43:08.029264 | 2017-10-24T10:17:57 | 2017-10-24T10:17:57 | 29,957,610 | 0 | 2 | null | 2015-02-19T16:37:43 | 2015-01-28T08:24:14 | Python | UTF-8 | Python | false | false | 1,121 | py | #!/usr/bin/python
"""
NMRresidue.py
"""
__author__ = ['Andrew Wollacott (amw215@u.washington.edu)']
__version__ = "Revision 0.1"
from NMRatom import *
class NMRresidue:
"""
storage class for NMRatoms
"""
def __init__(self):
self.id = 0
self.name = ""
self.atom = []
def numAtoms(self):
"""
... | [
"jonathan.weinstein@weizmann.ac.il"
] | jonathan.weinstein@weizmann.ac.il |
b6d37cca07c5ee23f539da94ce614bd7ca227871 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2209/48117/263622.py | 9a7e213034068ca4279908023684588f7cd91859 | [] | 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 | 267 | py | L = int(input())
s = input()
wordsList = []
for i in range(L):
wordsList.append(input())
if s[:5] == 'ezynm':
print(300000)
elif s == 'aaaaa':
print(2)
elif s == 'abecedadabra':
print(5)
elif s[20:25] == 'aaaaa':
print(1)
else:
print(s)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
6d4d8b39c026cbc8a36386be16ebb9cf0fb9303e | ca23b411c8a046e98f64b81f6cba9e47783d2584 | /es_maml/es_maml_client.py | 5e5072cbf16140c4d8f5c902889462a222cc20a7 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | pdybczak/google-research | 1fb370a6aa4820a42a5d417a1915687a00613f9c | 0714e9a5a3934d922c0b9dd017943a8e511eb5bc | refs/heads/master | 2023-03-05T23:16:11.246574 | 2021-01-04T11:30:28 | 2021-01-04T11:30:28 | 326,629,357 | 1 | 0 | Apache-2.0 | 2021-02-01T12:39:09 | 2021-01-04T09:17:36 | Jupyter Notebook | UTF-8 | Python | false | false | 4,320 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
a6d9a76857441e05622954ce42b1269b95d379d1 | 83efa0dfe22cd6cc01fb561ba2e79166574d580c | /content/migrations/0025_update_search_text.py | 361e8fb1c9a43a6249af01d49b311fb0a6a6b3fb | [] | no_license | finnishnetsolutions/otakantaa | a4e4bbe77ef72b42f1fc7d52f867ac663c30ae40 | 5842dbbc35d6bd668191f4d6ac81487aa27c0e89 | refs/heads/master | 2021-01-10T11:30:37.702009 | 2016-05-06T13:36:54 | 2016-05-06T13:36:54 | 55,126,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from otakantaa.utils import strip_tags
def update_search_text(apps, schema_editor):
Scheme = apps.get_model('content', 'Scheme')
schemes = Scheme.objects.all()
for s in schemes:
s.search_text... | [
"erno@fns.fi"
] | erno@fns.fi |
11a4462f4029d252d116b17790b26be09f43fa18 | 5b20a8c1dee609878bde2358792622d460e05f31 | /evalai/utils/submissions.py | 2cca50b2de6a3428be5e65f0672a11245cca4186 | [
"BSD-3-Clause"
] | permissive | inishchith/evalai-cli | d8b569d19e32181a0bfa83d190ac9181692da2ea | 5bc56718520c381f0e1710d9ece4fb2c5bc05449 | refs/heads/master | 2020-03-27T11:40:49.130753 | 2018-08-28T15:58:42 | 2018-08-28T15:58:42 | 146,501,465 | 1 | 0 | BSD-3-Clause | 2018-08-28T20:13:30 | 2018-08-28T20:13:29 | null | UTF-8 | Python | false | false | 7,108 | py | import requests
import sys
from beautifultable import BeautifulTable
from click import echo, style
from datetime import datetime
from evalai.utils.auth import get_request_header, get_host_url
from evalai.utils.config import EVALAI_ERROR_CODES
from evalai.utils.urls import URLS
from evalai.utils.common import (validat... | [
"rishabhjain2018@gmail.com"
] | rishabhjain2018@gmail.com |
ffcf4a4dad0f3655f1d293e4260edaf29d8b414e | ea52444f2bc191e75df1b57f7c27d160856be8c4 | /sigma-girl-MIIRL/run_clustering_all_starcraft.py | 60ce655eb42df63748ce91b205bef53e84fa161c | [] | no_license | LeftAsAnExercise/task1-irl | e00500b50fcd4dcb0f3acaad12b86d8fce67780d | f26e8c71e60e2316a8864cfe18db631c75b6ca78 | refs/heads/master | 2023-08-16T07:44:20.433038 | 2021-10-17T18:26:54 | 2021-10-17T18:26:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,045 | py | import numpy as np
from utils import compute_gradient, load_policy, estimate_distribution_params
from run_clustering import em_clustering
import argparse
import pickle
# Directories where the agent policies, trajectories and gradients (if already calcualted) are stored
# To add agents populate this dictionary and stor... | [
"daniellawson9999@gmail.com"
] | daniellawson9999@gmail.com |
74104b452e8cd41e68511e71935646368f97a602 | 17f3568e0be991636501970fb76c4c53a71ab38d | /opsgenie_sdk/api/alert/list_alert_notes_response_all_of.py | 99f419396432078c721f4f07e3574078810826d8 | [
"Apache-2.0"
] | permissive | jkinred/opsgenie-python-sdk | 7b79ed8c7518de117887e6b76a3fbb5800b94020 | 69bbd671d2257c6c3ab2f3f113cb62bd1a941c02 | refs/heads/master | 2020-07-10T00:24:19.583708 | 2019-08-24T06:35:31 | 2019-08-24T06:35:31 | 204,118,572 | 0 | 0 | NOASSERTION | 2019-08-24T06:29:25 | 2019-08-24T06:29:24 | null | UTF-8 | Python | false | false | 3,739 | py | # coding: utf-8
"""
Python SDK for Opsgenie REST API
Python SDK for Opsgenie REST API # noqa: E501
The version of the OpenAPI document: 2.0.0
Contact: support@opsgenie.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class ListAlertNotesR... | [
"zafer@opsgenie.com"
] | zafer@opsgenie.com |
fc0d25830c60ada4c3c30ac76d6df747ce35bebe | 0cd0ffbdc849b265e8bbeb2369d6a320a21ec592 | /plugins/SettingsColorMapping.py | b86b8190d6d33665ef1eda5d4d48ac30147a1e2a | [] | no_license | ktskhai/vb25 | 7d0253d217e125036f35dd0d05fc05dbf9bc4800 | c81ba1506d12eab1a6b1536b5882aa9aa8589ae3 | refs/heads/master | 2021-01-23T01:01:11.833095 | 2013-12-03T15:01:02 | 2013-12-03T15:01:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,449 | py | '''
V-Ray/Blender
http://vray.cgdo.ru
Author: Andrey M. Izrantsev (aka bdancer)
E-Mail: izrantsev@cgdo.ru
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the Li... | [
"izrantsev@gmail.com"
] | izrantsev@gmail.com |
02f14f760f96ab9724a6dac403a19358ec93b6e9 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/nanachi_20200619190301.py | 32648dd56a93b5271d816872d3e65fa8b5ce3edd | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | import telebot
bot = telebot.TeleBot('776550937:AAELEr0c3H6dM-9QnlDD-0Q0Fcd65pPyAiM')
@bot.message_handler(content_types=['text'])
def send_text(message):
if message.text[0].lower() == "н" and check_all:
bot.send_message(message.chat.id, message.text + message.text[1:] )
bot.polling()
def check_all(... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
201776c5e0e6919d311da86f24aec57b1984a584 | f1fd82d3d9d19f171c5ac83fef418f7584b1beba | /server.py | 59a5448d2019def2bbcf9a8baa932b4c0bb195f7 | [] | no_license | adinahhh/ratings | 5fc39ac6994f342485a52cf7200322632128d0c7 | 431b713343f14f2f98d63b4fbe4731777716bf74 | refs/heads/master | 2023-02-08T14:36:04.883882 | 2020-02-25T22:31:16 | 2020-02-25T22:31:16 | 242,199,940 | 0 | 0 | null | 2023-02-02T05:14:01 | 2020-02-21T17:59:07 | Python | UTF-8 | Python | false | false | 4,239 | py | """Movie Ratings."""
from jinja2 import StrictUndefined
from flask import (Flask, render_template, redirect, request, flash,
session)
from flask_debugtoolbar import DebugToolbarExtension
from model import User, Rating, Movie, connect_to_db, db
app = Flask(__name__)
# Required to use Flask sessi... | [
"you@example.com"
] | you@example.com |
736f785df9def8088dea0aae9dabe82b16a9740c | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_10/models/file_system_clients_response.py | e1eec856f1c72463b8a3660b8bccb67ac5c2d070 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 3,213 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.10, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.10
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import t... | [
"azaman@purestorage.com"
] | azaman@purestorage.com |
bf3db0cec63be8c811c677ef82ada20aa6592901 | 55d560fe6678a3edc9232ef14de8fafd7b7ece12 | /libs/python/test/data_members.py | 37bef0d7048313adce6da1d258338609b84bedc1 | [
"BSL-1.0"
] | permissive | stardog-union/boost | ec3abeeef1b45389228df031bf25b470d3d123c5 | caa4a540db892caa92e5346e0094c63dea51cbfb | refs/heads/stardog/develop | 2021-06-25T02:15:10.697006 | 2020-11-17T19:50:35 | 2020-11-17T19:50:35 | 148,681,713 | 0 | 0 | BSL-1.0 | 2020-11-17T19:50:36 | 2018-09-13T18:38:54 | C++ | UTF-8 | Python | false | false | 2,467 | py | # Copyright David Abrahams 2004. Distributed under the Boost
# Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
'''
>>> from data_members_ext import *
---- Test static data members ---
>>> v = Var('slim shady')
>>> Var.ro2a.x
... | [
"james.pack@stardog.com"
] | james.pack@stardog.com |
c747a958e62fe8af848ebf95ee593021b8fc9fee | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/462/usersdata/308/105022/submittedfiles/avenida.py | d5a90601513ac9551b6535453d1dd15ef5a5326f | [] | 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 | 263 | py | # -*- coding: utf-8 -*-
def inteiro(texto, min, max):
valor = int(input(texto))
while min<=valor or valor>=max:
valor = int(input(texto))
return valor
m = inteiro('Informe a quantidade de quadras no sentido Norte-Sul: ', 2, 1000)
print(m) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
839694ce63e2b101bc8a70244513e7ecd986f067 | df789505c99974c0ba45adc57e52fc7865ff2a28 | /class_system/src/services/admin_service.py | c21e20a9d7b6c4e87f806b41d0643eea93644496 | [] | no_license | zhiwenwei/python | 6fc231e47a9fbb555efa287ac121546e07b70f06 | 76d267e68f762ee9d7706e1800f160929544a0a3 | refs/heads/master | 2021-01-20T04:21:44.825752 | 2018-12-19T06:20:10 | 2018-12-19T06:20:10 | 89,676,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | #-*- coding:utf-8 -*-
#Author:Kevin
import sys,os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) #添加环境变量
from models import School
def create_school():#创建学校
# try:
name = input("请输入学校名字")
addr = input("请输入学校地址:")
school_name_list = [(obj.name,obj.addr) for obj in School.ge... | [
"ddzhiwenwei@163.com"
] | ddzhiwenwei@163.com |
2206bfd7b874e66585e69e7e4f615ef67045f700 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4065/codes/1602_2894.py | 28a0e854a1d6a6c2f3a6d82537d62a75f1b0641b | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # Este código é apenas um ESBOÇO da solução.
# Modifique-o para atender as especificações do enunciado.
# Leitura das entradas e conversao para float:
var = float(input("Qual o valor unitario do jogo? "))
# Calculo do valor a ser pago, incluindo o frete:
total = float(var*8 + 45)
# Impressao do valor total:
print(to... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
683053f40d2cf500cb405bf87ac2b8c2729e555a | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/gos_20200614062720.py | d6f85c522d6e82fc164a1c2ba47e9fea286c6ff5 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,421 | py | # # Імпорт фажливих бібліотек
# from BeautifulSoup import BeautifulSoup
# import urllib2
# import re
# # Створення функції пошуку силок
# def getLinks(url):
# # отримання та присвоєння контенту сторінки в змінну
# html_page = urllib2.urlopen(url)
# # Перетворення контенту в обєкт бібліотеки BeautifulSoup
#... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
b13da817aede04b68ad39c188fb32a758e46b488 | 490957cf9130f1596c9f81bacff90b13f25eb2e6 | /Problems/Even numbers/task.py | 9cb7f6f386b84458325d9faeb5412c7818ca756b | [] | no_license | TonyNewbie/PaswordHacker | 6eb021e3660aba94d020a7b581dc2787b57556c0 | ac70d64cba58e83e88c00fb2f9c4fcc552efcc35 | refs/heads/master | 2022-11-19T03:29:53.300586 | 2020-07-13T10:37:34 | 2020-07-13T10:37:34 | 279,272,910 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | n = int(input())
def even():
i = 0
while True:
yield i
i += 2
# Don't forget to print out the first n numbers one by one here
new_generator = even()
for _ in range(n):
print(next(new_generator))
| [
"prostomaster90@gmail.com"
] | prostomaster90@gmail.com |
5178c6bc234c586a65edf654fd074b59e5be7adb | 40c677f1e39ba53063ced109f4bf23d16162a899 | /orders/views.py | b01d47e358988cc750df02d17479979112a55445 | [] | no_license | AminMohamedAmin/Online-Restaurant-System- | ee25b5d7ff7e52dc6b2ac632f0dd58e38022f6bb | b9aa2d8b8d69ab56437d4b4d039fc935b0b85227 | refs/heads/master | 2022-08-24T21:24:30.224785 | 2020-05-26T11:49:34 | 2020-05-26T11:49:34 | 267,028,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | from django.shortcuts import render, redirect,get_object_or_404
from django.urls import reverse
from .forms import OrderCreateForm
from .models import OrderItem, order
from cart.cart import Cart
############### pdf ####################
from django.contrib.admin.views.decorators import staff_member_required
from django... | [
"ameenman50@gmail.com"
] | ameenman50@gmail.com |
6e13b2cc1879d6fcbf5967e111777d18af637fa9 | 8a73cde463081afd76427d5af1e6837bfa51cc47 | /harvester/metadata/management/commands/compare_study_vocabularies.py | 65b82b39e3f1630c29dd6a3827f8bc7c7eecb52d | [
"MIT"
] | permissive | surfedushare/search-portal | 8af4103ec6464e255c5462c672b30f32cd70b4e1 | 63e30ad0399c193fcb686804062cedf3930a093c | refs/heads/acceptance | 2023-06-25T13:19:41.051801 | 2023-06-06T13:37:01 | 2023-06-06T13:37:01 | 254,373,874 | 2 | 1 | MIT | 2023-06-06T12:04:44 | 2020-04-09T13:07:12 | Python | UTF-8 | Python | false | false | 2,940 | py | import requests
import re
from django.core.management.base import BaseCommand
from metadata.models import MetadataValue
uuid4hex = re.compile(r'(?P<uuid>[0-9a-f]{8}\-[0-9a-f]{4}\-4[0-9a-f]{3}\-[89ab][0-9a-f]{3}\-[0-9a-f]{12})', re.I)
class Command(BaseCommand):
@staticmethod
def _get_node_label(node):
... | [
"email@fakoberkers.nl"
] | email@fakoberkers.nl |
81986ebbff0325c513016a51c2583cc663f4f483 | 03d4f548b0f03d723c776a913c0814508052fbd4 | /src/tsgettoolbox/ulmo/util/__init__.py | 2b22dc7d4c5466883b30a8cf364eede652549a80 | [
"BSD-3-Clause"
] | permissive | timcera/tsgettoolbox | 2cee41cf79fd2a960d66066df5335bb1816f8003 | 1ca7e8c224a8f7c969aff1bbb22f13930cb8f8b0 | refs/heads/main | 2023-09-06T03:22:17.785382 | 2023-07-27T04:06:22 | 2023-07-27T04:06:22 | 40,149,564 | 14 | 4 | BSD-3-Clause | 2022-09-16T23:00:40 | 2015-08-03T21:47:57 | Python | UTF-8 | Python | false | false | 940 | py | from .misc import (
camel_to_underscore,
convert_date,
convert_datetime,
dict_from_dataframe,
dir_list,
download_if_new,
get_ulmo_dir,
mkdir_if_doesnt_exist,
module_with_dependency_errors,
module_with_deprecation_warnings,
open_file_for_url,
parse_fwf,
raise_dependenc... | [
"tim@cerazone.net"
] | tim@cerazone.net |
489041c27386827df9ebe9a86ebd99213371c75d | 5b5a49643c75aa43d5a876608383bc825ae1e147 | /python99/misc/p702.py | 8888db3ce4a8bc0a289bf66437324404ec628a4c | [] | no_license | rscai/python99 | 281d00473c0dc977f58ba7511c5bcb6f38275771 | 3fa0cb7683ec8223259410fb6ea2967e3d0e6f61 | refs/heads/master | 2020-04-12T09:08:49.500799 | 2019-10-06T07:47:17 | 2019-10-06T07:47:17 | 162,393,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | def knight_tour(n):
return [[(1, 1)]+path for path in doTour(n, n*n-1, (1, 1), [(1, 1)])]
def doTour(n, m, start, path):
if m == 0:
return [[]]
availableMoves = getAvailableMoves(n, path, start)
return [[moveTo(start, move)]+remainPath
for move in availableMoves
for rem... | [
"ray.s.cai@icloud.com"
] | ray.s.cai@icloud.com |
adf28e920deddf72529dcb0823b1473ab4f87eba | ae9ce341ffb6b6d0587b04af81d8a25d81adc987 | /src/core/migrations/0001_initial.py | 96305126d9e1be6c432a17f0620d4a7bf2e73231 | [] | no_license | MrTsepa/track_web | 7eda8e0cdcb2c384b57569b59f03a7d4ad0c4543 | 276860bdeb42a2b27002e1e19eca0383ffb27b0e | refs/heads/master | 2021-01-12T17:53:15.769984 | 2016-12-27T17:44:15 | 2016-12-27T17:44:15 | 71,288,968 | 0 | 0 | null | 2016-12-25T19:12:27 | 2016-10-18T20:34:17 | JavaScript | UTF-8 | Python | false | false | 3,021 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-10-18 16:09
from __future__ import unicode_literals
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"tsepa.stas@gmail.com"
] | tsepa.stas@gmail.com |
4606275fa5d9e722d6644f7d7cf1c37e42c82127 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_230/ch168_2020_06_15_19_49_26_764111.py | 6d30c2c492a8b42526eb6299bf967924d030cb9f | [] | 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 | 678 | py | def login_disponivel(login, lista):
novo_login=0
num=0
if login not in lista:
lista.append(login)
return login
else:
for logins in lista:
if login!=logins:
continue
else:
num+=1
novo_login=login+str(num)
... | [
"you@example.com"
] | you@example.com |
fb2a17ee074aee2dd601440a013c1d40a2e94c24 | 2b54b1fb1540ab73d6c83cae3acd5fdd58bdead5 | /Platinum_clusters_Project/Pt7O11_richness/Ptoxides_zorderimage_new.py | 5c29ede674b6b65b4573cae10e0835fa87be76a9 | [] | no_license | sivachiriki/GOFEE_Pt_V_supported | 5787d44294262870075f35f2d31c096021b7ce20 | 6bd700dac1f3e7c58394b758d75246ac6e07eade | refs/heads/master | 2022-04-08T11:38:13.038455 | 2020-03-09T10:48:31 | 2020-03-09T10:48:31 | 226,359,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,547 | py | from __future__ import division
import matplotlib
#matplotlib.use('Agg') # Can also use 'tkagg' or 'webagg'
#from plot_neb_tio2 import *
from matplotlib.offsetbox import TextArea, VPacker, AnnotationBbox
import matplotlib.patches as patches
from math import ceil, floor
import matplotlib.pyplot as plt
from ase.io impor... | [
"sivachiriki@phys.au.dk"
] | sivachiriki@phys.au.dk |
19fe4733092470c04d9b22d2264b885c70a14290 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /QcswPnY2cAbrfwuWE_24.py | 87292310bdc04e8e32529844946ccbcd1e95cb45 | [] | 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 | 618 | py | """
Create a function that filters out factorials from a list. A factorial is a
number that can be represented in the following manner:
n! = n * (n-1) * (n-2) * ... * 3 * 2 * 1
Recursively, this can be represented as:
n! = n * (n-1)!
### Examples
filter_factorials([1, 2, 3, 4, 5, 6, 7]) ➞ [1, 2, 6]
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
40282fc5a8d13a3550a7977c79d53dc897d2564a | 3a17b31ed9250b38de3b9fd9db8d3d3a8719222c | /setup.py | 1b13c01094f9aa2e0ecd2d15e8c084c887a0422e | [
"MIT"
] | permissive | a627414850/Macropodus | 4cc9bb48408b832cdc890a098a7ea8dc64328ba1 | 1d7b8f9938cb8b6d7744e9caabc3eb41c8891283 | refs/heads/master | 2023-02-15T09:04:35.889058 | 2020-12-25T14:29:04 | 2020-12-25T14:29:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,566 | py | # -*- coding: UTF-8 -*-
# !/usr/bin/python
# @time :2019/12/30 22:17
# @author :Mo
# @function :setup of Macropodus
# @codes :fix it and copy reference from https://github.com/TianWenQAQ/Kashgari/blob/master/setup.py
from macropodus.version import __version__
from setuptools import find_packages, setup
impor... | [
"2714618994@qq.com"
] | 2714618994@qq.com |
ab7557f54c78b00a84b9184bb4bae7e516208f59 | c0156da1c81a3a76e397974399c7345d082eca9b | /venv/lib/python3.7/site-packages/webdav/common.py | 5ba8b2c9e55df9fcb895045c8a1ca7c86de54bb2 | [
"Apache-2.0"
] | permissive | leanhvu86/matrix-server | 1823c60fc6ba5ed489bb5720474c6b56a9aec688 | 6e16fc53dfebaeaf222ff5a371ccffcc65de3818 | refs/heads/master | 2023-05-09T01:21:37.774510 | 2021-05-21T15:10:48 | 2021-05-21T15:10:48 | 369,569,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,095 | py | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | [
"leanhvu86@gmail.com"
] | leanhvu86@gmail.com |
cccc8870f7ed30c693be4991c997bd40760e5ee8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_180/ch62_2019_10_02_15_14_58_527777.py | b4ad3aad05eeb567a0a0710d004c18a93d56a9fd | [] | 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 | 157 | py | def filtra_positivos(lista):
lista_positivos = []
for i in lista:
if i > 0:
lista_positivos.append(i)
returnn lista_positivos | [
"you@example.com"
] | you@example.com |
d8a55ec8bdd74b0f3ae4fc16b7c292a0b5ab4452 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/python/estimator/canned/linear.py | a870fe7a1fe83f1323f5d1b7383d5c93f2edf5e8 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e4a29da17634359c96032259089138e261570186b23d8d3ede31721e341ba111
size 1310
| [
"github@cuba12345"
] | github@cuba12345 |
8881a9b4109aac6cccaa8aad8b8db98a4aecf08a | c0f4104194a7989e44d7f0161b2425c5a5bc3a98 | /tacker/agent/linux/daemon.py | e60c6d9210e2a6984c2d5f8ba4f96c7331599496 | [] | no_license | bopopescu/Openstack-2 | f65470bdd0ee4736c45b6f869f0453cb8eb446c8 | 6f06133562e3dfd490695a92c9ddf1a322675104 | refs/heads/master | 2022-11-28T09:19:21.633850 | 2016-06-23T07:55:32 | 2016-06-23T07:55:32 | 282,095,817 | 0 | 0 | null | 2020-07-24T01:44:49 | 2020-07-24T01:44:48 | null | UTF-8 | Python | false | false | 4,324 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2012 New Dream Network, LLC (DreamHost)
#
# 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/li... | [
"egonmin@CN00119199"
] | egonmin@CN00119199 |
8ee2f1b168cb673bb9e1196e8e8507088a55e75b | 7300fc72162568f886e04509431359a62a09da79 | /lino_xl/lib/phones/mixins.py | cfc73974e2bfd9b6033a7d3015cfbcb1ca35f494 | [
"BSD-2-Clause"
] | permissive | forexblog/xl | ad27aa1e9f5669f8a78ec55f4b7d0bd952da6327 | 130303647d01c0d8271f770f3054907c183dc1e8 | refs/heads/master | 2023-03-04T01:44:39.485452 | 2021-02-13T08:18:16 | 2021-02-13T08:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,590 | py | # Copyright 2017-2019 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
from etgen.html import E, join_elems
from lino.api import rt, dd, _
from lino.core.diff import ChangeWatcher
from lino.mixins import Contactable, Phonable
from .choicelists import ContactDetailTypes
class ContactDetailsOwner(Contacta... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
2e7b9dada3d2c6d1f5775277b7fedd5aaa57321b | c29b838371729ac04744b40d486f0b55212990b6 | /Spider-Learn/Spider/chapter4_analyse_library_pyquery.py | 5ec6b154f29be6291fe4c1e9b4b48b87708a9f36 | [] | no_license | Sugarsugarzz/PyPractice | 93c3155a94d162c9eabf0d1a641d28bc6d639c22 | d91b7d6ca996792fe409c08862fa9da5b1dc319b | refs/heads/master | 2023-02-13T01:51:24.909947 | 2021-01-20T02:57:22 | 2021-01-20T02:57:22 | 163,177,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,717 | py |
#****** 4.3 使用pyquery ******
# 适合于用CSS选择器较多的情况
# 1、安装
# pip3 install pyquery
import pyquery
# 引入PyQuery,别名py
from pyquery import PyQuery as pq
# 2、初始化
# 传入一个参数来初始化Pyquery
# *字符串初始化
html = '''
<div>
<ul>
<li class="item-0">first item</li>
<li class="item-1"><a href="link2.html">second item</a></li>
<li cla... | [
"406857586@qq.com"
] | 406857586@qq.com |
c46eea6ac70388e3126470a5470b481d84d8b08e | a7b66311c2ce113789933ec3162f1128b2862f13 | /app/waterQual/EPA/ntnModel/wrapCl.py | 1059b5ef803b609b8ac5c26f307b198b30e4359e | [
"MIT"
] | permissive | ChanJeunlam/geolearn | 214b2c42359ea1164b39117fad2d7470adeb6d35 | 791caa54eb70920823ea7d46714dc8a3e7fa7445 | refs/heads/master | 2023-07-16T04:13:15.526364 | 2021-08-16T05:24:18 | 2021-08-16T05:24:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,772 | py | import os
import time
import pandas as pd
import numpy as np
import json
from hydroDL import kPath
from hydroDL.data import usgs, gageII, gridMET, transform
# varC = usgs.varC
varC = ['00940']
siteNoLst = ['0422026250', '04232050', '0423205010']
nFill = 3
varG = gageII.lstWaterQuality
caseName = 'chloride'
# add a st... | [
"geofkwai@gmail.com"
] | geofkwai@gmail.com |
c4a71d58b51d50f238a0fcfefb454888e76cbac3 | c3cf442e56969e98fbd392ee89bd85b3e22d5cd2 | /python/Spider/github_login2.py | ddd07e038a2e21d86bbac1715e399e0fe3d6860d | [] | no_license | Eacaen/diff_Code_Learn | bd4bd409f0027ab3d606ef029de9ae4a3af09775 | e55619c5736181fd50666b61d06e6ed7cafc4394 | refs/heads/master | 2021-01-12T07:55:54.127018 | 2019-11-07T10:42:05 | 2019-11-07T10:42:05 | 77,052,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,942 | py | # -*- coding:utf-8 -*-
import requests
import re
session = requests.Session()
# header = {
# "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
# "Accept-Encoding": "gzip, deflate, sdch, br",
# "Accept-Language": "zh-CN,zh;q=0.8",
# "Cache-Control": "max-age=0",
# ... | [
"501556184@qq.com"
] | 501556184@qq.com |
dab468facc509b0bc4a17bf71d78d2f64e565972 | 0689ad04900b45e6ffb85756e65e96f30781558b | /py44/数据/day06/demo03_vectorize.py | 53433c685f1e8058eb2bb0adb205b8acc6cb2766 | [] | no_license | lizhihui16/aaa | a5452b5d0de4c2ad6342fce1b8aef278d2d2943e | e8c38e012f6aa0bc05ac6481d6c3e2b4e9013b56 | refs/heads/master | 2020-04-24T01:05:19.266060 | 2019-02-20T01:43:51 | 2019-02-20T01:43:51 | 171,586,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
'''
vectorize矢量化案例
'''
import numpy as np
import math as m
def foo(x, y):
return m.sqrt(x**2 + y**2)
x, y = 3, 4
print(foo(x, y))
x = np.array([3, 4, 5, 6])
y = np.array([4, 5, 6, 7])
# z = foo(x, y) 错误
# 把foo函数矢量化处理
foo_v = np.ve... | [
"tarena@tedu.cn"
] | tarena@tedu.cn |
9012a4c3c7502633f1df59574ab7602af3edaaeb | 533c298a21e865d190e69b0c95a0f9ecd9dd8d8b | /reviewboard/__init__.py | 016a72ad23705cdef9d791d57c91bf2bda9806f0 | [
"MIT"
] | permissive | djs/reviewboard | cb78573890b821cbc228fb43a1bdb8e337d5e9d5 | 813158fbb31d7889e224f3fc1350fd4a791874ec | refs/heads/master | 2021-01-15T22:41:24.101928 | 2009-09-23T09:54:41 | 2009-09-23T09:54:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | # The version of Review Board.
#
# This is in the format of:
#
# (Major, Minor, Micro, alpha/beta/rc/final, Release Number, Released)
#
VERSION = (1, 1, 0, 'alpha', 2, False)
def get_version_string():
version = '%s.%s' % (VERSION[0], VERSION[1])
if VERSION[2]:
version += ".%s" % VERSION[2]
if ... | [
"chipx86@chipx86.com"
] | chipx86@chipx86.com |
4e0e82716584b6f00ebb5773c0e041000aa55a11 | 1d9138d777744fa2d9d6e3b629a43041f2358d06 | /real_time/abc/118/B.py | 0cbaafe88c142600626cc3f11fe6341f0d44f97f | [] | no_license | Yuyats/AtCoderAnswers | f1956b790ee64a4d0b3b48b98791a91679a30244 | fac7e3eb74a888e77ba7a6b6a15d836c589baa3e | refs/heads/master | 2021-06-24T16:19:45.848524 | 2021-06-13T03:51:07 | 2021-06-13T03:51:07 | 198,857,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, random, time, copy, functools
sys.setrecursionlimit(10**7)
inf = 10 ** 20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]
def ... | [
"unitednum@gmail.com"
] | unitednum@gmail.com |
8b2fb070f5bd9c5bfb41af82e806c1cdd09c1850 | e764c69d09cb69653817df8fa410ce7a31dd5d1d | /residuosWebapp/residuos/models.py | 95607856e983b103db5e578608aeadf61d6b7687 | [] | no_license | fafaschiavo/residuosWebbapp | 5620d60a933e3894864c89de232ebebf11df6a5f | f1915bc1f136801e96c5bf01bd7d5127eddb8551 | refs/heads/master | 2021-01-20T17:12:27.770482 | 2016-08-14T22:26:03 | 2016-08-14T22:26:03 | 65,656,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class members(models.Model):
first_name = models.CharField(max_length=200)
last_name = models.CharField(max_length=200)
email = models.CharField(max_length=200)
phone = models.CharField(max_length=200)
created_at = mo... | [
"fayschiavo@gmail.com"
] | fayschiavo@gmail.com |
33c85c8bf476a439d5dacd0afbbd365c0df5f844 | fb65b7c000642dca68c93ee85a87795b3f30fe21 | /Advance_Python/Quantifiers/Rule4.py | 2c441191c03a5512a02d8b5f8398a98bb93e4222 | [] | no_license | toncysara17/luminarpythonprograms | f41b446251feba641e117d87ce235dc556086f8f | 17bc37c3f83c0e9792aaa8bccd901371a6413f14 | refs/heads/master | 2023-04-17T18:51:31.493118 | 2021-04-20T05:25:02 | 2021-04-20T05:25:02 | 358,550,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #Quantifiers
import re
x = "a{3}" #no of a position
r="aaa abc aaaa cga"
matcher=re.finditer(x,r)
for match in matcher:
print(match.start())
print(match.group()) | [
"toncysara12@gmail.com"
] | toncysara12@gmail.com |
02ca81936a9bbc323cdc7593087daf093dfe7a6a | dc0d7e49eafe40f1c41f631621a6ccdefdcbbf7c | /press/log.py | fd7a77624aba7893cf089a1fce44ac9a436ccd5f | [] | no_license | jr0d/press | b2314b319da5b44d23110036064775796246c5c1 | 477b78700b644b2d333f4d9289f319a52fc54100 | refs/heads/master | 2021-06-15T20:44:18.061919 | 2019-04-24T17:01:37 | 2019-04-24T17:01:37 | 80,559,927 | 7 | 3 | null | 2021-03-25T21:49:09 | 2017-01-31T20:38:44 | Python | UTF-8 | Python | false | false | 830 | py | import logging
FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
def setup_logging(log_level=logging.ERROR,
console_logging=True,
log_file=None,
cli_debug=False):
press_logger = logging.getLogger('press')
press_cli_logger = logging.getLogge... | [
"jared.rodriguez@rackspace.com"
] | jared.rodriguez@rackspace.com |
6ab505a1ac637cbf578adba0cb1b1eb19c59b563 | 4ad94b71e30883d6df07a3277265bd6fb7457ba7 | /python/examples/doc_examples/plot/axis_title_3d.py | e81c6c337eadf7fd0d7458a698deea9e1388cc48 | [
"MIT"
] | permissive | Tecplot/handyscripts | 7cb1d4c80f323c785d06b0c8d37aeb0acb67f58c | 84a89bfecff5479a0319f08eb8aa9df465283830 | refs/heads/master | 2023-08-22T15:29:22.629644 | 2023-08-12T01:19:59 | 2023-08-12T01:19:59 | 149,826,165 | 89 | 64 | MIT | 2022-01-13T01:11:02 | 2018-09-21T22:47:23 | Jupyter Notebook | UTF-8 | Python | false | false | 1,345 | py | from os import path
import tecplot as tp
from tecplot.constant import PlotType, SurfacesToPlot, Color, AxisTitleMode
examples_dir = tp.session.tecplot_examples_directory()
infile = path.join(examples_dir, 'SimpleData', 'F18.plt')
dataset = tp.data.load_tecplot(infile)
plot = tp.active_frame().plot(PlotType.Ca... | [
"55457608+brandonmarkham@users.noreply.github.com"
] | 55457608+brandonmarkham@users.noreply.github.com |
5a9c07053f256cb8360b535a35fb9b97ed2bcae8 | c652797f5303bb7102967fc6603e5704025afb36 | /gamelayer/uitools/textline.py | 179db7b1680cae5dd59791572dfc2579cff6863c | [
"MIT"
] | permissive | Windspar/Gamelayer | fc1ce499cccb6530a4dcd446f9d86fd44026e564 | 65e1cf11548bc02bc49348eb265c209172c14844 | refs/heads/master | 2022-06-13T08:06:37.828771 | 2020-05-07T17:17:59 | 2020-05-07T17:17:59 | 258,047,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,569 | py | import string
from pygame import KMOD_CTRL, Rect, KEYDOWN, MOUSEMOTION, MOUSEBUTTONDOWN
from .label import Label
from .ui_base import UI_Base
from .textline_core import *
class TextLine(UI_Base):
def __init__(self, font, color, callback, rect, allowed_keys=None, *groups):
UI_Base.__init__(self, rect, (0, 0... | [
"kdrakemagi@gmail.com"
] | kdrakemagi@gmail.com |
20aed6156cab0fb01197eb7232f5d902cc34d1ae | 5023f3f6f493a6cf3a6e4acf7ee742fdecc2a558 | /ScopeFoundryHW/newport_esp300/esp300_xyz_stage_hw.py | ea5170c66505e93c87a73e26db3c8a6b14c200da | [
"BSD-3-Clause"
] | permissive | erictang000/stackbot | 1a0de1a30c0b17a67808cbb7f084149f0c744070 | e9a20930d790c995163192b29394a266af54a3d0 | refs/heads/master | 2022-04-10T06:48:25.785204 | 2020-03-18T23:08:57 | 2020-03-18T23:08:57 | 248,362,086 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,673 | py | from ScopeFoundry.hardware import HardwareComponent
class ESP300XYZStageHW(HardwareComponent):
name = 'esp300_xyz_stage'
def __init__(self, app, debug=False, name=None, ax_names='xyz'):
"""
ax_names defines the names of the three axes connected to the stage.
if an "_" un... | [
"esbarnard@lbl.gov"
] | esbarnard@lbl.gov |
761694d396861a5c422b785015b5680bb34787ac | 81f6fd135813f3727576bd5d74acaf0469b53615 | /test/test_variables_api.py | 92de66d295e33ba672eaac9f15c6edcb303a029b | [] | no_license | rlisowski/phrase-python | cb65ded1e80d1985aa95a4403c7aa3f012bd33b4 | cbd6bf580a74140928b7536bb9b466d43276cc29 | refs/heads/master | 2023-06-18T09:24:43.916142 | 2021-07-15T14:21:58 | 2021-07-15T14:21:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | # coding: utf-8
"""
Phrase API Reference
The version of the OpenAPI document: 2.0.0
Contact: support@phrase.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import phrase_api
from phrase_api.api.variables_api import VariablesApi # noqa: E... | [
"support@phrase.com"
] | support@phrase.com |
673e7667066dc50650cfcf844997ca18b98537de | 4ba18540bfd8c523fe39bbe7d6c8fa29d4ec0947 | /atlas/testing/auth_acceptance/config.py | 8cd7cc13ffa195f811cd91010896c159bec16db3 | [
"BSD-3-Clause",
"MIT",
"CC0-1.0",
"Apache-2.0",
"BSD-2-Clause",
"MPL-2.0"
] | permissive | yottabytt/atlas | c9d8ef45a0921c9f46d3ed94d42342f11488a85e | b040e574fbc64c833039b003f8a90345dd98e0eb | refs/heads/master | 2022-10-14T11:12:12.311137 | 2020-06-13T13:19:35 | 2020-06-13T13:19:35 | 272,008,756 | 0 | 0 | Apache-2.0 | 2020-06-13T12:55:29 | 2020-06-13T12:55:28 | null | UTF-8 | Python | false | false | 1,381 | py |
# separates test runs
from uuid import uuid4
TEST_UUID = uuid4()
def set_foundations_home():
import os
os.environ["FOUNDATIONS_HOME"] = os.getcwd() + "/auth_acceptance/foundations_home"
os.environ["FOUNDATIONS_COMMAND_LINE"] = "True"
def _flattened_config_walk():
import os
import os.path as p... | [
"mislam@squareup.com"
] | mislam@squareup.com |
aa94f2a5beb0b786f90536824232dccead006413 | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/zhzd_3_20190605095859.py | fff25287104a8fd3c22d7bf52709955151761a05 | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | import time
import math
import os
import sys
import os, os.path,shutil
import codecs
import EMRdef
import re
import pandas as pd
emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHRzhzd')#txt目录提取
dis = open(r'C:\Users\Administrator\Desktop\ICD-10.txt',errors='ignore')
ds=dis.readlines()
ds_cs = []
for line in ds:
line ... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
f25a62b621331ffbb01cb7d174dcc64601a12e56 | 032a1ad3c94e1126729417a16e2a95743d121244 | /cell_fitting/optimization/evaluation/plot_sine_stimulus/when_doublet_start.py | d9a7d6b7ffa9710e6429e0347cd53e945c59af5e | [] | no_license | cafischer/cell_fitting | 0fd928f5ae59488e12c77648c2e6227c1911d0e9 | 75a81987e1b455f43b5abdc8a9baf6b8f863bee2 | refs/heads/master | 2021-01-23T19:27:30.635173 | 2019-09-14T08:46:57 | 2019-09-14T08:46:57 | 44,301,986 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | from __future__ import division
import matplotlib.pyplot as pl
from matplotlib.patches import Rectangle
from matplotlib.colors import Normalize
import numpy as np
import os
from nrn_wrapper import Cell
from cell_fitting.optimization.evaluation.plot_sine_stimulus import simulate_sine_stimulus
from cell_characteristics.a... | [
"coralinefischer@gmail.com"
] | coralinefischer@gmail.com |
df74c510b2fa1f4bec7ac08c8ae445e9eb2ce365 | f259ca399ab33b5c2e66ae07921711ea5917ac9e | /pytorch/sphere20a.py | d4ce73637194c4236b20b4eb2bb1a4d6717c6d89 | [] | no_license | jizhuoran/HyperTea_Maker | 9a7930e1d6af995c8fdb9a15354eea5fc29f0806 | 2c3f8dfcb699495093165cd986eebedfb17a2433 | refs/heads/master | 2020-04-22T19:32:39.385611 | 2019-04-14T15:12:06 | 2019-04-14T15:12:48 | 170,610,900 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,046 | py | import torch.nn as nn
import torch
class sphere20a(nn.Module):
def __init__(self,classnum=10574,feature=False):
super(sphere20a, self).__init__()
self.classnum = classnum
self.feature = feature
#input = B*3*112*96
self.conv1_1 = nn.Conv2d(3,64,3,2,1) #=>B*64*56*48
s... | [
"jizr@connect.hku.hk"
] | jizr@connect.hku.hk |
42978fcaa46628548561391c85f29c13b5e7dd6d | 44600adf1731a449ff2dd5c84ce92c7f8b567fa4 | /colour_down/examples/plotting/examples_volume_plots.py | 769af73894ba737a07e58c6c32c7848950048d7f | [] | no_license | ajun73/Work_Code | b6a3581c5be4ccde93bd4632d8aaaa9ecc782b43 | 017d12361f7f9419d4b45b23ed81f9856278e849 | refs/heads/master | 2020-04-11T23:16:43.994397 | 2019-12-28T07:48:44 | 2019-12-28T07:48:44 | 162,161,852 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | # -*- coding: utf-8 -*-
"""
Showcases colour models volume and gamut plotting examples.
"""
import numpy as np
from colour.plotting import (RGB_colourspaces_gamuts_plot, RGB_scatter_plot,
colour_plotting_defaults)
from colour.utilities import message_box
message_box('Colour Models Volume... | [
"ajun73@gmail.com"
] | ajun73@gmail.com |
ead60febeb04e387de8528926f63dddb77c1025d | d27b030ce654d523b266821080acb246d71a85af | /PDB/clrender.py | b5283cb280bcb2552552a4dac8d1945ddc356746 | [] | no_license | amiller/graphicsii | 9b6d638591a8df3267865a1be83cb1591586f662 | da6cc6347d2b1f344056b71358a4b5b8efabdb77 | refs/heads/master | 2016-09-03T06:23:42.297039 | 2011-05-02T02:39:15 | 2011-05-02T02:39:15 | 1,689,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,923 | py | import pyglet.gl
from OpenGL.GL import *
from OpenGL.GLU import *
from molecule import Molecule
import pyopencl as cl
import numpy as np
def print_info(obj, info_cls):
for info_name in sorted(dir(info_cls)):
if not info_name.startswith("_") and info_name != "to_string":
info = getattr(info_cls... | [
"amiller@dappervision.com"
] | amiller@dappervision.com |
21e1b0da1f6e231a3370a401206faebd2f2aff3e | c351c54ff292d4ce8628cf033f8f3026829d79f3 | /blog_api/apis/authorization_layer/python/bin/pyrsa-keygen | 126ebac139a75ad6bfe8c1f5d7e0f83016d8882e | [] | no_license | MathiasDarr/Portfolio | 424ba0d3bd3b36bb9be09a31ea0b9bca2d3cc568 | 0eb6377d9aedba75ac30a0a5583f47dc31d31810 | refs/heads/master | 2023-02-06T04:33:44.123544 | 2020-12-31T08:35:45 | 2020-12-31T08:35:45 | 261,949,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | #!/home/mddarr/data/anaconda3/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import keygen
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(keygen())
| [
"mddarr@gmail.com"
] | mddarr@gmail.com | |
7ecaa4450f543c9a68460f1cc3e01872c9cb707f | 09ee86d0bd77ca79992f073b6c8b1e98b88cb09b | /resource_allocation.py | df8c166cbc456843a049ef8501f85c59300fe21a | [] | no_license | JaneWuNEU/hitdl_server | 624fbb5cfea3641cb624a291ed6de1e274982463 | 9076a813c803bc9c47054fff7bae2824304da282 | refs/heads/master | 2022-12-29T22:14:44.496492 | 2020-10-13T01:58:19 | 2020-10-13T01:58:19 | 303,327,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,589 | py | import cvxpy as cp
import numpy as np
c1 = np.array([1,3,5])
e1 = np.array([1.505,1.351,1.27])*c1
c2 = np.array([2,5,7])
e2 = np.array([1.844,1.502,1.843])*c2
c3 = np.array([1,5])
e3 = np.array([1.505,1.148])*c3
C = 12
'''
x1 = cp.Variable(name="inception",shape=(len(c1),1),integer=True,pos=True)
y1 = cp.Variable(sh... | [
"neu_15_wujing@126.com"
] | neu_15_wujing@126.com |
bef5e7923ef0e16ee3bfb5807262adf9b9c54494 | 159f1032e3da50f15718e2ca99f6a3e50642b4b0 | /disquaire_project/disquaire_project/settings.py | b5ca2ae7e481309473f430f6948a4b80df16b46c | [] | no_license | Ellobo1er/disquaire_project | a3b29372dfe95f9938cd84723633f0ef3120ab3e | 0af1d93b2f8aa6302cb6ecb0b2d5b3bd7ddcb2ef | refs/heads/master | 2023-06-28T14:23:54.285800 | 2021-07-29T16:01:23 | 2021-07-29T16:01:23 | 390,767,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,373 | py | """
Django settings for disquaire_project project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
fr... | [
"you@example.com"
] | you@example.com |
6618838361e332c0f1e2a1d03010d913848c0609 | 4144df22392350035a9a24fcbc23fd1c6bce5c12 | /Lib/glyphNameFormatter/rangeProcessors/ipa_extensions.py | ccf36e61c84dd3c9b8071eb6a3377ab9c632c3e7 | [
"BSD-3-Clause",
"Adobe-Glyph"
] | permissive | danielgrumer/glyphNameFormatter | 55b6076684bed7ff4cc6e37ce4a0bb0e2ce86a4a | 9a41b3ef02c01cd18afe0232f6e436a2f7379178 | refs/heads/master | 2020-12-11T05:35:47.835908 | 2016-03-19T09:50:33 | 2016-03-19T09:50:33 | 53,578,090 | 0 | 0 | null | 2016-03-10T11:07:31 | 2016-03-10T11:07:30 | null | UTF-8 | Python | false | false | 1,329 | py |
def process(self):
self.edit("LATIN")
self.edit("OPEN", "open")
self.edit("WITH FISHHOOK", "fishhook")
self.edit("SCRIPT", "script")
self.edit("WITH BELT", "belt")
self.edit("WITH MIDDLE TILDE", "middletilde")
self.edit("WITH LONG LEG", "longleg")
self.edit("WITH CROSSED-TAIL", "crossed... | [
"frederik@typemytype.com"
] | frederik@typemytype.com |
e6fae05c449f2092d5fda416fb23b95be3b3aa1f | 73105a000374f7bbe97dac50b91b0c019826a1ba | /account/pipelines.py | 8fb36edc4bd7c7340a1ddea7f7606a19b22a27d7 | [
"MIT"
] | permissive | carpedm20/UNIST-auction | 657e80840e4c6adbfaeebd118acc03d4e04cc2a5 | f2db1d6fdb2c7781b3c142f8a2582888e24ad06d | refs/heads/master | 2021-01-22T04:43:55.844905 | 2014-10-21T14:01:32 | 2014-10-21T14:01:32 | 22,419,149 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | from social_auth.backends.facebook import FacebookBackend
from social_auth.backends.twitter import TwitterBackend
from social_auth.backends import google
from social_auth.signals import socialauth_registered
def get_user_avatar(backend, details, response, social_user, uid,\
user, *args, **kwargs):
... | [
"carpedm20@gmail.com"
] | carpedm20@gmail.com |
6237d5cd45456cf4aea5e5eaa2cd7525a5a0f984 | 22bf910b64283b3c15cc4d80542e83fa89e9f09d | /monero_glue/messages/DebugLinkShowTextStyle.py | 6ddc6028fdf6a547536fc717cd8d48b7bf7a8654 | [
"MIT"
] | permissive | ph4r05/monero-agent | 24ed1aa17d6616b2ae6bcdb7b9997f982f8b7b5d | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | refs/heads/master | 2022-10-18T06:30:43.550133 | 2021-07-01T16:27:56 | 2021-07-01T16:27:56 | 126,215,119 | 24 | 5 | MIT | 2022-09-23T22:53:44 | 2018-03-21T17:18:21 | Python | UTF-8 | Python | false | false | 315 | py | # Automatically generated by pb2py
# fmt: off
if False:
from typing_extensions import Literal
NORMAL = 0 # type: Literal[0]
BOLD = 1 # type: Literal[1]
MONO = 2 # type: Literal[2]
MONO_BOLD = 3 # type: Literal[3]
BR = 4 # type: Literal[4]
BR_HALF = 5 # type: Literal[5]
SET_COLOR = 6 # type: Literal[6]
| [
"dusan.klinec@gmail.com"
] | dusan.klinec@gmail.com |
759b0b137a7faf1da9dc6ffbab58053fdcbad295 | bb5465b31067d8e2ef20a93c87bfad2c6a8e6569 | /orders/forms.py | c30ac21ad1c2d2d3346d20718321be245f6af33b | [] | no_license | greypanda/Django-Bootcamp-1 | cc7e1b131b55be4ca224702397f0e4aee6e1d2d9 | d66886bd2ab65f07cba08dc26640f52e0da72ac4 | refs/heads/main | 2022-12-27T01:27:26.516712 | 2020-10-14T23:45:57 | 2020-10-14T23:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | from django import forms
from .models import Order
class OrderForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
product = kwargs.pop("product") or None
super().__init__(*args, **kwargs)
self.product = product
class Meta:
model = Order
fields = [
'... | [
"hello@teamcfe.com"
] | hello@teamcfe.com |
3a05d1a9e15233697f2611e6105e3a61f8da2282 | b0ede55e98d454f558e5397369f9265893deedb5 | /SWEA/D3/3750_digit_sum.py | 91b7ee6c6d6baa5d0dc8631446283554e277d0fb | [] | no_license | YeonggilGo/python_practice | 5ff65852900c4c6769d541af16f74a27a67920ec | 43082568b5045a8efc1d596074bdca3e66b2fed1 | refs/heads/master | 2023-06-22T02:09:31.906745 | 2023-06-17T01:27:22 | 2023-06-17T01:27:22 | 280,361,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # 매 테스트 케이스마다 print를 하지않고
# 배열에 저장해서 한꺼번에 출력하니까 동작시간이 훨씬 줄어들었다.
# 이유가 뭔지는 아직 모르겠다.
T = int(input())
ans = []
for tc in range(1, T + 1):
N = input()
while len(N) > 1:
N_li = list(map(int, N))
N = str(sum(N_li))
ans.append(N)
for tc in range(0, T):
print(f'#{tc+1} {ans[tc]}')
| [
"dudrlf1859@naver.com"
] | dudrlf1859@naver.com |
25e7860fa269e96b48ce74d7908cadb94fc03315 | 0ddbbc997883aa7c17e50a08de7aa40c3a4955c7 | /project1/package1/plot_test.py | ac3581147ec93402bf0aa6e75ea365f5c588c3e6 | [] | no_license | kwoolter/vscode-online | 39eef2ab9c13c0460d6f8a45a8674906e7594bdd | f13c0a1378a2724a44d95ce4ab06700eb0642cae | refs/heads/master | 2022-07-14T01:44:28.495267 | 2020-05-16T10:21:42 | 2020-05-16T10:21:42 | 264,375,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 20, 100)
plt.plot(x, np.sin(x))
plt.show(block=False)
input('press <ENTER> to continue') | [
"keith.woolterton@gmail.com"
] | keith.woolterton@gmail.com |
70cd3506623f02e09d026e8fbf4721df8d98cd99 | 8cb8bfd2dae516612251039e0632173ea1ea4c8a | /modules/user/publisher_user.py | 946ebcc7023cc69b7181138f470652fe3331ebb9 | [] | no_license | nyzsirt/lift-prod | 563cc70700d26a5812a1bce0bd9795998dce6e99 | 9a5f28e49ad5e80e422a5d5efee77a2d0247aa2b | refs/heads/master | 2020-04-22T01:05:42.262876 | 2019-02-09T13:31:15 | 2019-02-09T13:31:15 | 170,003,361 | 1 | 0 | null | 2019-02-10T17:11:50 | 2019-02-10T17:11:50 | null | UTF-8 | Python | false | false | 979 | py | class PublisherUserOnCreate:
"""
Publisher for notifying subscribers on new service admin user creating
"""
def __init__(self):
self.__new_user=None
self.__subscribers=[]
@property
def new_user(self):
"""
Publisher notifies subscribers about this user dict
... | [
"mutlu.erdem@soft-nec.com"
] | mutlu.erdem@soft-nec.com |
1bacbdd7d2adb957a389d64b3941a31252aa6e64 | 609582ee37a01ac6a67fb9c957825dcd3c9a5b3a | /LeetCode_Linked_List/160_Intersection_Of_Two_Linked_List.py | b95d8c954f372d3807f1ca3cb6bbbed0548eadf4 | [] | no_license | captainjack331089/captainjack33.LeetCode | a9ad7b3591675c76814eda22e683745068e0abed | 4c03f28371e003e8e6a7c30b7b0c46beb5e2a8e7 | refs/heads/master | 2022-03-07T19:53:40.454945 | 2019-11-06T19:32:00 | 2019-11-06T19:32:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | """
160. Intersection of Two Linked Lists
Category: Linked List
Difficulty: Easy
"""
"""
Write a program to find the node at which the intersection of two singly linked lists begins.
For example, the following two linked lists:
begin to intersect at node c1.
Example 1:
Input: intersectVal = 8, listA = [4,1,8,4... | [
"qfhjack@gmail.com"
] | qfhjack@gmail.com |
6d960235947bbf4e658d18e273fb3658fd207da8 | 91b3f9f1803161c22ff5bed3e5604a07d67728ac | /patterns/factory/overlay_factory.py | 802822ffdc740832cd8fbf414f2218ceb02f190f | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | AndreTeixeira1998/TekkenBot | dab01fd022f91787f709241a17a903291e7089bd | 015c601afbea5d75a46b3385f1d322b2655249b0 | refs/heads/master | 2023-07-17T16:52:14.182255 | 2021-04-22T17:29:55 | 2021-04-22T17:29:55 | 273,787,610 | 0 | 0 | MIT | 2020-06-20T21:34:27 | 2020-06-20T21:34:26 | null | UTF-8 | Python | false | false | 2,082 | py | #!/usr/bin/env python3
# Copyright (c) 2019, Alchemy Meister
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# ... | [
"jesusesma@gmail.com"
] | jesusesma@gmail.com |
c48a6539ae876c3189fcf79c05265e1fdc2a596b | 4a399d20f9934c4984bab229a015be69e9189067 | /devel/lib/python2.7/dist-packages/roboy_communication_control/msg/_DebugNotification.py | 39749bcc8f1c881c53ae2f12b81695e3eb409819 | [
"BSD-3-Clause"
] | permissive | Roboy/myoarm_small_FPGA | 09af14c7d82c9e8fc923842ae5aad1be6344bf27 | f2f11bee50078d8a03f352e3b3ef9f3d9244d87a | refs/heads/master | 2021-01-21T03:21:49.777564 | 2017-08-30T22:11:44 | 2017-08-30T22:11:44 | 101,892,113 | 0 | 0 | null | 2017-08-30T14:49:18 | 2017-08-30T14:33:46 | null | UTF-8 | Python | false | false | 7,015 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from roboy_communication_control/DebugNotification.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class DebugNotification(genpy.Message):
_md5sum = "e83a19f2165c907848... | [
"simon.trendel@tum.de"
] | simon.trendel@tum.de |
674d799ef87465a5e5b80fdd21d63878fb2e1361 | e7b956cd98f3400249cd5097029f0a1a9e8ba645 | /app/relations/many_to_many/migrations/0002_auto_20180205_0701.py | 727d216af345dda00738984b376c0fcafe2b46fb | [] | no_license | standbyme227/fc-django-document | 8ffc4430099fbee037f1336e319e40292bcf7af4 | 8f01c108f773f3f7edc49e1f6527ed3789754ba9 | refs/heads/master | 2021-05-04T16:08:11.133487 | 2018-02-22T03:05:44 | 2018-02-22T03:05:44 | 120,244,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | # Generated by Django 2.0.2 on 2018-02-05 07:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('many_to_many', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Post',
... | [
"standbyme227@gmail.com"
] | standbyme227@gmail.com |
c0816befac5b3984dad7c534e48520cc62c3eb87 | 88c1fa6dd5b51a93c4345951c41c4f56a82ba5a3 | /LiveProject-Python/AppBuilder9000/ZPYLP0612/GreatestComedies/models.py | 8eda5a405781578635b00d1f099ff55c4023617a | [] | no_license | Sean-Beyer/PythonDjango-LiveProject | 83335c4d5e22d00c34dac1c71c39f770ad896c4e | 986b567fad49368c52182eb5196534ff8a8ebcfc | refs/heads/master | 2022-12-13T22:43:21.820355 | 2020-09-01T00:34:18 | 2020-09-01T00:34:18 | 291,854,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | from django.db import models
# Created models
class Comedies(models.Model):
comedy = models.CharField(max_length=100, blank=True)
actor = models.CharField(max_length=100, blank=True)
director = models.CharField(max_length=100, blank=True)
year = models.CharField(max_length=100, blank=True)
imdb_r... | [
"61070387+Thalious@users.noreply.github.com"
] | 61070387+Thalious@users.noreply.github.com |
ddfeb229c2eb58e3c70f6c7666511fd98cae0dd1 | 0ced37fd5631850c43319b43aa2ac48a105eeb08 | /package/json_scraper.py | 3c3aabec5aae14fa57f94f0663d4e51004aa6958 | [] | no_license | chomman/earthquake-finder | c0d9b0bd5104b10b0bd7beec5d11f58c0d22e69c | d7f4de33843e7ceed5c2113cdefbb908f11338a2 | refs/heads/master | 2020-12-28T20:41:48.404930 | 2015-03-31T15:14:24 | 2015-03-31T15:14:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #!/usr/bin/python
## @json_scraper.py
# This file makes a request to an external webpage, and returns the json
# response content.
import requests
## scrape: scrape the content of provided url.
def scrape(url):
# request (get) given url, store json response content
r = requests.get(url)
data = r.json()
... | [
"jeff1evesque@yahoo.com"
] | jeff1evesque@yahoo.com |
df4a7dfe2740775f79df27bea8aabba64637d720 | 6b97da799cb9b72d711a5e1d6321e4e11f3cbe51 | /bin/iptest3 | 8f85d0e0d8a8e3a6e242b360c552cbf740df3398 | [] | no_license | dx-entity/env_parabola | 3531120d213ade533052161ec70f3a511f2fc90a | f830d5f05a578b1ed2b16f6898fb226e27de6b52 | refs/heads/master | 2021-01-09T20:22:51.509076 | 2016-07-22T06:55:49 | 2016-07-22T06:55:49 | 63,930,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/root/python_pro/env_parabola/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from IPython.testing.iptestcontroller import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dengxin@iie.ac.cn"
] | dengxin@iie.ac.cn | |
a92d9bc93ed8d9c1567fb32f622b50c221616b5e | b5937928a48340569f673e237e42f32ab62cfd15 | /src/pathCrossing/path.py | 19ce0bdef5e67249b47937b919aa1930eff3039d | [
"CC0-1.0"
] | permissive | rajitbanerjee/leetcode | 79731de57ab4b0edd765b3cbb4aac459973fb22d | 720fcdd88d371e2d6592ceec8370a6760a77bb89 | refs/heads/master | 2021-06-13T11:19:03.905797 | 2021-06-02T14:40:08 | 2021-06-02T14:40:08 | 191,103,205 | 2 | 1 | null | 2020-02-23T23:41:45 | 2019-06-10T05:34:46 | Java | UTF-8 | Python | false | false | 575 | py | class Solution:
def isPathCrossing(self, path: str) -> bool:
x, y = 0, 0
visited = {(x, y)}
for p in path:
if p == 'N':
y += 1
elif p == 'S':
y -= 1
elif p == 'E':
x += 1
else:
x -... | [
"rajit.banerjee@ucdconnect.ie"
] | rajit.banerjee@ucdconnect.ie |
8399f0725684d5f05d0c7cdd73ca17a6c14c7062 | 403217dc6e0ea465b90d26faaa630dc30b04b396 | /tests/test_transformers.py | 47c941b50561247fa4c2c912717b5c08700f0256 | [
"Python-2.0",
"Apache-2.0"
] | permissive | fuzeman/QueryCondenser | f5708fe855c449e195d20d7db9ca5e7b0b657541 | 624d8db0077e540b4214eb44bb1def4bd659c50a | refs/heads/master | 2016-09-11T03:35:02.571079 | 2013-11-25T04:04:47 | 2013-11-25T04:04:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,422 | py | # Copyright 2013 Dean Gardiner <gardiner91@gmail.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 a... | [
"gardiner91@gmail.com"
] | gardiner91@gmail.com |
1755ace993f4ea02065efd561ec2b726b5d17337 | 838302a39e25067fa7152c1a21574d80dbc25e94 | /routes/urls.py | 482446f2644cfefb444e61bbee0deb991c87a2b7 | [] | no_license | Vadym-Hub/route_search | 53f46b39f588bb9ee53f1f70d09f045f1d466492 | b1c0b5ac754e5e3601ab6815649eda4f50e9ae32 | refs/heads/master | 2021-09-28T01:40:57.271666 | 2020-07-12T23:03:27 | 2020-07-12T23:03:27 | 250,011,206 | 0 | 0 | null | 2021-09-22T18:57:23 | 2020-03-25T15:07:23 | Python | UTF-8 | Python | false | false | 525 | py | from django.urls import path
from .views import HomeView, RouteDetailView, RouteListView, add_route, find_routes, RouteDeleteView
apps_name = 'routes'
urlpatterns = [
path('find/', find_routes, name='find_routes'),
path('add_route/', add_route, name='add_route'),
path('list/', RouteListView.as_view(), na... | [
"webratel@gmail.com"
] | webratel@gmail.com |
a72e20d9939dd2d43d0f6b798a108c4a1ceb872e | e99dfc900052272f89d55f2fd284389de2cf6a73 | /apostello/forms.py | e069a875e9ac32cb666be19e6c15e47374ee20b0 | [
"MIT"
] | permissive | armenzg/apostello | a3e6ca3d34917608af79fbab4134ee4de1f5e8ee | 1827547b5a8cf94bf1708bb4029c0b0e834416a9 | refs/heads/master | 2021-01-18T18:16:02.364837 | 2017-03-22T20:34:21 | 2017-03-22T20:34:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,984 | py | from django import forms
from django.forms import ModelMultipleChoiceField
from apostello.models import Keyword, Recipient, RecipientGroup, UserProfile
from apostello.validators import gsm_validator, less_than_sms_char_limit
class SendAdhocRecipientsForm(forms.Form):
"""Send an sms to ad-hoc groups."""
conte... | [
"montgomery.dean97@gmail.com"
] | montgomery.dean97@gmail.com |
93fa705b2aa486c2ea927afb7382f4d04a4ab1b2 | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /masterticketsplugin/branches/0.10/setup.py | 959b0c3c08eb24427c6df3a00be9187b87778476 | [] | no_license | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | #!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
from setuptools import setup
setup(
name = 'TracMasterTickets',
version = '1.0',
packages = ['mastertickets'],
package_data = { 'mastertickets': ['htdocs/*.js', 'htdocs/*.css' ] },
author = "Noah Kantrowitz",
author_email = "noah@coderanger.n... | [
"coderanger@7322e99d-02ea-0310-aa39-e9a107903beb"
] | coderanger@7322e99d-02ea-0310-aa39-e9a107903beb |
cb90179a0f2c0c6d6d9ecd0add119d15ce349b91 | cdaeb2c9bbb949b817f9139db2d18120c70f1694 | /setup.py | 3464bc1d5f33496f16de775ce95e205c38b6b79e | [
"Apache-2.0"
] | permissive | sreekanthpulagam/rakam-python-client | 665c984ac7a29b57ead6feaeb99a69ba345220e6 | 8bd843208b03726d6ce89ee343b48b889b576e0e | refs/heads/master | 2021-01-24T15:42:36.374366 | 2016-07-19T21:49:26 | 2016-07-19T21:49:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | py | # coding: utf-8
"""
Rakam API Documentation
An analytics platform API that lets you create your own analytics services.
OpenAPI spec version: 0.5
Contact: contact@rakam.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "Li... | [
"emrekabakci@gmail.com"
] | emrekabakci@gmail.com |
cb86190241829fe4dbed3dcca133c4bba33f705d | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2021_12_01_preview/operations/_tenant_level_access_review_instance_contacted_reviewers_operations.py | 48d84587e79ccee9f1e63b27a608b56c06fc182f | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 7,033 | 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"
] | test-repo-billy.noreply@github.com |
24983dba27a4c3513d731d7b06bc5dccdeee9d43 | 7dba60ae27ff247705607839348f017b85f5da16 | /nyumbax/migrations/0002_auto_20210411_0803.py | 2ec99f45ae6bd3b4e3db2f3f8d33a24f6ac451aa | [
"MIT"
] | permissive | BwanaQ/nyumba-kumi | 7edccb6745ede6d9f6faf5bd8c0dcf6e24726991 | c264b0941c77a4d7175a2dc5380723bea1acf380 | refs/heads/master | 2023-04-05T09:32:34.867456 | 2021-04-13T15:54:16 | 2021-04-13T15:54:16 | 356,136,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | # Generated by Django 3.2 on 2021-04-11 08:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('nyumbax', '0001_initial'),... | [
"thunjawax@gmail.com"
] | thunjawax@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.