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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2ba56d300f998d10473103a90bf6e35b36c49fec | a37b756e34fc39c1237fc68997dbef77df9fa6fc | /keras/keras56-61/keras59_3_save_npy.py | 610895f0e6684a04202781a5817cb6ccdfb0c08d | [] | no_license | jvd2n/ai-study | e20e38493ad295940a3201fc0cc8061ca9052607 | a82f7c6d89db532f881c76b553b5ab3eea0bdd59 | refs/heads/main | 2023-08-06T03:24:39.182686 | 2021-10-06T14:41:01 | 2021-10-06T14:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | import numpy as np
from tensorflow.keras.preprocessing.image import ImageDataGenerator
train_datagen = ImageDataGenerator(
rescale=1./255,
horizontal_flip=True,
vertical_flip=True,
width_shift_range=0.1,
height_shift_range=0.1,
rotation_range=5,
zoom_range=1.2,
shear_range=0.7,
fill... | [
"juhnmayer@gmail.com"
] | juhnmayer@gmail.com |
8ba2cbaceeb6ecd1f79a0aaa8ad6322d5c9d3954 | c489a910d1533f0e03a86f3cc483fdba352dc481 | /tests/platform_tests/cli/test_show_chassis_module.py | a16ca7d6baf021ba84013997b905255f0fcb61c9 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | chenkelly/sonic-mgmt | 1b6dab6e34dac2ac8cb475c4ded1329e53ad31d4 | 7bf848d84af017b0275f75c3a383b6fc63f0ab43 | refs/heads/master | 2023-03-08T11:14:22.071818 | 2023-03-02T02:26:05 | 2023-03-02T02:26:05 | 212,235,644 | 0 | 1 | NOASSERTION | 2019-10-02T01:53:59 | 2019-10-02T01:53:58 | null | UTF-8 | Python | false | false | 3,664 | py | import logging
import pytest
from tests.common.helpers.assertions import pytest_assert
from util import get_field_range, get_fields, get_skip_mod_list
logger = logging.getLogger('__name__')
pytestmark = [
pytest.mark.topology('t2')
]
CMD_SHOW_CHASSIS_MODULE = "show chassis modules"
def parse_chassis_module(out... | [
"noreply@github.com"
] | chenkelly.noreply@github.com |
3b8dab3caf5ea5bc26f73ce0a695743fc54d1ebd | 697af415566ba649502bd18751a6521ac526892c | /2022_VERSIONS/rename_er2_hiwrap_ratio_files_with_dates.py | 103b3076f5e91476a83cc6f59c7e187709d01c5d | [] | no_license | srbrodzik/impacts-scripts | df44c8f34746499b8397b5b1a4ad09859b4cc8d4 | 263c7545bbb912bbcea563a21d0619e5112b1788 | refs/heads/master | 2023-05-31T05:01:09.558641 | 2023-05-22T23:24:52 | 2023-05-22T23:24:52 | 215,638,568 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | #!/usr/bin/python3
import os
import sys
import shutil
from datetime import datetime
from datetime import timedelta
import datetime as dt
import pytz
if len(sys.argv) != 2:
#print('Usage: sys.argv[0] [YYYYMMDD]')
print('Usage: {} [YYYYMMDD]'.format(sys.argv[0]))
sys.exit()
else:
date = sys.argv[1]
ind... | [
"brodzik@uw.edu"
] | brodzik@uw.edu |
85cd6a7fc3fd30414c7549565e1cf56245d15e74 | 29841982e9d3a70d24faa6bed2397d07419fb409 | /aula_5/dashboard/routes/auth.py | 572c567ffdc274cd6a81933ea061133c5086aa66 | [] | no_license | HiroEu/python-521 | 40d6950b19b6c5a9850177739b3e72be0c0e0ae7 | d279cb5dac771e11681cdfa91bfe363a2fbaa356 | refs/heads/master | 2022-02-24T15:43:49.085686 | 2022-02-08T19:08:58 | 2022-02-08T19:08:58 | 202,603,500 | 0 | 0 | null | 2021-06-02T00:20:44 | 2019-08-15T19:58:07 | Python | UTF-8 | Python | false | false | 1,593 | py |
import flask
import ldap3
import logging
blueprint = flask.Blueprint('auth', __name__)
@blueprint.route('/sign-in', methods=[ 'GET', 'POST' ])
def sign_in():
context = {
'title': 'Python | Sysadmin',
}
EMAIL = 'admin@admin'
PASSWORD = 'admin'
if flask.request.method == 'POST':
... | [
"leonardo.mendes@4linux.com.br"
] | leonardo.mendes@4linux.com.br |
5078f94c2f41d96ba025aa001d430690b98d6220 | 840415d8cfd668d408d3191056a01db62ee87e59 | /platformio/commands/debug/helpers.py | 657e8c48ea1caa6ebfdc73611019d196a00bdfeb | [
"Apache-2.0"
] | permissive | MyTeam888/platformio-core | a1a397e38ecca5a0b61f39dcfb4273c74a4e1b35 | 65297c24d4ffbc5713a7303b6a38a4cbc7f290e7 | refs/heads/master | 2022-12-13T12:30:40.667596 | 2020-09-10T14:46:56 | 2020-09-10T14:46:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,416 | py | # Copyright (c) 2014-present PlatformIO <contact@platformio.org>
#
# 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... | [
"me@ikravets.com"
] | me@ikravets.com |
3e5f56f3436373330a569dad1bb1f6b35fe1cfe8 | 3d613577d8e5a0b8f128666047043ac672f975af | /market/admin.py | 89dcecee2190326fd074e1a813638735e613a34f | [] | no_license | danimaribeiro/bitcoin_market | 8431773795114706bf482d3b7961ef7e527ead5e | 6d9256059ed7f35a8a412cb78d3a71a7498d90f9 | refs/heads/master | 2016-09-05T12:13:17.741558 | 2014-02-18T13:03:29 | 2014-02-18T13:03:29 | 16,620,172 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | from django.contrib import admin
from django.contrib.admin import DateFieldListFilter
from django.contrib.auth.models import User
# Register your models here.
from market.models import Order, Trade, Market, MarketConfiguration, Settings
class TradeAdmin(admin.ModelAdmin):
fields = ['tid', 'date', 'amount', 'pric... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
fb95b5674453874d8218e5070d12976ce7cde15a | c369443df5ff98eccc0eee7f63bb8947f2943605 | /shop/admin.py | 950e8733d62ba6d0df356ee67145a865be1b988e | [] | no_license | erllan/shop-test | d2934f484b25d141a60caa5aca31a61eec48f055 | 1f77de177192ce6a1f8c5ccf1d7ca93ec026acf5 | refs/heads/master | 2023-03-06T01:04:38.785383 | 2021-02-27T18:02:07 | 2021-02-27T18:02:07 | 341,929,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from django.contrib import admin
from .models import *
admin.site.register(User)
admin.site.register(Product)
admin.site.register(Category)
| [
"erlan.kubanychbekov.000@gmail.com"
] | erlan.kubanychbekov.000@gmail.com |
1e082c416f419960cc8822abb7b30e306623c4e7 | 0e7aed5eef2e1d132a7e75dd8f439ae76c87639c | /python/523_Continuous_Subarray_Sum.py | 1c395d7edb3f718bfdf9111d3fd63749240be388 | [
"MIT"
] | permissive | liaison/LeetCode | 2a93df3b3ca46b34f922acdbc612a3bba2d34307 | bf03743a3676ca9a8c107f92cf3858b6887d0308 | refs/heads/master | 2022-09-05T15:04:19.661298 | 2022-08-19T19:29:19 | 2022-08-19T19:29:19 | 52,914,957 | 17 | 4 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | class Solution:
def checkSubarraySum(self, nums: List[int], k: int) -> bool:
# the earliest index with the same module remaider of k
prefix_sum_indices = {}
# a virtual prefix sum index.
# for the test case of [0, 0] k = 0
prefix_sum = 0
prefix_sum_indi... | [
"lisong.guo@me.com"
] | lisong.guo@me.com |
44baddc4298db9a76065f76381120299048faae9 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-baas/aliyunsdkbaas/request/v20180731/DescribeBlockchainInfoRequest.py | 916c4becfd7dd1214ee5a70eab17421fd385f744 | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
7bd4c978ab4d3fea367ef7e57e7109b7f73253c8 | 5cb9dccbcccb8a2137368dd0615fe3e3c7761707 | /simulations/kinova/build/moveit_ros_control_interface/catkin_generated/pkg.installspace.context.pc.py | 40c68e29ded735aa8a303a0fd6910cc281b2e6ca | [] | no_license | Simon-Steinmann/sim2real-modular-RL-project | b2467a393014e106043f6128a026f5eac934a83d | 4027590ac94de2d5c914731c09efcf2f318b9ca3 | refs/heads/master | 2020-07-29T01:30:56.450919 | 2019-10-12T09:33:00 | 2019-10-12T09:33:00 | 209,605,548 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/acis/sim2real/simulations/kinova/install/include;/usr/include".split(';') if "/home/acis/sim2real/simulations/kinova/install/include;/usr/include" != "" else []
PROJECT_CATKIN_DEPENDS = "moveit_c... | [
"simon.steinmann91@gmail.com"
] | simon.steinmann91@gmail.com |
e3405de232c07e7515801124b11d7fee65e18b3f | 76af281542524f4bb2c80f928b6b5f0786ca1557 | /code kata/hunterbcs.py | c05f27f4aa57fea8b70cbd59253c6abba2faf7c4 | [] | no_license | sharmishah/guvi | 1b910042f101265c7628724f994eca1c23c0f59d | 51d854e38c2013799b24af43501bc8190b150897 | refs/heads/master | 2021-07-02T04:20:03.629762 | 2021-06-28T03:08:10 | 2021-06-28T03:08:10 | 191,355,062 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | class Node:
def __init__(self,d):
self.ddata=d
self.left=None
self.right=None
def insert(root,ins):
if ins.ddata>root.ddata and root.right!=None:
insert(root.right,ins)
elif ins.ddata<=root.ddata and root.left!=None:
insert(root.left,ins)
if ins.ddata>root.ddata ... | [
"noreply@github.com"
] | sharmishah.noreply@github.com |
0ee27ac5c2bab74b50ad2464577cd9e7a785b147 | 2eef8688d9f928de1c9fa4de4a045fa0dae97eaa | /authentication/urls.py | a1547debf84ea68191354dcc0eae804b158ddae7 | [] | no_license | teefats/GlotiExpenses | 3a98096642ef6df9008489c5db8c822703e43ab7 | 12aa1c9a37c5cf0148a7f55b114402a3044f4e60 | refs/heads/master | 2023-06-22T13:42:37.362537 | 2021-07-26T19:06:31 | 2021-07-26T19:06:31 | 389,741,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from .views import RegistrationView,LoginView
from django.urls import path
urlpatterns = [
path('register', RegistrationView.as_view(), name='register'),
path('login', LoginView.as_view(), name='login')
] | [
"tee_fats@yahoo.com"
] | tee_fats@yahoo.com |
1aa13187b581668799052bae234fe73c77b9b0d3 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /JEt4kwPtY6CGPsT9t_6.py | 184ee79d9dfae190511e21dc5f73d8aed48cb2d4 | [] | 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 | 954 | py | """
Create a function that takes a mathematical expression as a string, list of
numbers on which the mathematical expression is to be calculated and return
the result as a list of string.
### Examples
mathematical("f(y)=y+1",[1,2]) ➞ ["f(1)=2","f(2)=3"]
mathematical("f(y)=y^2",[1,2,3]) ➞ ["f(1)=1","f(... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b420a3ada2d2d1084035ded8fedf94fab11c7246 | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/test/python/c6ac49828b465d81fdafb56e8a05c0177a7ec6c2HelloZigguratApiView.py | c6ac49828b465d81fdafb56e8a05c0177a7ec6c2 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 786 | py | # HelloZigguratApiView.py
# (C)2013
# Scott Ernst
from ziggurat.view.api.ApiRouterView import ApiRouterView
#___________________________________________________________________________________________________ HelloZigguratApiView
class HelloZigguratApiView(ApiRouterView):
"""A class for..."""
#==================... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
4756f1ab9f395d38c2dc002023bc87b08d00c0ce | fffda6e06cb979e83db15e9142db7c9994400e2f | /language/bert_extraction/steal_bert_qa/utils/evaluate_squad.py | ea9eef5d7871c98ee1bf95b0138c2334ed1dfee8 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | ZachT1711/language | b48e551555a41bf269cc20f22871a9e4c47aacc9 | de84080fc8a239a7271aad1d447fcb38a895790b | refs/heads/master | 2023-01-05T21:36:59.194404 | 2020-04-14T17:19:25 | 2020-04-14T17:30:20 | 250,185,870 | 1 | 0 | Apache-2.0 | 2022-12-23T20:28:38 | 2020-03-26T07:09:01 | Python | UTF-8 | Python | false | false | 6,410 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | [
"kentonl@google.com"
] | kentonl@google.com |
d4cd42d3ae31fd16daad07315d0e65f6e0c9b818 | bf73ff4441577074dee2225ac937fbbbf4e85fef | /pplbench/ppls/jags/inference.py | a09062be1785a08b5530f7b00494eb586446b37a | [
"MIT"
] | permissive | rambam613/pplbench | 632878a359945fe64cf24489aa7669040727c672 | d69c652fc882ba50f56eb0cfaa3097d3ede295f9 | refs/heads/master | 2023-07-07T02:16:19.384357 | 2021-08-13T08:01:55 | 2021-08-13T08:03:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,413 | py | # Copyright(C) Facebook, Inc. and its affiliates. All Rights Reserved.
from typing import Dict, Type, cast
import numpy as np
import pyjags
import xarray as xr
from ..base_ppl_impl import BasePPLImplementation
from ..base_ppl_inference import BasePPLInference
from .base_jags_impl import BaseJagsImplementation
class... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
1126769601d5e7319ee39abc278621ac96e499fd | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startCirq357.py | 5a0f49a2276e3598ae1db658dd2b3b7f1d4f5362 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,236 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=3
# total number=64
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
aeddc1d7fbf8ea26f225c60088dd41b3447c6fbe | e00186e71a1f52b394315a0cbc27162254cfffb9 | /durga/full_durga/without_restm2/without_restm2/asgi.py | 40491539a6ce4db3dc21ec67f0020d7ead8ce036 | [] | no_license | anilkumar0470/git_practice | cf132eb7970c40d0d032520d43e6d4a1aca90742 | 588e7f654f158e974f9893e5018d3367a0d88eeb | refs/heads/master | 2023-04-27T04:50:14.688534 | 2023-04-22T05:54:21 | 2023-04-22T05:54:21 | 100,364,712 | 0 | 1 | null | 2021-12-08T19:44:58 | 2017-08-15T10:02:33 | Python | UTF-8 | Python | false | false | 405 | py | """
ASGI config for without_restm2 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('DJANG... | [
"anilkumar.0466@gmail.com"
] | anilkumar.0466@gmail.com |
40d5a9ec148e9f1f27701264107fbae72bb213c7 | 025b1a25eedf5b03d091f683b0bd07c20eac953d | /telethon_generator/tl_generator.py | f0a14fbc1571f1f511c55a284b6179c304b792c3 | [
"MIT"
] | permissive | phuonglm/Telethon | 64a97259afbf3a9cb09683094f6d8f0b3f1145c1 | 1f1e040af972e6948538d47fab5563303c2243eb | refs/heads/master | 2021-05-08T01:43:42.736010 | 2017-10-22T11:57:02 | 2017-10-22T11:57:02 | 107,896,646 | 0 | 0 | null | 2017-10-22T19:36:14 | 2017-10-22T19:36:14 | null | UTF-8 | Python | false | false | 27,624 | py | import os
import re
import shutil
import struct
from zlib import crc32
from collections import defaultdict
from .parser import SourceBuilder, TLParser, TLObject
AUTO_GEN_NOTICE = \
'"""File generated by TLObjects\' generator. All changes will be ERASED"""'
class TLGenerator:
def __init__(self, output_dir):
... | [
"totufals@hotmail.com"
] | totufals@hotmail.com |
8def5ea4fa1b536a7d27e5ee746a0d7eef26180f | 17a655d21d7ddaf8cf60e23055e107cb602bd9bc | /project/bookmarker/migrations/0001_initial.py | 7739e40db601749d17b8b704a596aa005e8e6a15 | [] | no_license | geofferyj/YouTubeVideoBookmarker | fedb6913a8c5118c0a51f011244233630cf6f58c | fbf10230c5184cd1479dddafbcfd3609d5ac98f1 | refs/heads/master | 2023-08-04T22:30:37.636957 | 2021-03-01T08:09:46 | 2021-03-01T08:09:46 | 278,203,783 | 0 | 0 | null | 2021-09-22T19:46:09 | 2020-07-08T22:05:00 | JavaScript | UTF-8 | Python | false | false | 4,185 | py | # Generated by Django 3.0.8 on 2020-08-09 19:13
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"geofferyjoseph1@gmail.com"
] | geofferyjoseph1@gmail.com |
6bc8cd61d8967b5a2a2913543f445ebafb4b8904 | 4237d975945a3e8fc427bc2aca6c4df80b668d62 | /Functions/calc/02-Calc.py | bd7491222cfc5a00386914d235508ca25ac8c16b | [] | no_license | ravi4all/Python_JuneMorningRegular | 36af0302af382b1a94cc9efc6af2fa1a099565fa | 5bd36a4be7579e65fbc862521c01042ca841e3cd | refs/heads/master | 2020-03-20T04:10:32.641007 | 2018-07-03T06:38:41 | 2018-07-03T06:38:41 | 137,173,202 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | def add(x,y):
result = x + y
print("Addition is",result)
def sub(x,y):
result = x - y
print("Subtraction is", result)
def mul(x,y):
result = x * y
print("Multiplication is", result)
def div(x,y):
result = x / y
print("Division is", result)
print("""
1. Add
2. Sub
3... | [
"noreply@github.com"
] | ravi4all.noreply@github.com |
f09937e2a6f27c882a55d618d69bc747f10d2e4c | 11bcf60200aaf63704191205d27b52442a08212b | /demo/test_brower.py | 9deee2f98d69b84e498458899d9c8ffe08a66867 | [] | no_license | Timothyea/uri_pycharm | bf893748cd32a045cbaec34dae3f8dfa3a2605ff | a1dbe860ba3bcce460da4dd87ec9aebc43cf3499 | refs/heads/master | 2020-09-09T08:47:31.943627 | 2019-11-14T10:04:07 | 2019-11-14T10:04:07 | 221,404,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | #!/user/bin/env python
# -*- conding:utf-8 -*-
from time import sleep
from selenium import webdriver
# 打开游览器
def test_brower(driver):
driver.get("http://www.baidu.com")
sleep(1)
driver.get("http://www.jd.com")
sleep(1)
driver.back()
sleep(1)
driver.forward()
sleep(1)
driver.refr... | [
"you@example.com"
] | you@example.com |
5094b9b691ae257e044c3742035823ecc3da2227 | 28ef7c65a5cb1291916c768a0c2468a91770bc12 | /configs/body/2d_kpt_sview_rgb_img/topdown_heatmap/crowdpose/res152_crowdpose_384x288.py | 44a5db23c7771256902673f3b8449cd9471b3de7 | [
"Apache-2.0"
] | permissive | bit-scientist/mmpose | 57464aae1ca87faf5a4669991ae1ea4347e41900 | 9671a12caf63ae5d15a9bebc66a9a2e7a3ce617e | refs/heads/master | 2023-08-03T17:18:27.413286 | 2021-09-29T03:48:37 | 2021-09-29T03:48:37 | 411,549,076 | 0 | 0 | Apache-2.0 | 2021-09-29T06:01:27 | 2021-09-29T06:01:26 | null | UTF-8 | Python | false | false | 4,087 | py | _base_ = ['../../../../_base_/datasets/crowdpose.py']
log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=10)
evaluation = dict(interval=10, metric='mAP')
optimizer = dict(
type='Adam',
lr=5e-4,
)
optimizer_config... | [
"noreply@github.com"
] | bit-scientist.noreply@github.com |
f4937a200488f1a80a92b5d267bdd363eb26490d | 5aec9b30005a8a5cc39da3c46ce65aa3e6710cfe | /tools/delete_queues.py | d499f5f82945a5b4422e2f65b1c1c2283cca3a81 | [
"MIT"
] | permissive | cloudworkstation/cloudworkstation-api | 90d0726e712cd403fdbcd7c2b39ec9f1ee1890ad | 661500aaaa304db13e99d8365428520c2c77f5dd | refs/heads/main | 2023-04-13T07:54:47.717843 | 2021-04-09T20:09:57 | 2021-04-09T20:09:57 | 338,401,801 | 0 | 0 | null | 2021-04-06T09:05:39 | 2021-02-12T18:35:52 | Python | UTF-8 | Python | false | false | 393 | py | import boto3
sqs = boto3.client("sqs")
def find_and_remove():
response = sqs.list_queues(
QueueNamePrefix="ec2_",
MaxResults=100
)
if "QueueUrls" in response:
for qurl in response["QueueUrls"]:
print(f"Going to delete queue @ {qurl} ...")
sqs.delete_queue(
QueueUrl=qurl
)
... | [
"richard.kendall@gmail.com"
] | richard.kendall@gmail.com |
a0bf6e814b457e88e091de90c86fc61a779dc2b4 | ff4ca069f16041fd49f7c87216b9fdb5c0a5f658 | /UITest/Android/DxYcUiTest/Scripts/Clue/ClueCommentJumpTest.py | f6c06ce66942e809729d9f6555dc04e9073ee951 | [] | no_license | ban666/UITestForDx | cbaf86cca957d40151ae28e2dc81a3016cf778d4 | 5a3ccdc68651e648e7c838fc58b5a9d052a19f6b | refs/heads/master | 2021-01-12T01:36:06.206477 | 2017-02-17T09:09:27 | 2017-02-17T09:09:36 | 78,408,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,137 | py | # -*- coding: utf-8 -*-
__author__ = 'liaoben'
import sys
from appium import webdriver
from time import sleep
import unittest
from random import randint
sys.path.append('../../Lib')
import time
import os
from appium_lib import *
from dx_action import *
from ui_comment import *
from ChnlRequest import ChnlRequest
from ... | [
"ban666@qq.com"
] | ban666@qq.com |
677a627128ff0a1f1a70ef8820e3a44a8fcb4eb8 | 0c8e4931426819fbd631fccca93b0159c55c8b9d | /backend/manage.py | e3f233fb08b1de2ea65130d9fba875f0ab26ace7 | [
"Apache-2.0"
] | permissive | franklingu/dota2_explorer | c750d144e19239b1aa0d8ad8c47e781312fcfc05 | d5c0cd03b77bb4158084f4f81cfc8073977e13a8 | refs/heads/master | 2020-03-22T09:08:40.338681 | 2018-07-12T03:53:34 | 2018-07-12T03:53:34 | 139,818,331 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dota2site.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Ar... | [
"franklingujunchao@gmail.com"
] | franklingujunchao@gmail.com |
aca85ae0f0ade02fa6312a6c4f8e8e7885adb341 | 2a9b3bf8758c1199305a01c524be78b7287335b8 | /plugins/ga/bidsaspx/riverdale.py | 2693f804d7cf9e493c147f0583e28a7f4e6ca6c5 | [] | no_license | thayton/bidmap | e222f34701c15d4694f1f51999ecc9d894abfe41 | de279cd64f66c79b253b38101c8ccdf748e540ac | refs/heads/master | 2021-01-21T17:03:14.317309 | 2014-09-26T18:27:45 | 2014-09-26T18:27:45 | 17,402,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from bidmap.bidscrapers.bidsaspx.bidsaspx import BidsAspxBidScraper
GOVINFO = {
'name': 'Riverdale Georgia',
'location': 'Riverdale, GA',
'home_page_url': 'http://ga-riverdale2.civicplus.com',
'bids_page_url': 'http://ga-riverdale2.civicplus.com/bids.aspx'
}
def get_scraper():
return BidsAspxBidS... | [
"thayton@neekanee.com"
] | thayton@neekanee.com |
33fa998b0134c61d8a91afe8f58eb57cf3ac5284 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_Class421.py | 0402b6f229c87df1eed51ed312ab0549e1260aab | [
"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 | 5,399 | py | # qubit number=3
# total number=74
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
dd79604e064e324c9050e70571fb46da441ef806 | c91775afdc25f8897c6839cf8294869f3e928083 | /PythonFiles/snowmass_cfg_TTBAR_14TEV_1100_1700_Conf3_14.py | 975b02de9db2d2cd0ffe7c63cb30d2b858426578 | [] | no_license | Saptaparna/Miscellaneous | 7e6df9cdfd10d4861e2e382b1837dbd4c26fb249 | b954189d85e56a02fe257b5f5cbd779365719c00 | refs/heads/master | 2021-01-23T13:29:30.283308 | 2017-12-20T08:26:37 | 2017-12-20T08:26:37 | 42,525,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,287 | py | import FWCore.ParameterSet.Config as cms
import FWCore.PythonUtilities.LumiList as LumiList
import FWCore.ParameterSet.Types as CfgTypes
#
# Parameters that can be set via command line
# when submitting Condor jobs
#
isMc_settable = True
isSignalMc_settable = False
def FindFile(name):
fname = 'file.tx... | [
"saptaparna@gmail.com"
] | saptaparna@gmail.com |
929f9c62dc239284ea660a83c74694b12e148494 | 2aba62d66c2c622bdc148cef451da76cae5fd76c | /exercise/crawler_python_dm1920/ch4/ch4_19.py | 5dc74250957efd13c6fc8b6557fdcafa5be35fb0 | [] | no_license | NTUT-109AB8011/crawler | 6a76de2ab1848ebc8365e071e76c08ca7348be62 | a703ec741b48d3af615a757fed7607b1f8eb66a6 | refs/heads/master | 2023-03-26T22:39:59.527175 | 2021-03-30T03:29:22 | 2021-03-30T03:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | # ch4_19.py
import pandas as pd
import matplotlib.pyplot as plt
cities = {'population':[10000000,8500000,8000000,15000000,6000000,8000000],
'area':[400, 500, 850, 300, 200, 320],
'town':['New York','Chicago','Bangkok','Tokyo',
'Singapore','HongKong']}
tw = pd.DataFrame(ci... | [
"terranandes@gmail.com"
] | terranandes@gmail.com |
ce4f926c0d9fd607823601ec9b413db31759d133 | 456433ac78b70cb8ae076ae166a85e349f181d7f | /systems/KURSSKLAD/KURSTERM/WORKPALLET/templates/U3S/palletFPCreate.py | 41b8299e8eda2772fe58df1b34a69b642eaebc48 | [] | no_license | shybkoi/WMS-Demo | 854c1679b121c68323445b60f3992959f922be8d | 2525559c4f56654acfbc21b41b3f5e40387b89e0 | refs/heads/master | 2021-01-23T01:51:20.074825 | 2017-03-23T11:51:18 | 2017-03-23T11:51:18 | 85,937,726 | 0 | 0 | null | null | null | null | WINDOWS-1251 | Python | false | false | 12,048 | py | #!/usr/bin/env python
# -*- coding: cp1251 -*-
##################################################
## DEPENDENCIES
import sys
import os
import os.path
from os.path import getmtime, exists
import time
import types
import __builtin__
from Cheetah.Version import MinCompatibleVersion as RequiredCheetahVersion
from Cheeta... | [
"s.shybkoi@gmail.com"
] | s.shybkoi@gmail.com |
a16fd3bc38021a1cbd05f2155ca066692604dadd | fb82ff30fba273eb4a30b5b2e1aceef6bd44ef16 | /labs/lab1/test_something.py | d8df569aa211c392b5b3c346276505cba1175110 | [
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | jpchauvel/python-tdd-lab | f882e7684f2793e70064fd45b09928b56a81521f | 2a2e0ee4da15e36e809cdded56cffb6e2b97d90f | refs/heads/master | 2021-10-10T12:11:53.765289 | 2013-05-31T00:30:20 | 2013-05-31T00:30:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,240 | py | #!/usr/bin/env python
import unittest
from mockito import *
from something import Something, Operand
class SomethingTestCase(unittest.TestCase):
def test_init_should_assign_what(self):
# setup
# action
something = Something("what")
# assert
self.assertTrue("what", somethin... | [
"jchauvel@gmail.com"
] | jchauvel@gmail.com |
d78ec5d375a61d39378e1c786f504671a0bcd4d4 | 954c493a9105a464bee744c6c78a6d06bf8d531c | /simfoni_task/urls.py | c513fe902a316543936fb9ae3266b67fefa3af6b | [] | no_license | sandeepsajan0/suppliers-api | d235bb1e1e632cbd12e4b39ffb73e6b4be9e22f1 | 5b911471a4e02954296cfd2151f96480052d4a70 | refs/heads/master | 2023-02-26T01:57:03.408628 | 2021-01-24T12:39:34 | 2021-01-24T12:39:34 | 332,411,678 | 0 | 0 | null | 2021-01-24T12:12:52 | 2021-01-24T09:38:56 | Python | UTF-8 | Python | false | false | 1,302 | py | """simfoni_task URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"sandeepsajan0@gmail.com"
] | sandeepsajan0@gmail.com |
ab9df98e59d1a7e7d0481a0ede26e8090d4cd311 | e3d6f803beece2ecc2cde8de795fdd20291213ff | /nova/api/openstack/compute/views/flavors.py | fcdd6fcf4ca4d94a039a3ee90651b0c5c0ac1266 | [
"Apache-2.0"
] | permissive | panguan737/nova | 437c1adb81f3e9ef82c28ad957144623db13ba52 | 0d177185a439baa228b42c948cab4e934d6ac7b8 | refs/heads/main | 2023-01-07T00:08:44.069599 | 2020-11-01T14:00:42 | 2020-11-01T14:00:42 | 309,332,719 | 0 | 0 | Apache-2.0 | 2020-11-02T10:17:13 | 2020-11-02T10:17:13 | null | UTF-8 | Python | false | false | 6,492 | py | # Copyright 2010-2011 OpenStack Foundation
# 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... | [
"147360410@qq.com"
] | 147360410@qq.com |
546d5f3d75b16204af7150c593a018202f289b72 | dc9b0ea6714c29651cfd8b494862f31f07d85f28 | /project13_Poem_application_v_1_1/venv/Scripts/easy_install-3.7-script.py | 3ffe0822b1c606782a31dc123f99a0e6002cc984 | [] | no_license | Papashanskiy/PythonProjects | c228269f0aef1677758cb6e2f1acdfa522da0a02 | cf999867befa7d8213b2b6675b723f2b9f392fd7 | refs/heads/master | 2022-12-12T15:23:56.234339 | 2019-02-10T09:14:56 | 2019-02-10T09:14:56 | 148,336,536 | 0 | 0 | null | 2022-12-08T03:01:04 | 2018-09-11T15:10:44 | Python | WINDOWS-1251 | Python | false | false | 505 | py | #!C:\Users\Игорь\Desktop\Python\PythonProjects\project13_Poem_application_v_1_1\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__'... | [
"apashanskiy@gmail.com"
] | apashanskiy@gmail.com |
7ef8f4ec72f930eb88693061e793ec74b5cc19a3 | 19666396c4d56f4dcd2790b6c8a6b18745767f90 | /task.py | cb5e139ed740c0339e517e50b0c4cff7b318fb27 | [] | no_license | himdhiman/taskpy | 5504b461f4ae161cfabc3f552752dd2641eabf6f | 2d343da545bb20b8c30c8d7d6bde83e241ca5493 | refs/heads/master | 2023-03-29T09:07:35.797755 | 2021-04-08T07:05:15 | 2021-04-08T07:05:15 | 355,798,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,680 | py | from celery import shared_task
from api import models, serializers
from rest_framework.response import Response
import os
from pathlib import Path
from api.models import Problem, Submission
from asgiref.sync import async_to_sync
from channels.layers import get_channel_layer
import json
from django.core import serialize... | [
"himanshudhiman9313@gmail.com"
] | himanshudhiman9313@gmail.com |
516fe6d919ac4f281d58d62191e17b1d1b0915db | 45f7a9b44ea1c45448703707da793d51151c0527 | /ui_tests/examples/examples_03.py | 6cbe239e09666abb076794312777347c51028740 | [] | no_license | basdijkstra/python-for-testers | a40d30432c31712c6d0eadbca9de73056ff10535 | 50bfbabfb2b8426eed8d048b0448959c34f71b61 | refs/heads/master | 2023-05-24T18:48:58.557924 | 2023-05-23T05:44:11 | 2023-05-23T05:44:11 | 219,865,075 | 7 | 4 | null | 2023-05-23T05:44:13 | 2019-11-05T22:47:09 | Python | UTF-8 | Python | false | false | 1,047 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
import pytest
@pytest.fixture
def browser():
driver = webdriver.Chrome()
driver.maximize_window()
yield driver... | [
"bas@ontestautomation.com"
] | bas@ontestautomation.com |
ec2cadeb66e67d4e79bc5fd3c5442916d74ec88b | fa0eac5b96fc46ebf8e31a7ccd7fa39f2e200bfc | /backend/home/migrations/0002_load_initial_data.py | 95b530a428d8a00e98272abc6771579b60ad009f | [] | no_license | crowdbotics-apps/mobile-7-dec-dev-16399 | be33b8eb17957c9b8a75b3d089114631f27b9109 | ab2cbc3e11dfbf709883b3cf49f4be109d779028 | refs/heads/master | 2023-06-27T20:39:09.405282 | 2020-12-07T11:38:48 | 2020-12-07T11:38:48 | 319,207,493 | 0 | 0 | null | 2021-08-03T20:05:57 | 2020-12-07T04:51:46 | JavaScript | UTF-8 | Python | false | false | 1,306 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "mobile 7 dec"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
644e40c6107325bbd5bc83d943dae5342e6840d2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_347/ch60_2020_06_20_17_50_00_812398.py | c56e6538b8f07b28a41785924f0cb42c34347010 | [] | 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 | 106 | py | def eh_palindromo(string):
if string == string[-1]:
return True
else:
return False | [
"you@example.com"
] | you@example.com |
6ff9ff95fefbaa276dd64e822f01857ee7a656b9 | 11aaeaeb55d587a950456fd1480063e1aed1d9e5 | /.history/ex45-test_20190608162053.py | ead3b46f62d91c9428c264a9f24afe6a0e5ba598 | [] | no_license | Gr4cchus/Learn-Python-3-The-Hard-Way | 8ce9e68f6a91ea33ea45fe64bfff82d65422c4a8 | f5fa34db16cdd6377faa7fcf45c70f94bb4aec0d | refs/heads/master | 2020-05-17T23:18:29.483160 | 2019-06-26T18:42:52 | 2019-06-26T18:42:52 | 184,023,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py |
class Room1():
def enter():
print("You enter room 1")
class Room2():
def enter():
print("You enter room 2")
class Map():
def __init__(self, starting_room)
self.starting_room = starting_room
self.locations = {
'room1': Room1(),
'room2': Roo... | [
"ahivent@gmail.com"
] | ahivent@gmail.com |
83d0a74593c54ec76d33cb5485a9903692decdc3 | 0de5810c702046d8f00c8bcda8543c66f608222f | /venv/bin/tor-prompt | d17b63310b066687ee943f2ad5db6d165708806a | [] | no_license | Subhash1998/product_sale | 26a688869009035e785791cac1fb2707cab1e221 | a76f9e75ea1d96832d9280b98da08d0b3c6520fe | refs/heads/master | 2022-12-12T12:13:37.392530 | 2020-06-18T12:46:45 | 2020-06-18T12:46:45 | 128,992,642 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | #!/home/subhash/payment/venv/bin/python
# Copyright 2014-2017, Damian Johnson and The Tor Project
# See LICENSE for licensing information
import stem.interpreter
if __name__ == '__main__':
stem.interpreter.main()
| [
"you@example.com"
] | you@example.com | |
c3182071b0e894204d18f4939e191f802569f245 | c1d68638ccff1d72dd04e4f85bedf5b3146d1c7e | /site-packages/PytoClasses.py | f61abae06651d5db273c0bf55b7b660deab90c81 | [
"MIT"
] | permissive | luoyu1993/Pyto | ac61f296756a0df9131e50a203cb31efd261b843 | 4f874e0b9203ae8dc0cd447b599358d726c98f10 | refs/heads/master | 2022-07-26T10:44:58.987630 | 2018-12-09T19:05:41 | 2018-12-09T19:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # -*- coding: utf-8 -*-
"""
This module contains classes from the main app used by Pyto.
This module is only for private use. Use the `pyto` API instead.
"""
from rubicon.objc import *
NSBundle = ObjCClass("NSBundle")
def __Class__(name):
return ObjCClass("Pyto."+name)
PyMainThread = __Class__("PyMainThread")
... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
57a0faa230f7260f44d5ae7dbf3ff16be5f6ad0f | 5b3bd326998606188b45a7870852643eda024a97 | /meta_architectures/context_rcnn_lib_tf2.py | 4989db07136dc450d1fa5058e58e27365b79dd29 | [] | no_license | KuznetsovIllya/clearml_od_toy | 31556d0726d15a054c1c18317c361d97801381a4 | 92f15f04a023d4e0e165a250fddc3129144913d0 | refs/heads/main | 2023-04-11T05:55:56.248478 | 2021-04-14T15:59:40 | 2021-04-14T15:59:40 | 357,827,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:2ba0224b6fe0f919228a83b2f2a2bef6bbff4e7f747358231bdc235456d58197
size 9287
| [
"illia.kuznietsov@modern-expo.com"
] | illia.kuznietsov@modern-expo.com |
d62122698bcb4a6081b643082fd8fb9a2df8278c | 7b6377050fba4d30f00e9fb5d56dfacb22d388e1 | /pqu/Check/t07.py | e3c5cacee7c2ca293bce9a269a6a1976e4be1703 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/fudge | 0a4fe8e3a68b66d58e42d1f4d209ea3f713c6370 | 6ba80855ae47cb32c37f635d065b228fadb03412 | refs/heads/master | 2023-08-16T21:05:31.111098 | 2023-08-01T22:09:32 | 2023-08-01T22:09:32 | 203,678,373 | 21 | 4 | NOASSERTION | 2023-06-28T20:51:02 | 2019-08-21T23:22:20 | Python | UTF-8 | Python | false | false | 972 | py | # <<BEGIN-copyright>>
# Copyright 2022, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# <<END-copyright>>
import sys
sys.path.insert( 0, '../../' )
from pqu.PQU import PQU
print()
a2 = PQU( "2.300000000000(1) MeV" )
print(a2)
pri... | [
"mattoon1@llnl.gov"
] | mattoon1@llnl.gov |
6f6d4de96ca0a1c2543a30b808a0d01e7cebf842 | 7b0f8e5e3dd02f47096bc35322063c7581f95aca | /chapter12/avazu_ctr/future_selection.py | 51daffbfe3d66f4915cfa3d050b08282ce2e8a3f | [] | no_license | michaelliu03/Search-Recommend-InAction | 94f8342573fffa0016bc6b66b0100a81423e5438 | 06408c9a4ec23aad0e604267903be96cb2892ea1 | refs/heads/master | 2022-02-25T21:57:56.445082 | 2022-02-17T10:45:15 | 2022-02-17T10:45:15 | 226,252,089 | 40 | 17 | null | 2022-01-10T09:53:50 | 2019-12-06T05:24:50 | Python | UTF-8 | Python | false | false | 3,906 | py | #!/usr/bin/env python
#-*-coding:utf-8-*-
# @File:future_selection.py
# @Author: Michael.liu
# @Date:2020/6/4 17:49
# @Desc: this code is ....
import pandas as pd
import numpy as np
import xgboost as xgb
from xgboost.sklearn import XGBClassifier
from sklearn.metrics import accuracy_score
from sklearn.metrics import roc... | [
"liuyu5@liepin.com"
] | liuyu5@liepin.com |
325ef11b155fbaa8e4e993bad295a14bd10f0da1 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2698/60825/298860.py | fabee180d1ca0e439e1ce0a2a785aa0d0d867e9a | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | t=""
while True:
try:
ts=input()
t+=ts
except:
break
if t=='2 2':
print(3, end='')
elif t=='3 5':
print(58871587162270592645034001, end='')
elif t=='2 3':
print(21, end='')
elif t.startswith('2 4'):
print(651, end='')
elif t.startswith('4 3'):
print(83505, en... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
583f053a5f5f31217decbeaed149f301f2056bf9 | b92adbd59161b701be466b3dbeab34e2b2aaf488 | /.c9/metadata/environment/database_submissions/dup_query.py | 537917265b85ff92fabc4fa0426f9e0112175932 | [] | no_license | R151865/cloud_9_files | 7486fede7af4db4572f1b8033990a0f07f8749e8 | a468c44e9aee4a37dea3c8c9188c6c06e91cc0c4 | refs/heads/master | 2022-11-22T10:45:39.439033 | 2020-07-23T09:31:52 | 2020-07-23T09:31:52 | 281,904,416 | 0 | 1 | null | 2022-11-20T00:47:10 | 2020-07-23T09:08:48 | Python | UTF-8 | Python | false | false | 24,298 | py | {"filter":false,"title":"dup_query.py","tooltip":"/database_submissions/dup_query.py","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":81,"column":58},"end":{"row":81,"column":59},"action":"insert","lines":["="],"id":1827},{"start":{"row":81,"column":59},"end":{"row":81,"column":60},"action":"insert",... | [
"r151865@rguktrkv.ac.in"
] | r151865@rguktrkv.ac.in |
f769efd583a1443d13ef6822ba32e7143583ca0e | e909e9bb4b2e54bb64d6bee9cf9fbaf14c584e04 | /malib/rpc/data/data_client.py | 9f234eee232e8402b6f1b1d21719a6bc1572db22 | [
"MIT"
] | permissive | zhihaolyu/malib | 9cd8fdcdc1c613c11fc1e6f385adac5312474509 | 1c7ca1819325796a6ec604aa1ae8c771708fc50c | refs/heads/main | 2023-05-13T03:41:05.211832 | 2021-06-08T04:35:10 | 2021-06-08T04:35:10 | 374,880,657 | 0 | 0 | MIT | 2021-06-08T04:29:26 | 2021-06-08T04:29:25 | null | UTF-8 | Python | false | false | 385 | py | import grpc
import sys
sys.path.append("..")
from ..proto import data_pb2_grpc, data_pb2
def send(server_port, **kargs):
with grpc.insecure_channel(server_port) as channel:
stub = data_pb2_grpc.DataRPCStub(channel)
pr = data_pb2.PullRequest(
type=kargs["tid"], schema_id=kargs["sid"],... | [
"kornbergfresnel@outlook.com"
] | kornbergfresnel@outlook.com |
d5e9da7158d1d9e5da3315f240ce40a568384534 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/13114025.py | 94da046c51675f492cbb850c1728133a7ed747e7 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/13114025.py generated: Wed, 25 Jan 2017 15:25:30
#
# Event Type: 13114025
#
# ASCII decay Descriptor: [B_s0 -> (phi(1020) -> mu+ mu-) mu+ mu-]cc
#
from Configurables import Generation
Generation().EventType = 13114025
Generation().SampleGenerationTool ... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
2e32069c83261894997d74d96a146dafe51ebab7 | 4a89841fa3a73a6826d47d1e66f965759335118b | /askbot-devel-master/askbot/management/commands/send_unanswered_question_reminders.py | 42ce51196170a8a2bd64d75309e60f36b0ad5fb4 | [] | no_license | liyonghelpme/askbotDataWriter | 38e2515712a8a6f9db45ce69ba21d36fd1e2dcc9 | f88d343f8fd699b2d55b94d6dff4edda8e352301 | refs/heads/master | 2021-01-22T10:08:01.173519 | 2013-07-19T07:12:35 | 2013-07-19T07:12:35 | 11,522,328 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,901 | py | from django.core.management.base import NoArgsCommand
from django.template.loader import get_template
from askbot import models
from askbot import const
from askbot.conf import settings as askbot_settings
from django.utils.translation import ungettext
from askbot import mail
from askbot.utils.classes import ReminderSch... | [
"liyonghelpme@gmail.com"
] | liyonghelpme@gmail.com |
95217192c353378d62e5bf472e9fe7efb3b4f83e | d4f9d104479b6f9a64175a3fe8554860bf0d62b2 | /popular_words.py | 77bfe82384de8cab45193f40caf3c730eae4076c | [] | no_license | pohily/checkio | 9a09c9c52b4f07438cfe4e00914e8d1cfe844c5d | 8a0a49126af6e09b9e5e6067f28efbf085cd87f6 | refs/heads/master | 2020-05-16T03:18:18.068186 | 2019-07-06T13:22:20 | 2019-07-06T13:22:20 | 182,674,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | def popular_words(text: str, words: list) -> dict:
# your code here
text = text.lower()
result = {}
for word in words:
text1 = text
count = 0
while text1:
if word not in text1:
break
found = text1.index(word)
if found != 0:
... | [
"mpohily@gmail.com"
] | mpohily@gmail.com |
8efe74872adef5632364a95d1cc58619fe6392aa | 9dded9364d7a5dd969c7ebb3026c884c8bd3053f | /AUDIOCATE/APP/migrations/0007_bookmar.py | 3f48ecfe06144f2fa60f1fab68e12ab87a7f095c | [] | no_license | ehizman/AUDIOCATE | 5a45828b3e1c6de16826e45195e68b8b0e08ab25 | edbd7677025d4a431240bf253966d11658e7652d | refs/heads/master | 2023-01-31T03:48:05.645443 | 2020-12-16T02:31:02 | 2020-12-16T02:31:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # Generated by Django 2.2.4 on 2020-12-14 01:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('APP', '0006_explore_date'),
]
operations = [
migrations.CreateModel(
name='Bookmar',
fields=[
('id',... | [
"chukslord1@gmail.com"
] | chukslord1@gmail.com |
aed9d8a521f0e1c53b73413d7f5f5d17712daaff | 478a4a0495fafc62000dc53cef749b87b7a9be55 | /virtual/bin/pip3 | 95352667bd7817eab73dd4a6da56bdc610064dcd | [] | no_license | DavidNganga/simple-error | 696a0f9e6482b38c5670b5d618120a9220b7fcaf | 351c5ace3c1487570d19ee0b5e0ade70d40f1b1c | refs/heads/master | 2020-03-18T23:38:56.974235 | 2018-06-03T15:30:48 | 2018-06-03T15:30:48 | 135,416,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | #!/home/david/simple-error/virtual/bin/python3.6
# -*- 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())
| [
"ngashiedavid@gmail.com"
] | ngashiedavid@gmail.com | |
6451035e29061d208fd1945893c984c0c86d26a1 | cc5a3fa80d2ae90afc2626e4a82b9a927726dfa0 | /huaweicloud-sdk-frs/huaweicloudsdkfrs/v2/model/add_faces_by_url_response.py | a0b5174b327a3d9e652b2d8df2e8c1d453bf59e8 | [
"Apache-2.0"
] | permissive | Logan118/huaweicloud-sdk-python-v3 | eca15e9b08bdccef7122e40735d444ddc958efa8 | bb230c03bd00225b9f5780a56adce596e9456420 | refs/heads/master | 2023-07-17T14:57:50.799564 | 2021-08-25T10:40:43 | 2021-08-25T10:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,991 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class AddFacesByUrlResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
48d3d2345ecb774006b7797e6dfb19ea0489873f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/147/28536/submittedfiles/swamee.py | 87c492832ea836815b97f42dfba4a884abe8852b | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO AQUI
g=9.81
epsilon=0.000005
f=float(input('digite valor de f:'))
L=float(input('digite valor de L:'))
Q=float(input('digite valor de Q:'))
deltaH=float(input('digite valor de deltaH:'))
v=float(input('digite valor de v:'))
d=((8*f*L*(Q**2))/((math.pi**2)*g*deltaH)... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0079ec1753397ec8e2d4db72f17762047e237974 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_113/ch20_2020_09_16_11_25_21_743333.py | 2edf4921f042e6256794183644e3ed17b47e767a | [] | 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 | 225 | py | dist = int(input('Qual a distancia de sua viajem?: '))
if dist <= 200:
preco = dist * 0.5
print(preco)
elif dist > 200:
dist -= 200
preco = dist * 0.45
preco += 100
print ('{0:.2f}'.format(preco))
| [
"you@example.com"
] | you@example.com |
33986ed30f53a19439cdd7d07c782a582f0d133e | 18d087b0fca0f80018861da6197e30d712fc248b | /S05/question_files/main.com.py | 9a975a8ffc12d8004a7b40ff9d66beceaed06180 | [] | no_license | pymft/mft-05 | 6a92f3e9e9e9568b602f0de8daae310e76646fac | dde1ff239163123494535ab1b4c3c86c4b01599f | refs/heads/master | 2020-06-03T21:56:12.289836 | 2019-08-29T13:52:02 | 2019-08-29T13:52:02 | 191,747,168 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | import glob
def path_to_root(dct, number):
parent = dct[number]
if parent == 0:
return [number]
return path_to_root(dct, parent) + [number]
def convert(parents):
children = {0: []}
for k in parents:
children[k] = []
for k in parents:
val = parents[k]
childre... | [
"naeini.v@gmail.com"
] | naeini.v@gmail.com |
7ebfec0556e46db57e2c4d1eca4d13ef6452d0ce | 005a6421cd6159fb6be8c61cc675654377e8f226 | /cairis/core/TemplateObstacleParameters.py | dd6ad8c3e8c2351b3464509195afd601d5e88470 | [
"Apache-2.0"
] | permissive | cairis-platform/cairis | d667bc91ba28f0b7cd4fc88e6528eb3339e4ee6f | 55abb93a9377664f5b03c027bad7ce3cf168c5ad | refs/heads/master | 2023-04-06T17:04:08.781186 | 2023-02-17T22:51:15 | 2023-02-17T22:51:15 | 3,790,944 | 105 | 36 | Apache-2.0 | 2022-03-19T15:04:14 | 2012-03-21T20:17:05 | Python | UTF-8 | Python | false | false | 1,712 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
e0cef3709184ba38a5b1c49088dd488ff94fe2d7 | 5a4436884af5341ce855c0e84866b972a0f61c05 | /day4/classes/student/13.py | 42d32a7eccc68bd225d21bb75b5d00847af1380c | [] | no_license | sreejithev/pythoncodes | 74a420c4f025b893e27f17ba85632a4a096f17fd | 70df14871a9687916d1c4ada76c055607f13e8ce | refs/heads/master | 2021-01-21T20:59:47.056167 | 2017-06-19T09:43:17 | 2017-06-19T09:43:17 | 92,292,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | class student:
def __init__(self, name, age, rank):
self.name = name
self.age = age
self.rank = rank
def __str__(self):
return 'name = %s, age = %d, rank = %d' % (self.name, self.age, self.rank)
def __lt__(self, other):
if self.rank > other.rank:
return True
else:
return False
student1 = student('J... | [
"sreejithevwyd@gmail.com"
] | sreejithevwyd@gmail.com |
071d6d5852eff59b3a1dc1dfe98706254fa481ae | 901944f407f4a06a4c4027d6139ce21165976857 | /RL4/rl_mar2018_99_stableversion_andimplicit/train4.py | 0e03a42afd50da8c62faf9a50b887d5278e716f9 | [] | no_license | chriscremer/Other_Code | a406da1d567d63bf6ef9fd5fbf0a8f177bc60b05 | 7b394fa87523803b3f4536b316df76cc44f8846e | refs/heads/master | 2021-01-17T02:34:56.215047 | 2020-05-26T13:59:05 | 2020-05-26T13:59:05 | 34,680,279 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 13,372 | py |
import os
from os.path import expanduser
home = expanduser("~")
import sys
for i in range(len(sys.path)):
if 'er/Documents' in sys.path[i]:
sys.path.remove(sys.path[i])#[i]
break
import copy
import glob
import os
import time
import gym
import numpy as np
import torch
import torch.nn as nn
impo... | [
"chris.a.cremer@gmail.com"
] | chris.a.cremer@gmail.com |
d251d96aa118620cf5b52cd71eb9e82cbb437e15 | 8a41a7f9340cfa784cb36d35dca1ecb1630e4097 | /Programming/Python/TestFrameworks/pytest_practice/test_pytest_requests.py | f15e998dc821c7bb5c3b6d0ca5291bb0d4f895cd | [] | no_license | anishst/Learn | 02e6b6cce43cf21621d328ef0fc25168267a9a3d | a1aed8b78b19acdb23e20be57b67fb242e0aefc5 | refs/heads/master | 2022-05-13T10:17:40.293640 | 2022-03-30T12:44:21 | 2022-03-30T12:44:21 | 173,595,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | # http://pythontesting.net/framework/pytest/pytest-fixtures-nuts-bolts/#scope
import pytest
@pytest.fixture()
def my_fixture(request):
print('\n-----------------')
print('fixturename : %s' % request.fixturename)
print('scope : %s' % request.scope)
print('function : %s' % request.function.__nam... | [
"sebastian_anish@bah.com"
] | sebastian_anish@bah.com |
14082e84e8cc42dec1bcbc028a0ce10087db4dd4 | 4d4fcde3efaa334f7aa56beabd2aa26fbcc43650 | /server/src/uds/migrations/0039_auto_20201111_1329.py | 4d48ca91318e70def9c7828155e6812d0e528f18 | [] | no_license | xezpeleta/openuds | a8b11cb34eb0ef7bb2da80f67586a81b2de229ef | 840a7a02bd7c9894e8863a8a50874cdfdbf30fcd | refs/heads/master | 2023-08-21T17:55:48.914631 | 2021-10-06T10:39:06 | 2021-10-06T10:39:06 | 414,489,331 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | # Generated by Django 3.1.2 on 2020-11-11 13:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('uds', '0038_auto_20200505_config'),
]
operations = [
migrations.RemoveField(
model_name='metapool',
name='accessCalendars',
... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
ac9cbff6616993fe2ea2f872485ef2cd05863776 | 419873dd3b7412f704b1a7907b64a60b44cedf39 | /python/树/1448. 统计二叉树中好节点的数目.py | 00d74027dba7eea0cc91e63759b58e33a3e74545 | [] | no_license | Weless/leetcode | 0585c5bfa260713f44dabc51fa58ebf8a10e7814 | 0566622daa5849f7deb0cfdc6de2282fb3127f4c | refs/heads/master | 2021-11-13T07:59:20.299920 | 2021-10-25T02:09:53 | 2021-10-25T02:09:53 | 203,720,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def goodNodes(self, root: TreeNode) -> int:
if not root:
return 0
from collections import deque
queue = deque()
... | [
"twzcxx1@163.com"
] | twzcxx1@163.com |
c09f88c25686fb1faac2e42d494e7f86ee7d7702 | ae0c2806c009263fbd608b1381d96eb378ff115b | /aizynthfinder/utils/models.py | 30f964dcb6fcb867dfd6a421ad9798c733115492 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yinxx/aizynthfinder | 45efcbafcf1d11199ec997129bc6a44ad4365952 | 20a7aed2db46e7df9dfeeaae0427f1e6e01b54e3 | refs/heads/master | 2023-06-25T00:21:36.983089 | 2021-07-26T08:52:47 | 2021-07-26T08:52:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,042 | py | """ Module containing helper routines for using Keras and Tensorflow models
"""
from __future__ import annotations
import functools
import os
from typing import TYPE_CHECKING
import numpy as np
import requests
import grpc
import tensorflow as tf
from google.protobuf.json_format import MessageToDict
from tensorflow_ser... | [
"samuel.genheden@gmail.com"
] | samuel.genheden@gmail.com |
17371c0c05eb0a54d12cfae1089ffbf4af13250e | 0a2167a58687db61423fa71dc3982194c8dbf3a4 | /photo_upload_js/search/urls.py | 57e7e59472bb8529fa18d1bbca7daf94b1e18388 | [] | no_license | nilldiggonto/js_with_django3 | e6728192bc45313b43fc8c1696207ee0eb990445 | ec8df007732ada06aba8956460a2ecb0d5f20b27 | refs/heads/main | 2023-03-13T18:17:13.465079 | 2021-03-01T12:43:40 | 2021-03-01T12:43:40 | 338,062,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | from django.urls import path
from .views import SearchListView,post_with_photo_view
urlpatterns = [
path('',SearchListView.as_view(),name='search-list'),
path('up/',post_with_photo_view,name='up-post'),
] | [
"nilldiggonto@gmail.com"
] | nilldiggonto@gmail.com |
726b58567c2d9b96312f1a2247fda43614f50976 | 1eedb7439266cc63df179aac8fae28cdcf83b3d5 | /nuwe_data_viewer/plugin/project_explorer/model/container_node.py | 311b62d82ec1eb6b6954727a6b4e65bfa9ca2073 | [] | no_license | perillaroc/nuwe-data-viewer | 6f11d19de920bbe2c9937ee4c3169cbe20dfafcc | 12a49844980946f07523f87786b054aa6d9c2e10 | refs/heads/master | 2020-03-27T04:59:41.085059 | 2019-05-11T14:24:44 | 2019-05-11T14:24:44 | 145,986,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | # coding: utf-8
from nuwe_data_viewer.plugin.project_explorer.model.node import Node
class ContainerNode(Node):
def __init__(self, display_name="", node_id=None):
Node.__init__(self, display_name, node_id)
| [
"perillaroc@gmail.com"
] | perillaroc@gmail.com |
f09d106fdba174b4d50bd24e47c76d79bcff3de6 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/galex_j16155+5048/sdB_galex_j16155+5048_coadd.py | 910403f482b6eda6d8e12bdf3a0cae2ad2051389 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[243.88925,50.807131], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_galex_j16155+5048/sdB_galex_j16155+5048_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCUR... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
23776c548405a31bbc4586662ae2da0f5154d617 | dd50e92d9d05f00d96aefd61e1422f1897397af1 | /venv/Scripts/futurize-script.py | 482848934b8f88ae0adfafc67a6dc8fcb065b8d9 | [] | no_license | zrxingchen/bwshop | ca60f55a948b64a07df4b31d6dc8b26bae0ceb4b | 53d5bee96adf8b7fea8f560907555f2b4068b6ce | refs/heads/master | 2022-07-29T21:19:49.183645 | 2020-05-23T07:54:15 | 2020-05-23T07:54:15 | 266,286,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | #!D:\BWshop\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize'
__requires__ = 'future==0.18.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"2425277916@qq.com"
] | 2425277916@qq.com |
08631b60708e517e228451d1629faaf2e74402f4 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-6757.py | b4b3b9f3005553b5202d6d4dff1c2e95e4d0376b | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,289 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
767c2bfac9638826491205fbf82df7b3dfcd3672 | 6169a0af24553278c9493c9ac14d2351e9085afd | /tests/providers/pagerduty/hooks/test_pagerduty_events.py | 3c68ba8247954e373fa2502a56287ba653a750a3 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | Nextdoor/airflow | c994f8fbaf48bebd891300f44dd78a58fd0b057b | 863ec46e25ea49d6d5b006d8fd3a83f50aa9db79 | refs/heads/master | 2023-06-12T19:25:58.052324 | 2023-01-20T17:43:14 | 2023-01-20T17:43:14 | 54,076,271 | 7 | 8 | Apache-2.0 | 2023-06-05T20:38:53 | 2016-03-17T00:34:45 | Python | UTF-8 | Python | false | false | 2,285 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | Nextdoor.noreply@github.com |
04b8ed50c24c320d25836ef6911aab27ca4dc7b7 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/NOKIA-ENHANCED-SNMP-SOLUTION-SUITE-PM-IRP.py | da7cb8b996dbd193802a4c80260e2d37c3f3b78e | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 17,953 | py | #
# PySNMP MIB module NOKIA-ENHANCED-SNMP-SOLUTION-SUITE-PM-IRP (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NOKIA-ENHANCED-SNMP-SOLUTION-SUITE-PM-IRP
# Produced by pysmi-0.3.4 at Wed May 1 14:23:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user da... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
f446b6c8b2833b421592915d637db99761f2c596 | 18aee5d93a63eab684fe69e3aa0abd1372dd5d08 | /python/paddle/nn/layer/distance.py | e2fb10f252f1008f0ddc5e41e1e48afbedb8d67c | [
"Apache-2.0"
] | permissive | Shixiaowei02/Paddle | 8d049f4f29e281de2fb1ffcd143997c88078eadb | 3d4d995f26c48f7792b325806ec3d110fc59f6fc | refs/heads/develop | 2023-06-26T06:25:48.074273 | 2023-06-14T06:40:21 | 2023-06-14T06:40:21 | 174,320,213 | 2 | 1 | Apache-2.0 | 2022-12-28T05:14:30 | 2019-03-07T10:09:34 | C++ | UTF-8 | Python | false | false | 3,333 | py | # Copyright (c) 2022 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 app... | [
"noreply@github.com"
] | Shixiaowei02.noreply@github.com |
61b29b234ac538819a506f9b35ad04235d880747 | 6e1f550b71e212cec90f070e2e9a1dd714de55d6 | /setup.py | 1586e43ed05c743040c5c403f039e0139055220a | [
"MIT"
] | permissive | wbond/gears-libsass | b4f7986ffa642b79a5b1ab3125c9d9056d6777fc | a861089306572b5250c3d3716abd916dc140fa20 | refs/heads/master | 2020-04-10T06:21:20.079859 | 2018-12-07T17:09:42 | 2018-12-07T17:09:42 | 160,851,933 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | import os
from setuptools import setup, find_packages
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
setup(
name='gears-libsass',
version='0.1.0',
url='https://github.com/wbond/gears-libsass',
license='MIT',
author='Will Bond',
author_email='wil... | [
"will@wbond.net"
] | will@wbond.net |
4b0cd507b0fe4a7edf15fe8c9200e2b3b34115f5 | 59522e46a73630181f19251b8bfef90e497c2f82 | /coop_cms/apps/test_app/forms.py | a28945b3361774cf45cf14979bb0f7de7f2e8161 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ljean/coop_cms | 9befe74edda007686007f8566cd2555856099ae8 | 9e6c70afb61b57dc0326fbb64f9d6b19c04f48a1 | refs/heads/master | 2023-07-11T16:02:35.945029 | 2023-06-30T12:16:26 | 2023-06-30T12:16:26 | 5,846,409 | 3 | 5 | NOASSERTION | 2019-08-30T10:55:02 | 2012-09-17T19:53:56 | Python | UTF-8 | Python | false | false | 1,084 | py | # -*- coding: utf-8 -*-
"""forms"""
import floppyforms as forms
from coop_html_editor.widgets import get_inline_html_widget
from ...forms.articles import NewArticleForm, ArticleSettingsForm
from ...forms.base import InlineHtmlEditableModelForm
from ...forms.newsletters import NewsletterSettingsForm
from .models imp... | [
"ljean@apidev.fr"
] | ljean@apidev.fr |
dd1221db4a088cf90bcdefff2c489c4642863126 | 9c3934402046850104523e9d942d62e42175b512 | /theblog/urls.py | e8d6cd26d99ae97986d6defb2b4be29934047079 | [] | no_license | Dekatron322/myblog | 39954bf26ac7468dae2e888aba1a1855a0832835 | 4d4118eecb458dc53073cd8c3ff9eaa0235926c8 | refs/heads/master | 2022-06-18T07:01:57.218863 | 2020-05-08T08:35:57 | 2020-05-08T08:35:57 | 262,269,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from django.urls import path, include
from .import views
urlpatterns = [
path('', views.index, name="index"),
path('blog/', views.blog, name="post-list"),
path('post/<id>/', views.post, name="post-detail"),
path('search/', views.search, name='search'),
path('tinymce/', include('tinymce.urls'))... | [
"muritalaibrahim097@gmail.com"
] | muritalaibrahim097@gmail.com |
97d31bc99318da98c36566bc2f7a502e1953d6d9 | 54e4c1a57765519c77d04fc02112c7f3bbacc595 | /prob_1317.py | 11e01b22fc965fafc4a81f4f1b4e4ef0ee88e358 | [] | no_license | Hrishikesh-3459/leetCode | 80a864228a8a2ae41ac2623f970a13f409234eed | 42def57b8f70d179ca688314ae43747fc1e410a0 | refs/heads/master | 2023-05-07T01:37:19.375229 | 2021-05-25T01:58:05 | 2021-05-25T01:58:05 | 254,803,743 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | class Solution:
def sortString(self, s: str) -> str:
x = list(s)
ans = []
ans_2 = []
fin = []
count = 0
while True:
for i in sorted(x):
if (i not in ans):
ans.append(i)
count +=1
x... | [
"noreply@github.com"
] | Hrishikesh-3459.noreply@github.com |
9cf95ea8c8587547eda0ba121e569f8022e1aa55 | 19172e15355d4ef8ae4622d0ed6993c0cd4d80ea | /watchmen/pipeline/single/stage/unit/utils/units_func.py | 1092797ba1dbe85e75457093d67cdc1b76bc612d | [
"MIT"
] | permissive | TSRAW/watchmen-matryoshka-doll | d5b50fc4014fbea11c2765f377ca904d17a4c579 | ab17e36a0f26f8e461296a222e6f7f2a4532c877 | refs/heads/master | 2023-03-18T05:40:08.354019 | 2021-03-17T15:52:34 | 2021-03-17T15:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,313 | py | from datetime import datetime
from watchmen.common.constants import parameter_constants, pipeline_constants
from watchmen.topic.factor.factor import Factor
from watchmen.topic.topic import Topic
INSERT = "insert"
UPDATE = "update"
SEQUENCE = "sequence"
NUMBER = "number"
UNSIGNED = "unsigned" # 0 & positive
TEXT = ... | [
"luke0623@outlook.com"
] | luke0623@outlook.com |
b393f63f6ac9ee26aceb40dd7bb00e64e25785d3 | d806dd4a6791382813d2136283a602207fb4b43c | /sirius/blueprints/api/remote_service/tula/passive/childbirth/views.py | 1e86681447f1b9f6b1e9f4f7d3e504d827b7a501 | [] | no_license | MarsStirner/sirius | 5bbf2a03dafb7248db481e13aff63ff989fabbc2 | 8839460726cca080ca8549bacd3a498e519c8f96 | refs/heads/master | 2021-03-24T12:09:14.673193 | 2017-06-06T16:28:53 | 2017-06-06T16:28:53 | 96,042,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | #! coding:utf-8
"""
@author: BARS Group
@date: 03.10.2016
"""
import sys
from flask import request
from sirius.blueprints.api.remote_service.tula.app import module
from sirius.blueprints.api.remote_service.tula.entities import TulaEntityCode
from sirius.blueprints.api.remote_service.tula.passive.childbirth.xform im... | [
"paschenko@bars-open.ru"
] | paschenko@bars-open.ru |
c6569d076ffb391b828b0b0ad13e3266739a768b | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/attestation/v20210601preview/_enums.py | 647247b71cec4cfaee5ae075082eafac95c1b2cc | [
"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 | 921 | 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! ***
from enum import Enum
__all__ = [
'PrivateEndpointServiceConnectionStatus',
'PublicNetworkAccessType',
]
class PrivateEndpointServiceConnect... | [
"noreply@github.com"
] | morrell.noreply@github.com |
45403bc3673f7fdd17f2e29878219415405ea12a | 9e538305f9263d86e780a4a3f205c972f658f54d | /src/order/models/managers.py | 7b7538f837adf7cf43e89ce2fef561ffcab76f9c | [] | no_license | tanjibpa/mednet | bb188582b0d90407015622b34f0291557acb1919 | 19a7535d583077fec7b7030c298fceb4c4df3207 | refs/heads/main | 2023-05-26T07:44:27.615506 | 2021-06-10T06:30:19 | 2021-06-10T06:30:19 | 355,774,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from django.db import models
class SupplierOrderList(models.Manager):
def supplier_order(self):
return super().get_queryset().filter(producer__org_type="supplier")
| [
"ikram.tanjib@gmail.com"
] | ikram.tanjib@gmail.com |
6ccc7f4bb583c7554918ac244ca1883a446d6583 | 8f2c55a2530c3e59dab5907c0044c618b88dd09b | /_pydevd_bundle/pydevd_reload.py | 507e73be2481c064a04777f28cadb48cc7177f70 | [
"Apache-2.0",
"EPL-1.0"
] | permissive | fabioz/PyDev.Debugger | 5a9c6d4c09be85a0e2d9fb93567fd65faf04c81d | 26864816cbfcf002a99913bcc31ebef48042a4ac | refs/heads/main | 2023-08-18T01:08:34.323363 | 2023-04-15T11:15:47 | 2023-04-15T11:15:47 | 21,870,144 | 363 | 126 | Apache-2.0 | 2023-07-30T23:03:31 | 2014-07-15T18:01:12 | Python | UTF-8 | Python | false | false | 15,773 | py | """
Based on the python xreload.
Changes
======================
1. we don't recreate the old namespace from new classes. Rather, we keep the existing namespace,
load a new version of it and update only some of the things we can inplace. That way, we don't break
things such as singletons or end up with a second repres... | [
"fabiofz@gmail.com"
] | fabiofz@gmail.com |
77e3a3bf9a976c804784f6bbc248d5188678a70b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_fawn.py | 260afb89b3b0bae13a38db08457adb7aad8566e8 | [
"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 | 322 | py |
#calss header
class _FAWN():
def __init__(self,):
self.name = "FAWN"
self.definitions = [u'a young deer', u'a pale yellowish-brown colour']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
return self.jsondat... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
636287a026b036c4db22cc1f8fbad2a93d1e3f6b | 90e39e45d469bb5dd9cb36805a88c97f41c147de | /2-do_deploy_web_static.py | 5fc6c711832e5b59a00fa0831b049af1e986aac4 | [] | no_license | Noeuclides/AirBnB_clone_v2 | 372b3d01ba76d41a79dca166d6ca7d471749a07d | 13fac5127af0149e7bef9a94b70e6d2746eeb4fd | refs/heads/master | 2020-07-03T19:16:10.404783 | 2019-09-11T00:42:29 | 2019-09-11T00:42:29 | 202,020,044 | 0 | 2 | null | 2019-08-19T03:08:39 | 2019-08-12T22:44:22 | Python | UTF-8 | Python | false | false | 1,700 | py | #!/usr/bin/python3
from datetime import datetime
from fabric.api import *
from os import path
'''automatize with fabric
'''
'''env.user = 'localhost'
'''
env.hosts = ['35.231.53.89', '35.190.176.186']
def do_pack():
'''making a pack on web_static folder
'''
now = datetime.now()
file = 'web_static_' +... | [
"euclidesnoeuclides@gmail.com"
] | euclidesnoeuclides@gmail.com |
6af689639ddfcb358242510a287fa6c89aca2e3a | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/LArCalorimeter/LArCalibTools/share/LArMCConditions2Ntuple.py | 1a35ffa4835cfb273b6320e18243c2bfdc57f847 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,483 | py | import AthenaCommon.AtlasUnixGeneratorJob #use MC event selector
from string import split,join
## get a handle to the default top-level algorithm sequence
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()
#Input Parameters:
# PoolFiles: sequence of pool files to read from though CondProx... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
b968c173c17ee7e0970eab6d6e3ee7ba4a7e8ab9 | ca77e9e45d666771c7b0897e7e3093b3d3c12f65 | /random_scripts/update_costs/update_wo_costs.py | 20ad1cd9856990dbe5c11c2b9e38c6a9d2275cf5 | [] | no_license | 2gDigitalPost/custom | 46175d3a3fc4c3be21dc20203ff0a48fb93b5639 | 6a3a804ef4ef6178044b70ad1e4bc5c56ab42d8d | refs/heads/master | 2020-04-04T07:40:17.962611 | 2016-12-28T18:35:28 | 2016-12-28T18:35:28 | 39,648,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,309 | py | import os, sys, math, hashlib, getopt, tacticenv, time
def kill_mul_spaces(origstrg):
newstrg = ''
for word in origstrg.split():
newstrg=newstrg+' '+word
return newstrg
def make_data_dict(file_name):
the_file = open(file_name, 'r')
fields = []
data_dict = {}
count = 0
for line i... | [
"topher.hughes@2gdigital.com"
] | topher.hughes@2gdigital.com |
0c0a1446e1f0184e7126eb177937b571e856de8d | 84a96dbd96e926ebb5c658e3cb897db276c32d6c | /tensorflow/python/ops/ragged/ragged_segment_op_test.py | d29708a5f5d98360502b4aef830d8d7c69c18c5c | [
"Apache-2.0"
] | permissive | MothCreations/gavlanWheels | bc9189092847369ad291d1c7d3f4144dd2239359 | 01d8a43b45a26afec27b971f686f79c108fe08f9 | refs/heads/master | 2022-12-06T09:27:49.458800 | 2020-10-13T21:56:40 | 2020-10-13T21:56:40 | 249,206,716 | 6 | 5 | Apache-2.0 | 2022-11-21T22:39:47 | 2020-03-22T14:57:45 | C++ | UTF-8 | Python | false | false | 9,618 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
335a917f993a2444982d969d5168c22b7ae98d6d | 6d5fd2e7b9a66e17593a490a80e96e95d36436a3 | /src/profiles/signals.py | 81924a9d88eb4f0810a55822910c9384d971ed0a | [] | no_license | Husain-Jinia/Django-Report-Generator | f38276b47c263824b2f6794d793ff63872ba31fc | 277a06584e7d333d9380f213abc217e29ecafd17 | refs/heads/master | 2023-04-20T06:05:13.294836 | 2021-05-15T08:01:11 | 2021-05-15T08:01:11 | 365,412,503 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | from .models import Profile
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
@receiver(post_save, sender=User)
def post_save_create_profile(sender, instance, created, **kwargs):
print(sender)
print(instance)
print(created)
i... | [
"husainjinia0201@gmail.com"
] | husainjinia0201@gmail.com |
66a4c5f13e1dc79c7ef110ee7f36ab90411658d1 | 3a6cf9261ca5e58468622f49cfa109d65f7b4eda | /src/python/spikes/stereo.py | 3bfe579ce6e4881dbb41e9f01fcc2026dd9dddab | [] | no_license | romilly/cluster-hat | a6784f85da5287466a73ef61a0111063bcd171b1 | a872da5bfa6ab2cb666095ab6845bafa5d4badca | refs/heads/master | 2021-05-09T13:30:34.743067 | 2018-01-30T15:11:35 | 2018-01-30T15:11:35 | 119,036,856 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | import numpy as np
import cv2
from matplotlib import pyplot as plt
imgL = cv2.imread('images/p1-image1.jpg',0)
imgR = cv2.imread('images/p2-image1.jpg',0)
stereo = cv2.StereoBM_create(numDisparities=16, blockSize=15)
disparity = stereo.compute(imgL,imgR)
plt.imshow(disparity,'gray')
plt.show() | [
"romilly.cocking@gmail.com"
] | romilly.cocking@gmail.com |
95d13e0f751a416bc4b06580bcf2b908508684b6 | a1b8b807a389fd3971ac235e46032c0be4795ff1 | /Repo_Files/Zips/plugin.video.streamhub/resources/lib/sources/en/watchfree.py | 499eb10d07d5e83d78835d4d22adcf9be4794a51 | [] | no_license | sClarkeIsBack/StreamHub | 0cd5da4b3229592a4e2cf7ce3e857294c172aaba | 110983579645313b8b60eac08613435c033eb92d | refs/heads/master | 2020-05-23T09:09:54.898715 | 2020-02-29T12:15:32 | 2020-02-29T12:15:32 | 80,440,827 | 9 | 20 | null | 2017-10-04T07:32:52 | 2017-01-30T16:43:46 | Python | UTF-8 | Python | false | false | 8,483 | py | # -*- coding: utf-8 -*-
'''
Covenant Add-on
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This prog... | [
"mediahubiptv@gmail.com"
] | mediahubiptv@gmail.com |
a64456fc0046b8a42ad60ddaa19ba450e3c4bfac | 4a7804ee05485c345b4e3c39a0c96ed4012542ac | /editor/emacs/emacs-python/actions.py | b0523c81855ca5f5c430977b55c02381e42c60ee | [] | no_license | Erick-Pardus/Pardus | 1fef143c117c62a40e3779c3d09f5fd49b5a6f5c | 2693e89d53304a216a8822978e13f646dce9b1d3 | refs/heads/master | 2020-12-31T02:49:33.189799 | 2013-03-17T06:29:33 | 2013-03-17T06:29:33 | 17,247,989 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir = "python-mode.el-6.0.11"
def install():
pisitools.insinto("/usr/share/emacs/si... | [
"namso-01@hotmail.it"
] | namso-01@hotmail.it |
0653972e0dd62e235f1b6c73af6da5b96e246c6f | 1a812d520fa0788864cab3c6bbd4e2ba0e8872c2 | /employeedataandprintthatdata.py | d97719e66d1ee36ecddc97ae0f16f35d728b4462 | [] | no_license | manutdmohit/pythonprogramexamples | b6f6906a6169ad2ecd9b16d95495474d570b065e | 06ac4af8ce13872bbe843175a61d7ad77e0f92b6 | refs/heads/main | 2023-01-14T13:14:57.468947 | 2020-11-25T05:39:01 | 2020-11-25T05:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | eno=int(input('Enter employee number:'))
ename=input('Enter employee name:')
esal=float(input('Enter employee salary:'))
eaddr=input('Enter employee address:')
married=bool(input('Employee married?[True/False]:'))
print('Please confirm your provided information')
print('Employee Number:',eno)
print('Employee Nam... | [
"noreply@github.com"
] | manutdmohit.noreply@github.com |
961781e9a4421f843daec46bf7d27a5b190cffc6 | 989b3499948137f57f14be8b2c77d0610d5975e6 | /python-package/daily_study/python/question_python(resolved)/chapter4_conditional_and_loops(완결)/i_is_member.py | fb8ea88f0fd87a269fb0ec00839eb849b2386979 | [] | no_license | namkiseung/python_BasicProject | 76b4c070934ad4cb9d16ce844efa05f64fb09ac0 | 460d05248b2d1431624aba960e28bece888643e4 | refs/heads/master | 2022-12-13T21:12:06.865241 | 2020-04-23T01:30:08 | 2020-04-23T01:30:08 | 142,980,920 | 1 | 1 | null | 2022-12-08T02:27:40 | 2018-07-31T07:49:17 | Python | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
def is_member(member_list, mem):
""" 리스트 member_list 와, 어떤 데이터 mem을 전달받고, mem이 member_list에 포함되어 있는지를 True/False로 반환하는 함수를 작성하자
sample in/out:
is_member([1, 5, 8, 3], 3) -> True
is_member([5, 8, 3], -1) -> False
"""
# 여기 작성
return mem in me... | [
"rlzld100@gmail.com"
] | rlzld100@gmail.com |
4f2d7e9a93ccb1c73bfa12146ad9add11e573b27 | d07a26e443538c5fc6b0711aff6e233daef79611 | /LearnPythonGuessGame.py | e3a41526a4b12716d27871e2464f08f1855a7ba6 | [] | no_license | Zahidsqldba07/Python-learn | bd602d490ee53f8e5331e70f92919ca315944ff9 | ffc1608695ed6c7c3d2b6789913e34235dcf468e | refs/heads/master | 2023-03-16T02:18:19.155281 | 2020-09-19T09:12:48 | 2020-09-19T09:12:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | secret_word = "respect"
guess = ''
guess_count = 0
guess_limit = 7
out_of_guesses = False
while guess != secret_word and not (out_of_guesses):
if guess_count < guess_limit:
guess = input("What's the secret word?: ")
guess_count += 1
if guess != secret_word:
print("Hin... | [
"noreply@github.com"
] | Zahidsqldba07.noreply@github.com |
1817dddcfb6a350fe4323472755486725543c750 | d70db722710bccf7a834e8e4acdb376b151b20a1 | /apps/finances/models.py | 0f4b847dc96b1d4ee9872b62f624905c17cde98f | [] | no_license | intentaware/Vader | b0d433f640b244d592126b2713506d214dc1d287 | 54d5d799beab1fc5cef99fb90d4e50e00720bfe0 | refs/heads/master | 2021-01-20T07:07:11.393929 | 2017-12-06T19:16:53 | 2017-12-06T19:16:53 | 30,995,526 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,356 | py | import shortuuid
from django.db import models
from django.utils.text import slugify, Truncator
from django.contrib.postgres.fields import JSONField
from django_extensions.db.fields import ShortUUIDField
from apps.common.models import *
from apps.common.utils.money import convert_to_cents
from .mixins import Stripe, CUR... | [
"yousuf.jawwad@gmail.com"
] | yousuf.jawwad@gmail.com |
a7a66ee6bfc9b3d26e5dbb4a0a9df8f27b2a72e3 | 4c44c593048fa4e00fb0334209632a286886efd9 | /sale_business_unit/models/product_business_unit.py | df6f50b9832b5d5adf851f1930983b0a7f67bcba | [] | no_license | treytux/trey-addons | 0c3fec43c584d46bd299b4bca47dcc334bedca60 | 1cda42c0eae702684badce769f9ec053c59d6e42 | refs/heads/12.0 | 2023-06-08T21:56:09.945084 | 2023-05-29T10:05:53 | 2023-05-29T10:05:53 | 114,281,765 | 19 | 49 | null | 2023-05-29T10:05:55 | 2017-12-14T18:10:39 | Python | UTF-8 | Python | false | false | 8,333 | py | ###############################################################################
# For copyright and license notices, see __manifest__.py file in root directory
###############################################################################
from datetime import date
from odoo import _, fields, models
class ProductBus... | [
"roberto@trey.es"
] | roberto@trey.es |
cba4f7f7a86bbd2c06e4b92208fe3e95d44f31ac | 99b84337ae66ad2877544fd158f20e7f4cd96520 | /day01-10/day04/晚间作业/4_求分数和.py | 88cd4c266f76603fc47dbe64b8a9ae5e47a016b0 | [] | no_license | jiajiabin/python_study | cf145d54cabce2cb98914b3448ed7d0e5c1c146c | b4faaff26ee9728af2e80942ba6a7c7f6a8b0f86 | refs/heads/master | 2020-06-21T21:31:26.034978 | 2019-08-26T11:39:34 | 2019-08-26T11:39:34 | 197,556,254 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | #求1/1 + 1/2 + 1/3 + 1/10 的值
a = 10
b = 0
for i in range(1,a+1):
b += 1 / i
print(b) | [
"2592668397@qq.com"
] | 2592668397@qq.com |
19261cb62700033a9cef08d8687bae4821b6f92d | 21569b68b510b55bdc2acb1ff5ae521b31d44a79 | /bin/pyrsa-encrypt-bigfile | 9afaf7317207ef369910d93588778e7aefc825d6 | [] | no_license | howarder3/Rpi3_study | a99faef434ae4f751d4d9f339aca918186f7cb3e | 533ba60ae4d11b5e3cebc12283e067ccee5a5cfd | refs/heads/master | 2020-03-18T18:11:01.030936 | 2018-05-27T20:46:40 | 2018-05-27T20:46:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | #!/home/pi/myenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import encrypt_bigfile
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(encrypt_bigfile())
| [
"howarder3@gmail.com"
] | howarder3@gmail.com | |
667907153fb3690183536d53d10538fd0e5ee2f8 | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/197978/Grasp-and-lift-EEG-challenge-master/genInfos.py | 3fe287f7ae615d7d863ba13934411a5cad7ad2b9 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 13 21:35:28 2015.
@author: fornax
"""
import numpy as np
import pandas as pd
from glob import glob
from mne import concatenate_raws
from preprocessing.aux import creat_mne_raw_object
# #### define lists #####
subjects = list(range(1, 13))
lbls_tot = []
... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
7d61b22340803854812ce2fb50445f429aebeeb0 | df44affab179c2546fb3e0d1dc29eebcfdf51c1c | /toughradius/common/smsapi.py | 06534cfab472a0cec1e3f4ef54e6c8980f14269e | [] | no_license | sailorhdx/taurusradius | 121c508e7faffaddcd5326d2b6d3710eaf0ed08e | 92d30820611a0c9102ae41713ea3c35437a3c6ee | refs/heads/master | 2021-01-22T02:28:31.543338 | 2017-06-17T02:15:33 | 2017-06-17T02:15:33 | 92,362,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | #!/usr/bin/env python
# coding=utf-8
import time
import json
import base64
from urllib import urlencode
from toughradius.toughlib import apiutils
from toughradius.toughlib import logger
from toughradius.toughlib import utils
from toughradius.toughlib.smsutils import smscn
from toughradius.toughlib.smsutils import qclou... | [
"sailorhdx@hotmail.com"
] | sailorhdx@hotmail.com |
b8a0233512848689eab5dea8d359062c641e2a1d | 6a2bda031f53b057e7aac3aeebd070151f5923f1 | /zmqpy/zmqpy.py | d012bf64ed8ad12196b425161f1ed1cec45fec26 | [
"BSD-2-Clause"
] | permissive | pfw/zmqpy | ab34b9f9f7e662e5d056a5a35078c27f4c9b5d9b | 185758349176709da43327e1f9b7c7c04d4ca850 | refs/heads/master | 2020-12-24T20:14:41.117019 | 2012-12-10T18:43:17 | 2012-12-10T18:43:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,024 | py | # coding: utf-8
from ._cffi import C, ffi, zmq_version, new_uint64_pointer, \
new_int64_pointer, \
new_int_pointer, \
new_binary_data, \
value_uint64_pointer, ... | [
"felipecruz@loogica.net"
] | felipecruz@loogica.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.