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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
348b6037f5c0589e3deefd1362bb0c4fc067743c | a64d7e2814c296db3157f841f17ea73169d54405 | /company/migrations/0001_initial.py | 50e072d2da0f6e77a318354d8779a7de73e4b442 | [] | no_license | andrewseft/amjumfb | ad8ea0dc091355437cbf0984983550fe149300a5 | 6c027f47e320b7ad9c7e27d635335c9b260216a7 | refs/heads/master | 2023-05-04T23:19:07.942766 | 2021-05-25T15:39:16 | 2021-05-25T15:39:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | # Generated by Django 3.0.2 on 2020-05-17 17:05
import accounts.models
import cloudinary.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('accounts', '0001_initial'),
]
operations = [
... | [
"mathegeniuse@gmail.com"
] | mathegeniuse@gmail.com |
4cf95d795bdb8ff4a1fc0295f52808053bbecf85 | e1124042f9ff1c3990cb62db53eb0fd90b8ad68c | /Image/05/Rebert.py | 76da44e6bff08367632157939b978abc818bf2ad | [] | no_license | Li-Crazy/-Image-Processing- | 583bcf17a628d6c5ecbc6177168699332cce89aa | 3eba05b1dbf5c534cd5807607552a207a7dc598e | refs/heads/master | 2020-08-02T18:15:56.170098 | 2019-09-28T07:29:51 | 2019-09-28T07:29:51 | 211,461,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,747 | py | # Author image
# !/usr/bin/python
# -*- coding:utf-8
# opencv read image is BGR channel,and matplot read is RGB
import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt
path ="C:/Users/19845/Desktop/xibao.jpg"
img = cv.imread(path,0)
(H,W) =img.shape
files = [img]
def Robert(H,W,img):
imgR = np.... | [
"52807717+Li-Crazy@users.noreply.github.com"
] | 52807717+Li-Crazy@users.noreply.github.com |
357b2e973a55a3241b86d008c6076b3d081c47e3 | 8e79de4b73998dd0ee1dae4881784a2b12410615 | /Bite_1/test_summing.py | 3368cc0ec9d283be3e0ca7033970140538235b84 | [
"MIT"
] | permissive | alehpineda/bitesofpy | e6eb7c9413cf407a12643efece01bef5457e5dcb | bfd319a606cd0b7b9bfb85a3e8942872a2d43c48 | refs/heads/master | 2021-07-15T19:59:35.061049 | 2020-09-25T17:49:32 | 2020-09-25T17:49:32 | 209,878,791 | 0 | 0 | MIT | 2020-09-06T00:11:45 | 2019-09-20T20:49:51 | Python | UTF-8 | Python | false | false | 389 | py | import inspect
from summing import sum_numbers
def test_sum_numbers_default_args():
assert sum_numbers() == 5050
assert sum_numbers(numbers=None) == 5050
def test_sum_numbers_various_inputs():
assert sum_numbers(range(1, 11)) == 55
assert sum_numbers([1, 2, 3]) == 6
assert sum_numbers((1, 2, 3)... | [
"ale.hpineda@gmail.com"
] | ale.hpineda@gmail.com |
0a5681134f02bd8a6340091a6bb03330b27c74e3 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/animation_auto_breakdown/__init__.py | b0e1262e8792d558447df1e28eea76c103eaaa29 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,061 | py |
bl_info = {
"name": "Auto Breakdown",
"author": "N(Natukikazemizo)",
"version": (0, 0),
"blender": (2, 79, 0),
"location": "Dope Sheet > Key / NLA Editor > Edit",
"description": "Automatic Breakdown & related functions",
"warning": "",
"support": "TESTING",
"wiki_url": "",
"trac... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
69cc6db887403eaa460357350762c009a89aeba2 | f8da830331428a8e1bbeadf23345f79f1750bd98 | /msgraph-cli-extensions/v1_0/identitydirmgt_v1_0/azext_identitydirmgt_v1_0/vendored_sdks/identitydirmgt/aio/operations_async/__init__.py | ae017214b97f0196e8526af958a16d4120aa2ab6 | [
"MIT"
] | permissive | ezkemboi/msgraph-cli | e023e1b7589461a738e42cbad691d9a0216b0779 | 2ceeb27acabf7cfa219c8a20238d8c7411b9e782 | refs/heads/main | 2023-02-12T13:45:03.402672 | 2021-01-07T11:33:54 | 2021-01-07T11:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | 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 may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
aed5b0de5e97ac6fba1b095e9405ecbfaccdb8cd | 76133934b1dd287273a9bfa0c801d10d08a21b21 | /contrib/testgen/gen_base58_test_vectors.py | 49f33b99d143031cf342d5fd6866ba97e298361d | [
"MIT"
] | permissive | kenfmcoin/kenfmcoin | d8783b34fcb3ae01067e8d1b33e3a73e3b82b1f9 | 1fa48487593233f2066757dc54f48b2349e2d9db | refs/heads/master | 2020-03-10T17:53:31.569229 | 2018-04-14T12:28:55 | 2018-04-14T12:28:55 | 129,511,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,496 | py | #!/usr/bin/env python
# Copyright (c) 2012-2016 The KenFMcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Generate valid and invalid base58 address and private key test vectors.
Usage:
gen_base58_test_... | [
"37983255+spineinhalb@users.noreply.github.com"
] | 37983255+spineinhalb@users.noreply.github.com |
edbbfcabc14ea180f22675602b7a607cdf733c2c | 76a725c7fa676288c7ec1464015a6de285308217 | /pint/facets/context/__init__.py | 61685a217cd1ca562a2ddabdc4bee8d75a8e8a66 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | fernandezc/pint | 458c46b300e751b32e19786972c42e749fe60c50 | 37a61ede6fbd628c7dc160eb36278cf41c96484c | refs/heads/master | 2022-06-18T01:05:31.811358 | 2022-05-29T14:50:54 | 2022-05-29T14:50:54 | 168,887,523 | 0 | 0 | NOASSERTION | 2019-02-02T22:58:06 | 2019-02-02T22:58:05 | null | UTF-8 | Python | false | false | 481 | py | """
pint.facets.context
~~~~~~~~~~~~~~~~~~~
Adds pint the capability to contexts: predefined conversions
between incompatible dimensions.
:copyright: 2022 by Pint Authors, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import annotations
from .... | [
"hernan.grecco@gmail.com"
] | hernan.grecco@gmail.com |
1340fa0784aab990fcace157aca410260e5bd178 | 7bcb0b7f721c8fa31da7574f13ed0056127715b3 | /src/apps/cubes/models/utilities/log.py | 7c41f2b2d45d59f7289094617162ac9fef3394e1 | [] | no_license | simonchapman1986/ripe | 09eb9452ea16730c105c452eefb6a6791c1b4a69 | c129da2249b5f75015f528e4056e9a2957b7d884 | refs/heads/master | 2022-07-22T05:15:38.485619 | 2016-01-15T12:53:43 | 2016-01-15T12:53:43 | 49,718,671 | 1 | 0 | null | 2022-07-07T22:50:50 | 2016-01-15T12:53:09 | Python | UTF-8 | Python | false | false | 478 | py | from django.db import models
class Log(models.Model):
"""
Log
logs registered aggregates for a period and a cube/fact
"""
cube = models.CharField(max_length=255)
date = models.DateField(default=None)
time_taken = models.CharField(max_length=10, null=True, blank=True)
created = models... | [
"simon-ch@moving-picture.com"
] | simon-ch@moving-picture.com |
9d67482c8188a07a8766f3e354837d94874f45a9 | 64bf21e9b4ca104557d05dc90a70e9fc3c3544a4 | /tests/journal.ext/warning_properties.py | 8bd9998608544b485e6f53e6aab1e11f976dc88b | [
"BSD-3-Clause"
] | permissive | pyre/pyre | e6341a96a532dac03f5710a046c3ebbb79c26395 | d741c44ffb3e9e1f726bf492202ac8738bb4aa1c | refs/heads/main | 2023-08-08T15:20:30.721308 | 2023-07-20T07:51:29 | 2023-07-20T07:51:29 | 59,451,598 | 27 | 13 | BSD-3-Clause | 2023-07-02T07:14:50 | 2016-05-23T04:17:24 | Python | UTF-8 | Python | false | false | 1,844 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis <michael.aivazis@para-sim.com>
# (c) 1998-2023 all rights reserved
def test():
"""
Verify access to the channel properties
"""
# access
from journal import libjournal
# make a warning channel
channel = libjournal.War... | [
"michael.aivazis@para-sim.com"
] | michael.aivazis@para-sim.com |
f782493ce0dbc1d089e5549139168c59740941ad | ccc984eb6c1ea6eb47169f820552b7fcbf1ff825 | /examples/code_viewer.py | 690001b32122f23d246858785ebf97d80f22f36f | [
"MIT"
] | permissive | terror/textual | 259d5172a2c6595ae68807659ae6fe005a01610b | ff4333d51affe5849caab6d21370cc5ac336c57b | refs/heads/main | 2023-07-09T22:01:54.792366 | 2021-08-06T12:07:04 | 2021-08-06T12:07:04 | 393,398,796 | 1 | 0 | MIT | 2021-08-06T14:17:30 | 2021-08-06T14:17:29 | null | UTF-8 | Python | false | false | 2,348 | py | import os
import sys
from rich.console import RenderableType
from rich.syntax import Syntax
from rich.traceback import Traceback
from textual import events
from textual.app import App
from textual.widgets import Header, Footer, FileClick, ScrollView, DirectoryTree
class MyApp(App):
"""An example of a very simpl... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
0d81cf88707f945d7786b00a4825193a307aed76 | aa2e1e8923b54d801b8ff61ea84bc7f0b2bddd05 | /leetcode_python/Recursion/sum-of-left-leaves.py | c8c3410fe1d36e5193fb21f56d262e9a4311d478 | [] | no_license | bkdbansal/CS_basics | 66d44a1624c3ee8080bdd5ef90769cde79b15822 | 5517891f5bdcb44a1872798c1dd9ee26ec20f0a0 | refs/heads/master | 2020-12-30T09:09:14.391228 | 2020-02-06T09:56:23 | 2020-02-06T09:56:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | # V0 : DEV
# V1
# http://bookshadow.com/weblog/2016/09/25/leetcode-sum-of-left-leaves/
class Solution(object):
def sumOfLeftLeaves(self, root):
"""
:type root: TreeNode
:rtype: int
"""
ans = 0
if root:
l, r = root.left, root.right
if l and ... | [
"f339339@gmail.com"
] | f339339@gmail.com |
6c75fc2890d6cdfb98978df836591ad89288803a | 210ecd63113ce90c5f09bc2b09db3e80ff98117a | /AbletonLive9_RemoteScripts/O2/config.py | 87bc06928a6ae1f35408c719a9e7139d59cf0530 | [] | no_license | ajasver/MidiScripts | 86a765b8568657633305541c46ccc1fd1ea34501 | f727a2e63c95a9c5e980a0738deb0049363ba536 | refs/heads/master | 2021-01-13T02:03:55.078132 | 2015-07-16T18:27:30 | 2015-07-16T18:27:30 | 38,516,112 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | #Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_64_static/midi-remote-scripts/O2/config.py
from consts import *
TRANSPORT_CONTROLS = {'STOP': GENERIC_STOP,
'PLAY': GENERIC_PLAY,
'REC': GENERIC_REC,
'LOOP': GENERIC_LOOP,
'RWD': GENERIC_RWD,
'FFWD': GENERIC_FFWD}
DEVICE_CONTROLS = (GENERIC_EN... | [
"admin@scoopler.com"
] | admin@scoopler.com |
5e3b3e67ca2e8e3e7c929a29efc0d033e0c11a05 | 00c9f793943f89fb32e6543db8cc412c38b4ebee | /apps/users/migrations/0005_banner_index.py | a87e14d1c533829c2cff5808369dffaaf666b2c6 | [] | no_license | ewsq/Mxonline | 2e071d846f1285cd782de6110de5825f6d26a6c5 | 62613e0d12b11d9698500c3a2afbdaea59d9cda3 | refs/heads/master | 2022-02-14T15:44:08.063974 | 2018-09-30T07:00:21 | 2018-09-30T07:00:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2018-08-15 16:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_auto_20180814_1700'),
]
operations = [
migrations.AddField(
... | [
"1508414512@qq.com"
] | 1508414512@qq.com |
6c951da9a9434e2ad93bf3a1f69f699d957008da | b32026b37c94f1963cc05c20748b1a24299186c1 | /blog/urls.py | 559f7782c93de2ce86ffcfa8d69b4cce4ed5d877 | [] | no_license | nonZero/django-simple-example | a5621594bc3ab40d053cfd7ffaddaa1629ab7792 | 6022f3873c5c91d8d45640360e3584f1720c940a | refs/heads/master | 2016-09-05T11:01:17.941571 | 2014-02-17T15:48:56 | 2014-02-17T15:48:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django.conf.urls import patterns, include, url
from blog import views
urlpatterns = patterns('',
url(r'^$', views.list_posts),
url(r'^(\d+)/$', views.show_post, name="post"),
)
| [
"udioron@gmail.com"
] | udioron@gmail.com |
ca2e5f2be6376606c3ef95f8d137c707a543ddcf | 2f590fc0566816c26c9893000c3079bc974cc298 | /basis/exception/自定义异常.py | 994f7da03d318882bd0ee999815d54ed840d627b | [] | no_license | renyi1314/Source-code | 760ead67d948781d6859412d9f66a8c87f4dc094 | 2acc68486fb8be6d42bb043633d3e2297744d4c7 | refs/heads/master | 2021-04-12T09:55:37.983379 | 2019-11-09T03:18:08 | 2019-11-09T03:18:08 | 126,342,536 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | class ConfigurationFileError(Exception):
def __str__(self):
return "配置文件错误!!!"
try:
print("hello,world")
raise ConfigurationFileError()
except ConfigurationFileError:
print("我捕捉到了错误")
| [
"541421397@qq.com"
] | 541421397@qq.com |
1979d7e8e2fd4de434df9eed0afeb8f1ccaac613 | fbb18a8901b6844dc94205dce73a0879cece6cc9 | /qa_common/util.py | 2621c07f4481179f989300d85d8ad55174c924f5 | [] | no_license | NGTS/zlp-qa | 28c6ed69245e289e0d50340cc388a178bc5d4690 | 4a1c69d5e73b823ac7958d69ed7e5eacd119bfb4 | refs/heads/master | 2020-04-14T21:56:00.324900 | 2015-10-21T10:53:47 | 2015-10-21T10:54:50 | 22,339,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | class NullPool(object):
def __init__(self, *args, **kwargs):
pass
def map(self, fn, args):
return map(fn, args)
| [
"s.r.walker101@googlemail.com"
] | s.r.walker101@googlemail.com |
a30bc3cecf8888dfb0dd850a1611b363938e3f2d | a93cf8f695c1d1d97b8d0b9ccec6932c5e499ff8 | /Python/seungjun/14500.py | 343c648616725fb96754cd3b85efd7c6562d8a34 | [] | no_license | tmdwns1101/AlgorithmStudy | 0abc108a7a73895934da2633998c7a90137d49ea | e8ca069e202f40e074b7311626fe8da8af057589 | refs/heads/master | 2021-07-22T11:32:30.817108 | 2020-05-20T16:28:27 | 2020-05-20T16:28:27 | 165,377,838 | 0 | 1 | null | 2020-02-07T07:56:16 | 2019-01-12T11:02:59 | C++ | UTF-8 | Python | false | false | 1,773 | py | import sys
dx = [0,0,-1,1]
dy = [-1,1,0,0]
def dfs(board, i,j, count, N,M,visited):
if count == 4:
return board[i][j]
else:
sumV = 0
for k in range(4):
nx = j + dx[k]
ny = i + dy[k]
if nx >= 0 and nx < M and ny >= 0 and ny <... | [
"tmdwns1101@naver.com"
] | tmdwns1101@naver.com |
560f95dab6487e47fe31296a10f97163796ca56d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03838/s880268837.py | 969a8e31600f0b6b762d604c289ff95f527f8087 | [] | 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 | 319 | py | x, y = map(int, input().split())
ans = int(1e11)
# B(0) --> A --> B(0)
if x <= y:
ans = min(ans, y - x)
# B(1) --> A --> B(0)
if -x <= y:
ans = min(ans, y + x + 1)
# B(0) --> A --> B(1)
if x <= -y:
ans = min(ans, -y - x + 1)
# B(1) --> A --> B(1)
if -x <= -y:
ans = min(ans, -y + x + 2)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
08ffc493b6e630615400c910d167a3a27fe9c359 | c16ae4cc883210418b7e55a3a63bdb5e072ad420 | /jet_bridge/exceptions/permission_denied.py | 52b85147f9834c13b97e9e444aaf33b7fa307231 | [
"MIT"
] | permissive | BradyBromley/jet-bridge | c8f6562ede8904c5be2476a8591f8e697e8fe3b4 | 06be16d3bbfdf56a943057dfa48340693c6ed5bb | refs/heads/master | 2020-08-28T04:02:51.793221 | 2019-10-25T17:24:38 | 2019-10-25T17:24:38 | 217,582,142 | 0 | 0 | MIT | 2019-10-25T17:20:32 | 2019-10-25T17:20:32 | null | UTF-8 | Python | false | false | 253 | py | from jet_bridge import status
from jet_bridge.exceptions.api import APIException
class PermissionDenied(APIException):
default_detail = 'Permission denied'
default_code = 'permission_denied'
default_status_code = status.HTTP_403_FORBIDDEN
| [
"f1nal@cgaming.org"
] | f1nal@cgaming.org |
ff634df94697b5ff691a26852465f843b3da06cb | 34a4b63ac88d871e3a24d08859fad3736c1cd3d4 | /mainApp/apps.py | a44565cb7651cc0ddd582c55f8bc1291377ee4b0 | [
"MIT"
] | permissive | wasisi/website | f1f6dd9811fe2941a0103b5c38898b0eeb024aa7 | bea467c9ff618e9befd784c9b4eac2b991d91e29 | refs/heads/master | 2021-09-12T16:03:26.603195 | 2018-04-18T12:15:45 | 2018-04-18T12:15:45 | 108,642,866 | 1 | 0 | null | 2018-04-11T19:36:00 | 2017-10-28T11:15:40 | TypeScript | UTF-8 | Python | false | false | 210 | py | from django.apps import AppConfig
class MainappConfig(AppConfig):
name = 'mainApp'
index_page_name = 'Wasisi Home'
#templates used by the application
index_page_view_tmpl="wasisi/index.html"
| [
"a.giavaras@gmail.com"
] | a.giavaras@gmail.com |
f042ce478c96b9c592ecc94f7759c63b26bdfd5d | a7699acc9413966e426d914470e6e37cc4c9c13d | /handler/ajaxHandler.py | 541002e062a4ef2a86ab2dffefe628235f5deb4d | [] | no_license | yimiqisan/huwai | 300090c58930ee2d3a42a6aea5fdd24c13302078 | ae4f8ba8e39534aa94894b291b80f8685ba0b7d2 | refs/heads/master | 2021-01-10T21:33:30.464330 | 2012-07-11T14:21:38 | 2012-07-11T14:21:38 | 2,111,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,019 | py | #!/usr/bin/env python
# encoding: utf-8
"""
ajaxHandler.py
Created by 刘 智勇 on 2011-12-22.
Copyright (c) 2011 __MyCompanyName__. All rights reserved.
"""
import uuid
import json
from baseHandler import BaseHandler
from huwai.apps.timeline import TimeLine
from huwai.apps.behavior import Behavior
from huwai.apps.pstore... | [
"yimiqisan@gmail.com"
] | yimiqisan@gmail.com |
611a6e9cada8d577b55f385af2f8919e2a47b5d1 | 1dabcbedd99be021540c26886d8e648b568591f4 | /service/app/models/admin/log.py | 1dcd1f52db3320de4f107fd453867eb8477a18d4 | [
"Apache-2.0"
] | permissive | xuannanxan/maitul-manage | 350721635340b9df885d9478a055491acb096023 | 35ddd2946bf4c97806bb38057a7dc9d6fa97c118 | refs/heads/master | 2023-01-20T05:47:56.469700 | 2020-04-13T16:07:19 | 2020-04-13T16:07:19 | 226,102,618 | 0 | 0 | Apache-2.0 | 2023-01-05T02:56:10 | 2019-12-05T12:57:11 | JavaScript | UTF-8 | Python | false | false | 430 | py | #!/usr/bin/env python
# coding=utf-8
'''
@Description:
@Author: Xuannan
@Date: 2019-12-18 15:49:20
@LastEditTime: 2019-12-18 17:18:19
@LastEditors: Xuannan
'''
from app.models.base import db,BaseModel
# 管理员登录日志
class AdminLog(BaseModel):
__tablename__ = "admin_log"
username = db.Column(db.String(100))
i... | [
"382933169@qq.com"
] | 382933169@qq.com |
4d01bfb38168853a45c51e339d9f70dd3e327735 | 00a97aafffcc0105f3be88e2a772e1a8cbb41e1e | /BBS/web/tree_search_test.py | 2659f6c37f8ab92a6dd4e19981c8dc910483e809 | [] | no_license | chenchao1990/BBS | 45bdd5e960371744ac20b9c5889d51c545310fd5 | 5c9fd17aa0fe902e51376ce86ef1519ffda09723 | refs/heads/master | 2016-09-14T05:36:21.401419 | 2016-05-09T03:02:11 | 2016-05-09T03:02:11 | 57,026,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
c_dic = {}
l = [(None, 'F'), ('a', 'b'), ('c', 'd')]
for comment_obj in l:
if comment_obj[0] is None:
print comment_obj[0]
c_dic[comment_obj] = {}
print c_dic
data = [
(None,'A'),
('A','A1')... | [
"465234371@qq.com"
] | 465234371@qq.com |
5dc353a93b06993c487906eaac9897f987daaf6d | f0e40431aeff01f0cc2730e6da5f3fdb5ad87fe2 | /app_recorder/src/app_recorder/audio_video_recorder_plugin.py | 786b81919f96e1f2d98112055eca66152ab1bb56 | [] | no_license | knorth55/app_manager_utils | 4fbbeb89ee8e7aace40df8eea849adad0cb55f3d | 9aca891475ff39cb8ca0df475473274b136ada61 | refs/heads/master | 2023-04-07T12:27:32.224464 | 2023-04-02T09:00:27 | 2023-04-02T09:00:27 | 232,241,951 | 8 | 5 | null | 2022-10-04T13:54:51 | 2020-01-07T04:25:14 | Python | UTF-8 | Python | false | false | 174 | py | from app_manager import AppManagerPlugin
class AudioVideoRecorderPlugin(AppManagerPlugin):
def __init__(self):
super(AudioVideoRecorderPlugin, self).__init__()
| [
"shingogo@hotmail.co.jp"
] | shingogo@hotmail.co.jp |
977f929c773f1780cb3a383834895a855df960b4 | 9f114e994fd512b615983bb646306a68b9d1a193 | /anagrams.py | 581a169a6ab5da1c378e985b70dceeb1a3738423 | [] | no_license | JackSnowdon/BJS-Anagrams | 66ff596933e06c45cf26351604960ee32b246a30 | 095751a523cfadd9b13663f908e90c57712ef04a | refs/heads/master | 2022-11-24T18:51:19.885679 | 2020-08-04T16:34:53 | 2020-08-04T16:34:53 | 285,034,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | # Given a words.txt file containing a newline-delimited list of dictionary
# words, please implement the Anagrams class so that the get_anagrams() method
# returns all anagrams from words.txt for a given word.
#
# Requirements:
# - Optimise the code for fast retrieval
# - Write more tests
# - Thread safe implemen... | [
"jacksnowdondrums@gmail.com"
] | jacksnowdondrums@gmail.com |
2008e7568ca0fd139bf4152a68c511d77c83ff7b | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/PointsExchangeInfo.py | 771e67e444e923005de6529cac7e6eb63235e3e7 | [
"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 | 1,559 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class PointsExchangeInfo(object):
def __init__(self):
self._ids = None
self._type = None
@property
def ids(self):
return self._ids
@ids.setter
def ids(self, va... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
bf1e5522abe5a8391bcf8060ef79dba2cc8ac8bb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02717/s953634994.py | 8ded245f31064aaf545f39b5322e1b83adbb2809 | [] | 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 | 158 | py | XYZ = list(map(int, input().split()))
tmp = XYZ[0]
XYZ[0] = XYZ[1]
XYZ[1] = tmp
tmp = XYZ[0]
XYZ[0] = XYZ[2]
XYZ[2] = tmp
print(" ".join(str(n) for n in XYZ)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b34b13e95d7ddb33851ed499a6fae882e993b399 | e3a5e4bc5da18c6fa9ce7789b4fcc9e340d6b267 | /TV_shows/TV_shows/asgi.py | e6cbeac993a0be7a08218065532c824b9c6df55c | [] | no_license | jsilva16/Aplicaciones | 22bee66d1933859858ada29be2602392264b523a | c865b9fa6437853ff53d8106c0bfdace4ea4d7cd | refs/heads/master | 2023-08-13T10:52:16.675539 | 2021-10-10T06:26:24 | 2021-10-10T06:26:24 | 397,779,660 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
ASGI config for TV_shows project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault... | [
"juansilva.ambiental@gmail.com"
] | juansilva.ambiental@gmail.com |
e1281180de1f6234d594b0cde55ed2bc8a169c6f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03776/s093609237.py | ac86717ca5a582ecc7ac508c2afd2be75c2d4878 | [] | 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 | 531 | py | from math import factorial
def comb(n, r):
if n < r:
return 0
return factorial(n) // (factorial(r) * factorial(n - r))
N, A, B = map(int, input().split())
v = list(map(int, input().split()))
v.sort(reverse=True)
cnt = 0
cnt2 = 0
for i in range(N):
if v[i] > v[A]:
cnt += 1
if v[i] == ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
497f80427fbab4ff5a8ce79cbdca2f3dda773496 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_206/565.py | 29e70e2ced6c2e8a19c4601461c44a5f37f6ae2f | [] | 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 | 449 | py | #!/usr/bin/python
# -*- coding: iso-8859-1 -*-
import sys
import math
with open(sys.argv[1], 'r') as f:
for n in range(int(f.readline())):
D, N = [int(i) for i in f.readline().split()]
y = float('inf')
for k in range(N):
K,S = [float(i) for i in f.readline().split()]
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
5da863fcd7dc049d2841ce3b8da8d04f2dbc6eec | 4b87a0de0f43de2bde41f2590faac970c18fe482 | /api/v1/services/repayment/views.py | ff433fbd81e3cb569821ae72acb762e40a9f3a19 | [] | no_license | krishSona/testbackend | d0bc325776537d9814b9022b3538b5e8a840e6a4 | d87e050d02542c58876d4f81c2ea99815ab4160e | refs/heads/master | 2023-04-08T01:26:42.070058 | 2021-04-03T06:08:54 | 2021-04-03T06:08:54 | 354,214,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,177 | py | from drf_yasg2 import openapi
from drf_yasg2.utils import swagger_auto_schema
from rest_framework.decorators import action
from rest_framework.exceptions import ValidationError
from rest_framework import views
from django.http import JsonResponse
from core.models import Employee
import json
import requests
from dail... | [
"kali@dailysalary.in"
] | kali@dailysalary.in |
67c9c1ddb5f128ee62d35cc0fa52199cc0929c85 | dc72e1eb44cfaed330d9477d0c27bee307a81e4a | /Jackpointnew/event/models.py | 8e1a44ffbd3a9f823cc61aa765069f491c7ee8c0 | [] | no_license | bussiere/JackPointFInal | ba200d85606e17b423535af20a58c04bf5afa550 | c414480fee519e68aece68068e941278fe10cf0a | refs/heads/master | 2021-07-24T14:25:56.982106 | 2013-07-08T11:10:41 | 2013-07-08T11:10:41 | 5,333,141 | 0 | 0 | null | 2021-06-10T17:45:33 | 2012-08-07T20:29:46 | Python | UTF-8 | Python | false | false | 4,069 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
# TODO rajouter commentaires USER sur les events.
class CategorieEvent(models.Model):
Nom = models.CharField(max_length=256, null=True, blank=True)
Administration = models.ManyToManyField("administration.Adminis... | [
"bussiere@gmail.com"
] | bussiere@gmail.com |
37acb472232db6c4cf458db2e95b5516cfaf3340 | 172e58e07e2722a6d4c2753e67ea8137ee7e8b24 | /comoencasa/experiences/migrations/0002_experiencesimage_experiencesitems.py | 7a2540fabde5882a8f66d547366bdc248b1e0cf6 | [] | no_license | dmontoya1/como-en-casa | c8d98cf8eebaa9bd21916b71ffccf10460dfc409 | 76c13020a8ad01d859aaaefaabc9a9db3b9392eb | refs/heads/master | 2023-05-06T16:59:48.842067 | 2019-06-24T20:59:50 | 2019-06-24T20:59:50 | 371,432,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | # Generated by Django 2.0.10 on 2019-02-06 02:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('experiences', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='ExperiencesImage... | [
"dmontoya@apptitud.com.co"
] | dmontoya@apptitud.com.co |
a58ab627b6cfbd8baf230a75ad387b7c2cd69ac7 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/headless/DEPS | 3759f668f117c573e966db47f56ec04b8f1b2dc4 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 195 | include_rules = [
"+components/headless",
"+components/devtools/simple_devtools_protocol_client",
]
specific_include_rules = {
"headless_mode_command_browsertest\.cc": [
"+pdf",
],
} | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com | |
05b27710561769f5d0cabc3de093107ca9534942 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_159/593.py | c7df836a70db8b4acd69f1589d6853aa3b386a1d | [] | 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 | 384 | py | T = input()
for tt in range(T):
n = input()
m = map(int, raw_input().split())
first, second = 0, 0
temp = 0
for i in range(n - 1):
first += max(0, m[i] - m[i+1])
temp = max(temp, m[i] - m[i+1])
for i in range(n - 1):
second += min(temp, m[i])
print "Case #%... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2a8db427faaecd50cc6d8d15b2d193db717629d7 | c7427aeec5599a828209efd3c2805e0b9159d1a3 | /src/004_aozora/020_create_map_for_excel.py | 993c094c05996ea63278fb871fd33988faa517c2 | [] | no_license | nakamura196/genji_curation | 817690098fe6e0ea9f351edd8d21b4cb49a11c53 | b7988e2125b68c3014dbeacad7c8ce795014eb7c | refs/heads/master | 2023-04-14T01:27:39.322047 | 2021-04-30T00:04:54 | 2021-04-30T00:04:54 | 255,350,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | import requests
from bs4 import BeautifulSoup
import re
from bs4 import BeautifulSoup
import requests
import openpyxl
book = openpyxl.Workbook()
soup = BeautifulSoup(open('data/xml_s/01.xml','r'), "lxml")
sheet = book.create_sheet(index=0)
sheet.append(["現代語訳ID", "現代語訳テキスト"])
# main_text.contents = all
s_arr = so... | [
"na.kamura.1263@gmail.com"
] | na.kamura.1263@gmail.com |
5f59040c060716ef9d38d5b714f8012bae1778bb | 3d62a14eb69baea0737f8c093336cbf6380b30a7 | /dingtalk/api/rest/OapiTdpProjectMemberRemovebyprojectRequest.py | 88d73a6ee9a5d63b5f65f3c2112eec908ea6583d | [] | no_license | KangSpace/message_plus_server | 50cbc55c296d5e835a0c6f99f45cf699f6806add | 300954993f44648db3a2124d587533656d970d6c | refs/heads/main | 2023-05-01T15:08:18.195400 | 2021-05-27T04:41:56 | 2021-05-27T04:41:56 | 361,338,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | '''
Created by auto_sdk on 2020.12.23
'''
from dingtalk.api.base import RestApi
class OapiTdpProjectMemberRemovebyprojectRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.microapp_agent_id = None
self.operator_userid = None
self.project_id = None
def getHttpMethod(self... | [
"kango2gler@gmail.com"
] | kango2gler@gmail.com |
cca9e03fda7103a78b78f270d2a90d63d712799c | 52f4426d2776871cc7f119de258249f674064f78 | /programmers/dynamic_programming/N으로 표현.py | 364ee77903e2aa988da206c9759353bb24e77dc5 | [] | no_license | namhyun-gu/algorithm | 8ad98d336366351e715465643dcdd9f04eeb0ad2 | d99c44f9825576c16aaca731888e0c32f2ae6e96 | refs/heads/master | 2023-06-06T02:28:16.514422 | 2021-07-02T10:34:03 | 2021-07-02T10:34:03 | 288,646,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | def solution(N, number):
dp = [0]
for i in range(1, 9):
temp = set()
temp.add(int(str(N) * i))
for j in range(1, i):
for x in dp[j]:
for y in dp[i - j]:
temp.add(x + y)
temp.add(x - y)
temp.add(x * ... | [
"mnhan0403@gmail.com"
] | mnhan0403@gmail.com |
bd5abef434764e2a027b05d76fff1f0fcb9e3826 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/8b6ec206fa884a5e948beb75ea0e0e0e.py | c2c0e476f8434971e977285e2adaf2a155077f12 | [] | 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 | 792 | py | """
Implementation of RNA transcription module
Specification:
Given a DNA strand, return its RNA complement (per RNA transcription).
Both DNA and RNA strands are a sequence of nucleotides.
The four nucleotides found in DNA are adenine (**A**), cytosine (**C**),
guanine (**G**) and thymidine (**T**).
The four nucle... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
814079c03140feb933e952f350121c44360f9c6b | 5909009200d9254eed1aef4083d991b237a084ac | /MeasuringTools/TemperatureSoft/com.py | 2d7288a63e7b0a4b548dd6c9ac334a57c7fcdbfa | [] | no_license | jsbarbosa/TesisQuimica | 036cc8f7f9b32bad1cbd75a6feee42a4290e2e78 | 3d93bb026ba7d9b71ae5572f835bf5551f1fe890 | refs/heads/master | 2021-06-23T20:53:37.527573 | 2019-07-02T13:37:20 | 2019-07-02T13:37:20 | 133,194,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,879 | py | from time import sleep
from serial import Serial
import serial.tools.list_ports as find_ports
GET_ADC = 0x02
SET_CHANNEL_0 = 0x03
SET_CHANNEL_1 = 0x04
SET_CHANNEL_2 = 0x05
SET_CHANNEL_3 = 0x06
NAME = 0x0f
SLOPES = [10.257, 10.3, 10.29]
INTERCEPTS = [-12.2, -10.2, -8.4]
BAUDRATE = 115200
TIMEOUT = 0.5
SAMPLING_TIME ... | [
"js.barbosa10@uniandes.edu.co"
] | js.barbosa10@uniandes.edu.co |
47331e0ebafb62f2c571a2c34a01e379f28e1ca4 | 3cda2dc11e1b7b96641f61a77b3afde4b93ac43f | /test/algo/nas/oneshot/test_profiler.py | ce8e2dea5f2a9803791e3cd5800ff9d84c142e52 | [
"MIT"
] | permissive | Eurus-Holmes/nni | 6da51c352e721f0241c7fd26fa70a8d7c99ef537 | b84d25bec15ece54bf1703b1acb15d9f8919f656 | refs/heads/master | 2023-08-23T10:45:54.879054 | 2023-08-07T02:39:54 | 2023-08-07T02:39:54 | 163,079,164 | 3 | 2 | MIT | 2023-08-07T12:35:54 | 2018-12-25T12:04:16 | Python | UTF-8 | Python | false | false | 3,315 | py | import pytest
import torch
from torch.nn import Conv2d
from nni.nas.nn import ModelSpace, LayerChoice
from nni.nas.oneshot.pytorch.profiler import RangeProfilerFilter, ExpectationProfilerPenalty, SampleProfilerPenalty
from nni.nas.profiler.pytorch.flops import FlopsProfiler
class Net(ModelSpace):
def __init__(s... | [
"noreply@github.com"
] | Eurus-Holmes.noreply@github.com |
9a75ee027b3d24c57e8b1c6dbad80de7e251e3e1 | 1690d6ec0451a5971fea1aded40f0f98e81ad89b | /ch06/TkUI3Label.py | 4b8cdb519d0c76238ce362064cae2b09bb127074 | [] | no_license | eggeggss/BigData | 09165e5935c25b0c5f343f457768c13ee4d7e9a5 | 0306ff01861c7dcde6dec99df58991411535036c | refs/heads/master | 2020-04-04T18:15:25.124491 | 2018-11-05T09:33:48 | 2018-11-05T09:33:48 | 156,156,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | #!/usr/bin/python
try:
import Tkinter as tk
except ImportError:
import tkinter as tk
win = tk.Tk()
# Python 2.x name # Python 3.x name
#win = tk.Tk()
'''
label1 =tk.Label(win,text="Hello World!")
label1.pack()
label2 =tk.Label(win,bg="yellow",text="Hello No2!",fg="red")
label2.pack()
label3 =tk.Label(win,text="Hell... | [
"eggeggss@gmail.com"
] | eggeggss@gmail.com |
1812c9e6925a314f7f521ef22784c8b0a52ebb59 | 6f00947901426274cb895a21ad5f83c0197b50ba | /e2e/scripts/st_arrow_table.py | c713fe9812edfcbd04adb02474bce9e3bfd9176a | [
"Apache-2.0"
] | permissive | g147/streamlit | f19a796e1bbf83f939f1bcbd3e8f3fd6e64155bb | d54fab097caa3e6dc101eb930cddc0832e05dea9 | refs/heads/develop | 2023-06-18T02:21:22.112118 | 2021-07-10T09:22:27 | 2021-07-10T09:22:27 | 363,459,800 | 1 | 0 | Apache-2.0 | 2021-07-10T09:22:43 | 2021-05-01T16:45:08 | Python | UTF-8 | Python | false | false | 2,008 | py | # Copyright 2018-2020 Streamlit 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 or agreed to in wr... | [
"noreply@github.com"
] | g147.noreply@github.com |
318a8860268ad0ba67af152bf2833b94ecdd7623 | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L29/29-35_MD_NVT_rerun/set_1ns_equi_1.py | 50bffb33e2c950a8a834585ad7c88e4405d940ea | [] | 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 | 925 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L29/MD_NVT_rerun/ti_one-step/29_35/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_1.in'
temp_pbs = filesdir + 'temp_1ns_equi_1.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... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
c07c068572528b1005e53cc507d4d0da8811a959 | 940d7b93fb27e8eead9b6e52bc5c7444666744dd | /python/src/Lib/test/test_codecencodings_tw.py | 983d06f00342d6f3b4bc9d7905ad9863c66fefdc | [
"Apache-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Python-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-python-cwi"
] | permissive | pilotx45/sl4a | d446531d310cc17d93f24aab7271a0813e8f628d | 150e3e46b5103a9b9a391034ef3fbc5bd5160d0f | refs/heads/master | 2022-03-24T19:48:30.340479 | 2022-03-08T16:23:58 | 2022-03-08T16:23:58 | 277,016,574 | 1 | 0 | Apache-2.0 | 2022-03-08T16:23:59 | 2020-07-04T01:25:36 | null | UTF-8 | Python | false | false | 788 | py | #!/usr/bin/env python
#
# test_codecencodings_tw.py
# Codec encoding tests for ROC encodings.
#
from test import test_support
from test import test_multibytecodec_support
import unittest
class Test_Big5(test_multibytecodec_support.TestBase, unittest.TestCase):
encoding = 'big5'
tstring = test_multibytecodec... | [
"damonkohler@gmail.com"
] | damonkohler@gmail.com |
4b1ea48772e14eeff4ca5a434b230834b3f082dc | 4253429abd7f3c1d42f7f4d1fa83c006caf3f965 | /dao.py | bd1700e64d622bbf57f8a9c77bdb80fe2151c692 | [] | no_license | bloogrox/ssp-campaigns | f093a02c1ba450361f2b18059f9f6e973e7d6110 | 62da668022e6b92de899d6604db73875cccd188a | refs/heads/master | 2021-10-25T14:02:25.695104 | 2021-06-19T06:46:20 | 2021-06-19T06:46:20 | 96,702,055 | 3 | 1 | null | 2021-06-19T06:46:41 | 2017-07-09T18:06:57 | Python | UTF-8 | Python | false | false | 1,942 | py | import time
from datetime import datetime
import pytz
from elasticsearch.exceptions import ElasticsearchException
from elasticsearch_dsl import Search, Q, query as dslq
from app import es, logger
def get_subscribers(targetings, hours_whitelist, volume):
logger.debug("get_subscribers: getting subscribers")
st... | [
"bloogrox@gmail.com"
] | bloogrox@gmail.com |
1b7baf32d349d530d5788078b227696dfc21bac0 | acfb4330e53f2818fe9c63bdd75a1410db4568a1 | /main.py | a2f608f37305a066186cae5810244cb63a5179f5 | [] | no_license | zaidhassanch/NeuralTensorNetwork-Tensorflow | 8bc6b2b42be9a2e8f8d0e4c4e3b3f80415bf2467 | 3ca77c56cc0a02f05c7722e4bc213a20fa58985e | refs/heads/master | 2020-07-03T00:23:54.777032 | 2019-08-11T06:07:28 | 2019-08-11T06:07:28 | 201,723,703 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,140 | py | from sklearn import metrics
import numpy as np
import csv
import math
import tensorflow as tf
from scipy.io import loadmat
import os
import psutil
import random
import scipy.io
import pickle
from ntn import NTN
no_of_entities = 38696;
flipType = 0;
batch_size = 20000;
slice_size = 3;
corrupt_size = 10;
def nanargma... | [
"zaidhassanch@gmail.com"
] | zaidhassanch@gmail.com |
79cce4b68daf8b2b2974ff376edb65a60ed1ad43 | f8b36ef6debb317e7213346b11df932eb3b6af35 | /odd_data.py/precess_different.py | 507138e873ab6528c073f6b976d7dea22c46580f | [] | no_license | YoungriKIM/lotte | ec767eb5eaa8f13f38115f1c30d25ed5bac7ef2b | e3ceda9918210ee418269d1586ec200ce9d9ca33 | refs/heads/main | 2023-03-30T15:44:00.387934 | 2021-03-29T13:16:44 | 2021-03-29T13:16:44 | 348,300,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | import cv2
import tensorflow as tf
import numpy as np
import pandas as pd
from keras.models import load_model
from keras.applications.imagenet_utils import preprocess_input
# from keras.applications.resnet import preprocess_input
# ---------------------------------------------------------------------------------------... | [
"lemontleo0311@gmail.com"
] | lemontleo0311@gmail.com |
ae8d34a1556a09936d3e0d2677e7f674e882703c | 6b66bf6254b4e5ed7dac801a0b3093acdc8d90e4 | /Chapter09/parse_sales_log.py | bba2fc4049304916f0ee48a351166cf3a05c9a51 | [
"MIT"
] | permissive | PacktPublishing/Python-Automation-Cookbook | 5b7741309fda8a300b3cf57623cfe75ab959c9e4 | ffccccae0f9acc72311f7ccda38a17e554cdc924 | refs/heads/master | 2023-06-01T10:08:49.648731 | 2023-01-30T09:58:51 | 2023-01-30T09:58:51 | 133,305,963 | 221 | 159 | MIT | 2023-05-22T22:38:20 | 2018-05-14T04:45:13 | Python | UTF-8 | Python | false | false | 1,282 | py | import os
import openpyxl
import argparse
from sale_log import SaleLog
def get_logs_from_file(shop, log_filename):
'''
Based on a file, obtain and parse all logs
Return a list of SaleLog objects
'''
with open(log_filename) as logfile:
logs = [SaleLog.parse(shop=shop, text_log=log)
... | [
"jaime.buelta@gmail.com"
] | jaime.buelta@gmail.com |
0194dfc24914e8166fe0f0f1121f42246f1b1575 | 46d7a1c63bc6eece4c9b9ad0f5e1fa7900b92235 | /test/test_generated_day_context_bulk_dto.py | 6fb5153905a707f866f3fca9384e7f966829c142 | [
"MIT"
] | permissive | timelight-ai/python-api-client | 88fe622c0e7c96247275a2fc80dcc2bbd47a1766 | 7e14341a89e8b7e1b4b0730416f6ddd3ef66ef39 | refs/heads/master | 2020-09-14T16:48:09.508013 | 2019-12-23T16:40:25 | 2019-12-23T16:40:25 | 223,189,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | # coding: utf-8
"""
timelight
This is the timelight api. # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import timelight_ai_python_api_client
from timelight_ai_python_api_clie... | [
"prevostclement@gmail.com"
] | prevostclement@gmail.com |
8c98424854a09c17604aa46bea9b067165b35825 | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /src/datadog_api_client/v1/model/check_can_delete_slo_response.py | 66ddcba0921338a69b4c36c3b6bef2aea3488a03 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 1,662 | py | # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
from typing import Dict, Union, TYPE_CHECKING
from ... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
6c0e15afe8109d98fd4b63caaadd7879dcef3def | c3e2f56672e01590dc7dc7e184f30c2884ce5d3a | /Programs/Program/13.py | c7fca07b073151f8f8d8e02ab3f30183a0d3ffc7 | [] | no_license | mridulrb/Basic-Python-Examples-for-Beginners | ef47e830f3cc21cee203de2a7720c7b34690e3e1 | 86b0c488de4b23b34f7424f25097afe1874222bd | refs/heads/main | 2023-01-04T09:38:35.444130 | 2020-10-18T15:59:29 | 2020-10-18T15:59:29 | 305,129,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | x=input("Enter number of elements")
n=list()
for i in range(1,x+1):
y=input("Enter elements")
n=n+[y]
print "Insert an element"
y=input("Enter element to be inserted")
x=input("Enter position")
n.insert(x,y)
print n
print "Delete an element"
m=input("Enter position of element to be deleted")
del n[m... | [
"mridurb@gmail.com"
] | mridurb@gmail.com |
f6e4584dbc3ecd32d3c51069cee6aeea5ed296c0 | b738f097345e3ef491fa18ae8fb4d0df52d28423 | /done/python-tdd@polsl/bowling.py | 232af8a3bc2df7995e10280d19626945e64802ad | [
"MIT"
] | permissive | afronski/presentations | f2bc1ea4b36f097a1cd497c47fd920565859c7cc | 86bc641c760bf532ae0db593ae4f4fe3545a7c86 | refs/heads/master | 2021-05-04T11:55:52.409420 | 2018-02-12T11:25:41 | 2018-02-12T11:25:41 | 5,912,257 | 2 | 2 | null | 2013-11-03T20:24:33 | 2012-09-22T10:41:22 | JavaScript | UTF-8 | Python | false | false | 1,124 | py | MAX_ROLLS = 21
FRAMES = 10
STRIKE = 10
SPARE = 10
class Game:
def __init__(self):
self.scoreArr = []
def roll(self, pins):
if self.numberOfRollsTaken() > MAX_ROLLS:
raise ValueError
self.scoreArr.append(pins)
def score(self):
score = 0
currentRoll = 0
... | [
"afronski@gmail.com"
] | afronski@gmail.com |
aa7a80190166cf431ec0fb6ebefef6eb5e4572e4 | 8a29026503acde2251000221ec9bc3e0a02ad5a4 | /multifidelity_studies/examples/eggcrate.py | 1ebb295a758be1a0dee31e211c057428a3c0bc02 | [] | no_license | johnjasa/multifidelity_studies | 1a1c4c91245f710a6b3058150e5b40518ee19429 | 4f7a134076013a387ec57f8eeff2aa591a5820f5 | refs/heads/master | 2022-12-03T20:55:52.701297 | 2020-08-18T19:39:14 | 2020-08-18T19:39:14 | 270,758,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | import numpy as np
from multifidelity_studies.models.testbed_components import eggcrate_high_model, eggcrate_low_model
from multifidelity_studies.methods.trust_region import SimpleTrustRegion
# Following Algo 2.1 from Andrew March's dissertation
np.random.seed(13)
bounds = {'x' : np.array([[-5.0, 5.0], [-5.0... | [
"johnjasa11@gmail.com"
] | johnjasa11@gmail.com |
abc693f65937a254a1607906698fa5873dfee509 | 7d4bfb411c17fcfc0c52c55403f552abe3a5b667 | /satstac/sentinel/cli.py | 04a55d5ceb74f3cf4198b4aca3f1bae648f15a7b | [
"MIT"
] | permissive | samsammurphy/sat-stac-sentinel | ac1fe603287b3e0eaaa912164b177628f55c1795 | 2ffbcc8e47cec32809e9661995c6e157b034fb26 | refs/heads/master | 2020-05-22T05:49:30.443926 | 2019-01-31T21:33:42 | 2019-01-31T21:33:42 | 186,242,178 | 1 | 0 | MIT | 2019-05-12T10:44:39 | 2019-05-12T10:44:38 | null | UTF-8 | Python | false | false | 3,073 | py | import argparse
import logging
import sys
from datetime import datetime
import satstac
from satstac import Catalog
import satstac.sentinel as sentinel
from .version import __version__
# quiet loggers
logging.getLogger('urllib3').propagate = False
logging.getLogger('requests').propagate = False
logger = logging.getL... | [
"matt.a.hanson@gmail.com"
] | matt.a.hanson@gmail.com |
5861d8bd6e936da28d64e081423ddfcbd0cbc073 | 003dd45d19b5a6fd4a04deeefa63756462dbe09d | /pymoo/visualization/fitness_landscape.py | b3cc353dc47e1256c0d96a7a8a86dd284d8a8670 | [
"Apache-2.0"
] | permissive | Flytortoise/pymoo | 51d32793e843977bd8fda0226bb6add1c356e21d | c6426a721d95c932ae6dbb610e09b6c1b0e13594 | refs/heads/master | 2023-09-03T20:54:13.284192 | 2021-11-09T13:23:15 | 2021-11-09T13:23:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,734 | py | import numpy as np
from pymoo.docs import parse_doc_string
from pymoo.core.plot import Plot
from pymoo.util.misc import all_combinations
class FitnessLandscape(Plot):
def __init__(self,
problem,
_type="surface+contour",
n_samples=100,
colorbar=... | [
"blankjul@egr.msu.edu"
] | blankjul@egr.msu.edu |
7ee1c85e3c5fe2c039c7f98396c4506b00c8f14a | c6053ad14e9a9161128ab43ced5604d801ba616d | /Lemon/Python_Base/api_auto_4/common/__init__.py | 8aeef0fc4db241d8d1cd4ccc84d153d0423aee8b | [] | no_license | HesterXu/Home | 0f6bdace39f15e8be26031f88248f2febf33954d | ef8fa0becb687b7b6f73a7167bdde562b8c539be | refs/heads/master | 2020-04-04T00:56:35.183580 | 2018-12-25T02:48:51 | 2018-12-25T02:49:05 | 155,662,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | # -*- coding: utf-8 -*-
# @Time : 2018/12/11/17:50
# @Author : Hester Xu
# Email : 1603046502@yqq.com
# @File : __init__.py.py
# @Software : PyCharm
| [
"xuruizhu@yeah.net"
] | xuruizhu@yeah.net |
708142b5db0d363d16d70ab95faf0020baf0e023 | 47dd9eadf5d2c7421eeb0c39d1ff0bad440ac513 | /handprint/debug.py | 70a1af45821cf23a967cf5a115e7ef823fb83106 | [
"CC-BY-3.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | JanaldoChen/handprint | 53a26f9195e96f1a649dc2c026c85f85d66ce28e | 0bc155b65d222fae8e753f75394a6f203d37e47a | refs/heads/master | 2020-05-02T10:09:46.746419 | 2018-12-22T01:48:09 | 2018-12-22T01:48:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | '''
debug.py: debugging aids for Handprint
Authors
-------
Michael Hucka <mhucka@caltech.edu> -- Caltech Library
Copyright
---------
Copyright (c) 2018 by the California Institute of Technology. This code is
open-source software released under a 3-clause BSD license. Please see the
file "LICENSE" for more informa... | [
"mhucka@caltech.edu"
] | mhucka@caltech.edu |
72f1ea0cdfef1265be189ef2ae7f249b72c4dfce | 24241324fccd0506d7e01ff3c618a26269c3212f | /eval/theme/setuphandlers.py | 6ce4f5b6f5dd65a832b2dbf9014a114fa67f57a0 | [] | no_license | ploneUN/eval.theme | fd5c94ce604327c7debd62ee207d80878422d575 | 7849113893e7d7192acf94e896759a348e8ccdd2 | refs/heads/master | 2020-05-22T01:11:17.106337 | 2017-02-17T05:43:01 | 2017-02-17T05:43:01 | 14,302,929 | 0 | 2 | null | 2017-02-15T06:12:58 | 2013-11-11T14:27:38 | CSS | UTF-8 | Python | false | false | 340 | py | from collective.grok import gs
from eval.theme import MessageFactory as _
@gs.importstep(
name=u'eval.theme',
title=_('eval.theme import handler'),
description=_(''))
def setupVarious(context):
if context.readDataFile('eval.theme.marker.txt') is None:
return
portal = context.getSite()
... | [
"khairil.yusof@gmail.com"
] | khairil.yusof@gmail.com |
c63704a2abfcc2e6fda13be3c14e729dc6eba5de | 4be52577bb1a038d56e05d8b39bceaae09a65d0f | /prompt_toolkit/prompt.py | 64ce0df48044ac4c2de58323d0336097cf8fce79 | [
"BSD-3-Clause"
] | permissive | lowks/python-prompt-toolkit | 0b4c9389c3e3672a120b8b8c3801f8f9b1e161e5 | f72028e6e703cebc22628e978825865b19ba2130 | refs/heads/master | 2021-01-23T03:59:05.558791 | 2014-08-29T21:30:47 | 2014-08-29T21:30:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,192 | py | """
Prompt representation.
"""
from __future__ import unicode_literals
from pygments.token import Token
from .enums import IncrementalSearchDirection, LineMode
__all__ = (
'PromptBase',
'Prompt',
)
class PromptBase(object):
"""
Minimal base class for a valid prompt.
:attr line: :class:`~prompt_... | [
"jonathan@slenders.be"
] | jonathan@slenders.be |
2f9dc2741a11c8dd3f36f94b0e353b73d2682714 | cffac6cffa47eba65258da1d6377e0a5cb014e64 | /typeidea/blog/models.py | ba310508a2de477ccf1138e8a33201f42522d7eb | [] | no_license | zomodo/typeidea | b52f6af535759c6133941f46ad5d56dfe7ec589c | 9614af9e460c6076f78e11845e10313ad445739b | refs/heads/master | 2022-11-24T00:10:20.267261 | 2020-03-15T09:39:13 | 2020-03-15T09:39:13 | 226,280,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,288 | py | from django.db import models
from django.contrib.auth.models import User
from django.core.cache import cache # 引入缓存,对更新频率不高的数据可以加缓存
import mistune # 配置Markdown
from django.utils.functional import cached_property
# Create your models here.
class Category(models.Model):
STATUS_NORMAL=1
STATUS_DELETE=0
S... | [
"986001564@qq.com"
] | 986001564@qq.com |
d3c2b8b4a19290ea90aed1d80fa0ff27418e95bf | c99200b3f53857119fb795c577a0ef871349b1e9 | /auto_trader.py | daf33a49636e23e8e33b1a339689381d70ea4573 | [] | no_license | hqyhqn/stock | 11b97ccdb7c86045a28aba681f739f84780dd5f2 | 321f838593053c53362d6bf4859a3e89bcab6e6c | refs/heads/master | 2020-06-04T08:23:12.732055 | 2019-06-12T03:29:15 | 2019-06-12T03:29:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | # -*- coding: utf-8 -*-
# website: http://30daydo.com
# @Time : 2019/3/19 23:21
# @File : auto_trader.py
import datetime
import logging
import time
import easyquotation
import easytrader
import pandas as pd
from config import PROGRAM_PATH
from setting import get_engine
class AutoTrader():
def __init__(self):
... | [
"jinweizsu@gmail.com"
] | jinweizsu@gmail.com |
4e94604be9b04d443af312cb1587fd7ecaf21ab7 | 9aaa39f200ee6a14d7d432ef6a3ee9795163ebed | /Algorithm/Python/875. Koko Eating Bananas.py | 7152cd4bafa38af1ae1426976d2d2ada2bde9eee | [] | no_license | WuLC/LeetCode | 47e1c351852d86c64595a083e7818ecde4131cb3 | ee79d3437cf47b26a4bca0ec798dc54d7b623453 | refs/heads/master | 2023-07-07T18:29:29.110931 | 2023-07-02T04:31:00 | 2023-07-02T04:31:00 | 54,354,616 | 29 | 16 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | # -*- coding: utf-8 -*-
# Created on Sun Jul 22 2018 10:53:39
# Author: WuLC
# EMail: liangchaowu5@gmail.com
# binary search
import math
class Solution(object):
def minEatingSpeed(self, piles, H):
"""
:type piles: List[int]
:type H: int
:rtype: int
"""
left, right =... | [
"liangchaowu5@gmail.com"
] | liangchaowu5@gmail.com |
442bbbefb2e4c66ebc2bff3e49c81ef74ac67885 | d62e4220120938954bf6135a88a1e6e3b0d6e8a2 | /day18/day18.py | 08b806479c7cd4f6a897cb201c386e47e92e585a | [] | no_license | matnad/aoc19 | d711828cd498db12db4d60a807df05a4208983fc | d607b3ea295340c8e8ef68f8bea87191d8d299d9 | refs/heads/master | 2020-09-29T15:37:08.888511 | 2019-12-20T12:47:37 | 2019-12-20T12:47:37 | 227,065,022 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,665 | py | from collections import defaultdict
from string import ascii_lowercase, ascii_uppercase
import networkx as nx
from aocd.models import Puzzle
puzzle = Puzzle(year=2019, day=18)
in1 = puzzle.input_data
# in1 = '''########################
# #f.D.E.e.C.b.A.@.a.B.c.#
# ######################.#
# #d.....................#
# ... | [
"matnad@gmail.com"
] | matnad@gmail.com |
19714751cf058afbe6001984e9d9395ba1419d68 | 968e065dadbac6099ec1bd6d3c626f192f4d2f93 | /backend/home/migrations/0002_load_initial_data.py | 7f492b4d8dca558e2b8281328fba801407874ff2 | [] | no_license | crowdbotics-apps/r123mobile-dev-5890 | 91ae9ac3447b42c7cb7e75296c5067b90b7ca5a8 | 6796a603784ba3e8769f12b7b8d37c8189fea67b | refs/heads/master | 2022-10-14T10:57:48.074645 | 2020-06-12T10:55:40 | 2020-06-12T10:55:40 | 271,601,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "R123mobile"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e69fc977aea962be0df1b978a369ff88388c52d3 | e27333261b8e579564016c71d2061cc33972a8b8 | /development_codes/Backend/.history/tfidfImplementation_20210808013210.py | 9b386c87988682f80d2c50984c662d09106e58aa | [] | no_license | Dustyik/NewsTweet_InformationRetrieval | 882e63dd20bc9101cbf48afa6c3302febf1989b1 | d9a6d92b51c288f5bcd21ea1cc54772910fa58f7 | refs/heads/master | 2023-07-01T09:12:53.215563 | 2021-08-12T08:28:33 | 2021-08-12T08:28:33 | 382,780,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,775 | py | import pandas as pd
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
from sklearn.metrics.pairwise import euclidean_distances
class CosineSimilarity:
def __init__(self, t... | [
"chiayik_tan@mymail.sutd.edu.sg"
] | chiayik_tan@mymail.sutd.edu.sg |
61034140fdc3f6af0b0da0d09dd01e2006ccc6a1 | a53f9ac05c462614cda91533618640c1fb7722a5 | /mlflow_export_import/model/import_model.py | 88c63f4a208147371eb8b5f3b23b0c86aca06580 | [
"Apache-2.0"
] | permissive | rwinklerwilkes/mlflow-export-import | 2510fbf3dcd8b130b95cdebce574ab15f60f9f8f | 6faa8ddea2597cb53986a500a885fbf45e7178c3 | refs/heads/master | 2023-07-30T06:44:52.218096 | 2021-10-05T00:50:49 | 2021-10-05T00:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,114 | py | """
Import a registered model and all the experiment runs associated with its latest versions.
"""
import os
import click
import mlflow
from mlflow.exceptions import RestException
from mlflow_export_import.run.import_run import RunImporter
from mlflow_export_import import utils
from mlflow_export_import.common import ... | [
"amesar@users.noreply.github.com"
] | amesar@users.noreply.github.com |
1f5824b582c3f9f973e8ee7f30f2778be5f0ff7e | 56e51b9187b614e9f6eba76af598533cfc977d4b | /tests/test_02_app/test_simple_app.py | 3b609dc2e39b4877ee99c415625df57583f5fc66 | [
"MIT"
] | permissive | uyoldas/uvicorn-gunicorn-docker | 5b4907941ac601515eaa2223e2c2f5cfa4dc3118 | 1ac881ec8d5dfb3ba324275d86c96ca03a0ca4ef | refs/heads/master | 2020-08-12T18:52:15.381572 | 2019-10-15T11:37:38 | 2019-10-15T11:37:38 | 214,823,399 | 0 | 0 | MIT | 2019-10-13T13:17:12 | 2019-10-13T13:17:12 | null | UTF-8 | Python | false | false | 2,289 | py | import time
from pathlib import Path, PurePath
import docker
import pytest
import requests
from ..utils import (
CONTAINER_NAME,
IMAGE_NAME,
get_config,
get_logs,
remove_previous_container,
)
client = docker.from_env()
def verify_container(container, response_text):
config_data = get_config... | [
"tiangolo@gmail.com"
] | tiangolo@gmail.com |
acca51be10a34c023c48450c21d9dcc54335a658 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/ADACOS_ID1082_for_PyTorch/omniglot/dataset.py | 87698eb2c6d3445bb1f4acb26c983291e07a6144 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 3,013 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
30bccd1ac0f03dbd79b93989761e80714f9ed1b0 | 2ab444e427955d3dbf1f8c0947837c7d73e66a0a | /68-何强强-上海/第四周/reference_code/透视变换.py | 46c23656df82bf111e7c9526662201e7c8b9a7e1 | [] | no_license | Yang-chen205/badou-Turing | 6bfc0a4622cb0882f89117e73e2868d40601e7ff | f2a1b2f8b6b292815d92a294d49954616d3624d5 | refs/heads/main | 2023-08-07T03:57:07.471322 | 2021-09-26T08:20:10 | 2021-09-26T08:20:10 | 380,449,981 | 1 | 0 | null | 2021-06-26T08:12:02 | 2021-06-26T08:12:02 | null | UTF-8 | Python | false | false | 559 | py | import cv2
import numpy as np
img = cv2.imread('photo1.jpg')
result3 = img.copy()
'''
注意这里src和dst的输入并不是图像,而是图像对应的顶点坐标。
'''
src = np.float32([[315, 39], [416, 50], [236, 476], [407, 477]])
dst = np.float32([[0, 0], [140, 0], [0, 488], [140, 488]])
print(img.shape)
# 生成透视变换矩阵;进行透视变换
m = cv2.getPerspectiveTransform(src... | [
"huanmengmie@163.com"
] | huanmengmie@163.com |
6875f8c9594cc29b507e01a9d7c44563c7cb524c | ac0b9c85542e6d1ef59c5e9df4618ddf22223ae0 | /kratos/.svn/pristine/68/6875f8c9594cc29b507e01a9d7c44563c7cb524c.svn-base | 0755ca1a5dc670aea2e3f42f44dd332d736cd46b | [] | no_license | UPC-EnricBonet/trunk | 30cb6fbd717c1e78d95ec66bc0f6df1a041b2b72 | 1cecfe201c8c9a1b87b2d87faf8e505b7b1f772d | refs/heads/master | 2021-06-04T05:10:06.060945 | 2016-07-15T15:29:00 | 2016-07-15T15:29:00 | 33,677,051 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,136 | from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7
# -*- coding: utf-8 -*-
#
#
# setting the domain size for the problem to be solved
domain_size = 3
import sys
kratos_path = '../../../..'
kratos_benchmarking_path = '../../../../benchm... | [
"enriquebonetgil@hotmail.com"
] | enriquebonetgil@hotmail.com | |
60d2239c76bd8b208cf9a46cb779dbfa869b8619 | 7b8fd24cc6dbed385173a3857c06f2935724ace6 | /pycharm/day01_3_6/Scripts/gunicorn-script.py | 5ca1f3eeaa9c6c242df2611452ae02c6d543c032 | [] | no_license | Yang-Jianlin/python-learn | eb1cfd731039a8e375827e80b8ef311f9ed75bfb | 048cde2d87e4d06a48bd81678f6a82b02e7c4cb4 | refs/heads/master | 2023-07-12T16:35:13.489422 | 2021-08-23T11:54:10 | 2021-08-23T11:54:10 | 357,464,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | #!e:\pycharm\day01_3_6\scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==20.1.0','console_scripts','gunicorn'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'gunicorn==20.1.0'
try:
from importlib.metadata import distribution
except ImportError:
try:
from ... | [
"1494237426@qq.com"
] | 1494237426@qq.com |
f84372e4b8406374ae989ff65693a795af481614 | 313c13aa9059c43e6ca421b3631c6d17d7df647b | /hw5/python/nn_pytorch.py | 4d87a373e2951ec17faf1a3d424cd27c5d1f5dc3 | [] | no_license | ouyangjiahong/computer-vision | 2e7db972448f4ffe5b6178a054a03118a5c92a69 | ca3f29b50852c12507962e5cf3d6c974ccfb8d15 | refs/heads/master | 2020-03-28T11:17:46.142368 | 2018-12-08T22:31:39 | 2018-12-08T22:31:39 | 148,198,616 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | py | import pdb
import numpy as np
import torch
import scipy
import torch.nn as nn
import torch.nn.functional as F
class Dataset_Loader(torch.utils.data.Dataset):
def __init__(self, dataset_name, set_name, batch_size, reshape=False):
self.dataset_name = dataset_name
self.set_name = set_name
self... | [
"ouyangjiahong13@gmail.com"
] | ouyangjiahong13@gmail.com |
8c38915e4fcb870f41bc0cc7e651376a27d6bf6b | d1dbe30711647d3c24fa0b66488a52507dec7c72 | /src/chat/utils.py | b84a9f3f4ec031d4ecda063a52e71cf63a80ffd6 | [
"MIT"
] | permissive | lmoshood/ChatXChannels | 79c9bc4dc2811a2e0b79e61f9434fb619f5669b7 | 926f264af446f0c26a613d828092b134cbb708e5 | refs/heads/master | 2020-03-18T06:19:56.539862 | 2018-05-16T18:41:24 | 2018-05-16T18:41:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | import json
from asgiref.sync import async_to_sync
from channels.layers import get_channel_layer
def broadcast_msg_to_chat(msg, group_name, user='admin', event_type='broadcast_message'):
channel_layer = get_channel_layer()
actual_message = json.dumps({'msg': msg, 'user': user})
broadcast_data = {
... | [
"hello@teamcfe.com"
] | hello@teamcfe.com |
a8693bb18dc93743ebee349e83b25ebc0d5a5281 | cd0cf1c75c715a67502ff7f164bb070da78956de | /calculation/migrations/0069_auto_20160415_1502.py | 0dfac5ac7943e76ff177016e5a6929d3688c6a2b | [] | no_license | nustarnuclear/orient_linux | 9792fb4319007708861d619dac081fa32206d3f6 | 95082ea56a0dfc248024f9bf54897a017985ccdf | refs/heads/master | 2020-03-28T03:17:02.629719 | 2017-01-04T08:38:16 | 2017-01-04T08:38:16 | 43,117,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('calculation', '0068_auto_20160414_1540'),
]
operations = [
migrations.RemoveField(
model_name='corebafflecalcula... | [
"hengzhang@nustarnuclear.com"
] | hengzhang@nustarnuclear.com |
d2386b17e8e97384cc17d065689deefeb3b87b28 | e0980f704a573894350e285f66f4cf390837238e | /.history/flex/models_20201029151428.py | c7ca7da1effd2c186078b7f75f6ade034c050256 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | from django.db import models
from wagtail.core.models import Page
from wagtail.core.fields import StreamField
from wagtail.admin.edit_handlers import StreamFieldPanel
from wagtail.snippets.blocks import SnippetChooserBlock
from wagtail.images
from wagtail.core import blocks as wagtail_blocks
from streams import blocks... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
17ffffa5157690aaa167bf802368c288dfb6205e | 0e9f73d2ef1239b22e049ef6338362da7dbfb122 | /source/web/Django/FatQuantsDjango/FatQuantsDjango/ticker/migrations/0025_ticker_market_sector_id.py | ad518a69b02f70a6955468e1af16f8e20aa2afb2 | [] | no_license | Andy-Mason/FatQuants | 3c4bfafc29834af76b0be40e93b0e210e0ef5056 | edd0e98f4599ef91adbdf4179164769ddd66c62a | refs/heads/master | 2023-01-11T10:57:50.563742 | 2021-08-11T19:04:59 | 2021-08-11T19:04:59 | 73,127,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # Generated by Django 2.1.3 on 2018-12-23 21:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('reference_data', '0037_productprovider'),
('ticker', '0024_ticker_trading_segment'),
]
operations = [
... | [
"Andy-Mason@users.noreply.github.com"
] | Andy-Mason@users.noreply.github.com |
41ee3de2eb7b76a5768da67f98d5bfac9b1d0a33 | 7f12720fadf0d675b0684cc1be737ba22316adde | /weather/settings.py | 0ac2e3ee234daf147c33e059c52e18ea658f26da | [] | no_license | inderdevkumar/weather-project | 7e77a146227abb677542f52c1e78893592116175 | d17105b41a01cf0713abd437601717953b35a863 | refs/heads/master | 2020-12-09T21:38:19.937632 | 2020-01-12T16:31:12 | 2020-01-12T16:31:12 | 233,422,981 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | """
Django settings for weather project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"id0102yadav@gmail.com"
] | id0102yadav@gmail.com |
78c12d5bd6fd1c854173a2f14a36bf72bd9c46fd | c5715d334e72a3612690071e741c2925782973a6 | /fuser/migrations/0001_initial.py | f6cd26750ebbaa7e90d7a6d88cfb6000db70cc82 | [
"MIT"
] | permissive | yeazin/Movement-Pass-Clone | 7a92416b51edf03e17ed75bf19116fbe93e8b133 | eeae40cee43f2c3a9b714345d54ac51b23e5e852 | refs/heads/main | 2023-06-24T13:57:58.031301 | 2021-07-23T09:09:52 | 2021-07-23T09:09:52 | 370,657,878 | 31 | 26 | null | null | null | null | UTF-8 | Python | false | false | 3,712 | py | # Generated by Django 3.1.5 on 2021-05-29 16:07
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('sadmin', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"farsin310yeariha9701@gmail.com"
] | farsin310yeariha9701@gmail.com |
f4aab64d08505f1ba05d601db9316683cbb5c064 | d020606f5e9174aa669e4b6b316bdb0fcb05ce02 | /venv/lib/python3.7/site-packages/poco/drivers/std/test/simple.py | c89f3ea9583886ac715c2783553d66a70afeb74a | [] | no_license | Hanlen520/AutomationProject | 4c1270fba570b256493cd6681d715e0b5136a4f5 | 95a7cb61d8b339a6409483d738de5a0d9d85b321 | refs/heads/master | 2023-04-02T20:23:07.696753 | 2021-04-07T07:57:04 | 2021-04-07T07:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,849 | py | # coding=utf-8
import base64
import json
import traceback
import time
import unittest
from poco.drivers.std import StdPoco
from poco.utils.simplerpc.utils import sync_wrapper, RemoteError
from airtest.core.api import connect_device
class TestStandardFunction(unittest.TestCase):
@classmethod
d... | [
"39899119+792607724@users.noreply.github.com"
] | 39899119+792607724@users.noreply.github.com |
12c822ec5b16410fac5804db434a952cfb3fc14d | 3f788f1dcb325f403a21a3cc0f3a547b48a9492a | /packages/levylab_lib_krohn_hite_7008/levylab_lib_krohn_hite_7008-1.7.5.1.spec | 9e5ef681a9ddf0ad2ef0927aed81c0a5864fd750 | [
"BSD-3-Clause"
] | permissive | levylabpitt/levylabpitt.github.io | e01fa402e7bbb59f4b99f979735021271f55d48b | 96f1e0d7064526ab5908e9a26721adf306331516 | refs/heads/master | 2023-08-24T15:46:32.342077 | 2023-08-10T04:28:08 | 2023-08-10T04:28:08 | 183,644,047 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,153 | spec | [Package]
Name="levylab_lib_krohn_hite_7008"
Version="1.7.5.1"
Release=""
ID=de6d29a62cba6f9bfa889a3e8a6abcab
File Format="vip"
Format Version="2017"
Display Name="Krohn-Hite 7008 Drivers"
[Description]
Description="Drivers and UI for Krohn-Hite 7008 multichannel amplifiers."
Summary=""
License=""
Copyright="Copyrigh... | [
"p.irvin@levylab.org"
] | p.irvin@levylab.org |
58060f83d6cb9635823a3a37d107909c22bc7b01 | e5e82783627e934809d59c3ac9eebee2f032555b | /build/turtlebot_bringup/catkin_generated/generate_cached_setup.py | e79fcd6888f6600a248c22b8f292ec6463b05f6d | [] | no_license | xy919/my_simulation | b5f312e811afe627186c050950b5b5a3f087f9c1 | 1258e6480ec6c572440e48cd2b4eb7124005f603 | refs/heads/master | 2023-03-19T15:17:52.925713 | 2021-03-01T12:25:02 | 2021-03-01T12:25:02 | 332,885,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"xinyin919@gmail.com"
] | xinyin919@gmail.com |
b6aadd3b40557c896e5a3aa14d146cca45931edf | 27e6a0f12334076bca2281d501453f90b7762eb0 | /src/typeDefs/section_1_4/section_1_4_1.py | b57926e98b53e216c530185abfbacaad5343cdc2 | [
"MIT"
] | permissive | dheerajgupta0001/wrldc_mis_monthly_report_generator | 44491d0488620426a191dc52d1317f8756274170 | dd5ae6f28ec6bf8e6532820fd71dd63f8b223f0b | refs/heads/main | 2023-06-20T08:14:19.928757 | 2021-07-20T05:55:39 | 2021-07-20T05:55:39 | 338,298,197 | 0 | 0 | MIT | 2021-03-24T05:36:40 | 2021-02-12T11:22:11 | Python | UTF-8 | Python | false | false | 309 | py | from typing import TypedDict, List
class IDemDataRow_1_4_1(TypedDict):
state_name: str
catered: str
ls: str
freq_corr: str
pc: str
tot_dem: str
peak_date: str
peak_time: str
freq_at_peak: str
class ISection_1_4_1(TypedDict):
dem_data_1_4_1: List[IDemDataRow_1_4_1]
| [
"nagasudhirpulla@gmail.com"
] | nagasudhirpulla@gmail.com |
0bab3af3d0b6f5c5e819741d595cd245e86894ac | 20cda6f6b14d9b91e64d43b8261f7832572be85f | /pyschema/BrightnESS/FlatBufs/f140_general/pvFloat.py | f24a15a3e6a83b01dd9646e4f1d806f27b99c1a3 | [] | no_license | ess-dmsc/lauschangriff | f9f2bacb7a5483423919fbfc8948e8a56a070800 | 3735c5f84798efc280e0931bc48129339658f400 | refs/heads/master | 2021-08-19T13:22:41.702602 | 2020-04-21T15:13:18 | 2020-04-21T15:13:18 | 168,178,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: f140_general
import flatbuffers
class pvFloat(object):
__slots__ = ['_tab']
@classmethod
def GetRootAspvFloat(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = pvFlo... | [
"mark.koennecke@psi.ch"
] | mark.koennecke@psi.ch |
456669f59da0e0a1cf151ab73c7cb1a5b954a938 | a3c662a5eda4e269a8c81c99e229879b946a76f6 | /.venv/lib/python3.7/site-packages/pylint/test/functional/useless_super_delegation_py35.py | ffc3c6c74baf96113c2fed569e231706ba2294a5 | [
"MIT"
] | permissive | ahmadreza-smdi/ms-shop | 0c29da82c58b243507575672bbc94fb6e8068aeb | 65ba3f3061e2ac5c63115b08dadfe7d67f645fb6 | refs/heads/master | 2023-04-27T19:51:34.858182 | 2019-11-24T20:57:59 | 2019-11-24T20:57:59 | 223,616,552 | 6 | 2 | MIT | 2023-04-21T20:51:21 | 2019-11-23T16:09:03 | Python | UTF-8 | Python | false | false | 510 | py | # pylint: disable=missing-docstring,too-few-public-methods,no-member,unused-argument, useless-object-inheritance
class NotUselessSuper(object):
def not_passing_all_params(self, first, *args, second=None, **kwargs):
return super(NotUselessSuper, self).not_passing_all_params(*args, second, **kwargs)
class... | [
"ahmadreza.smdi@gmail.com"
] | ahmadreza.smdi@gmail.com |
f8805eda70337a82f1b2be756b749bc987749246 | cd3df53a432d35e2fe7b4e4f9bbe62222235a85b | /tests/port_tests/edge_tests/test_slope.py | 5f01374962cb1e91dc8ae0e57dcfbd7e28581109 | [
"MIT"
] | permissive | vincentsarago/wagyu | 00ccbe6c9d101724483bde00e10ef512d2c95f9a | f6dce8d119fafa190d07f042ff6c4d5729a4c1e6 | refs/heads/master | 2023-01-20T06:26:27.475502 | 2020-11-21T04:57:01 | 2020-11-21T04:57:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import math
from hypothesis import given
from tests.utils import implication
from wagyu.edge import Edge
from . import strategies
@given(strategies.edges)
def test_basic(edge: Edge) -> None:
assert isinstance(edge.slope, float)
@given(strategies.edges)
def test_properties(edge: Edge) -> None:
assert not m... | [
"azatibrakov@gmail.com"
] | azatibrakov@gmail.com |
530d3239ce11e5e28650c8db7ef8fa069da58941 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_288/ch42_2020_03_25_12_18_53_446308.py | ef70a8b605c5a9dd2ace8dd337c8077d60c2c229 | [] | 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 | 171 | py | palavras = input ('Escreva uma palavra: ')
i = 0
while palavras != 'fim':
if palavras[i] = a:
palavras = True
i += 1
else:
palavras = False
print (palavras) | [
"you@example.com"
] | you@example.com |
03830a9acdedbb02839527470ef1719f941afb4a | c1a49d9d3452464c4579f03524f9340e22fb6e6f | /src/drumbo/__main__.py | bb83df4033aa567e35797c59a82be176d72eabee | [
"BSD-2-Clause"
] | permissive | accraze/python-drumbo | 030ff0ef3ead73b0fff998372a5d6e44d9725fc7 | 658953315ec7234f80f45a11f091c2720ea9681b | refs/heads/master | 2021-03-30T23:46:42.710909 | 2018-03-12T03:39:22 | 2018-03-12T03:39:22 | 124,343,239 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | """
Entrypoint module, in case you use `python -mdrumbo`.
Why does this file exist, and why __main__? For more info, read:
- https://www.python.org/dev/peps/pep-0338/
- https://docs.python.org/2/using/cmdline.html#cmdoption-m
- https://docs.python.org/3/using/cmdline.html#cmdoption-m
"""
from drumbo.cli import main
... | [
"accraze@gmail.com"
] | accraze@gmail.com |
8a8ca648c79d2e0d9fc4a49da21ef0ef320f77ae | cf4bf522eece1b76db21ff0181580fd88a70296d | /registration/migrations/0001_initial.py | 2ab95ac93bceb61405cfd066832a1c2f071efbc2 | [
"BSD-3-Clause"
] | permissive | danielsamuels/django-registration | 6a146702def4ee1924230e72559def624cd4536b | ebef0bebb3e7b79117394223cae3044fd0105898 | refs/heads/master | 2021-01-16T22:59:45.558476 | 2015-08-13T14:32:00 | 2015-08-13T14:32:00 | 40,678,969 | 0 | 0 | null | 2015-08-13T19:55:50 | 2015-08-13T19:55:50 | null | UTF-8 | Python | false | false | 890 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... | [
"james@b-list.org"
] | james@b-list.org |
80bc3f0c612bdcdf7c9a6803defd74c56171325e | 36f91d83dbea357ce51ad34a651d6b702b507b7e | /tierpsy_nn/skelxy2ang/skelxy2ang.py | adf7cbd71949700912c59f4c32149418bc3886bf | [] | no_license | ver228/tierpsy-nn | 9a0325d25cd8e525162c4e21860e16872a29491e | ce87cfe250d22c4da2becff17a79fc52c4042922 | refs/heads/master | 2021-01-21T11:30:49.743421 | 2018-05-12T23:01:19 | 2018-05-12T23:01:19 | 102,003,652 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,737 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 31 17:07:06 2017
@author: ajaver
"""
import tables
import numpy as np
from tierpsy.analysis.ske_create.segWormPython.mainSegworm import resample_curve
#%%
def normalize_skel_angles(angles):
dangles = np.diff(angles)
# % need to deal... | [
"ajaver@MRC-8791.local"
] | ajaver@MRC-8791.local |
a6b4f8b6255b1cfe8d0ed02c680e95e7e9200b13 | 0ec4defa6f83ec044b9e1235cc45964a8145b4d1 | /venv/lib/python3.6/site-packages/pybrain3/tests/unittests/test_utilities_reachable.py | c3790012783391eb353ca8acaf3fd5f818f00f49 | [] | no_license | nnarziev/MyWeek_Server | e6f6c10ce813cf3dc3aa644958c31a4d01567b4d | 7c51e79224ba48cd1a230536c27f3bd8cec73a21 | refs/heads/master | 2021-08-19T13:46:56.450003 | 2017-11-25T16:48:07 | 2017-11-25T16:48:07 | 112,080,782 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | """
>>> from pybrain.utilities import reachable, decrementAny
The reachable-search can only get to 3 of the points.
>>> dests = [(1,3), (2,2), (3,2), (3,1), (1,0), (0,2), (2,0), (0,1)]
>>> sorted(reachable(decrementAny, [(3,3)], dests).items())
[((1, 3), 2), ((2, 2), 2), ((3, 2), 1)]
... | [
"qobiljon.toshnazarov@gmail.com"
] | qobiljon.toshnazarov@gmail.com |
8ce2f4da4aef10b60d93b14fe07251d808c575c2 | b8753709b075e0544edc83858b3b042b26f9656f | /models/assembly_eval/batch3/assembly_eval.py | e66437d6471e9a180031f9604d614b8709c941c2 | [
"BSD-2-Clause"
] | permissive | il692221/indra | 447d5bef7366a1daf70ada742614ceb378dc0866 | 489d524616503b6a32f7bc04898b65c121f0b873 | refs/heads/master | 2021-01-19T12:07:16.696746 | 2016-09-25T04:15:19 | 2016-09-25T04:15:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,142 | py | import os
import pickle
from indra.preassembler.hierarchy_manager import hierarchies
from indra.preassembler import Preassembler, render_stmt_graph,\
flatten_evidence
from indra.mechlinker import MechLinker
from indra.assemblers import PysbAssembler, IndexCardAssembler,\
... | [
"ben.gyori@gmail.com"
] | ben.gyori@gmail.com |
7e18ef5bc7dc30bf72a3ecf84e46976929e6ee5f | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /minimumSwap.py | 19cd44d3e8fd8ba6bb7b27344912eb0ae8f7d33b | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | class Solution:
def minimumSwap(self, s1: str, s2: str) -> int:
xy = 0
yx = 0
for i in range(len(s1)):
if s1[i] != s2[i]:
if s1[i] == 'x':
xy += 1
else:
yx += 1
if (xy + yx) % 2 != 0:
re... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
92f1c76b25ad31c792111da2dbd9e3946f65281b | a77fcccb2e46f06842daab98f1057209fe506b18 | /BackJoonOnline/[BOJ]16637_괄호추가하기.py | ccd97d6b7139aa3b48e8cc7dda8236923b6f0683 | [] | no_license | gan-ta/Algorithm | 0c55344a6eb8038c9247485a50bc6324e4ef4c3e | 80313278e6e8461891519fd556a65998939bc564 | refs/heads/master | 2023-05-27T17:03:28.236320 | 2021-06-14T18:48:35 | 2021-06-14T18:48:35 | 257,796,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | from collections import deque
def evaluate(n1, op, n2):
return eval(str(n1) + op + str(n2))
def calculate_arr():
num_list = deque()
op_list = deque()
num_list.append(int(arr[0]))
for i in range(1, len(arr)):
if i % 2 == 0:
continue
if bracket_check[i] == 1:
... | [
"gilmat@naver.com"
] | gilmat@naver.com |
42803e4c569b0cd5e1c2669b3920253d2e5fd70c | a57e66be33512a7e2e99adb6f597151b56c4c373 | /psdemofunc1.py | 7b053ef2a6863750b41eaf5338c86ac6870d8f0d | [] | no_license | ravijaya/sep28 | 17025ea0997a371f54a6374f90d4bf56e0206840 | 8907f4b03ac2c4b2f1806d0d7cf3fd6aa680680c | refs/heads/master | 2022-12-18T23:58:12.989144 | 2020-09-30T12:13:15 | 2020-09-30T12:13:15 | 299,901,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | """positional / fixed argument function """
def power(x, n):
"""function definition"""
return x ** n
print(power(3, 4)) # function call
print(power(3)) | [
"ravi.goglobium@gmail.com"
] | ravi.goglobium@gmail.com |
d6fa335d0194b2038db703621adebfb97650755a | f0a62605171bc62eb68dd884c77cf146657ec5cb | /library/f5bigip_ltm_profile_client_ldap.py | 8156c4ee85e587a8b027b0d0829b4a97ebeaaddb | [
"Apache-2.0"
] | permissive | erjac77/ansible-role-f5 | dd5cc32c4cc4c79d6eba669269e0d6e978314d66 | c45b5d9d5f34a8ac6d19ded836d0a6b7ee7f8056 | refs/heads/master | 2020-04-06T08:13:14.095083 | 2020-02-16T23:44:13 | 2020-02-16T23:44:13 | 240,129,047 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,698 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2016 Eric Jacob <erjac77@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
#... | [
"erjac77@gmail.com"
] | erjac77@gmail.com |
dce04c036f3b6074fc0315a0394e69237a609dd4 | dacb2bba2c91877c5157ccb8ab34e112abfea0ee | /projects/project_16/scripts/analyze_imu_data.py | 7d0288dca12b9408334eed01a4953e5f7ad2fa37 | [] | no_license | amuamushu/projects-2020-2021 | 7fd4e29a8f51406ded59a97cd878a5752ffc700b | f1c385e46d2d5475b28dec91b57a933ac81c23c5 | refs/heads/main | 2023-04-01T11:47:55.935278 | 2021-03-28T00:37:29 | 2021-03-28T00:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | import csv
f = open("imu_data.txt", "r")
x_data = []
y_data = []
for x in f:
if 'x' in x:
x_data.append(float(x[4:]))
if ' y:' in x:
y_data.append(float(x[4:]))
dict_data = {'x':x_data,'y':y_data}
csv_columns = ['x','y']
csv_file = "imu_clean.csv"
try:
with open(csv_file, 'w') as f:
... | [
"aaron.fraenkel@gmail.com"
] | aaron.fraenkel@gmail.com |
6c2daaef0c18909501d26af8ac514413766b0dd4 | ea378480ba678eb123ef826e3ca0c3eb8f4e538f | /py ref/pyglet/03 stretching pyglets wings/demo5-vertexlists-batches/run.py | 7764a49a2aac3e0218824faa6e8900bf1379c2df | [] | no_license | msarch/py | 67235643666b1ed762d418263f7eed3966d3f522 | dcd25e633a87cdb3710e90224e5387d3516c1cd3 | refs/heads/master | 2021-01-01T05:21:58.175043 | 2017-05-25T08:15:26 | 2017-05-25T08:15:26 | 87,453,820 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | #! python -O
"""
Demo 5
Keys switch between rendering using:
1 - pyglet.gl.glvertex
2 - pyglet.graphics.draw
3 - pyglet.graphics.vertex_list
4 - pyglet.graphics.batch
Options 2 and 3 are actually slower than mode 1. I don't know why. It is
probable that vertex_lists would be faster than glVerte... | [
"msarch@free.fr"
] | msarch@free.fr |
849cebb02fd1eb10f8be2c9bffba35ecda2688e1 | 18115c21c8d96effb7a0e5c1c0d57049592d3973 | /gensimtest/hoge.py | 12ba6ce1162adb0a0e3c9808b7340678d4b7e5fc | [] | no_license | theoremoon/kaidsuka | 68d946942d0a627860e645d4ebcbf44f445996c7 | 3762434cce4ff0bb32fb31eae9f6e494b2bda404 | refs/heads/master | 2021-11-05T21:57:19.085660 | 2020-07-24T16:06:37 | 2020-07-24T16:06:37 | 205,635,956 | 1 | 1 | null | 2021-10-06T11:30:56 | 2019-09-01T05:59:31 | Go | UTF-8 | Python | false | false | 225 | py | import json
with open("lyrics.json") as f:
f = json.load(f)
xs = []
for k, v in f.items():
xs.append({"title": k, "lyrics": v})
with open("lyrics.json", "w") as f:
json.dump(xs, f, indent=2, ensure_ascii=False)
| [
"theoldmoon0602@gmail.com"
] | theoldmoon0602@gmail.com |
b0a13fe9967b2185c282968e44545f61258103cc | d57859da61fd28b14de075416b67c7ca228bea6d | /linear_model_estimate.py | c7798b8290a5e71fb3da29a26281a941c388328c | [
"MIT"
] | permissive | graphenessl/tensorflow-basics | 22d3aac2421c7c7f9a417103f48b534914247d99 | 8c13621421461e906cecee1fa2d17bbd43c5605c | refs/heads/master | 2021-07-10T08:53:45.749081 | 2017-10-15T08:46:37 | 2017-10-15T08:46:37 | 106,996,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,012 | py | # TensorFlow core: The lowest level of API for TensorFlow
# Tensors: An array of values of [n]-rank
[1., 2., 3.] # a rank 1 tensor; this is a vector with shape [3]
[[1., 2., 3.], [4., 5., 6.]] # a rank 2 tensor; a matrix with shape [2, 3]
[[[1., 2., 3.]], [[7., 8., 9.]]] # a rank 3 ten... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.