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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b5015f583a686346339dadaed0cc14a8864fa920 | b107883be08ea56bd3a56ddb0e2dd8dacce7db2e | /src/polystar/utils/dataframe.py | e020875b53a3ba4999062cc4d269e2850ea2cef9 | [] | no_license | PolySTAR-mtl/cv | ef7977b62577e520f6c69a9b7891c7f38e307028 | 27564abe89e7dff612e3630c31e080fae4164751 | refs/heads/master | 2023-05-01T16:45:19.777459 | 2021-05-30T10:36:10 | 2021-05-30T10:36:10 | 356,053,312 | 0 | 0 | null | 2021-05-30T10:36:11 | 2021-04-08T21:32:06 | Python | UTF-8 | Python | false | false | 908 | py | from typing import Any, Callable, Iterable, Union
from pandas import DataFrame
Format = Union[str, Callable]
def format_df_column(df: DataFrame, column_name: str, fmt: Format):
df[column_name] = df[column_name].map(fmt.format)
def format_df_columns(df: DataFrame, column_names: Iterable[str], fmt: Format):
... | [
"mathieu@feedly.com"
] | mathieu@feedly.com |
8c0b7e0087305801e9385ba26b58b968906a9657 | a2d44f3c89acb7424cc2771f5c0a926e2d902c77 | /transformers/examples/research_projects/luke/run_luke_ner_no_trainer.py | c7a9763d99659dff967f066520b319dc992fe82e | [
"Apache-2.0"
] | permissive | amazon-science/masked-diffusion-lm | 94845ff123eb586fca0247b0db7baf12dfee6a6d | 16b0294398d596198bc9f75375eaa6814f792dcb | refs/heads/main | 2023-08-03T02:23:14.301531 | 2023-05-04T19:54:58 | 2023-05-04T19:54:58 | 626,021,474 | 38 | 0 | Apache-2.0 | 2023-08-14T22:24:30 | 2023-04-10T16:19:44 | Python | UTF-8 | Python | false | false | 29,068 | py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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/LI... | [
"astonz@amazon.com"
] | astonz@amazon.com |
6d253e9041fc0f16e07e2166ab6ba8890b19bf1e | 511fd0cb7e338bc5c2d5a9d60de8166efd5882fe | /pyrecs/icp_compat/ICPSequenceFile.py | 52f9c298bca501818f68f0444fe3b05b72aba2a2 | [] | no_license | bmaranville/pyrecs | 43341af4931538e57c8de7655efbcdbdd9099f02 | 29468ae4d8a4a9de5cac8988fd3620f806a71907 | refs/heads/master | 2021-01-15T15:45:47.514371 | 2016-11-04T14:07:50 | 2016-11-04T14:07:50 | 5,635,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,369 | py | from __future__ import with_statement
from StringIO import StringIO
class PyICPSequence:
"""controls and reads from a sequence file, moving the marker around
it is defined as an iterator, so getting the next element moves the marker
can use syntax "for cmd in PyICPSequenceFile(filename):" to iterate
... | [
"brian.maranville@nist.gov"
] | brian.maranville@nist.gov |
bc583257ba2fa8e75999f1420d42612329c9011a | f34c9ba52317b2871ef309d25c6a62ada2a4c4e3 | /2019-1/exemplos/calc/calc-ast.py | 6121565647ee90707c33f27b56bed0f9abc48cf7 | [] | no_license | azurah/compiladores-1 | b2a24e4dc67b39d106803ce431740918feebeddb | b8bcd58aa5c0ffd02b9c24aa3eaa64b8827d9263 | refs/heads/master | 2022-03-25T06:55:48.714820 | 2019-12-16T14:38:25 | 2019-12-16T14:38:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,577 | py | import ox
import operator as op
lexer_rules = [
('NUMBER', r'\d+'),
('ADD', r'\+'),
('SUB', r'\-'),
('MUL', r'\*'),
('DIV', r'\/'),
('LPAR', r'\('),
('RPAR', r'\)'),
('VAR', r'[a-zA-Z_]+')
]
lexer = ox.make_lexer(lexer_rules)
tokens = [x for x, _ in lexer_rules]
binop = (lambda x, op,... | [
"fabiomacedomendes@gmail.com"
] | fabiomacedomendes@gmail.com |
1db6fe1c31490177a0f129ccbd8add2e3939d210 | ee9655d3ffcdb70ae68692f400096b479b39d0f7 | /Python/kebabize.py | 1180f40f74723d5a9da84caa4daaccca95f4a1db | [] | no_license | yaelBrown/Codewars | 4f123387b8c4ea6e55ec1ff5d2ae9b1d674c06cf | efa10770b593e48579c256b9d6b69deede64e9ba | refs/heads/master | 2020-11-27T16:02:43.409465 | 2020-03-20T00:59:49 | 2020-03-20T00:59:49 | 229,521,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | """
Modify the kebabize function so that it converts a camel case string into a kebab case.
kebabize('camelsHaveThreeHumps') // camels-have-three-humps
kebabize('camelsHave3Humps') // camels-have-humps
Notes:
the returned string should only contain lowercase letters
"""
import string
def kebabize(string):
out = ... | [
"yaelrbrown@gmail.com"
] | yaelrbrown@gmail.com |
8b186ae2a6c66100621dcf603ad1b02c54d99e63 | e4200b764d0b4ffba65180e54cf84b30ee84efcc | /selfdrive/loggerd/SConscript | 6a392d15d6fdafd6f37d01e59e8c9462835f717c | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | kegman/openpilot | c9ba96a72d905956f02c684e065091e023942883 | 54a8614b5a6451154817a4c6c86141c96103ae47 | refs/heads/kegman-0.7 | 2022-05-22T17:07:16.656336 | 2020-01-23T16:40:55 | 2020-01-23T16:40:55 | 229,979,925 | 105 | 212 | MIT | 2022-03-13T05:47:51 | 2019-12-24T17:27:11 | C | UTF-8 | Python | false | false | 311 | Import('env', 'messaging', 'common', 'visionipc')
env.Program(['loggerd.cc', 'logger.c', 'raw_logger.cc', 'encoder.c'], LIBS=[
'zmq', 'czmq', 'capnp', 'kj', 'yaml-cpp', 'z',
'avformat', 'avcodec', 'swscale', 'avutil',
'OmxVenc', 'OmxCore', 'yuv',
'bz2', 'cutils', common, 'json', messaging, visionipc])
| [
"8837066+kegman@users.noreply.github.com"
] | 8837066+kegman@users.noreply.github.com | |
f0f3d9ede2624be9ecb55304fb9360137bbef785 | cf7c928d6066da1ce15d2793dcf04315dda9b9ed | /Jungol/Lv1_LCoder_Python/pyg0_함수3/Main_JO_406_함수3_자가진단6.py | 9cb189b371e5e8cb5f56948b15f087c90bbe53ef | [] | no_license | refresh6724/APS | a261b3da8f53de7ff5ed687f21bb1392046c98e5 | 945e0af114033d05d571011e9dbf18f2e9375166 | refs/heads/master | 2022-02-01T23:31:42.679631 | 2021-12-31T14:16:04 | 2021-12-31T14:16:04 | 251,617,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # 9자리 이하의 자연수를 입력받아 재귀함수를 이용하여 각 자리 숫자의 제곱의 합을 출력하는 프로그램을 작성하시오.
def recursive(n):
if n < 10:
return n*n
return recursive(n//10) + recursive(n%10)
n = int(input())
print(recursive(n)) | [
"refresh6724@gmail.com"
] | refresh6724@gmail.com |
01ecef42b6e7f285755d7f03e8bb2dcc7c993ecf | b532a2188d312a377ea89192569897714f500980 | /memorious/operations/store.py | 52c9e9a5bb52970965df0014bb536fb4c9aec676 | [
"MIT"
] | permissive | patcon/memorious | b41baff81656c343770d9bec8743a7f710daac1b | 316a4bc15a83065106de7e34935b77f337bb11e6 | refs/heads/master | 2021-08-20T00:32:33.320287 | 2017-11-27T13:53:44 | 2017-11-27T13:53:44 | 112,242,987 | 0 | 0 | null | 2017-11-27T20:08:07 | 2017-11-27T20:08:07 | null | UTF-8 | Python | false | false | 1,418 | py | import os
import json
import shutil
from normality import safe_filename
from memorious import settings
def _get_directory_path(context):
"""Get the storage path fro the output."""
path = os.path.join(settings.BASE_PATH, 'store')
path = context.params.get('path', path)
path = os.path.join(path, contex... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
43a4347035b0440386c7229b773e43eacc80d101 | 27010a7ad70bf69511858a91d42dc7a64e61b66d | /src/0342_power_of_four.py | 76a22ceba8325a13c2b1e510bd9f19870f9f5a0f | [
"Apache-2.0"
] | permissive | hariharanragothaman/leetcode-solutions | fb7d967f2c6e3f4c936e3c7afe369415bc8d2dc6 | 44e759f80d3c9df382fdf8d694d6378881e3649d | refs/heads/master | 2023-09-03T20:31:59.200701 | 2021-10-18T00:50:56 | 2021-10-18T00:50:56 | 267,927,538 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | """
Given an integer n, return true if it is a power of four. Otherwise, return false.
An integer n is a power of four, if there exists an integer x such that n == 4x.
Example 1:
Input: n = 16
Output: true
Example 2:
Input: n = 5
Output: false
Example 3:
Input: n = 1
Output: true
Constraints:
-231 <= n... | [
"hariharanragothaman@gmail.com"
] | hariharanragothaman@gmail.com |
55c011161382a90a0a4ab3b525884d7be2894ac7 | f0987e17aea6668158cd334c1fbacfe6286d3c77 | /NITA/tests/unit/hldcl/test_host.py | 9cc2bf7b042fe35468894e0fac75147f25f46bc3 | [] | no_license | fengyun4623/file | 00bf21f952ea3f95ffc9fe18448b244b26b7fadb | 3966c63d48557b0b94303896eed7a767593a4832 | refs/heads/master | 2023-04-02T05:01:25.066052 | 2020-07-29T16:15:31 | 2020-07-29T16:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,920 | py | import sys
import unittest2 as unittest
from mock import patch, MagicMock
from nose.plugins.attrib import attr
from lxml import etree
from jnpr.toby.hldcl.host import *
@attr('unit')
class TestHost(unittest.TestCase):
def test_host__next_log_file_name(self):
hobject = MagicMock(spec=Host)
hobjec... | [
"srigupta@juniper.net"
] | srigupta@juniper.net |
f6c388f9433fe0af9510b9b05baaba3657776db1 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_126/128.py | 0b43d4fbaa876ff9dcf5d33290291df8461be100 | [] | 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 | 2,683 | py | import os
import unittest
import itertools
from python_toolbox.cute_iter_tools import consecutive_pairs
PROB_NAME = 'consonants'
INPUT_TYPE = 'large'
VOWELS = 'aeiou'
def solve(case):
"""break 'case', solve and return the solution"""
name, n = case
l = len(name)
consecutive_consonants... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
5eb911a7220230a00c7447f3afc31e62046a0e8e | 36ff0f28aeb47c03d8e22f69057c12f830e917e8 | /Blog/admin.py | 55f78d419afa2db728fbf7600fa18758d465be30 | [] | no_license | michael-basweti/duke | 673721540fa1b260508f03518b0043e8e1fc3f14 | 5eae51ceac89e77c6ab712e6311fef9f15fb51ad | refs/heads/master | 2022-12-06T02:53:04.494299 | 2019-07-30T10:47:06 | 2019-07-30T10:47:06 | 195,955,279 | 0 | 0 | null | 2022-11-22T04:09:15 | 2019-07-09T07:25:08 | CSS | UTF-8 | Python | false | false | 306 | py | from django.contrib import admin
from .models import Blog
class Post(admin.ModelAdmin):
exclude = ('author',)
list_display = ('title', 'author', 'date_added')
def save_model(self, request, obj, form, change):
obj.author = request.user
obj.save()
admin.site.register(Blog, Post)
| [
"baswetima@gmail.com"
] | baswetima@gmail.com |
19a633a72dd7eb16a803a4443726aff405985b67 | 836705d3c321ea8e62f3b2a0ea7e837fe5d45dfd | /3-1.py | 164f25998bf0219f9aa1f0012d4645ca8930a802 | [] | no_license | Accomlish/tensorflow_learn | e11acedbb81f9ef08866a15daf5155853d81cb49 | 19126ae75e1460aa0bb3bd041d96f99db56181d0 | refs/heads/master | 2021-05-22T16:50:09.878737 | 2020-04-04T14:36:22 | 2020-04-04T14:36:22 | 253,009,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | """
回归的例子
非线性回归例子
"""
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
#使用numpy生成500样本点
x_data = np.linspace(-1,1,500)[:,np.newaxis]
print(x_data.shape)
noise = np.random.normal(0,0.5,x_data.shape)
y_data = np.square(x_data) + noise
#定义连个placeholder
x = tf.placeholder(... | [
"your email"
] | your email |
d1143635201d221e500300bb7ebd02e942d5c100 | b3b38ebf386bbd323d832ee077ae249a6ab331e9 | /Day 25/Day 25.py | ef5461ad1763efb757ef34109cad57f402fc1d04 | [] | no_license | bakkerjangert/AoC_2017 | 7bae1b1b9da5b2263d911eff5bbadc2849716be6 | 1c36b80965875cdcbc50c6abe75cc5def72ee573 | refs/heads/master | 2023-02-03T05:19:55.933367 | 2020-12-18T14:39:40 | 2020-12-18T14:39:40 | 322,620,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | state = 'A'
steps = 12172063
data = [0]
index = 0
def move_left(index):
if index == 0:
data.insert(0, 0)
else:
index -= 1
return index
def move_right(index):
if index == len(data) - 1:
data.append(0)
index += 1
return index
for step in range(steps):
if step % 10... | [
"gert-jan.bakker@rhdhv.com"
] | gert-jan.bakker@rhdhv.com |
b286d2b08daca3903a5d072416370fd615da25e7 | 95b87a3c8f5492feb8c4faea9202c68f560544b5 | /tests/parsers/mcafeeav.py | 084d4b95a852fc78fac08e330c14e5a16a80d540 | [
"Apache-2.0"
] | permissive | sebdraven/plaso | 82e87149e845347a0481d9908117c0c227960446 | 77c7f00f0f648b158bd9c9cc3f698dd5ff294b4d | refs/heads/master | 2020-12-02T08:08:48.427006 | 2017-07-08T17:07:50 | 2017-07-08T17:07:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,402 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for the McAfee AV Log parser."""
import unittest
from plaso.formatters import mcafeeav # pylint: disable=unused-import
from plaso.lib import timelib
from plaso.parsers import mcafeeav
from tests import test_lib as shared_test_lib
from tests.parsers import test_lib
... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
955e1f1ce5febef1ea2829471b58315b4d9b2f23 | 3eae9c14c119ee2d6a7d02ef1ba5d61420959e3c | /modules/core/rwvx/rwsched/src/rwsched_gi_filter.py | b06f9bbfdb82967c05b581ec652bad0f46393135 | [
"Apache-2.0"
] | permissive | RIFTIO/RIFT.ware | 94d3a34836a04546ea02ec0576dae78d566dabb3 | 4ade66a5bccbeb4c5ed5b56fed8841e46e2639b0 | refs/heads/RIFT.ware-4.4.1 | 2020-05-21T14:07:31.092287 | 2017-06-05T16:02:48 | 2017-06-05T16:02:48 | 52,545,688 | 9 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | #!/usr/bin/python
# STANDARD_RIFT_IO_COPYRIGHT
# -*- Mode: Python; py-indent-offset: 4 -*-
# vim: tabstop=4 shiftwidth=4 expandtab
import sys
# rwsched_instance_ptr_t -> RwschedInstance
renames = {
0: {'rwsched': 'RwSched'},
1: {'instance': 'Instance',
'CFRunLoop': 'CFRunLoop',
'CFRunLoopSou... | [
"Leslie.Giles@riftio.com"
] | Leslie.Giles@riftio.com |
07039bdd5738a740ab874c485755f41c392be310 | 2212a32833776a5d5d2164d8efd11bd18bd3f768 | /tf_agents/bandits/agents/neural_linucb_agent.py | 1c803409ec0503339df767da78ddd381ef5a5aa6 | [
"Apache-2.0"
] | permissive | tensorflow/agents | f39805fb98ef9af712dcaff3ba49e1ac6d42804b | eca1093d3a047e538f17f6ab92ab4d8144284f23 | refs/heads/master | 2023-08-14T04:56:30.774797 | 2023-08-02T17:43:44 | 2023-08-02T17:44:09 | 157,936,206 | 2,755 | 848 | Apache-2.0 | 2023-07-26T02:35:32 | 2018-11-17T00:29:12 | Python | UTF-8 | Python | false | false | 25,492 | py | # coding=utf-8
# Copyright 2020 The TF-Agents Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
c834c39c8e08fc958e2256b388af4f839efe7988 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_pricier.py | 17e602d16998edcee93d654fd2ff4a313028fae5 | [
"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 | 220 | py |
#calss header
class _PRICIER():
def __init__(self,):
self.name = "PRICIER"
self.definitions = pricy
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['pricy']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
020d3a02c9aba18d9ceb63b09b9389dd7f395e1e | c1bfadbc033efba287ad55a804e9d69d297c3bf2 | /valohai_cli/commands/logout.py | bf4821b4666e80b85d595e51d78ca79a387cdd40 | [
"MIT"
] | permissive | valohai/valohai-cli | 16560b078d20a02c8cdc7388beeea9bebac4be7d | c57cc164e749fb77b622d629a5ad05b2685534bb | refs/heads/master | 2023-08-31T14:04:26.979762 | 2023-08-22T12:54:51 | 2023-08-22T12:54:51 | 81,329,264 | 14 | 5 | MIT | 2023-09-11T13:35:04 | 2017-02-08T12:46:54 | Python | UTF-8 | Python | false | false | 735 | py | import click
from valohai_cli.consts import yes_option
from valohai_cli.messages import success
from valohai_cli.settings import settings
@click.command()
@yes_option
def logout(yes: bool) -> None:
"""Remove local authentication token."""
user = settings.user
token = settings.token
if not (user or to... | [
"akx@iki.fi"
] | akx@iki.fi |
4c12237f5cd128fd551d352034e4ac3d458b8a31 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/config/dumpptask.py | 2c8edbee935d28a0593b26649bed118cfd8a2293 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 18,319 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
3db2907e0ec1a60da6727317afaec49ef2217e4c | 96ad67554b01832b873fc0bdab0c33aa2178a2fd | /3_visualExploratory/3_violationDistrict.py | ac3f3009cd46c72bad29b203a4a88e5a3d37b070 | [] | no_license | RobertNguyen125/Datacamp---Project-PoliceActivities | 09447ee1290c40b3c038ccd387e80c7e703cb053 | af14e4d7c4ff864f68cfa3aaecdfee9883c24659 | refs/heads/master | 2021-01-02T02:00:15.928445 | 2020-02-10T06:48:13 | 2020-02-10T06:48:13 | 239,445,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | # .crosstab(), short for cross_tabulation
import pandas as pd
import matplotlib.pyplot as plt
ri2 = pd.read_csv('/Users/apple/desktop/policeActivities/dataset/ri2.csv')
table = pd.crosstab(ri2['driver_race'], ri2['driver_gender']) # NOTE: frequency table in form of dataframe
print(table)
# check the result of frequenc... | [
"ngaduc92@gmail.com"
] | ngaduc92@gmail.com |
4fa0a7eb80583b752126f933c7de41b6086d7e94 | f9e3a0fb511470561d3d94bc984dafaee06000cb | /9780596009250/PP3E-Examples-1.2/Examples/PP3E/System/App/Bases/app.py | 9e971584749335e8bfed0687516b1d673471aca7 | [
"LicenseRef-scancode-oreilly-notice"
] | permissive | Sorath93/Programming-Python-book | 359b6fff4e17b44b9842662f484bbafb490cfd3d | ebe4c93e265edd4ae135491bd2f96904d08a911c | refs/heads/master | 2022-12-03T01:49:07.815439 | 2020-08-16T22:19:38 | 2020-08-16T22:19:38 | 287,775,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,823 | py | ################################################################################
# an application class hierarchy, for handling top-level components;
# App is the root class of the App hierarchy, extended in other files;
################################################################################
import ... | [
"Sorath.Soomro@isode.com"
] | Sorath.Soomro@isode.com |
1376fbee52bacc27bd80efd4d16b435c5e946b03 | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/libnetfilter_queue/all/test_package/conanfile.py | 1097433829a7c2a75801555fd3e085e9063cd7b5 | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | Python | false | false | 469 | py | import os
from conans import ConanFile, CMake, tools
class Libnetfilter_queueTestConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
if not tools... | [
"noreply@github.com"
] | conan-io.noreply@github.com |
8263c0e2c597868a62777d0b2bf18d2d862238d2 | 632d7759536ed0726499c2d52c8eb13b5ab213ab | /Data/Packages/Default/swap_line.py | 5c098bc61d83d61eb12c2cf637e2417ebeab613c | [] | no_license | Void2403/sublime_text_3_costomize | e660ad803eb12b20e9fa7f8eb7c6aad0f2b4d9bc | c19977e498bd948fd6d8f55bd48c8d82cbc317c3 | refs/heads/master | 2023-08-31T21:32:32.791574 | 2019-05-31T11:46:19 | 2019-05-31T11:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,886 | py | import sublime
import sublime_plugin
def expand_to_line(view, region):
"""
As view.full_line, but doesn't expand to the next line if a full line is
already selected
"""
if not (region.a == region.b) and view.substr(region.end() - 1) == '\n':
return sublime.Region(view.line(regi... | [
"guan2296107714@126.com"
] | guan2296107714@126.com |
e62ab15957a3c82e8578924508c3baeabde046be | b550eda62179ffd8e49a59df7f8a30163140204f | /backend/openshift-old/services/job/worker/src/nodes/requests/openshift.py | 169b62b8c283420c6106a524f7d57862ca40833b | [
"Apache-2.0"
] | permissive | bgoesswe/openeo-repeatability | 6222fb235b70fda9da998b63fec92c0e5ac07169 | 087b9965e710d16cd6f29cb25e2cb94e443c2b30 | refs/heads/master | 2022-12-11T03:43:35.365574 | 2018-08-07T20:02:02 | 2018-08-07T20:02:02 | 139,158,921 | 0 | 1 | null | 2022-12-08T02:15:15 | 2018-06-29T14:27:34 | Python | UTF-8 | Python | false | false | 801 | py | from os import environ
from utils import send_post
# OPENSHIFT_URL = environ.get("OPENSHIFT_API")
# OPENSHIFT_AUTH = auth = {"Authorization": "Bearer " + environ.get("SERVICEACCOUNT_TOKEN")}
# OPENSHIFT_NAMESPACE = environ.get("EXECUTION_NAMESPACE")
# OPENSHIFT_STORAGE_CLASS = environ.get("STORAGE_CLASS")
# OPENSHIFT_... | [
"bernhard.goesswein@geo.tuwien.ac.at"
] | bernhard.goesswein@geo.tuwien.ac.at |
72455241a618db9120f1ce31fffb5ed5a14566bd | fbfb724f8d0c3a6b64b2d6773c6f723bedb9f7f5 | /Python/Django_full/courses/apps/course_app/views.py | 49c2de66092e1c0453f40735e9ff07ab1f17f2ca | [] | no_license | eddieverity/DojoAssignments | 32ae4a1de768069d6636d1f109845e86bb20dec5 | 8860b4ca87633e722fa5aa93952ea719e9e95413 | refs/heads/master | 2020-04-06T03:59:56.185985 | 2017-04-26T18:04:41 | 2017-04-26T18:04:41 | 83,149,714 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | from django.shortcuts import render, redirect, HttpResponse
from .models import Course, Description, Comment
# Create your views here.
def index(request):
course=Course.objects.all()
desc= Description.objects.all()
context = {
"courses": course,
"desc": desc
}
return render(request, "course_app/ind... | [
"eddieverity@gmail.com"
] | eddieverity@gmail.com |
a5146ae5de1b53ffccabf6a5318027797a5bb10a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_psoriasis.py | 8b4a1ae76769598d8296034103fda0e42994b41d | [
"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 | 373 | py |
#calss header
class _PSORIASIS():
def __init__(self,):
self.name = "PSORIASIS"
self.definitions = [u'a disease in which areas of skin turn red and are covered with small dry pieces of skin']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ac87a80c7946de405af73d9d842c2e7763946960 | fee6d256bb4430569f9c055735d5f52a04afac45 | /admin/town_get.py | 3c317a73eecfa09a13f9b9e9edfd840faf725e1f | [] | no_license | microprediction/pandemic | 633367e3a11af1418e255a595b4c01a9c1f4c1bb | 4ca339b8c6e1925d7d70e9659b34e7cf8d7b534b | refs/heads/master | 2021-05-23T15:27:12.726299 | 2020-11-12T13:52:56 | 2020-11-12T13:52:56 | 253,360,903 | 9 | 8 | null | 2020-05-18T14:00:25 | 2020-04-06T00:34:55 | Python | UTF-8 | Python | false | false | 260 | py |
from pandemic.config_private import REDIS_CONFIG
from pprint import pprint
import json
if __name__=="__main__":
import redis
r = redis.Redis(**REDIS_CONFIG)
key = '00021250616501801290085'
data = r.hgetall(name='town::hash')
pprint(data)
| [
"info@3za.org"
] | info@3za.org |
7aba0b9e83fa79101172ddd4c5618b3be76aada9 | d17a8870ff8ac77b82d0d37e20c85b23aa29ca74 | /lite/tests/unittest_py/op/common/test_unsqueeze_op_base.py | 2501e10cdaad936fb10b222f6afd2e47286d2faa | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle-Lite | 4ab49144073451d38da6f085a8c56822caecd5b2 | e241420f813bd91f5164f0d9ee0bc44166c0a172 | refs/heads/develop | 2023-09-02T05:28:14.017104 | 2023-09-01T10:32:39 | 2023-09-01T10:32:39 | 104,208,128 | 2,545 | 1,041 | Apache-2.0 | 2023-09-12T06:46:10 | 2017-09-20T11:41:42 | C++ | UTF-8 | Python | false | false | 2,275 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
d86b2af56d25376ca533a9b8f5974a461cddc95f | 41e22cef6ded081632f21cd3877884f76c69bef3 | /flaskmob/api.py | 2835e31958cc88e0b8e048455be2281aea280abb | [
"MIT"
] | permissive | brotherjack/Flask-Mob | 737cac3623c8a062653e2eefa981de30526b4510 | f0f4f5fe79f2fe7e63c2f882dc4b5d61276dbf45 | refs/heads/master | 2021-01-20T09:37:26.091977 | 2017-03-04T22:09:56 | 2017-03-04T22:09:56 | 83,924,618 | 0 | 0 | null | 2017-03-04T21:03:59 | 2017-03-04T21:03:59 | null | UTF-8 | Python | false | false | 1,012 | py | from flask import jsonify
from flaskmob import app, db
from flask_restful import Resource, Api
api = Api(app)
class Pokeymon(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String, unique=True)
color = db.Column(db.String)
def __init__(self, name, color=None):
if n... | [
"michael@mdupont.com"
] | michael@mdupont.com |
d7ce57bb2a34be6eaabcd84fa54ce1e9684ed2ad | e60a342f322273d3db5f4ab66f0e1ffffe39de29 | /parts/zodiac/pyramid/config/__init__.py | 353c270d3b02ea3c082abb98347a3ef4673e089e | [] | no_license | Xoting/GAExotZodiac | 6b1b1f5356a4a4732da4c122db0f60b3f08ff6c1 | f60b2b77b47f6181752a98399f6724b1cb47ddaf | refs/heads/master | 2021-01-15T21:45:20.494358 | 2014-01-13T15:29:22 | 2014-01-13T15:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | /home/alex/myenv/zodiac/eggs/pyramid-1.4-py2.7.egg/pyramid/config/__init__.py | [
"alex.palacioslopez@gmail.com"
] | alex.palacioslopez@gmail.com |
d84f0b803d8be1aa81bc7e7291137ca415656a52 | 9870d2c6880fd3fa558c46e3bf160aae20c74157 | /removeNthFromEnd.py | 5719f47e75ed040bbcce08e05727590f9c52fbbc | [] | no_license | Yigang0622/LeetCode | e7f7f115c6e730c486296ef2f1a3dd1a3fdca526 | c873cd1ee70a2bdb54571bdd50733db9f6475e9e | refs/heads/master | 2023-03-03T14:32:25.498633 | 2021-02-15T13:59:00 | 2021-02-15T13:59:00 | 281,423,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | # LeetCode
# removeNthFromEnd
# Created by Yigang Zhou on 2020/7/22.
# Copyright © 2020 Yigang Zhou. All rights reserved.
# 给定一个链表,删除链表的倒数第 n 个节点,并且返回链表的头结点。
#
# 示例:
#
# 给定一个链表: 1->2->3->4->5, 和 n = 2.
#
# 当删除了倒数第二个节点后,链表变为 1->2->3->5.
# 说明:
#
# 给定的 n 保证是有效的。
#
# 进阶:
#
# 你能尝试使用一趟扫描实现吗?
#Definition for singly-linked ... | [
"zhou@zygmail.com"
] | zhou@zygmail.com |
65ea9516ef90c51096c29190ac5a836c0bd9ae28 | 71d9245d5264c25e56a6bb36512049da2c608875 | /docs/rtd/bin/pip | ab30e4a91c21a624e2ee5a7fdf76a1543ed863c5 | [
"BSD-3-Clause"
] | permissive | kuacuia/CrazyEyeDoc | 1ef0d05e5de51b22f8126b92344348b41b4b2ae7 | f6614e4c9811356942213c7c4d8744d27b90bf57 | refs/heads/master | 2021-05-01T20:20:24.015721 | 2015-10-19T05:36:48 | 2015-10-19T05:36:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | #!/Users/jieli/PycharmProjects/CrazyEye/docs/rtd/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"lijie3721@126.com"
] | lijie3721@126.com | |
13549ec011843c3269631dae4df79481e9adcee9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03759/s647507996.py | 7c66b69c12d94e46dcce65b1e8b12fc11d1775b6 | [] | 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 | 129 | py | i = list(map(int, input().split()))
a=i[0]
b=i[1]
c=i[2]
j_1 = b-a
j_2=c-b
if j_1==j_2:
print('YES')
else :
print('NO')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
54dc0172f201f8adc5440482208dbc2e4a20f88b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Fe6wvtjcNFwuANuLu_1.py | 19b5746b7b1b7d4c659dd13e0c67a617790fb718 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | """
A game of table tennis almost always sounds like _Ping!_ followed by _Pong!_
Therefore, you know that Player 2 has won if you hear _Pong!_ as the last
sound (since Player 1 didn't return the ball back).
Given a list of _Ping!_ , create a function that inserts _Pong!_ in between
each element. Also:
* If `win`... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d8656572c733b1f9a10bc318e47dbba7721dca6b | beea74a2a1f2445b107af411197e8b6300e715e6 | /supervised_learning/0x07-cnn/0-conv_forward.py | ce94808fac80cec28daaffce4ba0d4471128adfc | [] | no_license | 95ktsmith/holbertonschool-machine_learning | 0240d8fa8523b06d3353c2bffa74205b84253be8 | 2757c8526290197d45a4de33cda71e686ddcbf1c | refs/heads/master | 2023-07-26T16:02:26.399758 | 2021-09-09T15:57:57 | 2021-09-09T15:57:57 | 310,087,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,360 | py | #!/usr/bin/env python3
""" Convolution forward propagation """
import numpy as np
def conv_forward(A_prev, W, b, activation, padding="same", stride=(1, 1)):
"""
Performs forward propagation over a convolutional layer of a neural network
A_prev is a numpy.ndarray of shape (m, h_prev, w_prev, c_prev) contai... | [
"95ktsmith@gmail.com"
] | 95ktsmith@gmail.com |
3c516ada6af314021aa4340dc715126b4d3b5c3d | 2e94ded940d9a8015f5cf877bfbef71a77b5ddaf | /bigml/api_handlers/clusterhandler.py | 133a66bc205f295795f8d4e768542ab1a9575aa3 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | mmerce/python | 9ac63efacec3e54285a969b6c6279eeba6bceb78 | 696ddc2a10c985cfe266ec2807c24b98f0c9a317 | refs/heads/master | 2023-08-04T09:10:17.016748 | 2020-11-10T23:43:34 | 2020-11-10T23:43:34 | 5,256,921 | 0 | 0 | null | 2017-10-03T22:54:20 | 2012-08-01T08:38:09 | Python | UTF-8 | Python | false | false | 3,898 | py | # -*- coding: utf-8 -*-
#
# Copyright 2014-2020 BigML
#
# 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 ... | [
"merce@bigml.com"
] | merce@bigml.com |
6eab9a88af0ceee39b0d08197e81ce32a0290429 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/grpc/src/src/python/grpcio_csds/setup.py | 6523648516b6ebe0624f0243eb91978bdf3a3b93 | [
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"BSD-3-Clause",
"MPL-2.0"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 2,120 | py | # Copyright 2021 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"jengelh@inai.de"
] | jengelh@inai.de |
20119dd4bf027bc85b6d0743586dd8843d61e207 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-sa/huaweicloudsdksa/v2/model/update_playbook_action_request.py | 65f38548f9f7ce143f3cb61570505abafe3b769a | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 6,398 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdatePlaybookActionRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
17733708ab790b089dff9a1d04c596afc74c55a1 | d1df4725a5354915d01f17fa92ccffa77189f852 | /bot.py | 0fe01e48f515b51e4ede7f3e93c7539d5996f518 | [] | no_license | goldaqua/aqua | 0b5baf48e87061ffe64a639c88e30cc38f5c8db4 | 74b42eb4360e3e736bd8aa554b0d961020d159f1 | refs/heads/main | 2023-01-29T19:58:37.009722 | 2020-12-16T12:23:51 | 2020-12-16T12:23:51 | 321,970,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,711 | py | import configure
import telebot
from telebot import types # кнопки
from string import Template
bot = telebot.TeleBot(configure.config['token'])
user_dict = {}
tovary = {
"Вода в баллоне 36 грн": 36,
'Баллон с водой 170 грн': 170,
'Трубочка для помпы (1 часть) 15 грн': 15,
'Носик для помпы 25 грн': 25... | [
"you@example.com"
] | you@example.com |
7cbb792e2cb7f0c7d51684f1e7fad31c4ff22284 | 23c944ff03ea82cb1b557780bbe9810a4f5e001c | /mymath/tests/features/increment-steps.py | 61521a4c6f342460fe2a1e3af70507f51d283d1f | [] | no_license | akshar-raaj/hack | 711e13659530c0202879b815bf295efed661bb7d | 4cab4d8ededd7adf8877b56741db2df7dabd0828 | refs/heads/master | 2020-04-04T00:33:29.900091 | 2015-09-05T12:05:13 | 2015-09-05T12:05:13 | 41,952,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | from lettuce import *
from fact import num, increment
@step('I have access to increment')
def access(step):
pass
@step('I use increment')
def use_increment(step):
increment()
@step('num is (\d+)')
def num_is(step, number):
number = int(number)
assert num == number, "Expected %d, found %d" % (number, ... | [
"akshar@agiliq.com"
] | akshar@agiliq.com |
607dfdbb73a76a1d24d155ff47e6ddc1db2483d1 | c8d13f0efb453f8119aa55303c7bb70b506d51a1 | /73.py | d9a6063d4db904a480c30d6a781f6229a887ee42 | [] | no_license | rubivenkatesan/rubi21 | ab5f248e4cba664330fb8d7b4632d20c527a221e | f91d55852c1ab64dcec75a13ca835e2bf6c3dcb8 | refs/heads/master | 2020-04-15T04:58:04.682460 | 2019-06-05T13:18:13 | 2019-06-05T13:18:13 | 164,403,882 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | #rubi
n=int(input())
m,k=map(int,input().split())
print("yes" if ((n<k) & (n>=m)) else "no")
| [
"noreply@github.com"
] | rubivenkatesan.noreply@github.com |
ae7c82de852c37f2276fa60c5a266cb353d7610c | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/ggH/Full2016_nanoAOD/aliases.py | 7e9a914cfb01546c67ef05e6dd9d77d585774d16 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 7,480 | py | import os
import copy
import inspect
configurations = os.path.realpath(inspect.getfile(inspect.currentframe())) # this file
configurations = os.path.dirname(configurations) # ggH2016
configurations = os.path.dirname(configurations) # Differential
configurations = os.path.dirname(configurations) # Configurations
#alia... | [
"lorenzo.viliani@cern.ch"
] | lorenzo.viliani@cern.ch |
adff771b2088a82c77b2f650a290c0117b99034f | 5eb29ce7104e10a399d9afd7e253f029bf8bc0ff | /cu_image_search/memex_tools/image_dl.py | dd8e2583167f9141fbc46ae7257f0a4980fbc490 | [
"BSD-2-Clause"
] | permissive | svebk/DeepSentiBank_memex | 69789dc09316e97aad711edeb251837a60184e7e | 4e69ce66e3a177817ff360ddc263f55c6e0b63f7 | refs/heads/master | 2021-01-18T18:55:10.870052 | 2017-10-19T22:51:29 | 2017-10-19T22:51:29 | 36,091,024 | 22 | 1 | null | 2017-02-09T20:31:20 | 2015-05-22T19:20:54 | Python | UTF-8 | Python | false | false | 4,721 | py | import os
import requests
import shutil
import time
import warnings
import numpy as np
imagedltimeout = 3
session = requests.Session()
session.trust_env = False
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
def mkpath(outpath... | [
"svebor.karaman@gmail.com"
] | svebor.karaman@gmail.com |
5d7ac2ba25b18ff4484f8328d3f21f2d5fe93401 | 810ce1c1ac47743e253171ec7541c0e431d952c2 | /standard_library/Concurrency/Subprocess/subprocess_signal_parent_shell.py | f65410bbf08ac27c3089d736b913256dd8f8f41d | [] | no_license | hjlarry/practise-py | 91052c25dc7ab706c6234f6d657db76667a27124 | 871e06b9652d356f55e3888f1f7ea180ac2b1954 | refs/heads/master | 2022-09-11T17:47:48.557194 | 2022-08-10T02:07:24 | 2022-08-10T02:07:24 | 136,263,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | """
用于发送信号的 pid 与等待信号的运行 shell 脚本的子进程 id 不同,因为这个例子中有三个独立的进程在交互:
1. 主程序 subprocess_signal_parent_shell.py
2. 主程序创建的运行脚本的 shell 进程。
3. 程序signal_child.py
如果由 Popen 创建的进程产生子进程,那么子进程将不会收到任何发送给父进程的任何信号。
"""
import os
import signal
import subprocess
import tempfile
import time
import sys
print("由于父进程创建的子进程是shell,shell再创建的... | [
"hjlarry@163.com"
] | hjlarry@163.com |
e27f776e66186c3805e38f5fe1037c380b83a772 | 97f2f0d821ce8d12b6d03f200692721418458e4b | /ths/test/testsentimentensemble.py | 828bd399e2ea80bf67545e102de46b91a1a2fe46 | [] | no_license | manuelr417/DetectDiseaseTHS | 0851f3c2fe5caa460eacfe1fc57c790fcd43fd0a | 43ae6482a4e3009fcf0899d0a1047590c4c77f7f | refs/heads/master | 2021-04-15T08:23:43.430178 | 2020-04-13T11:46:34 | 2020-04-13T11:46:34 | 126,485,918 | 0 | 3 | null | 2018-10-17T13:32:44 | 2018-03-23T13:01:29 | Python | UTF-8 | Python | false | false | 488 | py | from ths.nn.sequences.processemsemble import ProcessTweetsWord2VecOnePassEnsemble
def main():
print("Working:")
#P = ProcessTweetsWord2VecOnePass2DCNNv2_1("data/cleantextlabels3.csv", "trained/embedding3.csv")
P = ProcessTweetsWord2VecOnePassEnsemble("data/cleantextlabels3.csv", "data/glove.6B.50d.txt")
... | [
"manuel.rodriguez7@upr.edu"
] | manuel.rodriguez7@upr.edu |
64e423abf7ebbca4e0426ebdce632030f0eb92f9 | ae87b11560c543cb678c52a28916ea2252d7aa52 | /tests/parsers/mac_appfirewall.py | af22d404ed067295db1745d695a435ad49dfadcc | [
"Apache-2.0"
] | permissive | CNR-ITTIG/plasodfaxp | 19ccf77d0be62cfa8a9b246eb6797cf64a480d80 | 923797fc00664fa9e3277781b0334d6eed5664fd | refs/heads/master | 2016-09-13T11:14:08.877399 | 2016-04-11T15:01:42 | 2016-04-11T15:01:42 | 55,975,921 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,765 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for Mac AppFirewall log file parser."""
import unittest
# pylint: disable=unused-import
from plaso.formatters import mac_appfirewall as mac_appfirewall_formatter
from plaso.lib import timelib
from plaso.parsers import mac_appfirewall
from tests.parsers import test_l... | [
"dfirfpi@gmail.com"
] | dfirfpi@gmail.com |
f0148135b7890c0e3aa022d70d08522b3a367bec | c49a6e67a63a541f8d420e725af155505d1e7f84 | /Tree/unique-binary-search-trees-ii.py | edd7063cc4f05e9ecfc78755a5d57aa38199fcdf | [] | no_license | wttttt-wang/leetcode_withTopics | b41ed0f8a036fd00f3b457e5b56efe32f872ca13 | e2837f3d6c23f012148a2d1f9d0ef6d34d4e6912 | refs/heads/master | 2021-09-05T05:03:47.519344 | 2018-01-24T08:28:58 | 2018-01-24T08:28:58 | 112,893,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | """
Unique Binary Search Trees II
@ Tree + Recursion
"""
class Solution(object):
def generateTrees(self, n):
"""
:type n: int
:rtype: List[TreeNode]
"""
if n < 1:
return []
return self.helper(1, n)
def helper(self, start, end):
if start > en... | [
"wttttt@Wttttt-de-MacBookPro.local"
] | wttttt@Wttttt-de-MacBookPro.local |
7cd3bda3b5b650d556ae4214a4aabe90dc98c7c0 | 1c2111220259c76520f59be5e4aa67f32e638127 | /google/cloud/securitycenter_v1p1beta1/services/security_center/transports/base.py | 784492f2da9fc68bd8c2523cbcc1b178531e77ea | [
"Apache-2.0"
] | permissive | renovate-bot/python-securitycenter | 81ca5e96340bcf3151faa43d08e0bc74fd11a4d8 | 729ee2f7bffad25f93777d5fa44ed22ac9dd51af | refs/heads/master | 2023-06-09T19:25:22.974179 | 2021-08-27T18:44:46 | 2021-08-27T18:44:46 | 239,139,881 | 0 | 0 | Apache-2.0 | 2020-02-08T13:51:46 | 2020-02-08T13:51:46 | null | UTF-8 | Python | false | false | 23,098 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | renovate-bot.noreply@github.com |
1b45af41c9bb4a3ddf55e8aac6b235e7d8843cac | f5d2a1459c81eb23a745bd63f41ef980c41ea0a4 | /ZG-PhaseFour/code/controller/diffcontroller.py | 22365e714fd1d2fa625911ff9f88462b4fcaa379 | [] | no_license | ErBingBing/django-tonado-crawler | 6800bb0269e99e2454fb0a9079175ffe9d4d0a0b | db31b4cdf7ecc509f1a87aa325621943df825e98 | refs/heads/master | 2021-08-22T11:30:08.419583 | 2017-11-30T04:04:40 | 2017-11-30T04:04:40 | 112,562,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,508 | py | # -*- coding: utf-8 -*-
###################################################################################################
# @file: diffcontroller.py
# @author: Sun Xinghua
# @date: 2016/11/21 0:15
# @version: Ver0.0.0.100
# @note:
#####################################################################################... | [
"913702626@qq.com"
] | 913702626@qq.com |
81b0af19642bc53232aa4eb85eae5f78ac7a6495 | 4e8ac215b672b333f19da87787c0d8768fee439e | /MIDI Remote Scripts/ableton/v2/control_surface/components/drum_group.py | 3a23650ce45ebcd2d6372554cd2f9e072ac3a329 | [
"MIT"
] | permissive | aarkwright/ableton_devices | 593f47293c673aa56f6e0347ca6444b7fce2812a | fe5df3bbd64ccbc136bba722ba1e131a02969798 | refs/heads/master | 2020-07-02T08:11:21.137438 | 2019-08-09T13:48:06 | 2019-08-09T13:48:06 | 201,467,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,824 | py | # uncompyle6 version 3.3.5
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
# Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\ableton\v2\control_surface\components\drum_group.py
# Compiled at: 20... | [
"apollo.arkwright@gmail.com"
] | apollo.arkwright@gmail.com |
8a1cc7180086b8e03033515e70b945d413b517ef | 7fe5f16fe49e71926c1dfc3a3b41e28741176f06 | /example.py | 4608fef3c68d41da1e74e4d68aeba516f6aac7ee | [] | no_license | codesharedot/augur-price | 5b7b315fed28a042bb32e0bf5059e96a263bf6f5 | 2fb9e29ba3eab108e09b5d95c5f390bedfd89530 | refs/heads/master | 2020-07-27T04:09:20.915412 | 2020-03-05T17:50:04 | 2020-03-05T17:50:04 | 208,862,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | import requests
import json
from forex_python.converter import CurrencyRates
import os
c = CurrencyRates()
rate = c.get_rate('USD', 'EUR')
print(rate)
augur_api_url = 'https://api.coinmarketcap.com/v1/ticker/augur/'
response = requests.get(augur_api_url)
response_json = response.json()
print(response_json)
for coin... | [
"codeto@sent.com"
] | codeto@sent.com |
bc290340823ce97833d91f4123951f04075608e3 | a84e1a1aac96612b32ba5adcc49a4005c0c5129e | /tensorflow_probability/python/experimental/mcmc/__init__.py | 9bebbe5296b9f126968b664c8cafa86a5e6c0a37 | [
"Apache-2.0"
] | permissive | jedisom/probability | 4fc31473d691d242a3e88c179ae3a9c555a29bb6 | 6791e7ce1c2b0a9057a19a8ea697aeaf796d4da7 | refs/heads/master | 2022-04-23T00:21:46.097126 | 2020-04-22T20:03:04 | 2020-04-22T20:04:59 | 258,031,151 | 1 | 0 | Apache-2.0 | 2020-04-22T22:08:57 | 2020-04-22T22:08:56 | null | UTF-8 | Python | false | false | 3,073 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
492e20fa5f9a33cc62fcd94e23aae05134077702 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/mixedreality/list_object_anchors_account_keys.py | 477a8c32f1615fa9c02298fcbe21bb5a88e16df1 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 2,818 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | [
"noreply@github.com"
] | morrell.noreply@github.com |
55579935208423de76144450d6a979bb0a66cb9c | f856c993a34fa2fbb228369dd267909445fa69b5 | /vel/augmentations/to_tensor.py | d97ac0fb52984932b782019a024aec8100f5995f | [
"MIT"
] | permissive | cclauss/vel | 06fabeb75925ac2509162f12ac82fff3b8291720 | 78a6a20af80ff613898d2983c83fdb223634aaad | refs/heads/master | 2020-04-01T03:46:50.339279 | 2018-10-09T05:36:21 | 2018-10-09T05:36:21 | 152,836,186 | 0 | 0 | MIT | 2018-10-13T04:48:44 | 2018-10-13T04:48:44 | null | UTF-8 | Python | false | false | 436 | py | import numpy as np
import torchvision.transforms.functional as F
import vel.api.data as data
class ToTensor(data.Augmentation):
def __init__(self, mode='x', tags=None):
super().__init__(mode, tags)
def __call__(self, datum):
return F.to_tensor(datum)
def denormalize(self, datum):
... | [
"jerry@millionintegrals.com"
] | jerry@millionintegrals.com |
41cc274eb12a46f98a11e97f115641445f2a7322 | d0bdf444c71b724ecfd59b5bc6850962c56494cb | /labs/03-apply_vis/tests/q1_3.py | f28f5962b8a4bbc4dfe837cb9f86d0772094554c | [] | no_license | ucsd-ets/dsc10-su20-public | 10e3d0ff452b337f222baee330fe60d1465b0071 | 38787e6cc3e6210b4cc8a46350e5120845971c9f | refs/heads/master | 2022-12-13T23:28:20.512649 | 2020-09-03T19:28:06 | 2020-09-03T19:28:06 | 275,905,339 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | test = {
'hidden': False,
'name': '1.3',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> # Your answer should be a number
>>> type(mark_hurd_pay) != str
True
""",
'hidden': False,
'locked': False
},
... | [
"eldridgejm@gmail.com"
] | eldridgejm@gmail.com |
5f1652113a026b33730dd0979a69e1a786d7a16f | 8015f1c62a2cb4efd21aa8938336913bf8117868 | /bamap/ba2842.pngMap.py | 2abe96fbd929a7d98d47428252e3966ff592519d | [] | no_license | GamerNoTitle/Beepers-and-OLED | 675b5e3c179df0f0e27b42bf594c43860d03b9af | afe1340e5394ae96bda5f9022a8a66824368091e | refs/heads/master | 2020-04-20T00:09:47.122471 | 2019-04-29T04:59:35 | 2019-04-29T04:59:35 | 168,515,579 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | ba2842.pngMap = [
'11111111111111111111111111111111111111111111111111110000000000000000000001111111111111111111111111111111111111111111111111111111',
'11111111111111111111111111111111111111111111111111110000000000000000000000111111111111111111111111111111111111111111111111111111',
'1111111111111111111111111111111111111... | [
"bili33@87ouo.top"
] | bili33@87ouo.top |
0f66442a96c3559f8d552b7803a53026e3a5c9f9 | a9cac1a83b74a42b908b1913bd087d14de2f4a11 | /test/git/test_invocations.py | ed17c44d455670a377cf5538adcaa108a32ebd67 | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | justusschock/python-remote-versioneer | 0ff76cf416a3fc79f9f89592a112d5b4152bddba | 69cda6a931a71772047404705822784dd2f59fcd | refs/heads/master | 2020-06-29T06:36:18.730253 | 2019-08-04T08:14:51 | 2019-08-04T08:14:51 | 200,464,396 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,972 | py | from __future__ import print_function
import os, sys, shutil, unittest, tempfile, tarfile, virtualenv, warnings
sys.path.insert(0, "src")
from from_file import versions_from_file
import common
pyver_major = "py%d" % sys.version_info[0]
pyver = "py%d.%d" % sys.version_info[:2]
if not hasattr(unittest, "skip"): # py2... | [
"warner@lothar.com"
] | warner@lothar.com |
c12deb8dc47fab1d4779dededfad990fb6c4aaec | 85c82274a3888fa61795bb0600ab96eaf7665b6a | /UTS/D_letterTArray.py | 16e3541a8e3a1482da2c3cb3821ac21e8b71dafd | [] | no_license | refeed/StrukturDataA | 8e5a214569f41b19c05842d003ede5941800482a | 4d3b77bbd28158f1f1e64a49b8e90da731859407 | refs/heads/master | 2023-06-03T08:22:12.442536 | 2021-07-01T03:24:29 | 2021-07-01T03:24:29 | 360,478,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | '''
Letter T Array
Batas Run-time: 1 detik / test-case
Batas Memori: 32 MB
DESKRIPSI SOAL
Bayangkan sebuah tabung seperti gambar di atas. Tabung dengan tiga cabang dan
salah satunya menghadap ke atas. Kali ini kita akan bermain dengan sebuah array
yang bentuknya seperti di atas. Proses “Push” data baru seakan menjat... | [
"rafidteam@gmail.com"
] | rafidteam@gmail.com |
39870bafb24d8c96b9d084eed585673395b338de | e61717bebf8f7d3790b0e98d868ea4ce33f9cc59 | /TSIS10_upd/inserting many data.py | 56017b448f12644780c3f8749161a0b6f3557868 | [] | no_license | KanagatS/PP2 | 81672264b9720af8b15408c9d8228eb6da25378e | b53f5164d6fb753392870607d0506c5a3daaef88 | refs/heads/master | 2023-04-20T10:29:53.298342 | 2021-05-21T18:24:55 | 2021-05-21T18:24:55 | 334,276,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | import psycopg2
con = psycopg2.connect(
host='localhost',
database='tsis',
user='postgres',
port=6666,
password=''
)
cur = con.cursor()
# ===============================================
sql = """INSERT INTO student(name) VALUES(%s);"""
cur.executemany(sql, [('is',), ('KBTU',), ('student',)])
c... | [
"k_sapiya@kbtu.kz"
] | k_sapiya@kbtu.kz |
08de08127f62aa59ec24287edeb7a29787f3ee2f | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/mesh3d/colorbar/title/_side.py | 95426ff6b73e9ae7aeac6fa6b0ff209b476d779f | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 493 | py | import _plotly_utils.basevalidators
class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self, plotly_name="side", parent_name="mesh3d.colorbar.title", **kwargs
):
super(SideValidator, self).__init__(
plotly_name=plotly_name,
parent_name=... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
a057006ec8e593fa858cdfaccd187d99b327366a | 2be63b91334873f3044a0306344cc907828837b3 | /deluxhotel/blog/admin.py | d61c286a38247c7ff27eb520836214b22d8382fb | [] | no_license | DmitriiGrekov/delux_hotel | ffcb34c99d5740e8591f5eb7a15ea5e72cd0f5be | 0ac14d018166752827f486ba9d3e9553f0b52b67 | refs/heads/master | 2023-07-03T02:46:41.355875 | 2021-08-05T16:21:22 | 2021-08-05T16:21:22 | 393,068,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | from django.contrib import admin
from .models import TagsModel, BlogPostModel, CommentModel
@admin.register(TagsModel)
class TagsAdmin(admin.ModelAdmin):
list_display = ('name', 'slug')
prepopulated_fields = {'slug': ('name',)}
@admin.register(BlogPostModel)
class BlogAdmin(admin.ModelAdmin):
list_displ... | [
"grekovdima7@gmail.com"
] | grekovdima7@gmail.com |
e67ff95685ab64f98a147c59594b3b7a7c4791ce | f59c06566e729380b032f050f852621f425553ac | /plugins/maze.py | 83aeeebf2601c7cabe7ca38404b7a26d1aa3638a | [] | no_license | JonnoFTW/TonsleyLEDManager | c23e27cf7e9f61f97d2c42e3331bceae3fe66231 | 681771584f2b105a2b190641be2d2d1d9d785be1 | refs/heads/master | 2021-06-07T18:24:54.113308 | 2021-05-02T09:43:19 | 2021-05-02T09:43:19 | 55,032,673 | 4 | 7 | null | 2017-09-04T04:13:26 | 2016-03-30T04:33:25 | Python | UTF-8 | Python | false | false | 6,100 | py | class Runner:
blue = [0, 0, 255]
white = [255, 255, 255]
black = [0, 0, 0]
green = [0, 255, 0]
red = [255, 0, 0]
def __init__(self, board_dimensions):
self.dims = board_dimensions
import numpy as np
self.np = np
np.set_printoptions(threshold=np.nan)
self... | [
"jonmac1@gmail.com"
] | jonmac1@gmail.com |
4280ff24cdcb735005428f197ee64f440e0f77ac | 3a09048cb841d91ee39ef054f35b8572f3c166fb | /OnlineJudge/ojproblem/apps.py | 1b720ddb973a9fee0b68995e95e12486f9580439 | [] | no_license | lyyyuna/LihuLabOJ | 91eddf27a16dca5488d5406e0224cf84544254b9 | e1e8e5ae9da629a201f734a33d264bcb6ae2f420 | refs/heads/master | 2022-12-14T02:53:24.786670 | 2019-08-29T03:07:22 | 2019-08-29T03:07:22 | 89,581,070 | 1 | 2 | null | 2022-12-08T08:32:24 | 2017-04-27T09:34:55 | Python | UTF-8 | Python | false | false | 158 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class OjproblemConfig(AppConfig):
name = 'ojproblem'
| [
"lyyyuna@gmail.com"
] | lyyyuna@gmail.com |
bae085a67b4f224655e429058f60fbc44a5a185e | 81407be1385564308db7193634a2bb050b4f822e | /the-python-standard-library-by-example/argparse/argparse_fromfile_prefix_chars.py | 0d40b273f431ba758c22fcbbd05759f0f70e9057 | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 422 | py |
import argparse
parser = argparse.ArgumentParser(description='Short sample app',
fromfile_prefix_chars='@',
)
parser.add_argument('-a', action="store_true", default=False)
parser.add_argument('-b', action="store", dest="b")
parser.add_argument('-c', a... | [
"350840291@qq.com"
] | 350840291@qq.com |
fa07e854a21f6965ab962f6b3f56dc7d7a79a9ad | e5453b6a4b84a32ccca7281d438b7a7fa1853f58 | /src/ibmc/checks/huawei_ibmc_memory_check.py | e9a2b6fbe8b988c64e006753256d5d2b4991b3ab | [
"MIT"
] | permissive | Huawei/Server_Management_Plugin_Check_MK | 88445d9da581c347c5e82cf590453c4cb2c3d53c | 88398c7c8affe0b2064f418de931d69e36afde67 | refs/heads/master | 2021-05-11T11:40:55.302518 | 2021-01-27T09:53:17 | 2021-01-27T09:53:17 | 117,641,709 | 1 | 4 | null | 2018-01-31T05:38:01 | 2018-01-16T06:30:39 | null | UTF-8 | Python | false | false | 2,009 | py | #!/usr/bin/python
#
# check_mk is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation in version 2. check_mk is distributed
# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
# out even the i... | [
"31431891+serverplugin@users.noreply.github.com"
] | 31431891+serverplugin@users.noreply.github.com |
6f0d1ed0816ccbc48e4a42bfff7f7583a50f9a16 | 781f408fd9dc9fd111d5ac47009ab580636625e5 | /examples/test_get_pdf_text.py | 32573412e9a3e0199172d9ba0bd2f4394ab87c0d | [
"MIT"
] | permissive | doiteachday/SeleniumBase | fb003257b63e157b734d2b34a9c5794d74748322 | 8ded5fac84b85f1d4f43384d0836dbf4a1fc390e | refs/heads/master | 2023-04-10T10:13:50.372864 | 2021-05-04T02:51:43 | 2021-05-04T02:51:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from seleniumbase import BaseCase
class PdfTests(BaseCase):
def test_get_pdf_text(self):
pdf = ("https://nostarch.com/download/"
"Automate_the_Boring_Stuff_sample_ch17.pdf")
pdf_text = self.get_pdf_text(pdf, page=1)
print("\n" + pdf_text)
| [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
2594bcbf34b79c8031b60bfcbb34bbb0796cf491 | 0175bdc4c896e8019b2c5f7442097cf6b9c1d14a | /pylibs/BasePage.py | 59ed9e3979940a13702c32503f2b2f7648643462 | [] | no_license | GGGYB/shiiia | 323ecee869dcd66510baf0ea7bc30b29c2bfb5ad | 9760f170cbbec37cc340c3b020f36cdd9855e7cd | refs/heads/master | 2023-05-02T07:58:37.023266 | 2021-05-31T09:41:07 | 2021-05-31T09:41:07 | 334,103,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | # -*- coding: utf-8 -*-
# Author: sharon
# Datetime: 2021/1/29 14:32
# File: $ {NAME}
from pylibs.MyDriver import Driver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
import time
class BasePage():
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
def ge... | [
"nlnongling@163.com"
] | nlnongling@163.com |
bc860517d0de7a0508431b8414cb45c85ec7b3e7 | 979cf7d5e2136e7e701df27da29622f9196f219e | /Files/views.py | 6a8462440f919b5546e343a386846815375f1e1c | [] | no_license | RafayelGardishyan/DjangoTeamwork | e68c33844680c6a4e345fe8dfc2d3b4b49ccf2ef | 6b030b161b67976445b292f0d5f7366a5eb48560 | refs/heads/master | 2021-09-16T07:03:51.280141 | 2018-01-06T20:50:11 | 2018-01-06T20:50:11 | 114,727,815 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,901 | py | import random
from django.http import HttpResponse
from django.shortcuts import redirect
from django.template import loader
from Start.models import Admin
from .forms import FileForm
from .models import File
from webhooks import Webhook
# Create your views here.
values = {
'securitykey': "",
'whurl': "https:... | [
"rgardishyan@gmail.com"
] | rgardishyan@gmail.com |
9531a59085c598825838be55b85bd85e79853aaa | 327e3c96db66c055d47be868ef5346ae3515b752 | /SpiralMatrix.py | 589762d3c9b41840dab60d26be27ea76aec14b69 | [] | no_license | dabay/LeetCodePython | 790a17893c46aa3a003ef95026471c21d869570d | fdac2086bc793584e05445f5d9afa74fee6fcb33 | refs/heads/master | 2021-03-12T23:34:04.496651 | 2017-08-24T15:55:02 | 2017-08-24T15:55:02 | 27,840,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | # -*- coding: utf8 -*-
'''
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
For example,
Given the following matrix:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ]
]
You should return [1,2,3,6,9,8,7,4,5].
'''
class Solution:
# @param strs, a list of strings
... | [
"dabay.wong@gmail.com"
] | dabay.wong@gmail.com |
4b47d4fae81b2e9fe90c6198f017118e6e06407e | 0b1c6a559c8f8f38ec0a9b62c5fdec786488c77e | /appspot/time_clock/migrations/0003_auto_20171005_1604.py | 7f9c3ef6d7a0795f1365aaad23df686301d777d4 | [] | no_license | smartworld1000/django_appspot | 9372b1edeb3e9d2507ca49463d34b0cf22e652ed | d801d910ff52b83a45f3bf68334bb06a91b81221 | refs/heads/master | 2021-05-14T03:39:07.613510 | 2017-11-05T07:42:59 | 2017-11-05T07:42:59 | 116,621,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2017-10-05 16:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('time_clock', '0002_auto_20171005_1551'),
]
operations = [
migrations.AlterF... | [
"itokonoha8972@outlook.com"
] | itokonoha8972@outlook.com |
c96102cd66d61620bf0f87c991aa8d335ee87949 | cbd601867957c9abf19816c1b14bc455b54a6977 | /themed_collection/views.py | 6f4e9ee5c9b27cec49a080bd5da93739cf4f2178 | [] | no_license | tingletech/voro-djsite | 33640c8656af312650092594af8666c75c5d116b | d50da7c430d2e63436ad125be6ec62b3aa2174ac | refs/heads/master | 2021-01-01T19:43:14.241476 | 2011-03-09T22:51:21 | 2011-03-09T22:51:21 | 1,089,200 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,206 | py | import csv
import simplejson
from django.shortcuts import render_to_response, get_object_or_404
from django.contrib.auth.decorators import permission_required, login_required
from django.template import RequestContext
from django.http import HttpResponse
from django.http import Http404, HttpResponseForbidden, HttpRespo... | [
"none@none"
] | none@none |
0b3008da0bf7f113d48b9ab99344fb70cf022591 | 90f729624737cc9700464532a0c67bcbfe718bde | /lino_xl/lib/cv/mixins.py | 2cf6c081a9ea76a806bd42afe738a54f12383a91 | [
"AGPL-3.0-only"
] | permissive | lino-framework/xl | 46ba6dac6e36bb8e700ad07992961097bb04952f | 642b2eba63e272e56743da2d7629be3f32f670aa | refs/heads/master | 2021-05-22T09:59:22.244649 | 2021-04-12T23:45:06 | 2021-04-12T23:45:06 | 52,145,415 | 1 | 5 | BSD-2-Clause | 2021-03-17T11:20:34 | 2016-02-20T09:08:36 | Python | UTF-8 | Python | false | false | 6,328 | py | # -*- coding: UTF-8 -*-
# Copyright 2013-2020 Rumma & Ko Ltd
# License: GNU Affero General Public License v3 (see file COPYING for details)
from django.conf import settings
from django.db import models
from django.utils.translation import gettext
from lino.api import dd, rt, _
from etgen.html import E, join_elems, f... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
13097b1d3f56a2e6dabdbab7527c0f64a21c2ad4 | 4732684be0b1a45c2aebe45d22558a9e1bd7f377 | /src/main.py | 8ba296d023c3861d1fe711862ef41a6e31bdf7b5 | [] | no_license | Griffinem/Trade-Up-EV | a7e0175d333daa04d94268e9342ade2084440084 | b9b8b5954517432f9e2d57b45e7ee658008eca6c | refs/heads/master | 2022-08-28T09:22:10.180323 | 2022-08-18T14:26:44 | 2022-08-18T14:26:44 | 247,586,523 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,474 | py | #from api_utils import *
import json
import requests
import time
item_price_data_url = 'http://csgobackpack.net/api/GetItemsList/v2/'
weapon_data_file_path = '..\scraping\weapon_data_file.json'
ev_output_file_path = 'ev_data_file.json'
float_cutoffs = {'Factory New': [0.0, 0.07], 'Minimal Wear': [0.07, 0.15], 'Fi... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
467540c5dee5db0e3e5e016eb7da46ba682879e5 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_muzzle.py | b303154fa083e4f00aab3ba2e61101f50ea18ee8 | [
"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 | 457 | py |
#calss header
class _MUZZLE():
def __init__(self,):
self.name = "MUZZLE"
self.definitions = [u'the mouth and nose of an animal, especially a dog, or a covering put over this in order to prevent the animal from biting', u'the end of a gun barrel, where the bullets come out']
self.parents = []
self.childen =... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
343d00dfa90099304af3a226951dacbb1f31c590 | 2f0c30fda27d1167f5a4850bdf9b5040815a162e | /bin/ext_service/reset_habitica_timestamps.py | 61527988d6e4ef8bfd71c972e4eb8b140849ae22 | [
"BSD-3-Clause"
] | permissive | ankur-gos/e-mission-server | 1117e8154174a953c7df47a1f1aa15c29a2a1819 | 64b098540e331ef2bb41bd9fe7a165ff53cc7a87 | refs/heads/master | 2021-01-01T18:10:26.314393 | 2017-07-26T06:03:56 | 2017-07-26T06:03:56 | 98,269,025 | 0 | 0 | null | 2017-07-25T05:48:37 | 2017-07-25T05:48:37 | null | UTF-8 | Python | false | false | 3,059 | py | """
Script to launch the pipeline reset code.
Options documented in
https://github.com/e-mission/e-mission-server/issues/333#issuecomment-312464984
"""
import logging
import argparse
import uuid
import arrow
import copy
import pymongo
import emission.net.ext_service.habitica.executor as enehe
import emission.core.ge... | [
"shankari@eecs.berkeley.edu"
] | shankari@eecs.berkeley.edu |
27d8155ee1f3dc72b0330c152644cb7e74f95a4e | b5f6109c3c70faa409bdc83d24e16195249e577a | /transviz.py | d41569720c2debfebdd5797ba0ae71f94695a867 | [] | no_license | afcarl/transviz | 1b079d7a7be35d65016be7fe4fa97c7077bf5630 | 9ed0a7b9945923cc2dd02fac45596b3165bcabe2 | refs/heads/master | 2020-03-20T06:07:23.631534 | 2015-02-27T16:50:06 | 2015-02-27T16:50:06 | 137,239,478 | 1 | 0 | null | 2018-06-13T16:07:04 | 2018-06-13T16:07:04 | null | UTF-8 | Python | false | false | 11,686 | py | from __future__ import division
import numpy as np
import networkx as nx
from collections import defaultdict
import hashlib
import os
import cPickle as pickle
from cStringIO import StringIO
from transvizutil import rgb2hexa, num_args, get_usages, normalize_transmat
# TODO add igraph kk layout
# TODO circo bend throug... | [
"mattjj@csail.mit.edu"
] | mattjj@csail.mit.edu |
0ea68ccacf4032b775a574b37eb328f4f7cf5840 | 92f6e90d9b13930abde894ef6bdb521e1ae2b7be | /Incomplete/painting_wall.py | a4ee9ea29433dc55ca21fad11b0f75f1f18353bc | [
"MIT"
] | permissive | nptit/Check_iO | f32b68b66c7dbd47e1490aa8db0e3f4bf29716e5 | 9107241291e6f6e397c3756497e74eece782f1e4 | refs/heads/master | 2021-01-25T06:55:09.459265 | 2016-03-23T06:50:12 | 2016-03-23T06:50:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,006 | py | def checkio(required, operations):
total = set()
hmm = list()
highest = 0
lowest = 0
missing = list()
for index, op in enumerate(operations, start=1):
start, stop = op
if not hmm: # no need to check multiple tuples for first
if (stop + 1) - start >= required:
... | [
"the-zebulan@users.noreply.github.com"
] | the-zebulan@users.noreply.github.com |
724c7161d9b64a1c4b3e72ac685f5c01764c2ea1 | 0e5291f09c5117504447cc8df683ca1506b70560 | /netbox_client/models/vrf.py | 10a6db5a173cc52661c33c7d5ebf76baaa1fdcb9 | [
"MIT"
] | permissive | nrfta/python-netbox-client | abd0192b79aab912325485bf4e17777a21953c9b | 68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8 | refs/heads/master | 2022-11-13T16:29:02.264187 | 2020-07-05T18:06:42 | 2020-07-05T18:06:42 | 277,121,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,725 | py | # coding: utf-8
"""
NetBox API
API to access NetBox # noqa: E501
OpenAPI spec version: 2.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class VRF(object):
"""NOTE: This class is auto generated by the swagger code ... | [
"67791576+underline-bot@users.noreply.github.com"
] | 67791576+underline-bot@users.noreply.github.com |
427afb80eebd9b9cb737cb4e73af8fc35c1f04a7 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-3/5c1a9140029525293d87eb87bd8c0260b87feb6c-<main>-bug.py | 91285b80db8036ad3d338654c9bec1ab24026dcf | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,785 | py | def main():
argument_spec = ec2_argument_spec()
argument_spec.update(dict(name=dict(required=True, type='str'), load_balancers=dict(type='list'), target_group_arns=dict(type='list'), availability_zones=dict(type='list'), launch_config_name=dict(type='str'), min_size=dict(type='int'), max_size=dict(type='int'), ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
d04ec0b345457bafcc12d9ac2a1faa572fff37e1 | 8f395b474f01b91e3c7a5a6260e84ed12cc57586 | /utilities/infer_implementations.py | 912c718c6b9380daa608b5ec7fa12ca9516a006d | [] | no_license | actixn/W-Net | 2263fbaa9c720af46f08d14f84b590e0ae455856 | adaf5c304d1359ac5c06e98d9cfd1b9c091e5708 | refs/heads/master | 2022-11-25T17:51:54.579895 | 2020-08-08T13:27:09 | 2020-08-08T13:27:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,750 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import absolute_import
import cv2
import utilities.charcut as cc
import sys
# reload(sys)
# sys.setdefaultencoding("utf-8")
GRAYSCALE_AVG = 127.5
print_separater = "#################################################################"
from P... | [
"falconjhc@gmail.com"
] | falconjhc@gmail.com |
6264a9609afe6739ef0895579757c90f0c5ba974 | bd498cbbb28e33370298a84b693f93a3058d3138 | /SIAT/benchmarks/resnet/implementations/mindspore_open_src/model/thor.py | a7798c2b1fb3178a226b6da64031bc33791ff00b | [
"Apache-2.0"
] | permissive | piyushghai/training_results_v0.7 | afb303446e75e3e9789b0f6c40ce330b6b83a70c | e017c9359f66e2d814c6990d1ffa56654a73f5b0 | refs/heads/master | 2022-12-19T16:50:17.372320 | 2020-09-24T01:02:00 | 2020-09-24T18:01:01 | 298,127,245 | 0 | 1 | Apache-2.0 | 2020-09-24T00:27:21 | 2020-09-24T00:27:21 | null | UTF-8 | Python | false | false | 12,850 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | [
"vbittorf@google.com"
] | vbittorf@google.com |
3821efe47b843b6c0e67ea56bd904c71cae7edbe | 3307766701d680af6d12a726a2d98df2cb1830e5 | /jams/gcj/2017/1C/C/C.py | 52f7e3992946510e28a1d7dbac618bac1426e0bb | [] | no_license | dpaneda/code | c1a54037a275fa7044eb5c2d6079f052dd968615 | 7da1ede33a6a7cd19cbd0db517d91e7cccfbbfff | refs/heads/master | 2023-01-07T18:41:00.816363 | 2022-12-30T09:24:22 | 2022-12-30T09:24:22 | 1,583,913 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | #!/usr/bin/python2
import sys
def equals(P):
for i in xrange(0, len(P)):
if (P[0] - P[i]) > 0.00000001:
return False
return True
def diff(P):
a = P[0]
n = 1
for i in xrange(1, len(P)):
if P[i] == a:
n += 1
else:
return n, P[i] - a
def... | [
"dpaneda@gmail.com"
] | dpaneda@gmail.com |
7985ceb35a1900004f926901a654243dccd6e223 | e85f4714cf2b590d21582ebd567208da1b9132fc | /tests/test_pakit_tests.py | a24369e54dcc6a0174d05d577836e2b3b1380841 | [
"BSD-3-Clause"
] | permissive | pakit/pakit_tests | 1fcc6c6974a297d1931b704a93d4580ed1eecd90 | 078203f31d56b9701781008bc90668a5a5b292ba | refs/heads/master | 2020-04-15T15:58:09.280612 | 2016-01-02T04:02:07 | 2016-01-02T04:02:07 | 42,521,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,612 | py | """
Test pakit_tests
"""
from __future__ import absolute_import, print_function
import os
import tempfile
import mock
import pytest
from pakit_tests import (
create_args_parser, extract_repo_names, extract_repo_block, main,
scan_recipes, format_lines, write_file, TEMPLATE
)
import tests.common as tc
def test... | [
"unknown3000@gmail.com"
] | unknown3000@gmail.com |
bc9fe81e043cc94e56cafd9cd99b0951d3bb10c5 | 7cdb18e0a7ef01a34ec602bb31aa915c482fcd24 | /hujian_api/API_service/TestCase/Attendance_analyse_standard_02.py | 478b59425ccc56de8a4de30b2e7e86270540fa5b | [] | no_license | wangdan377/Python_API | 6adac56974f9c6af238895a3101db0e3f0667ba1 | 38b31d4d02740d359a7e47fb3a3975045f00288e | refs/heads/master | 2023-02-18T14:39:03.009815 | 2021-01-20T12:59:52 | 2021-01-20T12:59:52 | 311,855,608 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,763 | py | import pytest
import allure
import requests
import json
import time
from Params.params import Login
from Params.params import Login_info
from Params.params import Password_reset
from Params.params import Log_info
from Params.params import Log_latest
from Params.params import Log_list
from Params.params i... | [
"1065913054@qq.com"
] | 1065913054@qq.com |
da4aa3bdc9eddca782b1e0a4f1eca9a1d8028af1 | 2321ebc9c76e2eb95a05976e3681ed7f4e24d361 | /pandas-for-finance/10/05.py | 68641569fe58f3b6a01bc5b01c572044cc7080ca | [] | no_license | sharebook-kr/books | 71428bfec46759a8da81d70bfe28fa67e4244aee | 7537053c559ca055bf54ab940bf4078217c288a1 | refs/heads/master | 2020-04-22T19:08:42.294339 | 2019-08-17T12:06:42 | 2019-08-17T12:06:42 | 170,598,895 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | import requests
from bs4 import BeautifulSoup
import time
import telepot
from telepot.loop import MessageLoop
def get_dividend_earning_rate(code):
try:
url = "http://finance.naver.com/item/main.nhn?code=" + code
html = requests.get(url).text
soup = BeautifulSoup(html, "html5lib")
t... | [
"brayden.jo@outlook.com"
] | brayden.jo@outlook.com |
c62de43f47a28b30ee881c1391e0c50a8a2b2ebf | b5f9f93a415a5cc0117a580c5da12804e68c141d | /scripts/motions/initr0.py | 65093d4646203aa136da56e262759377b990ad57 | [] | no_license | akihikoy/lfd_trick | 71f89d80abc27ffc6fbd5bc609322918a4f8264e | b7bf0189db7bcef07772db17de29302d6e8ba2bf | refs/heads/master | 2021-01-10T14:22:53.341666 | 2016-03-29T18:16:15 | 2016-03-29T18:16:15 | 50,623,958 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/python
from core_tool import *
def Help():
return '''Move left arm/gripper to init posture.
Usage: init0'''
def Run(t,*args):
if t.robot.Is('PR2'):
angles= [-1.5758421026969418, 1.2968352230407523, -1.6520923310211921, -2.095963566248973, 10.512690320637843, -1.469029183486648, 2.37512293699]
eli... | [
"info@akihikoy.net"
] | info@akihikoy.net |
1ab7dc817ebdb29dad6da210ed339031a9d170c7 | 700d2e5b4501fa638bef04141bb92aa1b5a422f0 | /LowVoltage/actions/update_item.py | 045ab47970e839494c5c41a728899b5928c1f23b | [
"MIT"
] | permissive | jacquev6/LowVoltage | 134d8e85add7ff8107090b80adeda99552a43fa4 | aa9c3653e54f2ccda3db0ed647ba9ad5e5657ea3 | refs/heads/master | 2016-09-05T18:29:29.734533 | 2015-09-06T16:17:03 | 2015-09-06T16:17:03 | 24,800,231 | 3 | 3 | null | 2015-04-29T15:06:34 | 2014-10-04T20:02:56 | Python | UTF-8 | Python | false | false | 22,664 | py | # coding: utf8
# Copyright 2014-2015 Vincent Jacques <vincent@vincent-jacques.net>
"""
When given a :class:`UpdateItem`, the connection will return a :class:`UpdateItemResponse`:
>>> connection(UpdateItem(table, {"h": 0}).remove("a"))
<LowVoltage.actions.update_item.UpdateItemResponse ...>
"""
import LowVoltage as ... | [
"vincent@vincent-jacques.net"
] | vincent@vincent-jacques.net |
0cd6a4e11eea792cd0918edb44bb11e6d8b29ecd | 3c6b36eb1f4f9760c52903f6d0ec4a501f948c90 | /osp/corpus/models/__init__.py | d1c292de71e9477c50603b545d6d90ec443aee8b | [
"Apache-2.0"
] | permissive | davidmcclure/open-syllabus-project | 38444249af845013e3f281a7a713dca83159c56e | 078cfd4c5a257fbfb0901d43bfbc6350824eed4e | refs/heads/master | 2021-06-30T21:47:07.636558 | 2021-06-27T15:15:35 | 2021-06-27T15:15:35 | 50,152,020 | 220 | 14 | Apache-2.0 | 2021-06-27T15:11:15 | 2016-01-22T02:29:57 | Python | UTF-8 | Python | false | false | 162 | py |
from .document import Document
from .document_format import Document_Format
from .document_text import Document_Text
from .document_index import Document_Index
| [
"davidwilliammcclure@gmail.com"
] | davidwilliammcclure@gmail.com |
a578ce80b077a6b303027caee95e8d5938e4b2a1 | 1ebe2b9d9d1f67e34cbe21c49f8710b2a1b9eeae | /tests/test_AppObj_getSinglePassword.py | b9993a19aa52502869d1ec20e6142b69d38a25a2 | [
"MIT"
] | permissive | rmetcalf9/PasswordManPro_CLI | 93ee0daff3bfd1c445bbb364df1a59711ec6344b | 207a624a51ac2848c48aeac3282152315b5146df | refs/heads/master | 2021-06-02T00:29:40.353520 | 2020-03-30T10:27:52 | 2020-03-30T10:27:52 | 135,285,541 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | from TestHelperSuperClass import testHelperSuperClass
import passwordmanpro_cli
from unittest.mock import patch
import samplePayloadsAndEnvs
class test_AppObj(testHelperSuperClass):
@patch('passwordmanpro_cli.AppObjClass._callGet')
def test_getSinglePassword(self, getResoursesResponse):
getResoursesResponse.si... | [
"rmetcalf9@googlemail.com"
] | rmetcalf9@googlemail.com |
57c735539919e5edbbcb4ff8c16418d9f6376188 | 68bad4b3d92872bb5b77b4ee503e588d20511a27 | /python/scripts_inhibition/old_script/simulate_inhibition_ZZZ151_slow.py | ab2d7fa5209a6129519eb6a8b0d03dbf06e4c97c | [] | no_license | mickelindahl/bgmodel | 647be626a7311a8f08f3dfc897c6dd4466fc0a92 | 78e6f2b73bbcbecd0dba25caf99f835313c914ee | refs/heads/master | 2023-08-29T13:57:04.122115 | 2022-02-11T14:28:23 | 2022-02-11T14:28:23 | 17,148,386 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,492 | py | '''
Created on Aug 12, 2013
@author: lindahlm
'''
from core.network.manager import Builder_striatum as Builder
from core.parallel_excecution import loop
from core.network import default_params
from scripts_inhibition.base_simulate import (get_path_logs,
get_args_list_inhibition,
... | [
"mickelindahl@gmail.com"
] | mickelindahl@gmail.com |
1175d28772eb9d5b231c3206392fb90d67127bab | b8a803694c283a5acd13ab6760a36710884ab24f | /llvm/mc/__init__.py | 69dd12f877e6415b53f60c7690e36b2f9d76a64c | [
"NCSA",
"BSD-3-Clause"
] | permissive | llvmpy/llvmpy | 8a4c31e731364ead802231b97e058b8f8c444f96 | 13130fe35f1fb03a7051ad46c36146002391a6fa | refs/heads/master | 2016-09-05T16:48:54.694686 | 2015-04-28T16:21:34 | 2015-04-28T16:21:34 | 3,375,197 | 155 | 13 | null | 2015-05-27T18:36:45 | 2012-02-07T07:09:59 | HTML | UTF-8 | Python | false | false | 6,676 | py | import sys
import llvm
if llvm.version < (3, 4):
raise Exception("mc is not supported for llvm version less than 3.4")
from io import BytesIO
import contextlib
from llvmpy import api, extra
from llvmpy.api.llvm import MCDisassembler
class Operand(object):
def __init__(self, mcoperand, target_machine):
... | [
"michael.lam.sk@gmail.com"
] | michael.lam.sk@gmail.com |
cd768bdf9259efd8ae6f1c74de49916277ef7c0b | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq1222.py | b2897a1f78eb02d31ad0854ee13aa149499f7d5a | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,794 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=49
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
fb8e9457ad5e04fd8f1f282ecd96716532bbf285 | dbfdbe3c1d5e3ad38625d8c971fe8dd45c8c3885 | /device_agent/snmp/libs/pysmi-0.3.1/pysmi/reader/zipreader.py | d9f6c4aeb941e5044dd6806f94dd71c09fbca20c | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | fyfdoc/IntegrateTest | a58f6d0ea7cff5f67d79d7e042c0bb39c6b8bbbb | 0d8374406c10c313d6627699879215841e0ebdb6 | refs/heads/master | 2022-12-03T02:32:37.388556 | 2019-01-25T02:36:42 | 2019-01-25T02:36:42 | 167,468,256 | 0 | 1 | null | 2022-11-29T20:58:41 | 2019-01-25T01:59:28 | Python | UTF-8 | Python | false | false | 5,627 | py | #
# This file is part of pysmi software.
#
# Copyright (c) 2015-2018, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysmi/license.html
#
import os
import sys
import time
import datetime
import zipfile
from pysmi.reader.base import AbstractReader
from pysmi.mibinfo import MibInfo
from pysmi.compat impo... | [
"fengyanfeng@datangmobile.cn"
] | fengyanfeng@datangmobile.cn |
46841f47f1f695cf591b225b1aa16e65ae0935ef | 5dd190725aaaeb7287d935b3c99c20480b208816 | /object_detection/utils/np_box_list_test.py | 0cf2ef4d21dd8fea0b5d78c45776b8866d1f7cdc | [
"MIT"
] | permissive | DemonDamon/mask-detection-based-on-tf2odapi | 32d947164fb54395b9e45368c0d4bcf3a6ea1c28 | 192ae544169c1230c21141c033800aa1bd94e9b6 | refs/heads/main | 2023-05-13T05:05:44.534885 | 2021-06-08T05:56:09 | 2021-06-08T05:56:09 | 369,463,131 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,436 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"noreply@github.com"
] | DemonDamon.noreply@github.com |
5e82d5c5a82104ee6f3ba514fcce0106579c026f | 715a11d7b8f15694a5cc4b47ac0e3a3cfc4ffedc | /peakelem.py | 5d99b8c5e4760ff7fad5f9cbebcb6e3ce1a46279 | [] | no_license | mohanrajanr/CodePrep | 5cd538d16598f6a0d2486357d3cc6e0fa1626e4e | 2e23a5f996139b887bf723f58b23368cf8121cd4 | refs/heads/main | 2023-04-23T04:10:06.111120 | 2021-05-11T06:47:51 | 2021-05-11T06:47:51 | 366,283,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from typing import List
def findPeakElement(nums: List[int]) -> int:
l = 0
r = len(nums) -1
while l < r:
mid = l + (r - l)//2
if nums[mid] < nums[mid + 1]:
l = mid + 1
else:
r = mid
return l
print(findPeakElement([1,2,3,1]))
print(findPeakElement([... | [
"mohanrajan1996@gmail.com"
] | mohanrajan1996@gmail.com |
a7137729e4f44867909a24c14dd9be012679b1c0 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/security/azure-mgmt-security/azure/mgmt/security/v2019_01_01_preview/aio/operations/_regulatory_compliance_standards_operations.py | a1a59794d5339f57d8b5bd9b86f55456dcf52ab8 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 9,216 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
39cbc94ee7bdfab87c35956c0e4db581e7be8f01 | f0932f59d37adfbba9307ee31e6f78ce3c256c4a | /scripts/pick_primers.py | 4970130ecdc69ece8f850de75796334dbcf07178 | [] | no_license | kalekundert/ligrna | 3785a1e5fb8ed6d07839a5314029f3fc882d4471 | 843963973c34c4976f5adfbd4d03f5f1d0344423 | refs/heads/master | 2020-04-12T12:52:32.828100 | 2020-02-22T00:59:57 | 2020-02-22T00:59:57 | 162,505,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | #!/usr/bin/env python3
"""\
Automatically design primers that can be used to construct the given sgRNA
design by overlap extension PCR. There are a number of parameters controlling
how ideal the primers have to be, and you can play with them to get more or
fewer results.
I ended up not using this script in favor ... | [
"kale@thekunderts.net"
] | kale@thekunderts.net |
a0feaf8c56a52a21c80539eab8e8ed88e51eac94 | 781e2692049e87a4256320c76e82a19be257a05d | /intervention/results/control_111904_1447993241_112_7.5.py | 845005cad1ed0885c10843c1b9b9886bcb1ed4e3 | [] | 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 | 178 | py | def num_common_letters(goal_word, guess):
common = []
for char in list(guess):
if char in list(goal_word) and char not in common:
common += [char]
return len(common) | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
e6baa85e72a32507593f58f59909889a6f6d0876 | a4009f6d6f5379ddd9e948c3083c92fe8f1be259 | /tutorial/schema_design.py | fa4df3ae574cba3890816db3e74c5da08d33f0f7 | [
"MIT"
] | permissive | MacHu-GWU/learn_whoosh-project | 44a3b66a81b5a4686f48fa72b2e02538cfd2616e | 3ffff3b2084d2bb0bd17f38be322f75fa14986b5 | refs/heads/master | 2018-12-21T09:41:36.829399 | 2018-09-30T03:03:25 | 2018-09-30T03:03:25 | 26,701,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,667 | py | ##encoding=utf8
"""
Field说明 = http://pythonhosted.org//Whoosh/api/fields.html
stored – Whether the value of this field is stored with the document.
unique – Whether the value of this field is unique per-document.
"""
from __future__ import print_function, unicode_literals
from whoosh.index import create_in
from whoo... | [
"husanhe@gmail.com"
] | husanhe@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.