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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
88021272c5da86f4848aa0930cff14f6c8c60b88 | 3f31ff163eb82d915715f705e231ba3cc3bffc31 | /test/manual/hooks_progress_bar_hook_test.py | 4184b04149f42608db3b61e6daeb9c4392ca011a | [
"MIT",
"Apache-2.0"
] | permissive | facebookresearch/ClassyVision | 6b7ffb28c771579f56258f38aea0b012cbf95129 | 08a82e88fcfa143933832994ace2424c03dd43b8 | refs/heads/main | 2023-09-04T01:14:08.507494 | 2023-03-23T14:35:34 | 2023-03-23T14:35:34 | 208,358,969 | 1,673 | 321 | MIT | 2023-05-08T19:21:37 | 2019-09-13T22:54:44 | Python | UTF-8 | Python | false | false | 3,811 | py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
import unittest.mock as mock
import progressbar
from classy_vision.hooks import ProgressBarHook
from... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
12551e624c4178f7c93898df682093dd2847e645 | 9127a5582694a055e7c64ae65ae97a11728ff82f | /cunt/wallet/lineage_proof.py | a523e095f192e80135244e765d556767c09cc9f0 | [
"Apache-2.0"
] | permissive | nahvan/cunt-blockchain | 0f881df58f3ca5fe554b52a025437053df6f1037 | 447084a809ec0339bcd24f7141f39ee0e8dddffa | refs/heads/main | 2023-06-24T16:47:31.099801 | 2021-07-29T21:17:02 | 2021-07-29T21:17:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from dataclasses import dataclass
from typing import Optional
from cunt.types.blockchain_format.sized_bytes import bytes32
from cunt.util.ints import uint64
from cunt.util.streamable import Streamable, streamable
@dataclass(frozen=True)
@streamable
class LineageProof(Streamable):
parent_name: bytes32
inner_p... | [
"svginsomnia@gmail.com"
] | svginsomnia@gmail.com |
776bd875cd44410017cb82362ea93a685e2037fa | 7060767e3d4a0201f02016426c83f5be7b8f7a2b | /src/travel/views.py | 3bcb1a98a0fee28c97bd01260c6baccf60aaea21 | [] | no_license | syurskyi/dj_basic | 8a2dba011b51a90c62e5e72518af841291857da3 | 0fb58a71e49cf4dd4a8cc300284fe9ec8047468d | refs/heads/master | 2020-09-22T07:21:42.464737 | 2019-12-01T04:36:23 | 2019-12-01T04:36:23 | 225,103,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from django.http import HttpResponse
from django.shortcuts import render
# def home_view(request):
# name = "Grey"
# html = """<html> <body>
# <h1> Hello {}!!! </h1>
# </body></html""".format(name)
# return HttpResponse(html)
def home_view(request):
name = "Grey"
context = {'name': 'Maja'}... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
a25d55af8d76b6a4130f3a21739701bf8a4c5d70 | bc6caa59bd670a0ee26e9f32739164468745ce0a | /shenfun/io/h5py_file.py | 538543a4ac1b8fb6eeb12ef26ba23e99d8be7438 | [
"BSD-2-Clause"
] | permissive | alanmatzumiya/shenfun | 652a1d2e46a42c5072e883610f6a2a5bfafbd67b | a902f7162abd49a67ec38a1867e3a25eefa99db0 | refs/heads/master | 2020-04-27T03:43:38.533891 | 2019-02-11T07:36:21 | 2019-02-11T07:36:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,570 | py | #pylint: disable=missing-docstring, consider-using-enumerate
import numpy as np
from mpi4py_fft.utilities import HDF5File as BaseFile
__all__ = ('HDF5File',)
class HDF5File(BaseFile):
"""Class for reading/writing data using the HDF5 format
Parameters
----------
h5name : str
Name of h... | [
"mikaem@math.uio.no"
] | mikaem@math.uio.no |
99c832406851ce208ab1aafc86f3ffefe3a710f0 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_96/1815.py | 30fda40c380702317a5538ced9f409e2d252bca7 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | import math
if __name__ == '__main__':
inputFile = open('G:\\codejam\\B-small-attempt0.in', 'r+')
outputFile = open('G:\\codejam\\output.txt', 'r+')
inputString = inputFile.read()
splitString = inputString.split('\n')
for j in xrange(1,len(splitString)):
if len(splitString[j])... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8c748b442791a9db4cfd31225382c66b734568be | 908655251066427f654ee33ebdf804f9f302fcc3 | /Tests/CartPoleAST/CartPoleNd/MultiCartPoleNd_RS.py | d3f9dfea3411355a7a537b2ae630bb677078cc3b | [] | no_license | maxiaoba/MCTSPO | be567f80f1dcf5c35ac857a1e6690e1ac599a59d | eedfccb5a94e089bd925b58f3d65eef505378bbc | refs/heads/main | 2023-07-05T02:20:16.752650 | 2021-07-06T06:04:40 | 2021-07-06T06:04:40 | 381,811,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,917 | py | import mcts.AdaptiveStressTestingRandomSeed as AST_RS
import mcts.ASTSim as ASTSim
import mcts.MCTSdpw as MCTSdpw
import mcts.AST_MCTS as AST_MCTS
import numpy as np
from mylab.envs.tfenv import TfEnv
from mylab.rewards.ast_reward import ASTReward
from mylab.envs.ast_env import ASTEnv
from mylab.simulators.policy_simul... | [
"xiaobaima@DNab421bb2.stanford.edu"
] | xiaobaima@DNab421bb2.stanford.edu |
fbccdfff0aca6d2d7c011e03ffc14cecc9f1d706 | 97df2c66247e02082a68194bf1e5fb3d01c96468 | /jina/peapods/runtimes/gateway/http/__init__.py | 5ce15c0dbdf6cb2354daa1ae8a2e82e80e652941 | [
"Apache-2.0"
] | permissive | VenusTokyo/jina | fecd8ecb35928158f436ada90e773c4eccbf7b64 | 4265163fafe499f80dc52be4a437087bf3c1799f | refs/heads/master | 2023-07-31T13:18:51.727331 | 2021-10-02T12:22:59 | 2021-10-02T12:22:59 | 407,812,228 | 1 | 1 | Apache-2.0 | 2021-10-02T12:23:00 | 2021-09-18T09:10:57 | null | UTF-8 | Python | false | false | 2,300 | py | import os
import asyncio
from jina import __default_host__
from .....importer import ImportExtensions
from ...zmq.asyncio import AsyncNewLoopRuntime
from .app import get_fastapi_app
__all__ = ['HTTPRuntime']
class HTTPRuntime(AsyncNewLoopRuntime):
"""Runtime for HTTP interface."""
async def async_setup(se... | [
"noreply@github.com"
] | VenusTokyo.noreply@github.com |
1f37be14f7f33c40f94fc51c1a677b001eb665ce | e1e59ba5f60886be8b1f587f274d4fe177982e35 | /Python/Fundamentals/String_List/new_list.py | be04f6786acf9e0f2d978f1975509a02f7d17a4d | [] | no_license | betalantz/CodingDojo_LearningProjects | 0b2d82a7e32e8e22a07de79d50a46a61bb8fbeca | 4188a0c1df42da3ce5d29f2bdeb92865ea2c6cd1 | refs/heads/master | 2021-01-01T19:26:16.879191 | 2019-04-23T00:48:12 | 2019-04-23T00:48:12 | 98,582,797 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | x = [19,2,54,-2,7,12,98,32,10,-3,6]
x.sort()
y = len(x)/2
cnewList = [x[0:y]]
newList.extend(x[y:len(x)])
print newList | [
"betalantz@gmail.com"
] | betalantz@gmail.com |
e67ced7756ea90baae62d1af58b07a428526630b | f6c6085c34ac6e1b494ff039cd0173b47cc9c6c4 | /tests/unit/services/orga/test_birthday_service.py | fddb477e30a1cda9eb6cc8024edb94c0a77bc7f5 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | FakoorCo/byceps | 971042f598a12c00465b0c3a714f4ac7dbdc9d5b | 11290b154b83f5ac3a9530fb6cd752b3d7a3989b | refs/heads/main | 2023-01-23T18:53:59.930267 | 2020-11-30T01:09:20 | 2020-11-30T01:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | """
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from datetime import date
from typing import Tuple
from freezegun import freeze_time
from byceps.services.orga import birthday_service
from byceps.services.orga.transfer.models import Birthday
from byceps.servic... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
378c1641d2342999ae262c3ee919759d2f11cb37 | cb43ac7cb39c1d71c465a818221fedf6831df34f | /api/serializers.py | a22e3fb3ad567d6a53ab45f974bc7632cd1fb4af | [] | no_license | manchos/umlkrest | 6f68015c02a9421d45f0f64e2f5d89ae98164e9f | 918ba3adae94cf89d5cdf6e326ab766ab0a5897a | refs/heads/master | 2021-01-25T09:45:29.084087 | 2018-02-28T17:41:21 | 2018-02-28T17:41:21 | 123,319,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from api.models import Object
from rest_framework import serializers
class ObjectSerializer(serializers.ModelSerializer):
distance = serializers.DecimalField(
source='distance.m', max_digits=10, decimal_places=2,
required=False, read_only=True
)
class Meta:
model = Object
... | [
"vladm.ru@gmail.com"
] | vladm.ru@gmail.com |
03961ca15f5ecca3a7616f95a0ef46f4b5944d2f | 0f667ab42b524010380bc9e525b3271f0b8cc50f | /discord/file.py | 8ba3a5253237f120f4b57c3a8d3f48ada57f542a | [
"MIT"
] | permissive | imayhaveborkedit/discord.py | eb20d9af63f50cadda27438903eae53bded5e017 | 0e061685b20d192599f413f5946bd5e4f1032b40 | refs/heads/voice-recv-mk2 | 2023-08-30T13:23:27.063788 | 2019-07-26T00:57:02 | 2019-12-10T22:00:36 | 56,896,450 | 51 | 55 | MIT | 2020-10-24T00:43:20 | 2016-04-23T02:34:07 | Python | UTF-8 | Python | false | false | 3,842 | py | # -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2015-2019 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to u... | [
"rapptz@gmail.com"
] | rapptz@gmail.com |
332c87bd84f5e6b7436daccb83aa631b38b0232b | 406a3a44525e12b444d7bf52e5cf9a275fa57105 | /03StacksAndQueues/3.1three_in_one.py | a09f5c3aee456ad65d37cc14af99b19eb015aff1 | [] | no_license | seymakara/CTCI | a066cc82d8eed892f7898d8ad84cdd4c0118441d | af188647baa13de62307c0c1f317d148072eac26 | refs/heads/master | 2021-04-15T08:55:45.420072 | 2018-05-23T06:37:24 | 2018-05-23T06:37:24 | 126,376,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | class FixedMultiStack:
def __init__(self, stacksize):
self.numberOfstacks = 3
self.values = [0] * (stacksize * self.numberOfstacks)
self.sizes = [0] * self.numberOfstacks
self.stacksize = stacksize
def Push(self, item, stackNumber):
if self.IsFull(stackNumber):
... | [
"seymakara88@gmail.com"
] | seymakara88@gmail.com |
6ee05249332f3a7114c25aec3b8bd8e8f7817309 | 7f4306057991622329ed3ab43c8e338ebdfb6d74 | /pilgram/css/tests/test_brightness.py | 77150e2396de116d6c52361960504c59bab7d13e | [
"Apache-2.0"
] | permissive | akiomik/pilgram | d958312c98a5418d176ad884c50303e9f2731825 | 410252928e50e954472ff5ffcd45446aa8be32f7 | refs/heads/main | 2023-07-24T06:54:00.285954 | 2023-07-18T00:26:42 | 2023-07-18T00:26:42 | 169,348,812 | 90 | 19 | Apache-2.0 | 2023-09-12T12:31:08 | 2019-02-06T03:10:44 | Jupyter Notebook | UTF-8 | Python | false | false | 2,106 | py | # Copyright 2019 Akiomi Kamakura
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"akiomik@gmail.com"
] | akiomik@gmail.com |
6ed04aed7632b4728c5536370f320f4e4b85b0fd | 011157c49983db38489f26f51db7fe22f8519afc | /problems/1080.py | 7c4cf7c6e41f25ce77ead84e4369f944b7fcd45d | [] | no_license | chasecolford/Leetcode | c0054774d99e7294419039f580c1590495f950b3 | dded74e0c6e7a6c8c8df58bed3640864d0ae3b91 | refs/heads/master | 2023-08-04T11:33:18.003570 | 2021-09-10T21:06:55 | 2021-09-10T21:06:55 | 283,154,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | class Solution:
def sufficientSubset(self, root, limit):
if not root.left and not root.right: return None if root.val < limit else root
if root.left: root.left = self.sufficientSubset(root.left, limit - root.val)
if root.right: root.right = self.sufficientSubset(root.right, limit - root.val)... | [
"56804717+ChaseSinify@users.noreply.github.com"
] | 56804717+ChaseSinify@users.noreply.github.com |
e51b58affa51387a67e5468e76384e6d4a0d976d | 911d644fc8aba5c026ab51fa2ffb33698f7618a7 | /droidlet/perception/robot/detectron/detector/train_net.py | 515d60fda2d42d7d5c33bac98c99f65003e05c64 | [
"MIT"
] | permissive | adamlerer/droidlet | 3df03e89f0a3d6236152d96fa68c4e89a7d8701f | ada38d191dadcea9aba12330e35e8e7d6d1663d9 | refs/heads/main | 2023-05-15T07:38:22.731918 | 2021-06-09T07:09:28 | 2021-06-09T07:09:28 | 375,388,047 | 0 | 0 | MIT | 2021-06-09T14:40:15 | 2021-06-09T14:40:14 | null | UTF-8 | Python | false | false | 6,124 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
"""Locobot Detector Training Script.
This script is a simplified version of the training script in
detectron2/tools.
"""
import os
import pickle
import logging
import glob
import random
import detectron2.utils.comm as comm
... | [
"yuxuans@fb.com"
] | yuxuans@fb.com |
dc79ceafe3af25a78678fc4d928c78ab6530afd9 | 999879f8d18e041d7fa313132408b252aded47f8 | /01-codes/scikit-learn-master/examples/svm/plot_svm_regression.py | 6872adaa0b43648b58327bd3d7313dbd43852dbd | [
"BSD-3-Clause",
"MIT"
] | permissive | QPanProjects/Surrogate-Model | ebcaf05728e82dcbcd924c2edca1b490ab085173 | 848c7128201218b0819c9665e2cec72e3b1d29ac | refs/heads/master | 2022-10-11T19:03:55.224257 | 2020-06-09T14:37:35 | 2020-06-09T14:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | """
===================================================================
Support Vector Regression (SVR) using linear and non-linear kernels
===================================================================
Toy example of 1D regression using linear, polynomial and RBF kernels.
"""
print(__doc__)
import matplotlib.p... | [
"quanpan302@hotmail.com"
] | quanpan302@hotmail.com |
25fa99f5ec4cb7e9f79b51b46703be682bd35c1b | 7176f2afb8244e242756679d9711eb4e5fff349a | /am/search/forms.py | bfc71da216bf9fceadfe2d29a72b223d68ce1a96 | [
"BSD-2-Clause"
] | permissive | access-missouri/am-django-project | e841468ac22b305993c0a5056dd62cbd41169e9b | 2457b8089900c61c73000c1d7479b7a72f6d1855 | refs/heads/master | 2021-07-07T10:49:01.015014 | 2021-05-11T18:48:08 | 2021-05-11T18:48:08 | 85,356,930 | 4 | 1 | BSD-2-Clause | 2021-05-11T18:48:09 | 2017-03-17T21:40:41 | Python | UTF-8 | Python | false | false | 597 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django import forms
from legislative.models import LegislativeSession
from select2.widgets import SelectMultiple
class SearchBillForm(forms.Form):
search_name = forms.CharField(required=False,
label="Keywords")
... | [
"nathan.Lawrence.barrick@gmail.com"
] | nathan.Lawrence.barrick@gmail.com |
1c6bfe7d692e9696743dc378203a25dc49c92186 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/call-121.py | 89221e08bf9768d0493fa422ee107ce8c7861903 | [] | 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 | 225 | py | def f() -> int:
print("start f")
g()
print("end f")
return 42
def g() -> object:
print("start g")
h()
print("end g")
def h() -> object:
print("start h")
print("end h")
print($ID())
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
9a60a22821e216048f6b2387ea62280c993b3a18 | 2aee45d23b47c6adba9eafc5a84d606a021f9300 | /hr_payroll/__manifest__.py | df655c247951580f4ce41eb2f80d254df197a709 | [] | no_license | charles-123456/Primoris-System | 23b183460ea79bfa8d896556aa35d62460154567 | 0880b8266eedfd0016a3b365c9939c34ad301155 | refs/heads/main | 2023-08-21T06:24:42.840026 | 2021-10-25T06:10:48 | 2021-10-25T06:10:48 | 385,922,247 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | #-*- coding:utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Payroll',
'category': 'Human Resources/Payroll',
'sequence': 290,
'summary': 'Manage your employee payroll records',
'description': "",
'installable': True,
'application': True,
'... | [
"charlesit333@gmail.com"
] | charlesit333@gmail.com |
71d4bb5b48567870389e4d009f0b2c9396bf54c1 | e3f8e1fb1297c2550e690404deccbaa805287962 | /fixed-point-iteration.py | b8a31b55310efc5de2c29d25007af0872a4d06c9 | [] | no_license | iluvjava/Numerical-Analysis | d5d3ac353859dc41c812e06421f2e5b9db8a69bf | facf2010f74814a0f1b7754e7c89f5e7a262dea3 | refs/heads/master | 2020-08-21T20:54:48.583703 | 2019-10-19T21:52:19 | 2019-10-19T21:52:19 | 216,243,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | InitialsConditions = [3, 5, 7]
def fix_point_itr(results, x0, func, maxItr = 6):
"""
result: (Array)
The results of the iteration will be appended to the given array.
x0: (number)
The initial condition of the iteration.
func: (Lambda function)
A function that represent the fixed point i... | [
"victor1301166040@gmail.com"
] | victor1301166040@gmail.com |
b156730ec47da3290f57950c917fb56591d1f861 | 2640ea91cc9c393e13f81661a8e6a5fc0614d035 | /rmspr/leasess/migrations/0003_auto_20181207_0842.py | dc36f904120b5c40adf591b235d6b8bde2abe250 | [] | no_license | revankarrajat/rent-management | 08a6b0e67158bcee8f5525a5129a89096fa1c7ca | c98c12e76016c82d32ea041d9aae15ef0a7ace40 | refs/heads/master | 2020-04-12T18:28:44.427296 | 2018-12-22T09:42:20 | 2018-12-22T09:42:20 | 162,680,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | # Generated by Django 2.1.3 on 2018-12-07 08:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('leasess', '0002_renewal_leaseid'),
]
operations = [
migrations.RenameModel(
old_name='lease',
... | [
"rajatrevankar559@gmail.com"
] | rajatrevankar559@gmail.com |
02c5f1e856c0b6802ede3a5ed911e81f0c4906ee | 4c6d005d5fe864724f0d205d0efa8810f9d37c18 | /python-module/hoomd_script/globals.py | fdb737189b621299af2497d43b1d51041f2f2244 | [] | no_license | junghans/hoomd-blue | b1ee769e529c2b14de8b7427da77a5d2b5e2fd1b | f41f3484006e334ccebbe2decca25edf82fb8af1 | refs/heads/master | 2021-01-18T06:07:20.943001 | 2015-03-18T03:24:42 | 2015-03-18T13:58:29 | 32,435,100 | 0 | 0 | null | 2015-03-18T03:12:14 | 2015-03-18T03:12:14 | null | UTF-8 | Python | false | false | 5,067 | py | # -- start license --
# Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition
# (HOOMD-blue) Open Source Software License Copyright 2009-2014 The Regents of
# the University of Michigan All rights reserved.
# HOOMD-blue may contain modifications ("Contributions") provided, and to which
# copyright is... | [
"joaander@umich.edu"
] | joaander@umich.edu |
bfd243aaebcb701d5933bd7d55c027313ca73379 | 31299d4767361fc7c47754ac9d7b84524bffc4e3 | /bimebot.py | d3d707ac75542b9c2e45c52facafad8c151f1891 | [] | no_license | alirezahi/havijtelegram | 578fc9e232caa1d346b1f6e89c864bcb36151a75 | 33840d0dc454ca0c981fc46a7f5ba4eff0e732d5 | refs/heads/master | 2021-07-17T06:09:54.163042 | 2017-10-20T06:51:55 | 2017-10-20T06:51:55 | 107,537,202 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,319 | py | import telebot
import urllib
from urllib.request import Request,urlopen
from telebot import types
token = '457388430:AAGVWHOUYzXl2i07YK_7Dw_sTvl7C5oxbxw'
bime_bot = telebot.TeleBot(token)
@bime_bot.message_handler(commands=['start','نوع پاسخگویی بات'])
def start_bot(message):
try:
markup = types.ReplyKe... | [
"alireza97hi@gmail.com"
] | alireza97hi@gmail.com |
56f7328c68b44844dd3d3be482c2bb6f7c99a404 | 900b98964288a9cb0aaf2e45706ae2b32f92657f | /examples/adspygoogle/dfp/v201208/creative_set_service/create_creative_set.py | 9f9e1b1f692692c2b4111c903448c58cb358ca40 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | krux/adspygoogle | df2405c2042aa9c9a83d97b8442afe68572e3e2e | 6505a71122f45fe3e675f27f2c29f67a1768069b | refs/heads/master | 2022-02-22T08:55:19.777002 | 2022-02-11T22:42:19 | 2022-02-11T22:42:19 | 7,103,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | #!/usr/bin/python
#
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"charlie@schluting.com"
] | charlie@schluting.com |
859d8f1404caaa48aab87dc931df271d512b3fc1 | ff6d370e987b60b79adcb976e95713036273c3fe | /mysite/urls.py | 33d5141591ef4cd0d21e71e4e6438c869d23cbe4 | [] | no_license | tomekmatuszewski/Travel_Anywhere_API | eb5d20141adc5c3b0f4f4209955473e1e66abbe6 | f86507a6469d6fb32b996208a7bc6111084c3897 | refs/heads/master | 2023-01-20T01:15:15.118998 | 2020-11-24T21:46:14 | 2020-11-24T21:46:14 | 312,910,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | """mysite 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-based ... | [
"tomasz_matuszewski@o2.pl"
] | tomasz_matuszewski@o2.pl |
1547b184fa57c5cef025dd9c120d70863f433045 | 5332ae1af39902f893e716c608349140d067b7a9 | /orders/urls.py | 1b753b7da43cb8703fb4517748fd6865eb871ef2 | [] | no_license | Sumitpande/buyzu | 86ce967f2c750c7045d597cd13b2bef270f20a06 | ecc83dc736b1dbefb1fd9498eda9108015a84a09 | refs/heads/main | 2023-05-04T10:03:47.230050 | 2021-05-31T15:39:18 | 2021-05-31T15:39:18 | 329,566,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | from django.urls import path
from . import views
app_name = 'orders'
urlpatterns = [
path('create/', views.order_create, name='order_create'),
path('<int:pk>/invoice/', views.invoice, name='invoice'),
path('admin/order/<int:order_id>/', views.admin_order_detail,
name='admin_order_detail'),
... | [
"sumitakashpande1230@gmail.com"
] | sumitakashpande1230@gmail.com |
0569f68094f29cb9648b48e5989e021cf488ca87 | 311346d22b0a3b4701a7188544d4a013a128da7d | /main/tests/default_backend.py | af0c492fea3bc3dbed0c599ca8bc6de2c8b1eda4 | [
"BSD-3-Clause"
] | permissive | SteerByteLtd/ambime_registration | 0f49bfb0bc54aef617b59402654ea22897f3f9ce | c4ceaacf83f08df0140f5739a1f50ed982c84eba | refs/heads/master | 2020-03-07T07:16:51.220163 | 2018-03-29T17:11:31 | 2018-03-29T17:11:31 | 127,345,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,196 | py | import datetime
from django.conf import settings
from django.contrib.auth.models import AnonymousUser
from django.core import mail
from django.test import TestCase
from django.test.client import RequestFactory
from django.test.utils import override_settings
from django.urls import reverse
from main.backends.default.v... | [
"phoenix22@tutanota.com"
] | phoenix22@tutanota.com |
664741fc522f231dfafcd1c6a03cc3084ed6fd4c | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/3997/codes/1671_1879.py | 39e478e293490269aa7c370e0b147a253be9962e | [] | 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 | 325 | py | # Ao testar sua solução, não se limite ao caso de exemplo.
ne = float(input("Digite nmr de hrs extras: "))
nf = float(input("Digite nmr de hrs q faltou: "))
print(ne, "extras", "e", nf, "de falta")
H = (ne) - 1/4 * (nf)
if(H>400):
G = 500.00
print("R$", round(G,2))
elif(H<=400):
G = 100.00
print("R$", round(G,2)... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
f7e4676ab523653a881fe50790182811e72465f0 | f59d1acdd8fb07acac5ebe6580b9a88748f67385 | /tests/test_packet.py | e439b2a16745c489dbce8cb8fef2b426a044435c | [
"MIT"
] | permissive | Serzh251/galileosky | b4c9d16ff0adbee9b27347eddb6093bdc64ea881 | 361b12048c89d128618917b0a57e6b076b71cdf9 | refs/heads/master | 2023-06-11T19:58:54.247064 | 2021-06-22T17:42:52 | 2021-06-22T17:42:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,528 | py | from unittest import TestCase
from contextlib import contextmanager
from galileosky import Packet, tags
class Test(TestCase):
@staticmethod
@contextmanager
def register_custom_tag(tag):
old_tag = tags.tags[tag.id]
Packet.register(tag)
yield
Packet.register(old_tag)
de... | [
"pikhovkin@gmail.com"
] | pikhovkin@gmail.com |
0f94df6b2206b707e08fd0f17223957c95896698 | f858ede30f14eac04a7772eee2bb5595a6187747 | /pyoutline/outline/backend/__init__.py | 7f5df1e6c67b6cbe63cc67037de4685b5ec79814 | [
"Apache-2.0"
] | permissive | kingmax/OpenCue | 2ce373efa9567e3c157cf2a21ba68a138872597f | 1f1df3e10dee93876241c8ecaced57add63e26b6 | refs/heads/master | 2020-05-02T19:14:15.724907 | 2019-03-27T19:40:49 | 2019-03-27T19:40:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # Copyright (c) 2018 Sony Pictures Imageworks Inc.
#
# 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... | [
"lg@larrygritz.com"
] | lg@larrygritz.com |
5bb5935533f26fe01d81728ce57cf00a50913b79 | 87e62af4768c0f594e675551f4c7c1c81ce7f7d9 | /lawyer/spiders/fagui/neimenggu/wlcbs_fagui_spider.py | 40880a4817f4be35ad00c314b3740652670d0453 | [] | no_license | dulei001/Spider | 78d12adbef1d865da6978704fe146cc21a8d2d3e | 628d468501c6502763ce453a58a09813b2a46b8c | refs/heads/master | 2021-01-18T17:27:11.771434 | 2019-05-14T02:14:33 | 2019-05-14T02:14:33 | 86,802,130 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,025 | py | #!/usr/bin/python
#-*- coding: utf-8 -*-
import re
import uuid
import scrapy
class wlcbsSpider(scrapy.Spider):
"""乌兰察布市"""
name = "wlcbs"
provinceName=u"内蒙古"
cityName=u"乌兰察布市"
provinceCode="15"
cityCode = "1510"
level=u"地方法规"
start_urls = [
'http://www.wulanchabu.gov.cn',
... | [
"280680441@qq.com"
] | 280680441@qq.com |
f90321360a85eb73499a4f137cfefe5be0e0e11c | 2a918088cc7339f146220e5c79b2ce65fd25bf52 | /env-config/config-docker.py | 83ae574dee0369f71d577d3f9595922609f3af22 | [
"Apache-2.0"
] | permissive | bungoume/security_monkey | 65afea9512bf5724c797f07580c9f9a237000142 | 90c02638a315c78535869ab71a8859d17e011a6a | refs/heads/develop | 2021-07-09T08:20:08.708313 | 2017-03-17T23:20:21 | 2017-03-17T23:20:21 | 85,796,375 | 0 | 0 | Apache-2.0 | 2021-05-14T13:46:44 | 2017-03-22T07:11:25 | Python | UTF-8 | Python | false | false | 10,667 | py | # Copyright 2014 Netflix, Inc.
#
# 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... | [
"pkelley@netflix.com"
] | pkelley@netflix.com |
8b3cc632cc048eaeb244221093157b58ff9b0ccf | 35b6013c1943f37d1428afd2663c8aba0a02628d | /composer/airflow_1_samples/dataproc_workflow_template_instantiate_operator_tutorial.py | fff01d2d0c3b6351a97d8543d01bf471629a08d2 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/python-docs-samples | d2a251805fbeab15d76ed995cf200727f63f887d | 44e819e713c3885e38c99c16dc73b7d7478acfe8 | refs/heads/main | 2023-08-28T12:52:01.712293 | 2023-08-28T11:18:28 | 2023-08-28T11:18:28 | 35,065,876 | 7,035 | 7,593 | Apache-2.0 | 2023-09-14T20:20:56 | 2015-05-04T23:26:13 | Jupyter Notebook | UTF-8 | Python | false | false | 2,260 | py | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
8089447ce3b6c5c85cd5183df02e3decf8baf445 | 565548ff49844ed69ae16d5104e500f01c973402 | /app/test/test_post_model.py | bcf51fcceb8af1b3d8cb5b67654bbf398dafda95 | [] | no_license | jaisenbe58r/Pebrassos | 159ce5a8b372590fd9368d9b5b3c1b0513895bba | 7516a1f7bbba78547af86a9858ee381224964d28 | refs/heads/master | 2023-02-27T05:42:50.652697 | 2021-01-31T20:57:59 | 2021-01-31T20:57:59 | 299,698,630 | 3 | 1 | null | 2021-01-31T20:58:01 | 2020-09-29T18:04:36 | Jupyter Notebook | UTF-8 | Python | false | false | 1,487 | py | """Copyright (c) 2020 Jaime Sendra Berenguer & Carlos Mahiques Ballester
Pebrassos - Machine Learning Library Extensions
Author:Jaime Sendra Berenguer & Carlos Mahiques Ballester
<www.linkedin.com/in/jaisenbe>
License: MIT
FECHA DE CREACIÓN: 15/01/2020
"""
import unittest
from app.auth.models import User
from... | [
"jsendra@autis.es"
] | jsendra@autis.es |
e36eb1cbb426ae294b4c729e26a422e4223e4921 | 145cf2ab99b9510fccb58775d993ca99fc446592 | /plum_tools/utils/git.py | 28784165b5c775a52418b8b64fdcd8980b3e3726 | [
"Apache-2.0"
] | permissive | seekplum/plum_tools | b66ccc2b63bfb83ed83b58fb6aab7c64d31006b5 | 18d0f6726d3039c32cf7ac7279b2aa4f38de169c | refs/heads/master | 2023-08-04T16:36:07.931850 | 2023-07-24T10:47:01 | 2023-07-24T10:47:21 | 139,939,615 | 0 | 0 | Apache-2.0 | 2023-08-02T02:33:07 | 2018-07-06T05:57:29 | Python | UTF-8 | Python | false | false | 2,658 | py | # -*- coding: utf-8 -*-
"""
#=============================================================================
# ProjectName: plum_tools
# FileName: git
# Desc: git相关操作函数
# Author: seekplum
# Email: 1131909224m@sina.cn
# HomePage: seekplum.github.io
# Create: 2018-07-07 19:05
#=========... | [
"1131909224@qq.com"
] | 1131909224@qq.com |
7f9daaf52bb2cbc9e70e39403ffb22f2afad1a46 | e20ed90b9be7a0bcdc1603929d65b2375a224bf6 | /generated-libraries/python/netapp/service_processor/sp_pass_fail.py | 6b0bd0d07fdf3f9dcc0ba6188fbaad0707bb5c7c | [
"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 | 298 | py | class SpPassFail(basestring):
"""
Possible completion states of a task
Possible values:
<ul>
<li> "failed" - Operation failed,
<li> "passed" - Operation was successful
</ul>
"""
@staticmethod
def get_api_name():
return "sp-pass-fail"
| [
"radek@gruchalski.com"
] | radek@gruchalski.com |
b8879199d9f1ac9bd50b5d2e872ae5dd9b14bade | 060fbf2a69a90ad92de5fc877521d5ea6b298007 | /test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/models/container_properties_py3.py | cd3cb11440812424656f459ab7e228c20a1cc4f6 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | iscai-msft/autorest.python | db47a8f00253148fbc327fe0ae1b0f7921b397c6 | a9f38dd762fbc046ce6197bfabea2f56045d2957 | refs/heads/master | 2021-08-02T13:06:34.768117 | 2018-11-21T00:29:31 | 2018-11-21T00:29:31 | 161,554,205 | 0 | 0 | MIT | 2018-12-12T22:42:14 | 2018-12-12T22:42:14 | null | UTF-8 | Python | false | false | 2,582 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | iscai-msft.noreply@github.com |
17d15dd646a8749ccb6bb24691ef966488214583 | a68f37fcbf069c0656d4838af7386d6a9919fe59 | /company_users/migrations/0018_auto_20191202_1453.py | 0d33b087dcb6c2c5f0271ec6d0c73a0f50c72e36 | [] | no_license | mitchellpottratz/JobMatch | 7dd2cbd979ca55cf651bcee4356a97e061145b90 | 797a9b1c3dfad57c05db52384d87d5f82be632f5 | refs/heads/master | 2022-11-26T08:44:27.535809 | 2019-12-13T20:05:11 | 2019-12-13T20:05:11 | 224,901,935 | 0 | 0 | null | 2022-11-22T04:53:46 | 2019-11-29T18:08:55 | JavaScript | UTF-8 | Python | false | false | 511 | py | # Generated by Django 2.2.7 on 2019-12-02 14:53
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('company_users', '0017_auto_20191202_1453'),
]
operations = [
migrations.AlterField(
... | [
"mitchellpottratz@Mitchells-MacBook-Air.local"
] | mitchellpottratz@Mitchells-MacBook-Air.local |
1979186f4b5e4003966f930759a9a891423965c9 | 1509ac77d7db9a89fe10141cbdc233b7ad8f24df | /setup.py | 288ce8a2077db227368e8f817f3d5457cfb35203 | [] | no_license | ljh-hello/cogue | 84ccf58e38b53e0721b262d52e91efb1261785a5 | c181da4b248dbe1cdee0ac4b71b95db2e72a0811 | refs/heads/master | 2020-12-25T04:37:16.792861 | 2015-08-11T13:47:09 | 2015-08-11T13:47:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,023 | py | import os
from distutils.core import setup, Extension
# from numpy.distutils.misc_util import get_numpy_include_dirs
import numpy
include_dirs_numpy = [numpy.get_include()]
if os.path.exists("settings.py"):
import settings
try:
print "Include directories", settings.include_dirs
include_dir... | [
"atz.togo@gmail.com"
] | atz.togo@gmail.com |
1a82672456150a24e8524d979abb951b2e1ce069 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/certificate_4.py | 1abd0b5448d7f437c67e71317834376f7e340226 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 1,841 | py | from __future__ import annotations
from dataclasses import dataclass, field
from xsdata.models.datatype import XmlDate
__NAMESPACE__ = "http://www.travelport.com/schema/common_v33_0"
@dataclass
class Certificate4:
"""
Certificate Form of Payment.
Parameters
----------
number
The Certific... | [
"chris@komposta.net"
] | chris@komposta.net |
7336d0c86f4daa7c687b2ba22cd25afb545bc27c | a39d0d1f0e257d0fff5de58e3959906dafb45347 | /PythonTricks/Classes&OOP/cloning_objects.py | 85cbb8707eb6785db076d75c2810c9d0016ea172 | [] | no_license | Twishar/Python | 998d7b304070b621ca7cdec548156ca7750ef38e | 1d1afa79df1aae7b48ac690d9b930708767b6d41 | refs/heads/master | 2021-09-23T14:18:36.195494 | 2018-09-24T12:33:36 | 2018-09-24T12:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | import copy
# Shallow copies
xs = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
ys = list(xs) # Make a shallow copy
print(xs)
print(ys)
xs.append(['new sublist'])
print(xs)
print(ys)
xs[1][0] = 'X'
print(xs)
print(ys)
# Deep copies
xs = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
zs = copy.deepcopy(xs)
print(xs)
print(zs)
xs[1][0] ... | [
"stognienkovv@gmail.com"
] | stognienkovv@gmail.com |
d87aa46a4fec1417e8cb9c1155970269f2dbaa04 | 9301cc7eec1e149ee94bfe5dd09cde4a9b14569e | /tools/cigarError.py | a5dacb4e60a192c5046b68fac6d4f0fbf2dbf71a | [] | no_license | avantikalal/tfccs | 90b58e60a0b09f90ad8e877a88637e0dd375b6b2 | 3c1998aab39fc1bb4a13172d74b9a8a3c7615e02 | refs/heads/master | 2020-09-11T19:40:48.295966 | 2019-10-08T22:39:12 | 2019-10-08T22:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | import sys
for line in sys.stdin.read().splitlines():
oplen =[]
op = []
tmp = []
for ii in range(len(line)):
if line[ii] in "=XDIS":
op.append(line[ii])
oplen.append(int("".join(tmp)))
tmp=[]
else:
tmp.append(line[ii])
tlen = 0
numdel = 0
numins = 0
nummm = 0
... | [
"mbrown@pacificbiosciences.com"
] | mbrown@pacificbiosciences.com |
319a960e0809020abda1281ff84e877d0cf9e134 | 11ca0c393c854fa7212e783a34269f9dae84e8c7 | /nowcoder/剑指Offer/剑指 Offer 03. 数组中重复的数字.py | f4846010da691e9f7ffcbbad927e04155e6e50d8 | [] | no_license | VictoriqueCQ/LeetCode | dc84d81163eed26fa9dbc2114bba0b5c2ea881f4 | a77b3ead157f97f5d9599badb4d4c5da69de44ba | refs/heads/master | 2021-06-05T06:40:24.659909 | 2021-03-31T08:31:51 | 2021-03-31T08:31:51 | 97,978,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from typing import List
class Solution:
def findRepeatNumber(self, nums: List[int]) -> int:
hashmap = {}
for num in nums:
if num in hashmap:
return num
hashmap[num] = 1
| [
"1997Victorique0317"
] | 1997Victorique0317 |
494ab83141545c0a5d3051e10fe35e0c87efb1f1 | 261234c12bf71bbf86eba31ca263369bfdebbf30 | /tests/test_stringio.py | 71b8ea3d19dd2efdcfe270ce4240e21ea8460f42 | [
"BSD-3-Clause"
] | permissive | mobanbot/pyexcel-xlsxr | d9a5159c1b87a41ac04d80e0363dd0b8cdedaf5e | d9e53b6d773b6e35ee48c9d460cb8baf36eef797 | refs/heads/master | 2020-09-09T10:11:41.849989 | 2019-11-15T19:11:20 | 2019-11-15T19:11:20 | 221,419,912 | 0 | 0 | NOASSERTION | 2019-11-13T09:20:39 | 2019-11-13T09:20:38 | null | UTF-8 | Python | false | false | 1,029 | py | import os
import pyexcel
from nose.tools import eq_
from base import create_sample_file1
class TestStringIO:
def test_xlsx_stringio(self):
testfile = "cute.xlsx"
create_sample_file1(testfile)
with open(testfile, "rb") as f:
content = f.read()
r = pyexcel.get_sheet(
... | [
"wangc_2011@hotmail.com"
] | wangc_2011@hotmail.com |
e65e04050a9ffbf4e416d3cb7e53441ca84c5b9f | 022228249a7892e1efeaa11f0d445ba7cb115891 | /authentication/serializers.py | 011a96af3114e12acdffea258ab42a7f81522af8 | [] | no_license | angaradev/django-vue-interface | bacef985b9f9cbd4379992133168c9278b4f707b | 2e55d217b12bcda3c54acbb90cd3466bca955c5a | refs/heads/master | 2022-12-01T09:24:29.788368 | 2022-11-22T07:09:44 | 2022-11-22T07:09:44 | 241,351,571 | 0 | 2 | null | 2022-11-22T07:09:45 | 2020-02-18T12:08:14 | JavaScript | UTF-8 | Python | false | false | 3,917 | py | from rest_framework import serializers
from users.models import CustomUser
from users.models import CustomUser as User
from django.contrib import auth
from rest_framework.exceptions import AuthenticationFailed
from django.utils.encoding import (
smart_str,
force_str,
smart_bytes,
DjangoUnicodeDecodeErro... | [
"angara99@gmail.com"
] | angara99@gmail.com |
3b05b105b8f442f3e07ed76b144ee24fb0d6ce5a | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/django-debug-panel-0.8.3/debug_panel/middleware.py | 14c5b48d5964640b4dbf154c81f4905b5e9c3775 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 2,457 | py | """
Debug Panel middleware
"""
import threading
import time
from django.core.urlresolvers import reverse, resolve, Resolver404
from django.conf import settings
from debug_panel.cache import cache
import debug_toolbar.middleware
# the urls patterns that concern only the debug_panel application
import debug_panel.urls
... | [
"yingchen@cloudera.com"
] | yingchen@cloudera.com |
140193e8b223ec353654ac28391e418b308092b8 | 54bb9ba6d507cd25b2c2ac553665bc5fc95280d1 | /tests/onegov/core/test_security.py | d6cb3a8018e3f17681deab1fcf90d636a5b8f972 | [
"MIT"
] | permissive | href/onegov-cloud | 9ff736d968979380edba266b6eba0e9096438397 | bb292e8e0fb60fd1cd4e11b0196fbeff1a66e079 | refs/heads/master | 2020-12-22T07:59:13.691431 | 2020-01-28T08:51:54 | 2020-01-28T08:51:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,798 | py | import morepath
import onegov.core.security
from onegov.core.framework import Framework
from onegov.core.security import Public, Personal, Private, Secret
from onegov.core.security import forget, remembered
from webtest import TestApp as Client
def spawn_basic_permissions_app(redis_url):
class App(Framework):
... | [
"denis.krienbuehl@seantis.ch"
] | denis.krienbuehl@seantis.ch |
de26f3e5726c33fd62ff9c089edd4c062bc04d32 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/dialogflow/cx/v3/dialogflow-cx-v3-py/google/cloud/dialogflowcx_v3/types/__init__.py | 6b90083594020346e408af5318860bd1ffb66f18 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,067 | 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
71bc3b046d96579648ee64146b4b6a2e910feb89 | c577f5380b4799b4db54722749cc33f9346eacc1 | /BugSwarm/scikit-learn-scikit-learn-85777543/buggy_files/sklearn/cluster/tests/test_affinity_propagation.py | be76d597eef444ecd2cf368fad0a1259f2460d6a | [] | no_license | tdurieux/BugSwarm-dissection | 55db683fd95f071ff818f9ca5c7e79013744b27b | ee6b57cfef2119523a083e82d902a6024e0d995a | refs/heads/master | 2020-04-30T17:11:52.050337 | 2019-05-09T13:42:03 | 2019-05-09T13:42:03 | 176,972,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | """
Testing for Clustering methods
"""
import numpy as np
from sklearn.utils.testing import assert_equal
from sklearn.utils.testing import assert_array_equal
from sklearn.utils.testing import assert_raises, assert_warns
from sklearn.utils import ConvergenceWarning
from sklearn.cluster.affinity_propagation_ import A... | [
"durieuxthomas@hotmail.com"
] | durieuxthomas@hotmail.com |
ad761f121773b96b4f78a9b9f7ea2450e0c4c3d5 | 6fa13067f1f5f50a48f7a535184c8abfb0334012 | /old/fall2019/oop_examples.py | b751853def3aa03845d734e625193736c2968cd0 | [] | no_license | mkzia/eas503 | 89193b889c39fc5dbc81217e1c6c3d2581b6929d | 4d7b548cc7fa8e938842d390f3df710c23d5f8fb | refs/heads/master | 2023-09-04T06:56:49.796298 | 2023-09-01T02:05:16 | 2023-09-01T02:05:16 | 205,002,120 | 70 | 123 | null | null | null | null | UTF-8 | Python | false | false | 5,884 | py | # class Person:
# def __init__(self, first_name, last_name, email):
# self.first_name = first_name
# self.last_name = last_name
# self.email = email
# class Person:
# def __init__(self, first_name, last_name, email):
# self.first_name = first_name
# self.last_name = las... | [
"mkhawarzia@gmail.com"
] | mkhawarzia@gmail.com |
4507f3ce698ea8e4d76202ff17dedccceba597b6 | ed7e3f32a3895eb7505dc6211cd1bbc2745fbc54 | /cloudhoststatus/hostinformation/utils.py | 3be14b6009e10fb82d16184e0d6cd4c932aa7f85 | [] | no_license | heyuantao/thinking | 6544e630c32c0b17f92e9aedf4b6ee1288c843e6 | 784b7d07130a165648ef7bee5d8164ccd7c9210b | refs/heads/master | 2021-01-21T21:33:22.238673 | 2016-05-09T14:36:02 | 2016-05-09T14:36:02 | 36,917,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | from hostinformation.models import KeyValueStorage
class SystemSettings(object):
hostIdKeyName="hostId"
hostSecretKeyName="hostSecret"
@classmethod
def getHostId(cls):
obj,created=KeyValueStorage.objects.get_or_create(key=cls.hostIdKeyName)
if created is True:
return ""
... | [
"he_yuan_tao@163.com"
] | he_yuan_tao@163.com |
d70400b9b4cb8edb95fcca1b4e23c5b768538339 | 08bfacc0b63c129d852e5eedead8f3b21b098343 | /analysis/urls.py | 6ead5e7da4e51ecc3fb4fae5060030887d1b38d1 | [] | no_license | good5229/happyride | 8d1df12396496bfefd5b932ac7c0f1fd8929ab83 | 955466a91929c7d15dd33c82a7c49743fc55c59f | refs/heads/master | 2022-05-02T06:04:52.259988 | 2019-08-27T11:31:27 | 2019-08-27T11:31:27 | 202,042,046 | 1 | 0 | null | 2022-04-22T22:10:39 | 2019-08-13T01:54:21 | HTML | UTF-8 | Python | false | false | 695 | py | from django.urls import path
from analysis.views import Select_Location, Introduce, Predict_Economic, Predict_User, Result_User, \
Result_Economic, Drive_AreaView
app_name = 'analysis'
urlpatterns = [
path('introduce/', Introduce.as_view(), name='intro'),
path('select_location/', Select_Location.as_view(... | [
"kjb45841497@gmail.com"
] | kjb45841497@gmail.com |
c6047ccc958185a7aaa2ec34eb117a488afa6cf1 | a74b980fd95d5d810315f181449fc9d1710e6923 | /savecode/threeyears/idownserver/config_db.py | 54d30fd111cbcff5712a182ba8015f97fe6876ab | [
"Apache-2.0"
] | permissive | cbbbbbbbb/sspywork | b70f5539203b47b21eec2f0514ddca155affc2b8 | 8f05a6b91fc205960edd57f9076facec04f49a1a | refs/heads/master | 2023-03-22T19:45:13.024076 | 2021-03-08T01:24:21 | 2021-03-08T01:24:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | """配置数据库"""
# -*- coding:utf-8 -*-
from .dbmanager.dbsqlite.sqlite_config import SqliteConfig
sqlitecfg = SqliteConfig(
dbdir='./_serverdb',
# dbname='./data.db',
maxdbfisize=500 * 1024 * 1024,
maxconnperdb=30,
errordbdelete=False,
connecttimeoutsec=60,
delete_on_error=True,
)
| [
"shiyuegege@qq.com"
] | shiyuegege@qq.com |
51feb1559d6269a8bfbe08d97f9059b84886f477 | cb4e07b2a5dd30804ce428ec84d9e9f77709fcd5 | /boj/2580_스도쿠.py | 498972a522ce313c9187777f9cde167e32d68636 | [] | no_license | jbsam2/algo_problem | 141c17003e88a69afdeea93a723e7f27c4626fdc | 18f2cab5a9af2dec57b7fd6f8218badd7de822e4 | refs/heads/master | 2023-05-18T10:03:00.408300 | 2021-06-02T10:36:50 | 2021-06-02T10:36:50 | 282,104,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | import sys
b=[list(map(int,sys.stdin.readline().split()))for _ in range(9)]
row=[[0]*10 for _ in range(9)]
col=[[0]*10 for _ in range(9)]
square=[[0]*10 for _ in range(9)]
get=[[i//3*3+j//3 for j in range(9)]for i in range(9)]
z=[]
for i in range(9):
for j in range(9):
if b[i][j]==0:
z.append((i... | [
"kbsam2@gmail.com"
] | kbsam2@gmail.com |
a4ef24df88247d33e93e1881e50ca6946532321c | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-1971.py | af21b2c97c9339631431f82f565e89a23656b1af | [] | 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 | 13,351 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
b9eac1b34516eab3db0ae5f654b67b82ec25891c | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /decoding/IAD/fairseq/examples/simultaneous_translation/utils/functions.py | f795b5f31cee6d9f8387d6402994b9cbb4c98190 | [
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 3,954 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
def exclusive_cumprod(tensor, dim: int, eps: float = 1e-10):
"""
Implementing exclusive cumprod.
There is cumprod i... | [
"tage@microsoft.com"
] | tage@microsoft.com |
c0719f30c820be82739a6b477f3376b8216e1ea0 | 3624e9f0a026b57ebdafa4e842b93f56e5a8504d | /Codeforces/94 Beta Division 1/Problem B/gen.py | 5b7ed5aec5ac503fa8fcf17c3866742b796e5a83 | [
"MIT"
] | permissive | ailyanlu1/Competitive-Programming-2 | 54109c8644d3ac02715dc4570916b212412c25c0 | 6c990656178fb0cd33354cbe5508164207012f24 | refs/heads/master | 2020-03-23T07:48:20.560283 | 2018-02-15T06:49:49 | 2018-02-15T06:49:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | n = 100000
s = ''
for i in xrange(n):
s += 'a'
print s
print n
| [
"adityapaliwal95@gmail.com"
] | adityapaliwal95@gmail.com |
bc33ec4c1cac4aed716365eb8ae537c42c02fa03 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02688/s707932277.py | 9bb9f9ebd664c458e43faf1f9d9f2c836d2529c5 | [] | 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 | 154 | py | n,k=map(int,input().split())
myset = set()
for i in range(k):
d=input()
l=list(map(int,input().split()))
myset |= set(l)
print(n-len(myset)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d2f9e6d958f03a5c89889d6a704b8d701c4173f0 | eb1a5854a8c3bbd857b0c3b108b264832677f12e | /prysm/objects.py | 5167fce0490b23600276629fda08e8d49ecb3190 | [
"MIT"
] | permissive | mjhoptics/prysm | 7cd585b29e173b53b57f09346609d3127b69ff59 | 5dea335e068d04d1006741d8eb02278181751f73 | refs/heads/master | 2023-07-19T14:52:13.316350 | 2021-08-15T16:10:18 | 2021-08-15T16:10:18 | 396,978,540 | 1 | 0 | MIT | 2021-08-16T21:26:44 | 2021-08-16T21:26:43 | null | UTF-8 | Python | false | false | 6,324 | py | """Objects for image simulation with."""
from .conf import config
from .mathops import np, jinc
from .coordinates import optimize_xy_separable
def slit(x, y, width_x, width_y=None):
"""Rasterize a slit or pair of crossed slits.
Parameters
----------
x : `numpy.ndarray`
x coordinates, 1D or 2... | [
"brandondube@gmail.com"
] | brandondube@gmail.com |
7cbb5eb8707a5c3a2451ed01940cacc34a7c9c80 | b92adbd59161b701be466b3dbeab34e2b2aaf488 | /testing/testing_submissions/testing_assignment_003/venv/bin/mypyc | 9843b76647f25e34ab701200dba447c6a53a5d7b | [] | no_license | R151865/cloud_9_files | 7486fede7af4db4572f1b8033990a0f07f8749e8 | a468c44e9aee4a37dea3c8c9188c6c06e91cc0c4 | refs/heads/master | 2022-11-22T10:45:39.439033 | 2020-07-23T09:31:52 | 2020-07-23T09:31:52 | 281,904,416 | 0 | 1 | null | 2022-11-20T00:47:10 | 2020-07-23T09:08:48 | Python | UTF-8 | Python | false | false | 1,445 | #!/home/ec2-user/environment/venv/bin/python3
"""Mypyc command-line tool.
Usage:
$ mypyc foo.py [...]
$ python3 -c 'import foo' # Uses compiled 'foo'
This is just a thin wrapper that generates a setup.py file that uses
mypycify, suitable for prototyping and testing.
"""
import os
import os.path
import sub... | [
"r151865@rguktrkv.ac.in"
] | r151865@rguktrkv.ac.in | |
9cea8323471d1cb4bf4034ee3bce45e3042d155d | 7f68bbb3fd328a4d6bbabecb44305987d8cbbfc4 | /algorithm/codexpert/d2Snake.py | 5388465d3ada1254b3ef75afeedbfc82e10e804a | [] | no_license | seunghoon2334/TIL | c84f9f9e68c8ccc7a1625222fe61f40739774730 | 51cfbad2d9b80a37b359716fca561c2a5c5b48b3 | refs/heads/master | 2022-12-18T18:20:19.210587 | 2019-11-26T03:14:23 | 2019-11-26T03:14:23 | 162,101,369 | 0 | 0 | null | 2022-11-22T03:59:16 | 2018-12-17T08:51:53 | C | UTF-8 | Python | false | false | 1,278 | py | import sys #586
sys.stdin = open("d2snake.txt")
n = int(input())#정사각형크기
arr = [[0 for _ in range(n+1)] for _ in range(n+1)]
k = int(input())#과일개수
for kc in range(k):
r, c = map(int, input().split()) #가로세로
arr[r][c] = 1
L = int(input())#뱀이동경로
xLD = []
for Lc in range(L):
x, LD = input().split()
xLD.app... | [
"gogo12394@naver.com"
] | gogo12394@naver.com |
34c72a2618fca99d55dd02269e2e53b0aa13b9a9 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/Tesseract/code.py | 38d2b389a4b19db0738f940c16a2d08159008335 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 5,590 | py | from __future__ import division
from pylab import *
import time, os
from copy import deepcopy
from pprint import pprint, pformat
'''
input:
path: path to input file
parser: function:
input:
list of the rows of the input file
returns:
one parsed case
NOTE: only us... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
b56bf90f4601ec982c31f9e318ef5fd791d66707 | 1726e893c9c66b915fff639de6ca43d87c06e690 | /exponent/application.py | bbe6f208bfee6fb5460d543bb7e041889c79fd87 | [
"ISC"
] | permissive | lvh/exponent | 348b637dda7bb1f3d81e0bd00ac99417e7530d9f | 0a42866ef13dcc923a37c216725e4e37d63ca604 | refs/heads/master | 2021-01-13T02:27:11.726551 | 2013-12-05T10:28:13 | 2013-12-05T10:28:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | """
Tools for running exponent applications.
"""
from axiom import store
from twisted import plugin
from twisted.application import service
from twisted.python import usage
from zope import interface
class Options(usage.Options):
"""
The options for starting a service.
"""
optParameters = [
["... | [
"_@lvh.cc"
] | _@lvh.cc |
6b2fa7ea502e2b423745919bd9b2ab6e4fe75afa | 478a6213b06ce085d478c7c825e44cbfd141d06f | /10. Creating Fractals Using Recursion/sierpinski/sierpinski.pyde | 91fb98718b3171077fca1f55df9bd882a22a1363 | [] | no_license | Mart1nDimtrov/Math-Adventures-with-Python | 3306c7452d82cc152a29a113ccde782c06b659fa | 7b5446a9d718e21d65b9c2ddecb2b64905896b55 | refs/heads/master | 2021-02-07T02:54:19.025286 | 2020-05-17T12:55:01 | 2020-05-17T12:55:01 | 243,974,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | pyde | def setup():
size(600,600)
color(HSB)
def draw():
background(255)
translate(100,450)
sierpinski(400,5)
def sierpinski(sz, level):
if level == 0: #draw a black triangle
fill(random(0,255),random(0,255),random(0,255))
triangle(0,0,sz,0,sz/2.0,-sz*sqrt(3)/2.0)
else: ... | [
"giggly@abv.bg"
] | giggly@abv.bg |
6beb4e426945a0d8897516fd52971bea4abcb94d | a1d30d667cbf814db1809c31cf68ba75c01f819c | /tags/Tree/Flatten BT to Linkedlist.py | 7c15062de52a5910799bf9ea71a9ffa2486c5c9c | [] | no_license | yemao616/summer18 | adb5f0e04e6f1e1da6894b0b99a61da3c5cba8ee | 8bb17099be02d997d554519be360ef4aa1c028e3 | refs/heads/master | 2021-06-02T04:32:07.703198 | 2020-01-09T17:45:29 | 2020-01-09T17:45:29 | 110,744,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | # Given a binary tree, flatten it to a linked list in-place.
# Example :
# Given
# 1
# / \
# 2 5
# / \ \
# 3 4 6
# The flattened tree should look like:
# 1
# \
# 2
# \
# 3
# \
# 4
# \
# 5
# \
# ... | [
"ymao4@ncsu.edu"
] | ymao4@ncsu.edu |
dc4825ef18bb6cae5a0307d81db2ea09d982a13e | 5152267a5c7a0a935a4f6cc8972779014805f04c | /20120507b.py | cc58713d453c68af8a0c41029313afe2032f2851 | [] | no_license | argriffing/xgcode | d099af1a3ac36c88383f3312f1cb9aaf661fd7db | 91c6f8331f18c914eb3dfc51bc166915998c5081 | refs/heads/master | 2020-05-17T09:00:00.431019 | 2014-08-08T23:52:21 | 2014-08-08T23:52:21 | 471,437 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,178 | py | """
Look at properties of an effective parent independent process.
Sample a GTR rate matrix.
Then construct a constrained parent independent process rate matrix
defined by properties of the GTR rate matrix.
Check that the mutual information of the parent independent process
at time t is a lower bound of the mutual inf... | [
"argriffi@brcdesk18.statgen.ncsu.edu"
] | argriffi@brcdesk18.statgen.ncsu.edu |
a628d7ceda2a8eb1d874e7f40c0878fe22ba8ab9 | 5215ee22217a0bddc6a6eae3b0e49c1216a77bbc | /mungo/alchemy/meta.py | 578584a783b50d8f8dab26e7ccb608dc0adbae4a | [
"Artistic-2.0"
] | permissive | PapenfussLab/Mungo | 5cda4d19a5ef4cb51da495f7abf259b4cd4d1697 | 02c5b0e48ecd28596cb9481b282753859f47fed6 | refs/heads/master | 2021-01-17T07:40:08.832760 | 2015-08-20T01:21:19 | 2015-08-20T01:21:19 | 41,067,597 | 1 | 3 | null | 2016-06-12T23:31:20 | 2015-08-20T01:02:28 | Python | UTF-8 | Python | false | false | 425 | py | """SQLAlchemy Metadata and Session object"""
from sqlalchemy import MetaData
__all__ = ['engine', 'metadata', 'Session']
# SQLAlchemy database engine. Updated by model.init_model().
engine = None
# SQLAlchemy session manager. Updated by model.init_model().
Session = None
# Global metadata. If you have multiple da... | [
"papenfuss@mac2576.wehi.edu.au"
] | papenfuss@mac2576.wehi.edu.au |
b652ec9ffc3e21b67be950335b2126e63695117d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_dram.py | 5d379abfd3955de914db69c5d314d31ec973e5e1 | [
"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 | 339 | py |
#calss header
class _DRAM():
def __init__(self,):
self.name = "DRAM"
self.definitions = [u'a small amount of a strong alcoholic drink, especially whisky: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
re... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e5357773c6c2f0da6e0d850004f753a2b41dc227 | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /Django/test/my_site/app01/models.py | 7871cff22f15df0622ed8b705c1345bdfafe1aaf | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 933 | py | from django.db import models
# Create your models here.
class Account(models.Model):
'''账户表'''
username = models.CharField(max_length=32,unique=True)
email = models.EmailField(unique=True)
password = models.CharField(max_length=255)
register_date = models.DateTimeField(auto_now_add=True)
singa... | [
"13269469526@163.com"
] | 13269469526@163.com |
5ad63d10193172a8a19de2697991f0b59cb19909 | 3437f523434b86af02476fc0056030a67feaa9a5 | /test/test_baseOT.py | dcf1bdbdf8040f9a4b89c6fd25bf29ff8ddbe0a5 | [
"MIT"
] | permissive | facebookresearch/CrypTen | 481d0bfc94582eedef8b3510d91fd6b3ce253097 | 99c3a046b705c9d69d7a10fcab59a444ffbee39a | refs/heads/main | 2023-09-04T21:10:29.331999 | 2023-08-25T22:11:00 | 2023-08-25T22:11:00 | 202,443,088 | 1,388 | 323 | MIT | 2023-09-01T16:34:22 | 2019-08-15T00:00:31 | Python | UTF-8 | Python | false | false | 1,241 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
import crypten.mpc.primitives.ot.baseOT as baseOT
from test.multiprocess_test_case import MultiProces... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
56a0222574e3e2c191117f58d59dcac0387ae020 | bf54d746e4ab50ca4253dd6f8b3378bd079eb882 | /scripts/grafana-export | 8181d3d40bcbe90228c0d94f931367961fbca0eb | [
"BSD-3-Clause"
] | permissive | betatim/mybinder.org-deploy | 25da8cd55f23bb021c2c2d381716aef9c9c5b233 | 3804b1046b6524e3ec70e6fcd6f6857405ee92ef | refs/heads/master | 2023-03-15T22:52:13.313870 | 2021-09-22T06:55:27 | 2021-09-22T06:55:27 | 109,370,219 | 1 | 1 | BSD-3-Clause | 2023-03-13T04:57:51 | 2017-11-03T08:18:25 | Jupyter Notebook | UTF-8 | Python | false | false | 5,004 | #!/usr/bin/env python3
"""
Export grafana data to a folder
Also import data from that folder
"""
import json
import logging
import os
import pathlib
import requests
log = logging.getLogger("grafana-export")
grafana_user = os.environ.get("GRAFANA_USER", "admin")
grafana_password = os.environ.get("GRAFANA_PASSWORD"... | [
"benjaminrk@gmail.com"
] | benjaminrk@gmail.com | |
dddc48388ea72fb3b6981c7258f091e6bf14da72 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/df6fc083175443ed83b2505e8da593f1.py | 809a1b41f43d4c03fafb0ee4ce94047827381828 | [] | 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 | 270 | py | def to_rna(dna_strand):
# RNA Transcription
DNA_TO_RNA_MAP = {
'G' : 'C',
'C' : 'G',
'T' : 'A',
'A' : 'U'
}
rna_complement = [DNA_TO_RNA_MAP.get(dna) for dna in dna_strand]
return ''.join(rna_complement)
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
758d372eb62c65cba99f2571370ce15e747387b4 | 5c4515960dcbfd3861d06d90b8c9bde0bdf3ecf5 | /Iserlab/migrations/0035_auto_20170302_0810.py | 7d6a5db6322c4680a611d4fe8212055b041520af | [] | no_license | Mathilda1992/mcysite | 66bb2f51de622b7f7c450664c798eb11ce195cae | def82e43474ecc734c6cbb26842bd87f698b2b88 | refs/heads/master | 2021-01-11T19:58:23.611196 | 2017-06-26T08:58:11 | 2017-06-26T08:58:11 | 79,434,975 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-03-02 08:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Iserlab', '0034_auto_20170302_0809'),
]
operations = [
migrations.AlterField... | [
"machenyi2011@163.com"
] | machenyi2011@163.com |
0afc09170922801eb09865d239352c65536ac036 | bea976ac065523f9bc7f54e9bcec5d136b426244 | /neupy/__init__.py | 9eac519a8590d071077119fa7acf988b8edcb42f | [
"MIT"
] | permissive | BigR-Lab/neupy | ce2a67eb9b6fd989441e3fd59954fbb6224bb0c3 | a66080caf54e1f8298096bf40172e8dbf3aa6322 | refs/heads/master | 2021-04-29T10:37:21.260363 | 2016-12-25T19:20:45 | 2016-12-25T19:20:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | """
NeuPy is the Artificial Neural Network library implemented in Python.
"""
__version__ = '0.4.0'
| [
"mail@itdxer.com"
] | mail@itdxer.com |
13f5f8f2931af507819c44b93233efd3687d4d95 | 3e23aaf1d482843e3640dc2721ab887082063b51 | /num201_300/num201_210/num206.py | 570ac7b26a91b8149be9e80d2a651cebfe26a96f | [] | no_license | guozhaoxin/leetcode | b19be28c0dc82fa7a5126edafa7c77ae2c77f22e | 807ba32ed7802b756e93dfe44264dac5bb9317a0 | refs/heads/master | 2020-04-01T10:29:49.375239 | 2019-02-24T03:27:18 | 2019-02-24T03:27:18 | 153,120,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | #encoding:utf8
__author__ = 'gold'
'''
Reverse Linked List
Reverse a singly linked list.
Example:
Input: 1->2->3->4->5->NULL
Output: 5->4->3->2->1->NULL
Follow up:
A linked list can be reversed either iteratively or recursively. Could you implement both?
'''
# Definition for singly-linked list.
class ListNode(ob... | [
"1345616978@qq.com"
] | 1345616978@qq.com |
2ad8f41ce05898f95190d998e1019f6e288eafae | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/chriskiehl_Gooey/Gooey-master/gooey/gui/util/functional.py | 8cc2c51ce3a0a453f2c15311dfa2fdb1251e222f | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 116 | py | '''
Simple monad-ish bindings
'''
def unit(val):
return val
def bind(val, f):
return f(val) if val else None
| [
"659338505@qq.com"
] | 659338505@qq.com |
9f4e2449261c50ef4c16361f47be1a70b8464e4e | 8ead8ff4182a67659a2b80213faecee95c012f84 | /module.py | 0f4d8ad42540dd23909bb6f48b9f1035fff033a4 | [] | no_license | dhruvramani/CycleGAN-Embedding-2 | fb2e54080cc929415436a983ec653587c86a1ad5 | 609783969ac73ca7fb93a1e95bc8043608370e22 | refs/heads/master | 2023-05-11T15:44:04.846618 | 2017-08-01T16:54:49 | 2017-08-01T16:54:49 | 98,720,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,544 | py | from __future__ import division
import tensorflow as tf
from ops import *
from utils import *
def discriminator(image, options, reuse=False, name="discriminator"):
with tf.variable_scope(name):
# image is 256 x 256 x input_c_dim
if reuse:
tf.get_variable_scope().reuse_variables()
... | [
"dhruvramani98@gmail.com"
] | dhruvramani98@gmail.com |
c8bf2b352b2f32605bcdaa0a330b9a4963a8c53f | 8076124f4087781e0513dbe09c0f43dc6a861ab0 | /src/sentry/lang/native/error.py | dbcdea855bb36c1196064d3beabc057a61a887e6 | [
"BSD-2-Clause"
] | permissive | sharmapacific/sentry | 75e3356f87cb5a1e812e0974b081fd47852dfe33 | fceabe7cb84de587fe05b2c36edc013058e7e55a | refs/heads/master | 2020-08-19T00:13:48.748983 | 2019-10-17T17:09:06 | 2019-10-17T17:09:06 | 215,851,537 | 1 | 0 | BSD-3-Clause | 2019-10-17T17:43:49 | 2019-10-17T17:43:49 | null | UTF-8 | Python | false | false | 3,965 | py | from __future__ import absolute_import
import logging
import six
from sentry.utils.compat import implements_to_string
from sentry.lang.native.minidump import is_minidump_event
from sentry.lang.native.utils import image_name
from sentry.models import EventError
from sentry.reprocessing import report_processing_issue
... | [
"noreply@github.com"
] | sharmapacific.noreply@github.com |
535d7f5a0ece5218d8dc4aa7d6943d79e8cfca3b | 885e488098bb3482ac86146cdf708ac039b33718 | /Part/亡魂主宰.py | 062bf00bf6308d696e37920de471b95a83a4db88 | [] | no_license | bunemp/DNFCalculating | e17c3aa87b1225080311e37268bd2817c91b8548 | 2099aff612999694a1a9313b1f50063780ab9ba5 | refs/heads/master | 2022-11-26T23:51:32.488619 | 2020-08-04T13:40:25 | 2020-08-04T13:40:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,601 | py | from PublicReference.base import *
亡魂主宰等级 = 100 + 5
class 亡魂主宰主动技能(主动技能):
def 等效CD(self, 武器类型):
if 武器类型 == '匕首':
return round(self.CD / self.恢复 * 0.95, 1)
if 武器类型 == '手杖':
return round(self.CD / self.恢复 * 1.1, 1)
class 亡魂主宰技能0(亡魂主宰主动技能):
名称 = '暗魂波'
备注 = '(蓄力)'
... | [
"wxh_email@yeah.net"
] | wxh_email@yeah.net |
0f8eacb7fa7c26cbfee9f58864a68aa27edfd36f | bee9a140f51f85c612f4e869747aae3d155188c5 | /src/main/python/systemds/operator/algorithm/builtin/univar.py | 3a9f8f2fb8724ad740047651788559ccded88ea1 | [
"Apache-2.0"
] | permissive | clarapueyoballarin/systemds | cb64a494afd14da142269c788c76edb236d8b755 | a68a71ddb089ebdd52e8f316a03bda281f4532ba | refs/heads/master | 2023-05-22T16:39:04.409220 | 2021-06-17T16:14:15 | 2021-06-17T16:14:15 | 341,305,828 | 0 | 1 | Apache-2.0 | 2021-02-24T22:51:31 | 2021-02-22T18:59:49 | Java | UTF-8 | Python | false | false | 1,470 | 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 unde... | [
"baunsgaard@tugraz.at"
] | baunsgaard@tugraz.at |
8e9fc42629e39bc2ffd45d63954bfd41a1512755 | 4df32cdc140f3a15c9a540787241c513ff4652a4 | /exercicios_resolvidos3/exercicios3/capitulo 07/exercicio-07-10.py | 1acad2d8dbbe4a151372084e4817d059782bfcff | [
"MIT"
] | permissive | tiagosm1/Python_Nilo_Ney | 04039c4a9294d480b0493d71e46cc850168c5365 | b5380dcc8fcf64e9c047ebc353585caba3d7b397 | refs/heads/main | 2023-02-18T22:07:46.696674 | 2020-12-23T11:27:30 | 2020-12-23T11:27:30 | 317,965,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,799 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2020
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terce... | [
"72826762+tiagosm1@users.noreply.github.com"
] | 72826762+tiagosm1@users.noreply.github.com |
b7026f8f896204dd924e2e5ba270ab2ffc80a5b3 | a320a013ffbba858d633b2db9485bca99c578543 | /core/pyutil.py | 48b90b98aa102bd4b85fe2a7895a64310aea367c | [
"Apache-2.0"
] | permissive | ariabuckles/oil | eb189dec4f9381a5ae53a9cb1efca0eb7c610392 | 8a9e6bb7a8ba172ee06d8acca88e8032a1c1a765 | refs/heads/master | 2020-05-16T22:20:44.545047 | 2019-04-25T01:42:33 | 2019-04-25T01:42:33 | 183,333,858 | 0 | 0 | Apache-2.0 | 2019-04-25T01:36:58 | 2019-04-25T01:36:58 | null | UTF-8 | Python | false | false | 3,640 | py | #!/usr/bin/python
"""
pyutil.py: Code that's only needed in Python. C++ will use other mechanisms.
"""
from __future__ import print_function
import cStringIO
import posix
import sys
import zipimport # NOT the zipfile module.
from pylib import os_path
from typing import IO
class _ResourceLoader(object):
def op... | [
"andy@oilshell.org"
] | andy@oilshell.org |
e72d964ae8200895ca017de29b21cc31fba2f368 | 5b3710ce68bf4062a5bff47241c3d5e86f1c7bbd | /Miragefile@next.py | 5589bec70ed8cdefcd1d6565e2fc4ae02048841b | [
"Apache-2.0"
] | permissive | sfc-rg/nx-portal | 38f208ebbcbe458043eeebade39477e2f5b76faa | b40b1e72a077c140f02e969ffa21de45863dc2b3 | refs/heads/master | 2021-07-15T07:09:52.589726 | 2020-09-24T02:52:23 | 2020-09-24T02:52:23 | 212,581,107 | 5 | 2 | Apache-2.0 | 2020-09-24T02:19:41 | 2019-10-03T13:00:23 | JavaScript | UTF-8 | Python | false | false | 1,678 | py | #
# Mirage Configuration Scripts Version 2018/03/23
# Copyright (c) 2017-2018 Shota Shimazu
# This software is licensed under the Apache v2, see LICENSE for detail.
#
from mirage import system as mys
from mirage.core import Void
from mirage.miragefile.conf import Category, Detail, Config
from mirage.confscript import ... | [
"hornet.live.mf@gmail.com"
] | hornet.live.mf@gmail.com |
14e6504ab66255db1dcbd2f27766e505422d2356 | 775822912186176ced195cc224659f2b4f5994d3 | /whoville/cloudbreak/models/platform_networks_response.py | 7bfb3ec63034e6d63f90bda2923711b76a865968 | [
"Apache-2.0"
] | permissive | Chaffelson/whoville | 7885d7d0994659dd1d1c02b4bcd87d48b161c5d0 | f71fda629c9fd50d0a482120165ea5abcc754522 | refs/heads/master | 2021-06-04T06:17:29.603774 | 2021-02-11T13:35:28 | 2021-02-11T13:35:28 | 93,987,343 | 31 | 32 | Apache-2.0 | 2019-10-01T04:59:13 | 2017-06-11T06:57:39 | Python | UTF-8 | Python | false | false | 4,066 | py | # coding: utf-8
"""
Cloudbreak API
Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud... | [
"chaffelson@gmail.com"
] | chaffelson@gmail.com |
c28062be66ca452e15c5d29cb8644bc6afc3cbcd | af101b467134e10270bb72d02f41f07daa7f57d8 | /mmagic/models/editors/stylegan2/ada/misc.py | 6a7b95597da36e57e9184ffffffe53251039c41b | [
"Apache-2.0"
] | permissive | open-mmlab/mmagic | 4d864853417db300de4dfe7e83ce380fd1557a23 | a382f143c0fd20d227e1e5524831ba26a568190d | refs/heads/main | 2023-08-31T14:40:24.936423 | 2023-08-30T05:05:56 | 2023-08-30T05:05:56 | 203,999,962 | 1,370 | 192 | Apache-2.0 | 2023-09-14T11:39:18 | 2019-08-23T13:04:29 | Jupyter Notebook | UTF-8 | Python | false | false | 1,058 | py | # Copyright (c) OpenMMLab. All rights reserved.
import numpy as np
import torch
# Cached construction of constant tensors. Avoids CPU=>GPU copy when the
# same constant is used multiple times.
_constant_cache = dict()
def constant(value, shape=None, dtype=None, device=None, memory_format=None):
value = np.asarr... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
543a2741f9e316a90cf93797b967744b4495b54b | ace30d0a4b1452171123c46eb0f917e106a70225 | /filesystems/vnx_rootfs_lxc_ubuntu64-16.04-v025-openstack-compute/rootfs/usr/lib/python2.7/dist-packages/neutron/services/auto_allocate/db.py | 01648afb8b8ce62e56659c454a85af002a235974 | [
"Python-2.0"
] | permissive | juancarlosdiaztorres/Ansible-OpenStack | e98aa8c1c59b0c0040c05df292964520dd796f71 | c01951b33e278de9e769c2d0609c0be61d2cb26b | refs/heads/master | 2022-11-21T18:08:21.948330 | 2018-10-15T11:39:20 | 2018-10-15T11:39:20 | 152,568,204 | 0 | 3 | null | 2022-11-19T17:38:49 | 2018-10-11T09:45:48 | Python | UTF-8 | Python | false | false | 16,799 | py | # Copyright 2015-2016 Hewlett Packard Enterprise Development Company, LP
#
# 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/li... | [
"jcdiaztorres96@gmail.com"
] | jcdiaztorres96@gmail.com |
e5085ca73abd5e382f58f099897f517d0c5548d5 | f6521bc6591f5b2d7a4e7f0410d7ff45b67f621a | /darktv_anime_25919/urls.py | 2839e80f856f382cd5ebd7937267158c8162c655 | [] | no_license | crowdbotics-apps/darktv-anime-25919 | 5a8d5589e92afa6b001a00699f69e94ef2497136 | f19f15cf4834f5ef5851abaac69b834728205529 | refs/heads/master | 2023-04-05T22:18:46.906512 | 2021-04-24T20:32:49 | 2021-04-24T20:32:49 | 361,260,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | """darktv_anime_25919 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c621c612ed26f0e6aec012964021132aae4b1c15 | 84d891b6cb6e1e0d8c5f3e285933bf390e808946 | /Demo/web_html/demo_元素定位/stury_元素定位.py | ff85e801408224f08618330260dca240da896f03 | [] | no_license | zzlzy1989/web_auto_test | 4df71a274eb781e609de1067664264402c49737e | 3e20a55836144e806496e99870f5e8e13a85bb93 | refs/heads/master | 2020-05-24T10:37:29.709375 | 2019-10-28T06:14:31 | 2019-10-28T06:14:31 | 187,230,775 | 2 | 0 | null | 2019-06-20T11:06:32 | 2019-05-17T14:29:11 | null | UTF-8 | Python | false | false | 3,219 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Name: ele_locator
# Author: 简
# Time: 2019/5/25
from selenium import webdriver
# 元素的特征 属性
# 8种 定位方式
# 6种 通过一个属性来定位的
# 2种 组合各种属性来定位 + 结合各种关系来定位
# //*[@id="kw"]
# /html/body/div[2]/div/form/div[1]/input
# 开启跟google的一个会话
driver = webdriver.Chrome()
# 访问一个网址
driver.ge... | [
"394845369@qq.com"
] | 394845369@qq.com |
634a7356994a5bb39a096662bae94a63424633e4 | 62ff0d3e132b5ab34a8ce309bc7b601e5240196f | /md_importer/tests/test_website_import.py | 628fcab0a542a92949a9bbea414185cef60c2077 | [] | no_license | canonical-web-and-design/developer.ubuntu.com-legacy | 2ea766d9a4f42e2ab86fb1950506c0aeb6b5b700 | 55769d377dca312451a627e825a813b589b4d1b9 | refs/heads/master | 2021-06-16T20:38:10.091057 | 2017-05-19T14:02:56 | 2017-05-19T14:02:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,612 | py | from md_importer.importer.repo import Repo
from .utils import (
db_add_empty_page,
PublishedPages,
TestLocalBranchImport,
)
from cms.api import publish_pages
class TestSnappyWebsiteRead(TestLocalBranchImport):
def runTest(self):
self.create_repo('data/website-test')
self.assertTrue(is... | [
"robin@robinwinslow.co.uk"
] | robin@robinwinslow.co.uk |
b97a749a0c6ba8a9b56e59ffb9624a491d06e28e | 852c1fe472c04437e74965006b083ab19073a052 | /employee.py | f31a65af7f858c39d52da366da3a5200d8e00120 | [
"MIT"
] | permissive | zhumakova/ClassProject | 718e241c4bd2f0f172197780f65038899284bf75 | b869258706dae7c8e8ab723c61a45fd78e26494f | refs/heads/main | 2023-05-04T09:04:10.023058 | 2021-05-14T10:17:43 | 2021-05-14T10:17:43 | 364,881,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,468 | py | class Employee(object):
id = 0
def __init__(self,first,last,age):
self.first = first
self.last = last
self.email = f'{self.first}-{self.last}@saturnsoft.sat'
self.age = age
Employee.id += 1
self.emp_id = Employee.id
def desc(self):
print('emp desc')... | [
"bzhumakova@gmail.com"
] | bzhumakova@gmail.com |
1d66bdd63d7e32e0fbdecc2f20c29c71bf5cfc54 | 135d2c02b3ad706573bdfafa75ebc14bd170ef97 | /firedex-static/firedex-coordinator-service/algorithms/network_flows/network_flow_random.py | 02f849f6a16a5f2d5fe3ecfbc3f870b898f5a2b7 | [] | no_license | boulouk/firedex | 4afc6467bd83e096051d941699e59f1be806a46c | 187012986f4adf85d017e84a64db7c9bb1f447b0 | refs/heads/master | 2022-06-06T01:56:38.464322 | 2019-11-24T09:44:03 | 2019-11-24T09:44:03 | 138,659,150 | 2 | 1 | null | 2022-05-20T20:55:18 | 2018-06-25T23:09:54 | Python | UTF-8 | Python | false | false | 3,351 | py |
import random
class NetworkFlowRandom:
def __init__(self):
pass
def apply(self, network_configuration, firedex_configuration, experiment_configuration):
network_flows = range(10001, 10001 + firedex_configuration["network_flows"])
result = []
experiment_subscribers = experim... | [
"lucascalz8@gmail.com"
] | lucascalz8@gmail.com |
10d8de3f8fd94840d34eeed07d04d6959d605247 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/PrivateSamples/EMJ_UL18_mMed-1800_mDark-10_ctau-100_unflavored-down_cff.py | 10d7b94c3aa4abf0e890a87973c749d3fb0e4362 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 1,981 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'root://cmseos.fnal.gov///store/gr... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
7fabd77746e868e491b5e1d5dfd3a02e438ed7d4 | 86b8b825407636c417b2520376a1ba4c110ec51b | /backend/backend/api/api.py | 1dc1dd54e6389cd2ed06f820ad2f7138b7976128 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | permissive | chloe-flam/qaboard | 47fc6bb000d07f73071394ca242f1c76b55afc33 | 97e041cab1a5de50510aa73d0a92cdfb951fa70d | refs/heads/master | 2022-11-13T05:24:31.180166 | 2020-07-10T14:41:08 | 2020-07-10T14:41:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,285 | py | """
Simple REST API to list the objects in our database.
"""
import sys
import datetime
import pytz
import subprocess
import json
from pathlib import Path
import ujson
from gitdb.exc import BadName
from flask import request, jsonify, make_response, redirect
from sqlalchemy import func, and_, asc, or_
from sqlalchemy.... | [
"arthur.flam@samsung.com"
] | arthur.flam@samsung.com |
69f94396700c4dc1bc4ef6b000760f69937f1b4d | c2062070fdc3e0760782b4e0958100584d3d1737 | /game.py | a12d9512d84502dc74be348311c75ab0b690620a | [] | no_license | IIITSERC/SSAD_2015_A3_Group2_35 | 2e35fe10ba22e6b6d9405238cd2824bbf25c4a20 | 2ebf787eb595c652beba6e31f584bbf5d0ef0ba8 | refs/heads/master | 2021-01-10T17:53:00.250273 | 2015-09-23T21:13:04 | 2015-09-23T21:13:04 | 43,026,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,099 | py | import pygame
import random
import q
import w
import e
import time
clock=pygame.time.Clock()
b=w.board()
r=q.Player()
dnk=q.Donkey()
fb=e.fireball()
pygame.init()
gameDisplay=pygame.display.set_mode((1200,700))
gameExit=False
text=pygame.font.SysFont(None,25)
img1=pygame.image.load("live.png")
lve=pygame.transform.sca... | [
"skbly7@gmail.com"
] | skbly7@gmail.com |
bffa7b150c64f14e1eb4565a6c1f0519ecaa03c7 | 41499f73e807ac9fee5e2ff96a8894d08d967293 | /FORKS/Python/emr-bootstrap-actions/tree/spark/archive_support_elasticmapreduce/1.1.1/install-spark-1.1.1.c.py | 997dd05010d9cca3fa031f931aaefc524e76269d | [
"WTFPL",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | lordnynex/CLEANUP | c9f3058ec96674696339e7e936170a8645ddc09b | 77e8e3cad25ce740fefb42859d9945cc482e009a | refs/heads/master | 2021-01-10T07:35:08.071207 | 2016-04-10T22:02:57 | 2016-04-10T22:02:57 | 55,870,021 | 5 | 1 | WTFPL | 2023-03-20T11:55:51 | 2016-04-09T22:36:23 | C++ | UTF-8 | Python | false | false | 6,320 | py | #!/usr/bin/python
# Small script to install Spark on Emr 3.x Ami
import os
import subprocess
import glob
import sys
# components versions
scala_version = "2.10.3"
spark_version = "1.1.1"
hadoop_version = "2.4.0"
# base path
s3_base = "s3://support.elasticmapreduce/spark/"
# build some variables
spark_archive = "spa... | [
"lordnynex@gmail.com"
] | lordnynex@gmail.com |
55e572c24e27559f0f394dfcaddad70ea27ca407 | dd6b0635021185bf29f20b5b49ab03f93ff841e3 | /BH_Color_Distribution_Plot.py | 58419b08c70140f3029a5a291084ba15ae1f9499 | [] | no_license | sbustamante/Spinstractor | 27754ee5506b929fb51d6af35852c4780873e960 | d546010735fb698963b48b19a2e017060d13ef10 | refs/heads/master | 2021-01-22T02:05:00.969180 | 2018-10-30T09:13:39 | 2018-10-30T09:13:39 | 92,332,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,702 | py | #========================================================================================
# LIBRARIES
#========================================================================================
import numpy as np
import matplotlib.pyplot as plt
from scipy.interpolate import interp1d
import BH_Physics as BHP
import arep... | [
"macsebas33@gmail.com"
] | macsebas33@gmail.com |
b993f69295448a47d7afe20d846ae2c833dfb6e8 | 4b7dd363e5f4d7a5858e02cd3838a0c11baaf1da | /mpc/mpc.py | bb27478adf5db0e265853e292eba5d39fab8132b | [
"MIT"
] | permissive | shubhampachori12110095/mpc.pytorch | bf168a75fd2c3cfabebb61c232763fa38526a633 | f1164d610ca49ea0538cdfbf6fcf33736523c423 | refs/heads/master | 2020-03-30T17:14:52.210185 | 2018-10-03T15:30:43 | 2018-10-03T15:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,463 | py | import torch
from torch.autograd import Function, Variable
from torch.nn import Module
from torch.nn.parameter import Parameter
import numpy as np
import numpy.random as npr
from enum import Enum
import sys
from . import util
from .pnqp import pnqp
from .lqr_step import LQRStep
from .dynamics import CtrlPassthrough... | [
"bamos@cs.cmu.edu"
] | bamos@cs.cmu.edu |
370e5cf8276e67137e6e9b599c29c03deb4a16b4 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/AlipayFundCouponWufuCardQueryRequest.py | 93413defad5c7a46b88bed7cb1c49548a27998c6 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 3,974 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayFundCouponWufuCardQueryModel import AlipayFundCouponWufuCardQueryModel
class AlipayFundCouponWufuCardQueryRequest(object):
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
dfb8809a94c1376044ed88ed0811274efb8222a0 | 0e480eac66d1fee97e457133794ea6ba32d50456 | /train-art.py | a09857927c1cf53e82398d0b55574ca3038c58f7 | [] | no_license | AI-Guru/dqn_playground | ddbec5b52670884b11e4e3ddfe2fe29a5108d0e3 | 82ab647bab8a82697a3e01bf02663e8837bfff5b | refs/heads/master | 2020-04-05T22:29:38.395615 | 2019-05-27T05:48:08 | 2019-05-27T05:48:08 | 157,257,990 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,214 | py | import warnings
warnings.filterwarnings("ignore")
import matplotlib
matplotlib.use("agg")
import random
import numpy as np
from nes_py.wrappers import BinarySpaceToDiscreteSpaceEnv
import gym
import gym_art
import artutils as utils
import sys
import matplotlib.pyplot as plt
from agent import *
from keras import models,... | [
"tristan@ai-guru.de"
] | tristan@ai-guru.de |
02798109e6578ba52dc5d570b065544bb90e95b2 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/dipy/segment/tests/test_refine_rb.py | c268e156190241cbaec3d35351a69b835be8d6c6 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 7,927 | py | import numpy as np
import nibabel as nib
from numpy.testing import (assert_equal,
assert_almost_equal,
run_module_suite)
from dipy.data import get_fnames
from dipy.segment.bundles import RecoBundles
from dipy.tracking.distances import bundles_distances_mam
from dipy... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.