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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27498cc68ac92f005d4d87d54b3e1fe1718c0c64 | c324a6d923bae3a00bd1dc69a43d0e5c707a104a | /odoo-eam/mro_pm/mro_pm.py | 0392e336575afe756fcd16ebb106986fe6022fd6 | [] | no_license | meswapnilwagh/odoo-adr | 5c593c2240d23b79811ccd7b5297b634e5ffe19d | 442c8d5fa52cab30028a26dd93bd8eae88d58fed | refs/heads/master | 2020-01-27T10:03:27.142715 | 2015-09-04T14:36:59 | 2015-09-04T14:36:59 | 50,238,226 | 0 | 4 | null | 2016-01-23T12:53:28 | 2016-01-23T12:53:25 | null | UTF-8 | Python | false | false | 23,867 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013-2015 CodUP (<http://codup.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU ... | [
"tecnologia@obsdr.com"
] | tecnologia@obsdr.com |
deae474b7491a4e0d3576a8515cb2fe4bf566393 | 2f2667682bb78578445b9e3aac7cc62cfba83d5a | /googlenet/convert_to_onnx.py | ba4dc24d7e5b955ba1f4879f9e9a03fb4c83649e | [] | no_license | Yorwxue/trt_experence | 9c770c2a1cb7c48c9d7f21c46be0107de91f1c41 | 778a6cef019dd8afdae6b608b3cbacb56480c7b1 | refs/heads/master | 2022-12-21T12:38:13.108402 | 2019-08-01T08:11:10 | 2019-08-01T08:11:10 | 195,760,238 | 0 | 0 | null | 2022-12-08T05:57:26 | 2019-07-08T07:36:12 | Python | UTF-8 | Python | false | false | 4,353 | py | # from frozen model to Onnx
import numpy as np
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import tf2onnx
import os
def directory_create(directory):
if not os.path.exists(directory):
os.makedirs(directory)
input_height = 28
input_width = 28
summaries_dir = "./onnx... | [
"yorwxue@gmail.com"
] | yorwxue@gmail.com |
d6da229bedfc4591219e4fe735267d077451a03d | 2827d7a837eb29c3cb07793ab6d3d5a753e18669 | /alipay/aop/api/request/AlipayUserAccountFreezeGetRequest.py | d340fd63b48a1081f8d077c94f0df32ca6f99ab7 | [
"Apache-2.0"
] | permissive | shaobenbin/alipay-sdk-python | 22e809b8f5096bec57d2bb25414f64bdc87fa8b3 | 5232ad74dff2e8a6e0e7646ab3318feefa07a37d | refs/heads/master | 2020-03-21T04:51:39.935692 | 2018-06-21T07:03:31 | 2018-06-21T07:03:31 | 138,131,022 | 0 | 0 | null | 2018-06-21T06:50:24 | 2018-06-21T06:50:24 | null | UTF-8 | Python | false | false | 3,688 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
class AlipayUserAccountFreezeGetRequest(object):
def __init__(self, biz_model=None):
self._biz_model = biz_model
self._freeze_type = None
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
8bd048a3021b60cc22dc924a91f4adee99402287 | 987697512ce9b8d7c29bfd2f18d5aec0261a6863 | /二叉树_将二叉搜索树转换为累加数.py | eabdee8b16d0064f6194c4f988e500a943ce7695 | [] | no_license | Luckyaxah/leetcode-python | 65e7ff59d6f19312defdc4d4b4103c39193b198a | 2b9c78ba88e7bf74a46a287fb1914b4d6ba9af38 | refs/heads/master | 2023-06-05T12:15:31.618879 | 2021-06-22T13:05:30 | 2021-06-22T13:05:30 | 262,287,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def convertBST(self, root: TreeNode) -> TreeNode:
if not root:
return []
self.t = 0
def process(root):
... | [
"math_leqi@163.com"
] | math_leqi@163.com |
05bb4b1ca265d2ea307235924b0e409310a4f938 | 4b2977bc62393908280578e14d62b0ef205872be | /010.Regular Expression Matching/Regular Expression Matching.py | 18d95ae65365e3cb8c8d03fb9238501ea79e3894 | [] | no_license | protea-ban/LeetCode | 195aa176dce6f4fdad198be1ea1fc5214b283308 | 5517380195c3a1d0186a91de93518036570251be | refs/heads/master | 2020-03-19T02:45:31.248071 | 2019-09-12T08:37:28 | 2019-09-12T08:37:28 | 135,657,964 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | class Solution:
def isMatch(self, s, p):
"""
:type s: str
:type p: str
:rtype: bool
"""
# dp[i][j]=True时表示长度为i的s与长度为j的p匹配成功
dp = [[False] * (len(p) + 1) for _ in range(len(s) + 1)]
# i=j=0时
dp[0][0] = True
# i=0,j>=1时
for j in ... | [
"1561540661@qq.com"
] | 1561540661@qq.com |
5229c63d1c6755ad98bb7aae9fc9cbd99e6e0f53 | 2f0d56cdcc4db54f9484b3942db88d79a4215408 | /.history/Python_Learning/lesson13_20200329153046.py | 3ea9043a73a22ec45b2b8f6fd58e4eb147e83d9b | [] | no_license | xiangxing98/xiangxing98.github.io | 8571c8ee8509c0bccbb6c2f3740494eedc53e418 | 23618666363ecc6d4acd1a8662ea366ddf2e6155 | refs/heads/master | 2021-11-17T19:00:16.347567 | 2021-11-14T08:35:01 | 2021-11-14T08:35:01 | 33,877,060 | 7 | 1 | null | 2017-07-01T16:42:49 | 2015-04-13T15:35:01 | HTML | UTF-8 | Python | false | false | 4,807 | py | # -*- encoding: utf-8 -*-
# !/usr/bin/env python
'''
@File : lesson13.py
@Time : 2020/03/29 11:43:27
@Author : Stone_Hou
@Version : 1.0
@Contact : xiangxing985529@163.com
@License : (C)Copyright 2010-2020, Stone_Hou
@Desc : None
'''
# here put the import lib
# Practice #01
print('He said,"I\'m... | [
"xiangxing985529@163.com"
] | xiangxing985529@163.com |
78fcae8c3007923f8ad2c86600b677df325e4f36 | 38741245fa801009eff387f7c6e2792790f85925 | /백준_구현/1783_병든나이트.py | 317d21e6d0193ac9fdef914192311211c2c3d226 | [] | no_license | bud386/algo-CS | ad6a1ae110f1d52623a0fee219245d0da3f1724c | 8ba858d6562ef8fb46a1b4a741fe2149d111cf42 | refs/heads/master | 2023-08-25T23:31:47.069553 | 2021-11-07T08:16:02 | 2021-11-07T08:16:02 | 361,779,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | import sys
n, m = map(int, sys.stdin.readline().split())
ans = 1
if n > 2:
if m < 5:
ans = m
elif m == 5 or m == 6:
ans = 4
else:
ans = m - 2
elif n == 2:
#2 1, 2 2, 2 3, 2 4, 2 5, 2 6
if m < 7:
ans = (m+1) // 2
else:
ans = 4
print(ans)
| [
"vud2009@naver.com"
] | vud2009@naver.com |
188addec78277a97f9721b2ece5890d6c24dd0a6 | 37a76f33225ca717ceb03cc8849c90a2c250033c | /weapons.py | 300d02fb3a3755ebac88141960c7e588f1224f79 | [] | no_license | sjbrown/scroll_jump_beguile | c3deda5fb4e0f3540e6992243875ce1fe0aff442 | 8f36c5ca5998b1536022740ea8321ed467e8e729 | refs/heads/master | 2021-01-10T03:24:05.120971 | 2016-03-18T20:55:35 | 2016-03-18T20:55:35 | 54,230,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,248 | py | #!/usr/bin/env python
#Import Modules
import os, pygame
from copy import copy
from pygame.locals import *
from pygame.sprite import Group
import data
from log import log
from anim_widget import AnimatedWidget
from mawjumper import MawJumper
from random import Random
from utils import *
from physics import *
from objec... | [
"github@ezide.com"
] | github@ezide.com |
d7491974ab2465135ee9983e99624ac5032a0e63 | f200708b8e5a67074f6c805a736311e9b1637532 | /part_01_python_base/python_core/day6/exercise01.py | 2760e4e7c1bbdcf357167e68fcf0771df106302b | [] | no_license | vivid-ZLL/tedu | 48b78951eae07f5f0433ba85f7cc4e07cd76011d | 319daf56d88e92f69ee467e0ccf83c01367ed137 | refs/heads/master | 2021-04-23T22:40:11.391574 | 2020-01-25T11:26:56 | 2020-01-25T11:26:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | list01 = []
for item in range(1, 11):
list01.append(item ** 2)
print(list01)
list01 = [item ** 2 for item in range(1, 11)]
print(list01)
result = []
for item in list01:
if item % 2 == 1:
result.append(item)
print(result)
result = [item for item in list01 if item % 2 == 1]
print(result)
list03 = []
fo... | [
"283438692@qq.com"
] | 283438692@qq.com |
2dd02043829ba396d8e178862427e013f00aacac | ca0d710ed0469beb7f87ae53f5efdef7bac19a27 | /MainView/migrations/0020_auto_20200917_2301.py | d8ec70d245b8e5907074e80a1cb38522e78c6346 | [
"MIT"
] | permissive | CiganOliviu/wedding_invitation | 5d441d786f742d6a4baf5ff418370c0cfbb1b81e | 8b243b287b6577b4f5f899e33ade1fec651152f0 | refs/heads/main | 2023-03-03T08:12:36.345173 | 2021-02-08T15:37:04 | 2021-02-08T15:37:04 | 333,568,503 | 0 | 0 | MIT | 2021-02-08T15:37:05 | 2021-01-27T21:43:34 | null | UTF-8 | Python | false | false | 706 | py | # Generated by Django 3.0.8 on 2020-09-17 20:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('MainView', '0019_auto_20200917_2259'),
]
operations = [
migrations.RemoveField(
model_name='guestenvironmentdetail',
... | [
"ciganoliviudavid@gmail.com"
] | ciganoliviudavid@gmail.com |
61e9f4375eae4fc9cdc9950e3e594ceba0db37ab | e4eabccc6d971289cf13653d1b6f290e39b870ab | /0075-sort-colors/sort-colors.py | 2b7848ff03665e0d0014208e2b04d6369d1e1b20 | [] | no_license | HEroKuma/leetcode | 128b38a9f559dc9e3f21c86a47ede67ad72f7675 | b3045aaedbe98eddc7e4e518a03a9337a63be716 | refs/heads/master | 2023-01-03T12:12:31.018717 | 2020-11-01T16:56:47 | 2020-11-01T16:56:47 | 260,488,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,592 | py | # Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue.
#
# Here, we will use the integers 0, 1, and 2 to represent the color red, white, and blue respectively.
#
# Follow up:
#
#
# Could you... | [
"zx8733520+github@gapp.nthu.edu.tw"
] | zx8733520+github@gapp.nthu.edu.tw |
49bed89257727196a9dab391698c157d44f1468e | f846b6997562165df3a0463bad9728395db5ec8e | /app/pages/falabella/selenium_utils.py | bde74bb4bdec3da7d00763695103a23a058e5274 | [] | no_license | gonza56d/burner | 9f687485a4728bcbc85e1fc5918be2eeed4fc8f8 | c21f4d17215b47c3a8bfba460daf71505185b568 | refs/heads/master | 2023-08-04T17:27:11.883836 | 2021-07-04T21:26:08 | 2021-07-04T21:26:08 | 408,569,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | """
Falabella Selenium utilities.
"""
# Python
from typing import Generator
# Selenium
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.remote.webelement import WebElement
# App
from pages import BaseSeleniumUtils
class FalabellaSe... | [
"gonza56d@gmail.com"
] | gonza56d@gmail.com |
f852afc7f0ee942cb06819559fd89427be239920 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_382/ch14_2020_03_03_17_41_48_639765.py | a54585ac867275f8f2d3d1c3945a139ecfc44a5f | [] | 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 | 190 | py | import math as m
def calcula_distancia_do_projetil(v,y,tetha):
p1 = v**2/(2*9.8)
p2 = 1 + m.sqrt(1 + (2*9.8*y)/((v**2)*(m.sin(tetha)**2)))
p3 = m.sin(2*tetha)
return p1*p2*p3 | [
"you@example.com"
] | you@example.com |
fa5a00d5e4a6ef9bdd5560ce3c32e73fc6a69d63 | b47f2e3f3298388b1bcab3213bef42682985135e | /experiments/heat-3d/tmp_files/3767.py | a98a9b32b40f51bef3c01233fb2bebce69c2cfe5 | [
"BSD-2-Clause"
] | permissive | LoopTilingBenchmark/benchmark | 29cc9f845d323431e3d40e878cbfc6d1aad1f260 | 52a3d2e70216552a498fd91de02a2fa9cb62122c | refs/heads/master | 2020-09-25T09:45:31.299046 | 2019-12-04T23:25:06 | 2019-12-04T23:25:06 | 225,975,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/heat-3d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/heat-3d/tmp_files/3767.c')
procedure('kernel_heat_3d')
loop(0)
known('n>3')
pragma(0,2,"omp parallel ... | [
"nashenruoyang@163.com"
] | nashenruoyang@163.com |
dfb7eb4fb088328f1b630b2bad92603923614daa | 045cb1a5638c3575296f83471758dc09a8065725 | /addons/website_profile/models/gamification_badge.py | 218c998d627c53351d238115827a6385e82a5ee5 | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | # -*- coding: utf-8 -*-
# Part of Harpiya. See LICENSE file for full copyright and licensing details.
from harpiya import models
class GamificationBadge(models.Model):
_name = 'gamification.badge'
_inherit = ['gamification.badge', 'website.published.mixin']
| [
"yasir@harpiya.com"
] | yasir@harpiya.com |
b8bb816b78197a123c91f53afecdf4411ef935af | 4464fef5d7c114da0c3bc57aff465c223862e907 | /mysite/mysite/urls.py | ae992b7b438c1898e8b7a9858c3c1cb2a0e82a83 | [
"MIT"
] | permissive | Wonz5130/GitHub-Show-Site | b0491da53e5bcebe53e0b0a787c8c7404a929045 | 2f72674fc79316fe99b1764c988c37ad81a9fe5f | refs/heads/master | 2022-12-05T03:58:45.991871 | 2020-08-28T07:47:14 | 2020-08-28T07:47:14 | 290,967,277 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"wangzhou5130@gmail.com"
] | wangzhou5130@gmail.com |
b5f31b3301946819d6faa062c84d06a07ae9df7d | b89ec2839b4a6bd4e2d774f64be9138f4b71a97e | /dataent/www/printview.py | 64a46eb3700267230ae49dfd1363566bdb20d39d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dataent/dataent | ec0e9a21d864bc0f7413ea39670584109c971855 | c41bd5942ffe5513f4d921c4c0595c84bbc422b4 | refs/heads/master | 2022-12-14T08:33:48.008587 | 2019-07-09T18:49:21 | 2019-07-09T18:49:21 | 195,729,981 | 0 | 0 | MIT | 2022-12-09T17:23:49 | 2019-07-08T03:26:28 | Python | UTF-8 | Python | false | false | 13,443 | py | # Copyright (c) 2015, Dataent Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import dataent, os, copy, json, re
from dataent import _
from dataent.modules import get_doc_path
from dataent.utils import cint, strip_html
from six import string_types
no_ca... | [
"38303879+dataent@users.noreply.github.com"
] | 38303879+dataent@users.noreply.github.com |
0097bbb20ef0b94023fed8f7988dea8d6aa81531 | 8d3fd439c6d5a52eda578847545234b2ebdc4f3b | /python练习/tk12.py | 72db801cd24180cca9648083be94efcf6d962402 | [] | no_license | gm-p/practice_demo | d1530dcdb3de95832f1fa5b6e30c75e7ca6acc05 | 7eaa825fc634ad21aea48713133c0266a44ac54a | refs/heads/main | 2023-03-31T23:01:02.302579 | 2021-04-04T13:29:50 | 2021-04-04T13:29:50 | 354,193,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | from tkinter import *
root = Tk()
Label(root, text="作品:").grid(row=0, column=0)
Label(root, text="作者:").grid(row=1, column=0)
e1 = Entry(root)
e2 = Entry(root)
e1.grid(row=0, column=1, padx=10, pady=5)
e2.grid(row=1, column=1, padx=10, pady=5)
def show():
print("作品:《%s》" % e1.get())
print("作者:%s" % e2.get(... | [
"abc"
] | abc |
c59380938ce27563636205ad1e6526617592bdbb | 07bd1848e35bbb75ef4d23f1982af618aa176852 | /chap09/list0919.py | e9bcde63b5654a516680f810313e21ac59b156ca | [] | no_license | kimurakousuke/MeiKaiPython | c0b56be8fcb79b39b0c8364e71e2da76eab613fe | 674f6001060f56cf55e3d7336e6e4ca5f135beaf | refs/heads/master | 2021-02-22T13:01:53.397290 | 2020-03-07T11:19:10 | 2020-03-07T11:19:10 | 245,377,717 | 1 | 0 | null | 2020-03-06T11:16:16 | 2020-03-06T09:22:53 | Python | UTF-8 | Python | false | false | 489 | py | # 打印输出求各参数之和的数学表达式并进行计算
def print_sum(a, *no):
"""返回各参数之和(同时输出表达式)"""
sum = a
print(a, end='')
n = len(no)
if n > 0:
print(' + ', end='')
for i in range(n - 1):
sum += no[i]
print(no[i], '+ ', end='')
sum += no[n - 1]
print(no[n - 1], end=''... | [
"61867402+kimurakousuke@users.noreply.github.com"
] | 61867402+kimurakousuke@users.noreply.github.com |
9db883a9d576c21e9e7410cad6573b62979c595a | 2849fe2fe04e13fc80ed3ded20bcd9a9edd504e2 | /manage.py | 4813543129ba9172bad901da0af2898b1e4e26f2 | [] | no_license | takaaki-mizuno/flask-rocket-base | 981cde8add607c857edec962ba69f66f3596a2e5 | eacaef1a6741a27db6b2a61250da99a3cec2fbc5 | refs/heads/master | 2020-11-28T06:02:41.261333 | 2020-03-01T02:45:42 | 2020-03-01T02:45:42 | 229,722,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | import unittest
import urllib.parse
from app.bootstrap import create_app
from app.config import Config
from app.database import db
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from flask import url_for
import pytest
app = create_app()
migrate = Migrate(app, db)
manager = Manager(a... | [
"takaaki.mizuno@gmail.com"
] | takaaki.mizuno@gmail.com |
6f5849078965286e3f088e3ffbcd88e2ad2595ae | bf397e60bba27b649084966aee686869c7df595d | /PythonNet/day06/code/single_while.py | 9c60dab380bdc265bd7a15fc0999f31af953a4ae | [] | no_license | demo112/1807 | 3783e37f7dab3945a3fc857ff8f77f4690012fbe | 9b921c90b3003226d919017d521a32da47e546ad | refs/heads/master | 2022-12-01T10:50:24.086828 | 2018-12-06T09:48:14 | 2018-12-06T09:48:14 | 150,758,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | import os
from time import sleep, ctime
while True:
sleep(3)
print(ctime(), os.getppid())
| [
"huafengdongji@hotmail.com"
] | huafengdongji@hotmail.com |
6ce97075f1643c03758ed094bcde7e6c56b6ba18 | 4047fe5e31413044a366af97d8e1845e441187e2 | /backend/prefabitz_3308/settings.py | 7f74139319bef9c18a93c136c06c29eedbd9181b | [] | no_license | crowdbotics-apps/prefabitz-3308 | c4a825fd021bbcfba3391a25489b45444a258a60 | 0d1d3f43f999c2460229312976d8c2a8959e079b | refs/heads/master | 2022-12-08T17:10:40.432311 | 2019-05-13T22:32:34 | 2019-05-13T22:32:34 | 186,504,754 | 0 | 0 | null | 2022-12-03T09:23:23 | 2019-05-13T22:32:29 | JavaScript | UTF-8 | Python | false | false | 4,752 | py | """
Django settings for prefabitz_3308 project.
Generated by 'django-admin startproject' using Django 1.11.16.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
i... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d282373017c02490e7da1468de048c935aae6c87 | de669ecd51250dbdf6d06768eab49657bfdf525f | /combat/forms.py | e9876a51d9231f6a6ff1fdf66605005f22439722 | [] | no_license | JackSnowdon/DistanceD | b22fa6de8e1ed732c4547904e03a13cbe7b92b25 | ca4fe27d61a12420d43f4ba181432053d524edf4 | refs/heads/master | 2023-08-21T12:55:26.847788 | 2020-07-25T16:09:20 | 2020-07-25T16:09:20 | 279,602,128 | 0 | 0 | null | 2021-09-22T19:27:25 | 2020-07-14T14:06:14 | Python | UTF-8 | Python | false | false | 412 | py | from django import forms
from .models import *
class NewCombatInstance(forms.ModelForm):
class Meta:
model = CombatInstance
exclude = ['dm']
class NewCombatMember(forms.ModelForm):
class Meta:
model = CombatMember
exclude = ['game']
labels = {
"current_hi... | [
"jacksnowdondrums@gmail.com"
] | jacksnowdondrums@gmail.com |
9a02d0d6417fb38a1a3450b697b5043b5fd1a83d | 0d2578f0a46d2b378a36eaef78c81eb95f47141d | /tests/test_NMT_architectures/bidir_deep_LSTM_ConditionalLSTM.py | dadfa352d21c6101aad72d711ce6a2fe19078e63 | [
"MIT"
] | permissive | prp20/nmt-keras | f916f1b3b7655841735a57d933e29b31663d58d4 | cc6bf38a7942ea7da4fdfc323122f813bcd6a369 | refs/heads/master | 2022-11-04T08:44:30.783187 | 2022-10-08T19:12:10 | 2022-10-08T19:12:10 | 126,461,512 | 0 | 0 | null | 2018-03-23T09:18:42 | 2018-03-23T09:18:42 | null | UTF-8 | Python | false | false | 3,714 | py | import argparse
import pytest
from keras import backend as K
from config import load_parameters
from data_engine.prepare_data import build_dataset
from main import train_model, apply_NMT_model
from sample_ensemble import sample_ensemble
from score import score_corpus
def load_tests_params():
params = load_param... | [
"lvapeab@gmail.com"
] | lvapeab@gmail.com |
c5e6e23e0168106e4bf269f0f11e70add9576b4c | 1b1936a29bdb0a2f9160c4b91f81c030e98390e1 | /appkraft/migrations/0002_auto_20190117_1142.py | 9757b4d0f47b2b9dae5ebbffdc659a1cdbc385df | [] | no_license | dennyerikson/kraft | 8d0129ff6a4e655e73292cefa8adf43be18d22cd | 7b479124d61b108a63bfafbb5f19670939f2b454 | refs/heads/master | 2022-11-24T09:28:18.758704 | 2019-09-07T04:06:06 | 2019-09-07T04:06:06 | 166,215,825 | 0 | 2 | null | 2022-11-22T03:24:56 | 2019-01-17T11:38:32 | HTML | UTF-8 | Python | false | false | 645 | py | # Generated by Django 2.1.5 on 2019-01-17 13:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('appkraft', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='produtos',
name='codigo_barras',
... | [
"dennyeriks00on@gmail.com"
] | dennyeriks00on@gmail.com |
356598b2239000abf85d20d20451ed51834eb2bd | d5da3e20346efd2b3aba868e071b4b963490beb0 | /pages_project/pages_project/settings.py | dd458cf44cedabbd1aacebe30462f296eaf51a92 | [] | no_license | oldsinatra/pages-app | 83e3a1b5cd121e91cc7e000c2770c9b1e7030ca1 | a03bdbfce03cc5326cd74d6e77a8576bdb009a09 | refs/heads/main | 2023-07-04T14:56:40.014162 | 2021-08-08T17:19:29 | 2021-08-08T17:19:29 | 393,780,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,174 | py | """
Django settings for pages_project project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import o... | [
"="
] | = |
2e16918ab4204a2e3c2e371c83a53bd7da65bcf6 | 5761a8d1aa8b76fd8d2ec90eaef22f5dc8675f75 | /pythonGUItkinter/bindKeyEvents.py | 921526ac4ae7c438d1947315c895ac04f60509c3 | [] | no_license | stcybrdgs/myPython-refresher | 5646a81fd810aa7384981e207d9dadc3f49e9210 | 9e5823c3fde305f1cb252865b0de1f4965b159da | refs/heads/master | 2020-04-02T03:33:28.077337 | 2019-07-11T18:22:02 | 2019-07-11T18:22:02 | 153,972,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | # keyboardEvents.py
'''
while callbacks are only used with specific actions for various widgets such
as spinboxes, menuboxes, scrollbars, buttons, and so on, Tkinter can also
allow you to bind events to specific handlers so that you can respond to I/O
devices like the keyboard and the mouse. Such events include:
... | [
"stcybrdgs@gmail.com"
] | stcybrdgs@gmail.com |
28657b7278921c4afd7446b25eaeffcf2a27f4d2 | 509e9d64744f720392fda2b978d783f985c60824 | /python2.7/site-packages/numpy/core/tests/test_item_selection.py | a4b125d22f28c8a69db968d962e341a10c609335 | [] | no_license | theideasmith/Instant-OpenCV-FFMPEG | 0560598fba630ded533b4e6c111c61c9b0b7502b | 234e359af245b4832b3e7ade6070e91c81b65de0 | refs/heads/master | 2021-01-11T20:39:33.443984 | 2017-01-16T23:09:46 | 2017-01-16T23:09:46 | 79,162,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:38bf2466658d6927fa9e6eaf4ab27100444cca9c4fe8a8c097bff88908c6f20f
size 3585
| [
"aclscientist@gmail.com"
] | aclscientist@gmail.com |
9fcbed7bda632bce956d11b8564f5efe70b461ff | 334d0190164d92b53be2844a3afc2826d64b1a6d | /lib/python3.9/site-packages/tests/record.py | 5f038765afdf0c934e7556d839ed6c6623cab6c1 | [] | no_license | sou133688/BayesianStatics | f294d7c47cfa56374cf73b520529620dc6120f47 | be9121429494cd8fd231594b029fc2f030d8335f | refs/heads/main | 2023-08-21T15:57:32.980658 | 2021-10-01T00:01:13 | 2021-10-01T00:01:13 | 401,909,680 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,985 | py | from theano.compile import Mode
from theano.configdefaults import config
from theano.link.basic import WrapLinkerMany
from theano.link.vm import VMLinker
from theano.printing import hex_digest, min_informative_str
__authors__ = ["PyMC Team", "Ian Goodfellow"]
__credits__ = ["PyMC Team", "Ian Goodfellow"]
class Mism... | [
"matsushu@ZaknoMacBook-Pro.local"
] | matsushu@ZaknoMacBook-Pro.local |
0dac33d7566423639d35e01acd0991e36afca9bb | 901944f407f4a06a4c4027d6139ce21165976857 | /Biased_Sampling/analyze_results/plot_it.py | 588cda9b97df240958e498db41832c0d727f1dbe | [] | 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 | 3,388 | py |
import numpy as np
import plotly
import plotly.graph_objs as go
import pickle
from os.path import expanduser
home = expanduser("~")
datas = ['results_regular_10', 'results_regular_weighted_10', 'results_squared_10', 'results_BF_10', 'results_densities2_10']
with open(home + '/Documents/Bias_Sampling/results_BF_1... | [
"chris.a.cremer@gmail.com"
] | chris.a.cremer@gmail.com |
028ac0f51586c9767971047523c1f02b86674705 | 893af5bd2a75a37634d970eb67288bb78cad6a04 | /723e_server/django_723e/models/currency/admin.py | cc34a61e6e5b3b947bc02d15e4cff29c2f97cf6e | [
"MIT"
] | permissive | Natim/723e | 9e0c0f3cf2884283ab377bbc51d40df5b040d778 | ed6a5f102b45f5d7ab723209eecb87bf306b23d8 | refs/heads/master | 2021-01-17T13:22:34.513449 | 2015-08-24T09:36:01 | 2015-08-24T09:36:01 | 41,594,079 | 0 | 0 | null | 2015-08-29T13:20:22 | 2015-08-29T13:20:21 | HTML | UTF-8 | Python | false | false | 262 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from django_723e.models.currency.models import Currency
class CurrencyAdmin(admin.ModelAdmin):
list_display = ('name', 'sign', 'space', 'after_amount',)
admin.site.register(Currency, CurrencyAdmin)
| [
"contact@sebastienbarbier.com"
] | contact@sebastienbarbier.com |
e6ee6e20d598caa0856f3da8692d09baaae98e0b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03591/s001149630.py | 02b82845900a259c1e5c2e24dcf99eca6c50b236 | [] | 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 | 82 | py | s=input()
if len(s)<4:print("No")
elif s[:4]=="YAKI":print("Yes")
else:print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9fb0cde4bebc8dbe0cced246493d78e481ec3f8a | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/crashpad/crashpad/snapshot/snapshot_test.gyp | 6f0fc90e5a0bd3de28ae55e646f74643045630c3 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 10,820 | gyp | # Copyright 2014 The Crashpad 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 applicabl... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
b1d7ed787c1ea6010ce4e5fde6c381faadd05416 | 717f642297a1cee12500d4160df8b41d7bcaa4b7 | /exec -l /bin/bash/google-cloud-sdk/.install/.backup/lib/surface/ml_engine/models/add_iam_policy_binding.py | 5e997fff8450731b75805295da5f9a0378159d48 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | vrielsdenies/Participant-app | 8b5199bfb401741e76af3cfd86ca8987c7a25cb3 | a9348c6d7937f8b210a7c6056c1aa693a0e44c73 | refs/heads/master | 2021-07-08T15:38:01.125590 | 2019-01-07T05:40:13 | 2019-01-07T05:40:13 | 147,900,558 | 2 | 1 | null | 2020-07-24T20:13:28 | 2018-09-08T04:22:31 | Python | UTF-8 | Python | false | false | 1,905 | py | # -*- coding: utf-8 -*- #
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"info@nielsdevries.net"
] | info@nielsdevries.net |
4177cfa578b1fb3fcc930f7396666cd95fe10292 | 5ba02124209274eb83b7bd04a05388c7d62f2c21 | /setup.py | 449c59d4f2ce7288b8e5768ecea6494f23803abb | [] | no_license | talkara/taito.traviscitest | e0fffdb78d32dcfe69170443fc2f4fb625372c73 | 6e4be7de97514cc01f6053700d82607189705b32 | refs/heads/master | 2021-05-28T09:32:06.054908 | 2012-11-23T09:04:12 | 2012-11-23T09:04:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | from setuptools import find_packages
from setuptools import setup
setup(
name='taito.traviscitest',
version='0.3.4',
description="For testing and see how Travis CI works...",
long_description=open("README.rst").read(),
classifiers=[
"License :: OSI Approved :: BSD License",
"Progra... | [
"taito.horiuchi@gmail.com"
] | taito.horiuchi@gmail.com |
2ba9e1a8d677368bb3bfc715e250e44ac191eb45 | 87dae6d55c66df1d40d6881272009319a1600cb3 | /tp 6 ej 17.py | 900ca6e01a6df7b695b44d1b26148d34f8a3fcb6 | [] | no_license | abaldeg/EjerciciosPython | 92a30a82c05ec75aa7f313c8a6fa0dd052a8db11 | c8a3238587ebf6b10dbff32516c81bf00bb01630 | refs/heads/master | 2021-07-09T07:46:11.584855 | 2020-11-09T11:51:50 | 2020-11-09T11:51:50 | 210,438,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,521 | py | # Ejercicio 17:
#
# Modificar el programa anterior para que las pistas brindadas por el programa no
# sean del tipo "es mayor" o -es menor" sino "M dígitos correctos y N dígitos
# aproximados". Se considera que un dígito es correcto cuando tanto su valor
# como Su posición coinciden con los del número secreto, mie... | [
"abaldeg@gmail.com"
] | abaldeg@gmail.com |
e3e05b143e2079f37d7640c091d731d1203d426e | 31cce63372dfc7aefc01c6d34c93cf7b7823e1a3 | /user_center/templatetags/my_tag.py | a9c06b78abfc45b3b3c3d3cfa69862d7af8a088d | [] | no_license | zhaobin022/oms | 76c5f8f4d7539acde754108baad3524f3cba008b | 42bc5825a1c79811787c02f983c72a34f4256fe5 | refs/heads/master | 2020-04-11T14:52:35.741778 | 2016-09-12T09:50:55 | 2016-09-12T09:50:55 | 67,988,670 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from django import template
register = template.Library()
@register.simple_tag
def error_msg(error_list):
if error_list:
return error_list[0]
return '' | [
"zhaobin022@qq.com"
] | zhaobin022@qq.com |
b6ef49624d7565c92ddad12f2ac2b5b804487dc5 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2377/60691/270539.py | 1332c66b420660ec874c32e51999247cc37c918d | [] | 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 | 566 | py | s = input()
l = []
for i in range(len(s)):
if s[i].isdigit():
l.append(int(s[i]))
if len(l) != 6:
print(False)
else:
l1 = [[]for i in range(3)]
l2 = []
for i in range(0, 3):
l1[i].append(l[2*i])
l1[i].append(l[2*i+1])
print(l1)
if l1[0] == l1[1] or l1[1] == l1[2]... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f761eb4fbf9cdccbe72d4e7d5366e7447df18214 | 4c8152b5abdefa8fe44cb4a423985b18a3175542 | /Code.Abbey/beginner/P0048_Collatz.py | 5283d323fcf2cb430e35c91557a74b0207eeda96 | [] | no_license | mcmoralesr/Learning.Python | c5ed943a1e4eed774c1b626c52c450b48c1062b6 | 8ea6222d260989c6973d9a0cc494ff659a78ade6 | refs/heads/master | 2020-06-28T04:22:53.970613 | 2015-02-12T10:23:28 | 2015-02-12T10:23:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | __copyright__ = ''
__author__ = 'Son-Huy TRAN'
__email__ = "sonhuytran@gmail.com"
__doc__ = ''
__version__ = '1.0'
def collatz(number: int) -> int:
count = 0
while number != 1:
number = number // 2 if number % 2 == 0 else number * 3 + 1
count += 1
return count
def main() -> int:
in... | [
"sonhuytran@gmail.com"
] | sonhuytran@gmail.com |
ecbf179ac77309fceb0fec01964e671d6a1b58fe | b4cc610bbd069c2b3e1f50c82303d48de21843a4 | /ce/c006_test.py | 80e8f0067196e281c76d2944aa0af4fb03b621d1 | [] | no_license | AakashKumarNain/pythonesque | d47b890ff42fa7baa3f25f9569d8a7310c7aa710 | 3225aaf878c52962becafd60a50243a91f92b264 | refs/heads/master | 2020-03-18T00:07:00.624695 | 2018-05-19T09:24:16 | 2018-05-19T09:24:16 | 134,078,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | """
CodeEval Longest Common Subsequence
author: Manny egalli64@gmail.com
info: http://thisthread.blogspot.com/2017/02/codeeval-longest-common-subsequence.html
https://www.codeeval.com/open_challenges/6/
"""
import unittest
from ce.c006 import solution
class TestCodeEval(unittest.TestCase):
def test_provide... | [
"egalli64@gmail.com"
] | egalli64@gmail.com |
4109255245175d3891ed9e7f13ce1810cc29bb1a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2620/58616/303956.py | 745148f7038e57f91ad52592ed0c0643ebab03f6 | [] | 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 | 187 | py | # 简单的求和问题
exampleCount = eval(input())
for count in range(exampleCount):
n = eval(input())
sum = 0
for i in range(1, n + 1):
sum += i ** 5
print(sum) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
16b5db12780a87c2efe4b989f296958251b49de4 | cc7bbdbb22cb6f7e7916388a5ee8218bc8ffa158 | /Python3/Tornado/apps/pg/PG_Admin/lib/addr_gen/htdf_addr_gen.py | 39eb021321a8410dd0ed25bb9784f896a3bbcabb | [
"MIT"
] | permissive | youngqqcn/QBlockChainNotes | a816e067642f48a6da38b624663254b4016ec496 | c9c143eaba6c06e3cee866669ec286e4d3cdbba8 | refs/heads/master | 2023-04-03T23:31:05.585545 | 2023-03-30T09:29:07 | 2023-03-30T09:29:07 | 155,657,459 | 37 | 15 | MIT | 2023-03-06T23:09:32 | 2018-11-01T03:33:11 | JavaScript | UTF-8 | Python | false | false | 8,738 | py | #!coding:utf8
#author:yqq
#date:2019/5/5 0005 19:33
#description: USDP地址生成
import hashlib
import ecdsa
import os
from binascii import hexlify, unhexlify
#-----------------------------bech32编码---------------------------------------------
# Copyright (c) 2017 Pieter Wuille
#
# Permission is here... | [
"youngqqcn@163.com"
] | youngqqcn@163.com |
3133512b8763b92e7750efe9348a330550d320b5 | 1be65c272e2788f647534db9b3b003fc98228a71 | /emr/foursquare_minmax_reducer.py | fef2f3b85d101f601752038618909e4c2eb8eb37 | [] | no_license | camwes/thisis.me | e93e530cdddaab08d8796985ef88c0882ae142d0 | e1c32d237a7410298fdb034cab8378d5ecc14973 | refs/heads/master | 2021-01-20T21:45:09.389189 | 2012-09-12T00:45:19 | 2012-09-12T00:45:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | #!/usr/bin/python
'''
Created on Feb 27, 2012
@author: howard
'''
import sys, csv, json
def main(argv):
currKey = None
currMin = 0
currMax = 0
# reader = csv.reader(open("part-00000", "rb"),delimiter='\t')
reader = csv.reader(sys.stdin,delimiter='\t')
for row in reader:
key = json.loads(... | [
"howard@mobileidentity.me"
] | howard@mobileidentity.me |
4b632be043699eef409ad93ab2d59efa05756710 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_9243.py | 35af28dec31d51872dae63079e83e505d69ff593 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | # Is there a way of checking what type of authentication a website is using?
WWW-Authenticate
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
5298323a8664fc3bdca91fddd6b1f2b8e1ff15d1 | 134f7b37c72e93823bba52a7875ef8fffe384512 | /application/dao/__init__.py | 153a70f97f52707c1b713fd1b89e3d10d33c5a32 | [
"Apache-2.0"
] | permissive | PedalPi/Application | e13b7754089a7f0e4f187ebf70cc5b3eb625ff80 | 3fdf6f97cfef97a7f1d90a5881dd04324c229f9d | refs/heads/master | 2020-04-06T03:35:04.091677 | 2018-03-15T19:51:49 | 2018-03-15T19:51:49 | 54,052,953 | 3 | 5 | Apache-2.0 | 2018-03-15T19:51:51 | 2016-03-16T17:32:48 | Python | UTF-8 | Python | false | false | 575 | py | # Copyright 2017 SrMouraSilva
#
# 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,... | [
"mateus.moura@hotmail.com"
] | mateus.moura@hotmail.com |
a0037c979236355d9e5d6e953534c4a9fe239dd4 | e49958e8b10f35d2fd069d23b9838eff271e8161 | /nbgrader/tests/nbextensions/test_formgrader.py | 5734c397e4ad025c5ea97d80297f5c3b85009447 | [
"BSD-3-Clause"
] | permissive | AnanayGarg/nbgrader | 008cd1cd780bd46cbd874114c478d0f7a4971c8d | ad9bfe60f40a885361323bd063f653b057c3dff1 | refs/heads/master | 2020-03-31T05:41:01.545907 | 2018-10-07T12:41:25 | 2018-10-07T12:41:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61,729 | py | import pytest
import os
import shutil
import sys
import time
import glob
import itertools
from os.path import join
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by ... | [
"jhamrick@berkeley.edu"
] | jhamrick@berkeley.edu |
c0f833fbf51eaaa294f71be9dca416c590eb9902 | 8bd8f6ed73929fff7fa84f5a34fd79c76c7077d4 | /torch/utils/backend_registration.py | cbc4f5c9c37d58a24d7e580f96c852c90ae75923 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | cyyever/pytorch | 4c9c67d265772728327a0188d172090292985d33 | 1fb1c6e1356ce3ba5c776b380b1dd068f02635e9 | refs/heads/master | 2023-08-08T05:00:16.464643 | 2023-03-23T07:10:32 | 2023-03-23T07:10:32 | 466,115,844 | 0 | 2 | NOASSERTION | 2022-03-04T12:32:26 | 2022-03-04T12:32:26 | null | UTF-8 | Python | false | false | 2,346 | py | from torch._C import _rename_privateuse1_backend
def rename_privateuse1_backend(backend_name: str) -> None:
r"""
rename_privateuse1_backend(backend_name) -> None
This is a registration API for external backends that would like to register their
own device and C++ kernels out of tree.
The steps ar... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
d4291974ddb843502b1c8aa002c50411342324b0 | 9e7de0a1b17cb26044f7f83d2c5333b3136153a1 | /智神/UI自动化/ZY_Cami/ZY_Cami02/test_case/test_01.py | 34f066e7f7bc2c6b0691f2d82341baa6e25388ee | [] | no_license | wangdan377/Test_01 | 8af27cfc16b87f1a9f7adef86e25a4f5627fd073 | 49bd64d5f5c5ac1438d819418e1d948960e0d8c4 | refs/heads/master | 2023-01-07T07:52:33.690425 | 2020-11-11T08:03:25 | 2020-11-11T08:03:25 | 264,056,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,584 | py | """# conding=utf-8
import time
from appium import webdriver
from selenium.webdriver.common.by import By
server = 'http://localhost:4723/wd/hub'
desired_caps = {'platformName':'Android',#手机系统
'deviceName':'AIOJJZ8SV4HMVKS8',
'noReset':True,#防止每次启动时软件初始化
'appPackage':'com.... | [
"1065913054@qq.com"
] | 1065913054@qq.com |
dbcb3288496ba7d68303f6a2b83b9fbfd7ac534c | 84999d4bbf507b665de86293f0a4f887cd6dc46d | /lesson4/lesson4.py | 5bd3c2224136d1c0736a3721f667fcc0d3ac6093 | [] | no_license | Daniiarz/python07.01 | 4c74c70507d9f37f743e86fb0b3ce9d3d6d32ef2 | a35cfb47a1a5801684f6047340b03bce4c9b6e1c | refs/heads/main | 2023-05-07T11:04:41.900548 | 2021-05-22T13:50:51 | 2021-05-22T13:50:51 | 363,419,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | products = ["Cheese", "Ketchup", "Bread", "Water"]
print(len(products) - 1)
print(products[3], products[2], products[1], products[0])
print(products[0:2])
print(products[1:])
print(products[:2])
print(products[0:1:4])
print(products[::-1])
print()
print(products)
products[0:3] = "Juice", "K", "L"
a, b, c, d = "A", "B",... | [
"daniyarflash.m01@gmail.com"
] | daniyarflash.m01@gmail.com |
ea0063ddf1d2129af54bc8375a4434c36cb6a70d | e68a9de29d01307047b1c8f0fce63ed8e2cb310a | /testsuite/closure-conditional/run.py | 4e4e2765922050de46ebf40797bacc0770399782 | [
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | AcademySoftwareFoundation/OpenShadingLanguage | 93ca2c8a4ce74313dca6a45cfeb4625fb8a1624f | 473bbfcdbd8fa8799bf7fb61f70b1dcded0ea963 | refs/heads/main | 2023-08-31T01:54:14.617073 | 2023-08-26T21:23:49 | 2023-08-26T21:23:49 | 1,461,954 | 598 | 102 | BSD-3-Clause | 2023-09-14T18:08:40 | 2011-03-10T02:44:05 | C++ | UTF-8 | Python | false | false | 229 | py | #!/usr/bin/env python
# Copyright Contributors to the Open Shading Language project.
# SPDX-License-Identifier: BSD-3-Clause
# https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
command = testshade("-g 5 1 test")
| [
"noreply@github.com"
] | AcademySoftwareFoundation.noreply@github.com |
a51402c8ab98c46b129463527882e719c09c942a | 6ecf8227cc63ea5c8f05fdd6a7d28b3167119367 | /api/forum/admin.py | cc1f1f6354c98f0654f48974490f29319c157bbc | [] | no_license | doraemonext/blueking_forum | 5ad0f46780e785a5af4db6f171654e351f509aa1 | f5737dcdeaef15c37b37a0988aa1be98f6283834 | refs/heads/master | 2020-12-28T21:29:19.982785 | 2015-11-04T04:15:20 | 2015-11-04T04:15:20 | 44,859,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from api.forum.models import Forum, Thread, Post
class ForumAdmin(admin.ModelAdmin):
pass
class ThreadAdmin(admin.ModelAdmin):
pass
class PostAdmin(admin.ModelAdmin):
pass
admin.site.register(Forum, ForumAdmin)
admin.site.register(Thread, Th... | [
"doraemonext@gmail.com"
] | doraemonext@gmail.com |
340ba718ef5d05818b8c1cdbaa82dc41e175c856 | 8da4717bc2b9a75522733742702ce8b91cebd418 | /radio/views.py | 44cde3d3695a407596ed7ed58ef8bf82dca6868a | [
"MIT"
] | permissive | goldcat/trunk-player | 8c28eb776f0f76cdf3346cf41ddf6146f9845082 | 6272a65cf32fb7aa576d2cb858dca57a8207e6ed | refs/heads/master | 2021-01-13T16:37:47.127708 | 2017-01-12T18:42:50 | 2017-01-13T01:45:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,886 | py | #import functools
import re
from django.shortcuts import render, get_object_or_404, render_to_response
from django.http import Http404
from django.views.generic import ListView
from django.db.models import Q
from django.views.decorators.csrf import csrf_protect
from django.http import HttpResponseRedirect
from django.t... | [
"dreinhold@gmail.com"
] | dreinhold@gmail.com |
c6057dae138e17d7060412b0a8cce5619b91f13f | 8e0149f00f82f57216584b53180ec02870dee7e8 | /python/two_pointers/sliding_window/lc3.py | f55f96dca5582fc28a28a0a88e3b52d0c32c7266 | [] | no_license | chao-ji/LeetCode | 5880e0fa91d84ad70b5abd47e24ac75646fdcdf9 | 69a960dd8f39e9c8435a3678852071e1085fcb72 | refs/heads/master | 2020-12-13T03:35:42.009204 | 2019-06-15T04:45:38 | 2019-06-15T04:45:38 | 51,043,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | """3. Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters.
Example 1:
Input: "abcabcbb"
Output: 3
Explanation: The answer is "abc", with the length of 3.
Example 2:
Input: "bbbbb"
Output: 1
Explanation: The answer is "b", with the l... | [
"chocobo1985@gmail.com"
] | chocobo1985@gmail.com |
1ee33a7ab7315620fcebe26b12a0d9cc51708dd9 | edc6c414a3892744aa862ed88f2be6a2fbc4d250 | /flarestack/cosmo/rates/sfr_rates.py | beb1230a95b4abc88a7a738b793a55f0318d93ba | [
"MIT"
] | permissive | grburgess/flarestack | 3b62d9b7db1e1e13f2b46395b44bac13f497d1e5 | 6f94b9493d5470539e2705e473c84683720122cc | refs/heads/master | 2023-07-08T07:34:44.167545 | 2021-08-03T05:41:15 | 2021-08-03T05:41:15 | 392,212,094 | 1 | 2 | MIT | 2021-08-03T06:18:21 | 2021-08-03T06:18:20 | null | UTF-8 | Python | false | false | 2,961 | py | import logging
from astropy import units as u
def madau_14(z, **kwargs):
"""Star formation history as a function of redshift, from
Madau & Dickinson 2014 (http://arxiv.org/abs/1403.0007v3)
"""
rate = (1+z)**2.7 / (1 + ((1+z)/2.9)**5.6)
return rate
def strolger_15(z, **kwargs):
"""
star fo... | [
"robert.stein@desy.de"
] | robert.stein@desy.de |
225070283dd1335535b04cc5118043ab1c2650ba | ba694353a3cb1cfd02a6773b40f693386d0dba39 | /sdk/python/pulumi_google_native/firebasehosting/v1beta1/_enums.py | 65605c034d4682ef1217d149864003e4f4ef5176 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-google-native | cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b | 124d255e5b7f5440d1ef63c9a71e4cc1d661cd10 | refs/heads/master | 2023-08-25T00:18:00.300230 | 2023-07-20T04:25:48 | 2023-07-20T04:25:48 | 323,680,373 | 69 | 16 | Apache-2.0 | 2023-09-13T00:28:04 | 2020-12-22T16:39:01 | Python | UTF-8 | Python | false | false | 4,066 | 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__ = [
'DomainRedirectType',
'ReleaseType',
'ServingConfigAppAssociation',
'ServingConfigTrailingSlashBehav... | [
"noreply@github.com"
] | pulumi.noreply@github.com |
274182aa5bf9509e07dc9c815e44cf0820f5ef98 | 5a281cb78335e06c631181720546f6876005d4e5 | /ec2-api-8.0.0/ec2api/tests/unit/test_network_interface.py | ef5dd7c96d2e83795fb72c223572213c83822e85 | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 31,441 | py | # Copyright 2014
# The Cloudscaling Group, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
584d1954b3cbbe15da13fa24bcb8cc5d5531699f | f1cdc4ebd333d98e5a3a145dd51e5f99d6f5a959 | /src/mcedit2/rendering/renderstates.py | a1cd3a08272cb7a9ac09f16d5b334676fe3890ec | [
"BSD-3-Clause"
] | permissive | Xelloss-HC/mcedit2 | a4737aa6b3359bdbd8599dd0c2b73d01a4dbfe1e | 43c4c3c722861c6d90d11fca2cc43a717e96a510 | refs/heads/master | 2021-01-14T09:24:46.253494 | 2015-07-05T21:09:36 | 2015-07-05T21:09:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | """
renderstates
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
from OpenGL import GL
from mcedit2.rendering import rendergraph
from mcedit2.rendering.depths import DepthOffset
log = logging.getLogger(__name__)
class RenderstatePlainNode(rendergraph.Rende... | [
"codewarrior@hawaii.rr.com"
] | codewarrior@hawaii.rr.com |
23123f47e00a620f3dfe779662e922e609949ee5 | a8592d34f144b71794ebf30f1c2a1b5faf0b053c | /chapra_7th/ch06/chapra_exercise_6_19_plot.py | c833eb74abac3290b0bea6b9da347f3057e31776 | [] | no_license | f-fathurrahman/ffr-MetodeNumerik | ee9a6a7153b174b1ba3d714fe61ccbd1cb1dd327 | e3a9da224c0fd5b32e671708e890018a3c4104c4 | refs/heads/master | 2023-07-19T22:29:38.810143 | 2023-07-07T10:02:34 | 2023-07-07T10:02:34 | 107,272,110 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | import numpy as np
import matplotlib.pyplot as plt
R = 3.0 # m
V = 30.0 # m^3
def f(h):
return V - np.pi*h**2*(3*R - h)/3
h = np.linspace(0.0, 10.0, 1000)
plt.clf()
plt.plot(h, f(h))
plt.grid(True)
plt.savefig("IMG_exe_6_19.pdf") | [
"fadjar.fathurrahman@gmail.com"
] | fadjar.fathurrahman@gmail.com |
3f11c09f1d35ee7fd5c61e1ededa56b19d0df499 | f677ce5efcb6027601fca791557b20a96972a85c | /backend/healthcare/migrations/0001_initial.py | 150a89129f302da4060cce0c0d5f5ef7f419d78d | [] | no_license | crowdbotics-apps/test2-25277 | 7d1cad7f9f2fd4fc5f0b45ed3aa75688e382cafe | e4cb217e5610d788e0c526324e8129634f6716ad | refs/heads/master | 2023-03-26T02:47:45.621242 | 2021-03-26T13:47:37 | 2021-03-26T13:47:37 | 351,795,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | # Generated by Django 2.2.19 on 2021-03-26 13:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Step',
fields=[
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
6042c5e1195f3c4552a31ff26f9c8fe68f9fb4fc | 273ef932e22bcd351b9a1d643c5981ca5863b72e | /5 - Capstone/config/config.py | c78cb1f6348d1b93d6afb0d5fbde463741bd62f6 | [] | no_license | makism/udacity-dataengineer-nanodegree | ad0d283430b0767ed4b28bbe7ec89e5d72b7a30b | 2a20ce88a265997d5cd511a067330b4b1d1ad789 | refs/heads/master | 2022-12-26T21:13:49.015022 | 2020-10-14T18:57:04 | 2020-10-14T18:57:04 | 292,770,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | """ Project variables; mostly related to directory setup.
"""
# author Avraam Marimpis <avraam.marimpis@gmail.com>
import os
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
RAW_DATA = os.path.abspath(os.path.join(ROOT, "raw_data"))
ARTIFACTS = os.path.abspath(os.path.join(ROOT, "artifacts"))
IAC =... | [
"makhsm@gmail.com"
] | makhsm@gmail.com |
42636ea2304805231da5183b43d9a9552355bf9b | 189223c2d06dfca5e8497fd9fbcbe520b9b9bbd8 | /chapter1/GUI/person.py | d7f088b2727b4a62bd9ebf4d15af4568542f8c94 | [] | no_license | fireinrain/python_programing | 5a631f4e3903da39715384a66e414739ba7eadc1 | 3cec96ab5e055c3a9c86ed5c6ec1f49f76934a11 | refs/heads/master | 2022-06-26T23:26:11.872098 | 2017-06-26T15:55:22 | 2017-06-26T15:55:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | class Person:
def __init__(self,name,age,pay=0,job=None):
self.name=name
self.age=age
self.pay=pay
self.job=job
def lastName(self):
return self.name.split()[-1]
def giveRaise(self,percent):
self.pay*=(1.0+percent)
if __name__=="__main__":
bob = Person('bo... | [
"575563079@qq.com"
] | 575563079@qq.com |
657397b272b7b33ca62ee88ae980eeab20943e80 | f1cac7af547bf722904872e23d4b8d3b5f2e8a35 | /python/sklearn/tests/tests.py | 0abb225d07c82f49cf3784b0b7e1725162e491d1 | [] | no_license | vabeykoon/mlflow-examples | 549596b00397512e4bc1f8621fddb0e89d7f2c63 | 84e1e13d65cff84bafe3ef6cb7d9d9ebf481b3e4 | refs/heads/master | 2023-07-14T12:44:58.901138 | 2021-08-20T13:55:25 | 2021-08-20T13:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,086 | py | import mlflow
from wine_quality.train import Trainer
from wine_quality import predict_utils
from wine_quality import onnx_utils
experiment_name = "test_sklearn"
data_path = "../../../data/train/wine-quality-white.csv"
data = predict_utils.read_prediction_data(data_path)
def _test_basic(autolog, model_name):
train... | [
"amesar@users.noreply.github.com"
] | amesar@users.noreply.github.com |
52fdeae26e224e41e1f4c44b499cc93f19c4ea20 | ae39044997354b7270c6f35957bdd5efdcfbd2ee | /14.函数/8.修改变量.py | ba18b81313dac43427db787de0d3c1030212d3a0 | [] | no_license | text007/learngit | a2a7d8c872f17103a388f77370dcd07d6eb477c9 | 6f3429ecab51f738a99b2ec6637cd21603f48ec4 | refs/heads/master | 2020-06-18T13:18:34.563100 | 2019-10-08T13:08:09 | 2019-10-08T13:08:09 | 156,345,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # global 和 nonlocal 关键字
# 修改全局变量
num = 1
def fun1():
global num # 声明修改全局变量
print(num)
num = 123
print(num)
fun1()
print(num)
print('---------------')
# 修改嵌套作用域(enclosing 作用域,外层非全局作用域)
def outer():
num = 10
def inner():
nonlocal num # 声明修改局部变量
num = 100
print(num)
... | [
"jzheng@qumitech.local"
] | jzheng@qumitech.local |
fa3a570875f9398364442a40dcdfef099301702b | 04a540847c1333c987a1957fd8d31197c594f6bb | /leetcode/3. Longest Substring Without Repeating Characters_0_1_1.py | 9419baf5369337c190dfd1c9bb21e2a6cef24b1a | [] | no_license | k8440009/Algorithm | fd148269b264b580876c7426e19dbe2425ddc1ab | a48eba0ac5c9f2e10f3c509ce9d349c8a1dc3f0c | refs/heads/master | 2023-04-02T16:06:10.260768 | 2023-04-02T11:04:32 | 2023-04-02T11:04:32 | 200,506,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | """
중복 문자 없는 가장 긴 부분 문자열
https://leetcode.com/problems/longest-substring-without-repeating-characters/
슬라이딩 윈도우와 투 포인터
"""
class Solution:
def lengthOfLongestSubstring(self, s: str) -> int:
used = {}
max_length = start = 0
for index, char in enumerate(s):
"""
... | [
"k8440009@gmail.com"
] | k8440009@gmail.com |
110e160a69f330ca2c7627ea00c44d453d4951ca | cfd5892a220ec7702d5c416aa1821d2429480ede | /neodroidagent/entry_points/agent_tests/__init__.py | 22b079fc44866b3fdb611067434716d13f07b2b7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pything/agent | 611eac80348127b951a72ca76d2ab1f5a7732775 | 71c3bc072a8f3b7c3c1d873757cf5a1dafc3302d | refs/heads/master | 2022-04-28T08:13:27.705296 | 2020-11-17T16:58:46 | 2020-11-17T16:58:46 | 150,600,674 | 0 | 0 | Apache-2.0 | 2019-01-10T11:01:17 | 2018-09-27T14:31:45 | Python | UTF-8 | Python | false | false | 1,215 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 20/01/2020
"""
from neodroidagent.entry_points.agent_tests.torch_agent_tests.ddpg_test import *
from neodroidagent.entry_points.agent_tests.torch_agent_tests.dqn_test import *
from n... | [
"mrnaah@gmail.com"
] | mrnaah@gmail.com |
5972822ae4d53268084c400b4f6c848a88ed7811 | 27a787a3b9fceee77fb860f1f8f3d58036861b01 | /arc105/B/tester.py | 367f04a16bd808a48a50028cbf70f71057979916 | [] | no_license | AtomScott/atcoder | 8a837fd4b70adb3ace30efa744887b7d76b0043d | 7fdaa07a19e7b07f1443fdd3cdb5c0a2ec792a63 | refs/heads/master | 2021-07-20T11:54:39.665630 | 2021-01-07T06:14:37 | 2021-01-07T06:14:37 | 230,913,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,072 | py | #!/usr/bin/env python3
import sys, math
# A Binary Tree Node
class Node:
# Constructor to create a new node
def __init__(self, key):
self.key = key
self.left = None
self.right = None
# A utility function to do inorder traversal of BST
def inorder(root):
if root is no... | [
"atom.james.scott@gmail.com"
] | atom.james.scott@gmail.com |
2f596da532a7ab2da7cc9da184e01003c80b1dfa | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/min_20200610085706.py | 8c33241ec10f89202f98182e6a3f1ba31d977c83 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | def min(strArr):
stringN = strArr[0]
print(strArr[0])
# for i in range(len(stringN)):
# print(stringN[0:i+1])
i = 0
while i < len(stringN):
# stringN[i]
print(i)
i=+1
# print(stringN[0:i+1])
# code goes here
return strArr
min(["ahffaksfajeeubsn... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
056b193d1db264494335830bfe113e1dce0fe04e | 38ca6a06397965712ff17fc067cf67d81ed422b4 | /movieproject/movieproject/urls.py | 1aaa8983ea4858d0b2a84a0c54efd6c086765109 | [] | no_license | Ravi-Nayak/jobsremote_repo | 86b1b2fe2849dd01d42466a049cc32dad0723f83 | a20d4ef67e1237f66b451e555dc1efa5c7a85b4f | refs/heads/master | 2022-11-08T01:06:37.386453 | 2020-06-15T02:53:55 | 2020-06-15T02:53:55 | 272,327,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | """movieproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-... | [
"you@example.com"
] | you@example.com |
382e3d631896cbd27672cae8db6e7cc41160e4ec | 89ab168e5e6bbd164eca45366c17b8110ddbc508 | /plenum/test/test_round_trip_with_one_faulty_node.py | b6a3f8e5a8c63b0574c1c7169b63e4a821abf39a | [
"Apache-2.0"
] | permissive | jbest2015/plenum | e9893841a62b3f315f2967d5275f605d03247bbd | fcf445c0af6bdbe019b7382f0ffe7ae708063caf | refs/heads/master | 2020-12-26T02:51:10.351644 | 2016-03-03T18:05:24 | 2016-03-03T18:05:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | import logging
import types
import pytest
from plenum.common.request_types import Propagate
nodeCount = 4
faultyNodes = 1
# noinspection PyIncorrectDocstring
@pytest.fixture("module")
def alphaDoesntPropagate(startedNodes):
"""
Makes the node named Alpha in the given set of nodes faulty.
After applying... | [
"jason@evernym.us"
] | jason@evernym.us |
49877bf9fa574a5233756952d34707b0d8afb1ea | aab7c9a05831c743d196f51bcfabf8ca9c0158f1 | /roomai/bridge/BridgePublicState.py | 936c4d133003994710953e5fea5c612a1ef0480b | [
"MIT"
] | permissive | Abioy/RoomAI | d8cfe5f974bd95eb541b74909fbee5ec21e0a871 | 5ed2cf4458619567119b4038a9fb518d3cf3b6bd | refs/heads/master | 2021-05-16T16:20:11.631958 | 2018-01-28T07:53:30 | 2018-01-28T07:53:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,939 | py | #!/bin/python
import roomai.common
class BridgePublicState(roomai.common.AbstractPublicState):
'''
The public state of Bridge.
The attributes whose names start with "bidding" are used in the bidding stage \n
The attributes whose names start with "playing" are used in the playing stage\n
'''
d... | [
"lili1987mail@gmail.com"
] | lili1987mail@gmail.com |
cf59d50202a4f8c319d59434d5bb35375d975be1 | 39243ed0d300174613bc340b77ecafcc5e17cc43 | /src/m8_loops_and_objects.py | d2de52fe091400576099e1c070dccc44e8b5f424 | [
"MIT"
] | permissive | chenxu3/03-AccumulatorsAndFunctionsWithParameters-201930 | d6b72649172a586c9f312055265d84e60d5c5a38 | c6a8de0773373898f827962aa284ddd09b9b4f5f | refs/heads/master | 2020-04-27T13:27:32.694521 | 2019-03-13T03:51:12 | 2019-03-13T03:51:12 | 174,370,820 | 0 | 0 | MIT | 2019-03-07T15:28:22 | 2019-03-07T15:28:22 | null | UTF-8 | Python | false | false | 8,077 | py | """
This module demonstrates simple LOOPS of the form:
for k in range(blah):
... k ...
and also USING OBJECTS.
Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays,
Aaron Wilkin, their colleagues, and PUT_YOUR_NAME_HERE.
""" # TODO: 1. PUT YOUR NAME IN THE ABOVE LINE.
impor... | [
"mutchler@rose-hulman.edu"
] | mutchler@rose-hulman.edu |
ed075fdee6af948db635fa6d03c2ecf9756deeef | a012900f5a88c08609eb483078220cdf668ae6b2 | /LV1/1.5/cups/cups.py | b663c8327bae6b50e81f1d99231867d17dd09274 | [] | no_license | m00p1ng/kattis-problem | 422030179e195553913605a3ce922e7ecab6bbd5 | 4ab39cca65ba57dfae2a88b96e31797df62a60d0 | refs/heads/master | 2020-03-28T22:09:39.166151 | 2019-06-18T18:35:58 | 2019-06-18T18:35:58 | 149,209,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | n = int(input())
l = []
for _ in range(n):
a, b = input().split(' ')
if a.isdigit():
l.append((int(a), b))
else:
l.append((2*int(b), a))
[print(ans[1]) for ans in sorted(l)]
| [
"mongkonchai4412@gmail.com"
] | mongkonchai4412@gmail.com |
b478b79020b86e5830191e6d3612151eacbfaaf1 | cd239c8a48b170879a378f50123d13d3927b209c | /src/kep/tests/depreciated/rest_label.py | 49c23faefbc658c3bde2bd08e3fb0429214bfbbf | [] | no_license | mini-kep/parser-rosstat-kep | 9fe97166b7e944dec93822deb96cacfb4c047bf1 | 16d8b577ced7c2684e1e7020c3f47dff2bee170d | refs/heads/dev | 2021-09-22T15:46:30.123833 | 2018-09-11T15:42:14 | 2018-09-11T15:42:14 | 93,044,782 | 11 | 9 | null | 2018-09-18T14:04:39 | 2017-06-01T10:17:09 | Python | UTF-8 | Python | false | false | 1,106 | py | import pytest
import util.label as label
# TODO: add variable name with underscore, like GOV_EXPENSE
def test_make_label():
assert label.make_label('GDP', 'bln_rub') == 'GDP_bln_rub'
assert label.make_label('GDP', 'rog') == 'GDP_rog'
assert label.make_label('PROD_E', 'TWh') == 'PROD_E_TWh'
def test_spl... | [
"e.pogrebnyak@gmail.com"
] | e.pogrebnyak@gmail.com |
cd3512e516f4e4b87d9f70351698880d81f5074b | b8e5f55cdd72113c4ba8514a83b6db599faa9a6d | /scripts/eval_random_fields.py | 866be06e90b694d0ed5a37bdc3ad97bf162fc916 | [
"MIT"
] | permissive | wfc1102/deepsky | 016d63d18b00b50d89e1096632a1ad28de045a94 | cafcf1a3c73e8ac434d68a02c5b3f26c36ae5c2e | refs/heads/master | 2022-01-18T20:24:50.883132 | 2019-05-08T20:35:23 | 2019-05-08T20:35:23 | 277,761,706 | 1 | 0 | MIT | 2020-07-07T08:33:31 | 2020-07-07T08:33:30 | null | UTF-8 | Python | false | false | 6,603 | py | import numpy as np
import pandas as pd
from netCDF4 import Dataset
from multiprocessing import Pool
from os.path import exists, join
import argparse
from deepsky.evaluation import spatial_covariance, local_spatial_covariance
from deepsky.kriging import exp_kernel, distance_matrix, random_field_generator
from scipy.lina... | [
"djgagne@ou.edu"
] | djgagne@ou.edu |
b11d526b78628acaae5e9b3385abdb5c03c76622 | dc67e70a303f265ee6cb4c1a2d61fe811053fb3d | /beginner/018/C.py | c369d4add5f66da8bde6e33c0d6b294871dd0715 | [] | no_license | cry999/AtCoder | d39ce22d49dfce805cb7bab9d1ff0dd21825823a | 879d0e43e3fac0aadc4d772dc57374ae72571fe6 | refs/heads/master | 2020-04-23T13:55:00.018156 | 2019-12-11T05:23:03 | 2019-12-11T05:23:03 | 171,214,066 | 0 | 0 | null | 2019-05-13T15:17:02 | 2019-02-18T04:24:01 | Python | UTF-8 | Python | false | false | 757 | py | def count_diamond(R: int, C: int, K: int, S: list) -> int:
ok = [[True] * C for _ in range(R)]
for row in range(R):
for col in range(C):
if S[row][col] == 'o':
continue
u, d = max(0, row-K+1), min(R-1, row+K-1)
for rr in range(u, d+1):
... | [
"when.the.cry999@gmail.com"
] | when.the.cry999@gmail.com |
cbd72b062adc55a87114879eb0523bfa0b673f7d | 36f7e329efaf9f3b37003ef5c769628865f472ec | /Swasthya/med/migrations/0005_auto_20210525_1915.py | a53a8e3c7c06b275ef5b2b45fed3ab6710fa1885 | [] | no_license | aolashram/kri-vibe | d40080679f7f37568a8b57c2f7009ce6f6bcbbbc | 6d77600c0c6953c3c78ec9a1fdf5a80c6611e162 | refs/heads/main | 2023-05-31T17:50:09.377629 | 2021-06-21T04:38:51 | 2021-06-21T04:38:51 | 378,806,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | # Generated by Django 2.1.7 on 2021-05-25 13:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('med', '0004_auto_20210523_1831'),
]
operations = [
migrations.CreateModel(
name='MeasurementUni... | [
"amalrajrs@gmail.com"
] | amalrajrs@gmail.com |
6cc2ad085ca57da72fb3cfc9087557833fe62d27 | 6f9d86c0075bb15aa0eaea29d8ba025b3c5f9685 | /webGraph/tests/test_system_downloader_crawler.py | dc829f4156e41b18a88eaa4303bc642bef57ceae | [] | no_license | aratz-lasa/webGraph | 7685389b882659019201006f7238c5d1a3971e6b | 74c7ad819368ffb301c8d8f3ae5f1ea380689191 | refs/heads/master | 2021-06-14T04:47:54.685373 | 2019-12-10T07:34:07 | 2019-12-10T07:34:07 | 171,056,337 | 4 | 0 | null | 2021-04-20T17:51:43 | 2019-02-16T21:58:14 | Python | UTF-8 | Python | false | false | 1,465 | py | import trio
from .flask_test_server import *
from .._downloader import downloader
from .._crawler import crawler
from ..utils._data_structures import WebPage, Url
def test_downloader(start_server_thread):
trio.run(run_async_test_downloader_crawler)
async def run_async_test_downloader_crawler():
timeout = 5
... | [
"aratzml@opendeusto.es"
] | aratzml@opendeusto.es |
b67f7b73ae3d10d20959e42390ce832bc4dc0d78 | 8bbeb7b5721a9dbf40caa47a96e6961ceabb0128 | /python/767.Prime Number of Set Bits in Binary Representation(二进制表示中质数个计算置位).py | 4c73c475ae550cdb0401c1567a1c8f32713d13cb | [
"MIT"
] | permissive | lishulongVI/leetcode | bb5b75642f69dfaec0c2ee3e06369c715125b1ba | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | refs/heads/master | 2020-03-23T22:17:40.335970 | 2018-07-23T14:46:06 | 2018-07-23T14:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | """
<p>
Given two integers <code>L</code> and <code>R</code>, find the count of numbers in the range <code>[L, R]</code> (inclusive) having a prime number of set bits in their binary representation.
</p><p>
(Recall that the number of set bits an integer has is the number of <code>1</code>s present when written in binar... | [
"lishulong@wecash.net"
] | lishulong@wecash.net |
74808602fdc05f9d302a4d1f707747bc20d253a6 | 53798d960a6022813e35c55e9049226a315ff9e3 | /test/functional/create_cache.py | 8a8dfe049e64fc7621f10c3f4a0012fb54c26ba0 | [
"MIT"
] | permissive | ACB201887/acbx | 8c6cfe1a5ef5da5d5da8c69a88d70784dc376597 | 26933485d6d9cab9580942e8bbd461e76065064f | refs/heads/master | 2020-03-25T10:35:06.857735 | 2018-08-06T08:30:07 | 2018-08-06T08:30:07 | 143,697,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | #!/usr/bin/env python3
# Copyright (c) 2016 The ACB coin bt developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Create a blockchain cache.
Creating a cache of the blockchain speeds up test execution when running
multiple... | [
"test@gmail.com"
] | test@gmail.com |
d64c89142739b5bed4d6e898805b962bb87eb7d7 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1484496_0/Python/palemale/c.py | 9a069457fbcad6c841187774f9bc6c0caad1d8e3 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | import os, sys, itertools, operator
def powerset(iterable):
"powerset([1,2,3]) --> () (1,) (2,) (3,) (1,2) (1,3) (2,3) (1,2,3)"
s = list(iterable)
return itertools.chain.from_iterable(itertools.combinations(s, r) for r in range(1, len(s)))
def subset_sums(iterable):
stuff = {}
for sub... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
cc2b9c5bfc4a1a25270ee488364cc084c391d365 | 83cad706259f0959263081a6f05922f13c2f2e5f | /scripts/ils_in_windows.py | 5db81dfbe489ba349a2975a5534e86e8ccf71080 | [
"MIT"
] | permissive | kaspermunch/primate-ils | da8bd9c54415560dfbbe95fd8834e8d2bb7f5450 | 82acf93a4ce467127cb229444a456dbb207dc66c | refs/heads/master | 2023-06-08T13:53:57.150711 | 2023-06-02T07:57:42 | 2023-06-02T07:57:42 | 259,556,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | import sys
import pandas as pd
from chromwindow import window
import scipy.stats
_, input_file_name, window_output_file_name = sys.argv
# compute total segment length of each state:
@window(size=100000, fill='hg38')
def segment_total(df):
return (df.end - df.start).sum()
df = pd.read_hdf(input_file_name)
window_... | [
"kaspermunch@birc.au.dk"
] | kaspermunch@birc.au.dk |
4e7c310812b16526158971c17ca0fe70432a61bc | 52a4d282f6ecaf3e68d798798099d2286a9daa4f | /x7.py | b0c3a9d134d83c842d6aa6024ed07cfb4b4d007e | [
"MIT"
] | permissive | bkovitz/FARGish | f0d1c05f5caf9901f520c8665d35780502b67dcc | 3dbf99d44a6e43ae4d9bba32272e0d618ee4aa21 | refs/heads/master | 2023-07-10T15:20:57.479172 | 2023-06-25T19:06:33 | 2023-06-25T19:06:33 | 124,162,924 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,465 | py | '''
Simplest
=> do_something()
'''
def actions(self, _g, _thisid):
_result = []
_result.append(do_something())
return _result
'''
Builder
=> build ConsumeOperands(1, 2, 3)
'''
def actions(self, _g, _thisid):
_result = []
_result.append(do_something())
return _result
'''
Scout4
see t1 :=... | [
"bkovitz@indiana.edu"
] | bkovitz@indiana.edu |
5b401456efdda6d5c34ef32364c84af6a9c14109 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_antileakage_rule_request.py | f1c139e0784df5824efcecbef83399d1c27da846 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,433 | py | # coding: utf-8
import re
import six
class DeleteAntileakageRuleRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is j... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
d0b01a37310f0fdffb9017574a5fe0393fc3b5d9 | f99a83f3d538a121184de88bff19ce396be6e3d5 | /stayclean-2016-january/signup.py | 42c002eeb75b1972f986a2d0b63da6257dd3bfdb | [
"MIT"
] | permissive | foobarbazblarg/stayclean | c38deddd971b795af58ae389b9e65914dea08d2d | 384a8261b1164797d6726166a6e40f323e5bd6dd | refs/heads/master | 2023-02-21T09:48:57.907540 | 2023-01-02T15:32:35 | 2023-01-02T15:32:35 | 45,186,602 | 1 | 0 | MIT | 2023-02-16T03:49:00 | 2015-10-29T13:59:33 | Python | UTF-8 | Python | false | false | 389 | py | #!/usr/bin/python
import sys
from participantCollection import ParticipantCollection
names = sys.argv[1::]
participants = ParticipantCollection()
for name in names:
if participants.hasParticipantNamed(name):
print name + " has already signed up. Skipping."
else:
participants.addNewParticipan... | [
"foobarbazblarg@gmail.com"
] | foobarbazblarg@gmail.com |
87ecdd12866225dde23f1a0af8052423ceeaeb0d | 24f5858326abbe5424dffcc0faef890b052070bb | /Python/firms/firm_funcs.py | dd4cee042a001be17ee8564195c25e8fb9842966 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | lnsongxf/OG-USA | 1482d4263376d20b4adf881b3e878ca809600b8d | 9e92129e67f4aea5f3a6b8da4110bf67b99ce88a | refs/heads/master | 2021-01-21T19:57:57.110091 | 2017-05-13T00:06:13 | 2017-05-13T00:06:13 | 92,179,138 | 1 | 1 | null | 2017-05-23T13:56:01 | 2017-05-23T13:56:00 | null | UTF-8 | Python | false | false | 5,727 | py | '''
------------------------------------------------------------------------
This script contains functions common to the SS and TP solutions for the
OG model with S-period lived agents, exogenous labor, and M industries and I goods.
get_p
get_p_tilde
get_c_tilde
get_c
get_C
get_K
get_L
... | [
"jason.debacker@gmail.com"
] | jason.debacker@gmail.com |
a9558463a50322e4361b9b5969c9f8f93850cefe | fbcdb3e66f9fce9bf8596ae9f28e14ad23da30a2 | /lib/elf/segment.py | d785f1d15e08e8846bd18681a893cb01286437b4 | [
"BSD-2-Clause"
] | permissive | arizvisa/syringe | 38349e6ff81bc1d709d520b8a8d949a47a3b5f6c | e02b014dc764ed822288210248c9438a843af8a9 | refs/heads/master | 2023-08-18T11:44:50.096141 | 2023-08-16T21:15:58 | 2023-08-16T21:15:58 | 22,565,979 | 36 | 9 | BSD-2-Clause | 2021-05-24T19:38:31 | 2014-08-03T03:24:16 | Python | UTF-8 | Python | false | false | 13,372 | py | import sys
from .base import *
from . import dynamic
class PT_(pint.enum):
_values_ = [
('NULL', 0),
('LOAD', 1),
('DYNAMIC', 2),
('INTERP', 3),
('NOTE', 4),
('SHLIB', 5),
('PHDR', 6),
('TLS', 7),
('GNU_EH_FRAME', 0x6474e550),
('GNU_S... | [
"arizvisa@gmail.com"
] | arizvisa@gmail.com |
09db12873bcb071a7323dfc1e9d6c420531bf297 | 1302c48beae789b1b7837f34325a8f2b203d69df | /src/byro/bookkeeping/signals.py | eae309a5780a55c2b70f92a77340af7656b64a07 | [] | no_license | grince/byro | b9a8ad0d54b78ee220af6dedee119ab9ec0036df | abe8743c04ba828fdd5ff50c55c43a3b32bc26bd | refs/heads/master | 2021-01-25T12:31:12.461853 | 2018-02-26T17:42:12 | 2018-02-26T17:42:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | import django.dispatch
derive_virtual_transactions = django.dispatch.Signal(providing_args=[])
process_csv_upload = django.dispatch.Signal(providing_args=[])
"""
This signal provides a RealTransaction as sender and expects a list of
one or more VirtualTransactions in response.
If no VirtualTransaction can be found, an... | [
"rixx@cutebit.de"
] | rixx@cutebit.de |
d79f24c16a352a4e612b535d93e3247faf2b1051 | 9f6ea967d84c37d04543d72edabce4dea0517a4f | /all_scraper/Service/TaoBaoScraper/Service/Service_TaobaoQuene.py | 361e3f5ccbecb6fe96b3a3f23929563d1e8b772d | [] | no_license | GongSong/All_Scraper | 8fae34851b8c4b31ab1ae47f39d511a0869c59ef | f2bacc8416ed2e611e5e8515d34ec12fd5f10018 | refs/heads/master | 2020-07-22T08:46:32.347936 | 2017-08-03T02:17:01 | 2017-08-03T02:17:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | #-*-coding:utf-8*-
from keywords_scrape.keywords_scrape import keywords_scrape
from products_scrape.products_scrape import products_scrape
from product_review_scrape.product_review_scrape import products_review_scrape
from seller_page_scrape.seller_page_scrape import seller_page_scrape
class Service_TaobaoQuene():
... | [
"javen.xi@atommatrix.com"
] | javen.xi@atommatrix.com |
3dbe6d2fe2abea4a550bfd44e81683d712357e8a | 2d997384a86f0d9c0cdb80a1141908abfdf674cc | /ML_individual_work/classification.py | f560c587ffb8c913193b7edcc526cf19465c9c99 | [] | no_license | Alice-Avetisyan/Machine_Learning | 1ddc91fad066f3abf0457d036aa783f0fc40a46f | 9a0cc83c6d90ef58703a383f066ef857bb124334 | refs/heads/master | 2021-01-16T09:07:20.435898 | 2020-06-18T08:44:17 | 2020-06-18T08:44:17 | 243,054,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,317 | py | import pandas as pd
'''
Problem setting ->> We are checking if the person is a smoker, with the use of data
After checking the data for correlation, we can see that charges and smoker have the highest correlation
->> Smokes when stressed
'''
# Retrieving the data
insurance_data = pd.read_csv('insurance.csv'... | [
"noreply@github.com"
] | Alice-Avetisyan.noreply@github.com |
ecb9f48bad8cfcfd3cb20a41cde4a8deef54450a | ebc78a31776f14ae5a24fbf24d4af8803b1bb88d | /MNB sentiment.py | c66a986f170cf2f4629bb7c57e89c3983f0ba40f | [] | no_license | ez4lionky/twitter-nlp | 80927fdfb5c10c9132f3bf801176ac6aa5d9afcb | f2d66ec103c8a3ad94dc1dc62dfef4b334379143 | refs/heads/master | 2020-06-28T23:46:03.123369 | 2019-08-08T05:32:49 | 2019-08-08T05:32:49 | 200,374,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | import numpy as np
import argparse
import time
from sklearn.naive_bayes import MultinomialNB
from load_data import *
parser = argparse.ArgumentParser()
parser.add_argument("--train_fm", type=str, default="train_data.csv")
parser.add_argument("--test_fm", type=str, default="test_data.csv")
args = parser.parse_args()
tr... | [
"codex.lxy@gmail.com"
] | codex.lxy@gmail.com |
db0e46f3c048692b19e730614e6db73f2d79d57d | 057d2d1e2a78fc89851154e87b0b229e1e1f003b | /venv/Lib/site-packages/keystoneauth1/tests/unit/test_token_endpoint.py | ff28c0516e2e7701b2cd6fdebee8f7e2baab7801 | [
"Apache-2.0"
] | permissive | prasoon-uta/IBM-Cloud-Secure-File-Storage | 276dcbd143bd50b71121a73bc01c8e04fe3f76b0 | 82a6876316715efbd0b492d0d467dde0ab26a56b | refs/heads/master | 2022-12-13T00:03:31.363281 | 2018-02-22T02:24:11 | 2018-02-22T02:24:11 | 122,420,622 | 0 | 2 | Apache-2.0 | 2022-12-08T05:15:19 | 2018-02-22T02:26:48 | Python | UTF-8 | Python | false | false | 2,633 | 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 t... | [
"prasoon1812@gmail.com"
] | prasoon1812@gmail.com |
3d7677a31191834c316e6a7f550272e0444a9aa4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_117/1725.py | 26a69e252294633ab6907cffbbd41b259c074bf5 | [] | 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 | 587 | py | import sys, os, itertools
def checkLawn(lawn,n,m):
for i in range(n):
for j in range(m):
if lawn[i][j] != max(lawn[i]):
not_found.append((j,i))
if not_found:
lawn = zip(*lawn)
for i,j in not_found:
if lawn[i][j] != max(lawn[i]):
return "NO"
return "YES"
fi = sys.stdin
lawns = []... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
263589f76d2a8f1f81825afe8e63af974a57850f | 893597d91fe6de25cdd3e8427c4ebba29d3cabe1 | /tests/io_mod/test_fileloadermixin.py | 7949432425259a38de25f612f9502de068eefb6d | [
"Apache-2.0"
] | permissive | AugustasV/ploomber | d51cefd529bdbf6c2bc82485ba77add6bb346f2b | b631a1b21da64bb7b9525db1c29c32ee3c0e48b4 | refs/heads/master | 2023-08-27T02:22:55.556200 | 2021-10-31T02:52:28 | 2021-10-31T02:52:28 | 423,189,549 | 0 | 0 | Apache-2.0 | 2021-10-31T15:44:17 | 2021-10-31T15:44:16 | null | UTF-8 | Python | false | false | 2,241 | py | from unittest.mock import Mock
import pytest
import pandas as pd
from ploomber import DAG
from ploomber.tasks import SQLDump, NotebookRunner, PythonCallable
from ploomber.products import File
def test_unsupported_extension():
task = SQLDump('SELECT * FROM table',
File('my_file.json'),
... | [
"github@blancas.io"
] | github@blancas.io |
3f759aa393cc8c7c994fab97d510d53e12385815 | 99a45847f28e817ebed33ba9eba6200adc43995e | /burnkaz/celery/celery.py | c5c01e8b8ba70839fd060bf8137f462e031496e4 | [] | no_license | Beketx/burn | 1924652b31fca60a09cf6f739297a62163af0a89 | 31b5452f31e12374e3c63b892030a06b058e9df1 | refs/heads/master | 2023-06-09T01:06:07.156706 | 2021-06-24T08:11:18 | 2021-06-24T08:11:18 | 353,942,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | import os
from celery import Celery
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'burnkaz.settings')
app = Celery('burnkaz')
# Using a string here means the worker doesn't have to serialize
# the configuration object to child processes.
# - names... | [
"beketsk@gmail.com"
] | beketsk@gmail.com |
20e7dbfd3a941df671396a9bbd08c8678a3c1c68 | 6c14069181f313e84eeb524dd495e3882156ef50 | /samples/basic/executor/models/cisco-ios-xr/Cisco-IOS-XR-snmp-test-trap-act/nc-execute-xr-snmp-test-trap-act-446-ydk.py | 5d04dbda7b6beb29fc08ee5de959380c5fac6d43 | [
"Apache-2.0"
] | permissive | decolnz/ydk-py-samples | dde0fd64fd4df12a215588766a0f1fb8baf07fcd | 7fa3f53c4d458c3332d372fb2fe3c46c5e036f07 | refs/heads/master | 2021-01-19T03:24:19.877929 | 2017-04-04T17:16:46 | 2017-04-04T17:16:46 | 87,310,389 | 1 | 0 | null | 2017-04-05T13:06:57 | 2017-04-05T13:06:57 | null | UTF-8 | Python | false | false | 2,979 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"saalvare@cisco.com"
] | saalvare@cisco.com |
3fe1e2c003aa3da326040d8db14a899ba787a92b | f2d0547a8c275d6f34be51142f554312ec7a9e86 | /server/app.py | 3356cb556ef8492be8f94b413cec289a7dd39430 | [] | no_license | 15007150799/flask-vue-stripe | 5978602cfb5847e447203ba4c9eb83a67b941951 | 54dd53c77cb1633ffc126b2532466f5b42ed4aa1 | refs/heads/master | 2022-01-10T08:21:33.818071 | 2019-05-08T12:55:24 | 2019-05-08T12:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,406 | py | import os
import uuid
import stripe
from flask import Flask, jsonify, request
from flask_cors import CORS
BOOKS = [
{
'id': uuid.uuid4().hex,
'title': 'On the Road',
'author': 'Jack Kerouac',
'read': True,
'price': '19.99'
},
{
'id': uuid.uuid4().hex,
... | [
"hermanmu@gmail.com"
] | hermanmu@gmail.com |
bbb2c67810348e14864180feac0778a3066afe47 | 26d8ae8d396a36d51eecfa330ce635b4888f20d9 | /psf_star_pedestal/smoothing.py | 142d836915e762c707231a9c0530149fde4a3c70 | [] | no_license | fact-project/psf_star_pedestal | fd18c07056ff268239f99adbf4787ac7622674cd | 461c757e0b19f5707f79c4e52fe60dfcdaf7d3ea | refs/heads/master | 2021-01-19T12:16:26.947981 | 2017-06-04T14:22:09 | 2017-06-04T14:33:06 | 82,299,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | from scipy.signal import butter, lfilter
from scipy.signal import gaussian
import numpy as np
def butter_lowpass(data, cutoff, order=5):
b, a = butter(order, cutoff, btype='low', analog=False)
smooth = lfilter(b, a, data)
return smooth
def rolling_mean(data, n):
window_size = 2 * n + 1
kernel = ... | [
"maximilian.noethe@tu-dortmund.de"
] | maximilian.noethe@tu-dortmund.de |
8aa2e95010c36c12a37ced417a72ff19b684a5ef | 2d80791a21a049243dd2bf7dd95a46c4d4b2510b | /contests/30daysofcode/9.py | 32cc8ebe16879e8d8322c915f7a99d87017cbae4 | [] | no_license | jayrav13/jr-hackerrank | 909346d101fdf08a54ff75ec2ee39c90e661b251 | b7e0130fdd1c2eb4436871be3255200eac8ca3d9 | refs/heads/master | 2021-01-15T15:36:16.772814 | 2016-11-21T18:59:15 | 2016-11-21T18:59:15 | 48,657,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | def find_gcd(a, b):
while b != 0:
(a, b) = (b, a % b)
return a
values = raw_input().strip().split(' ')
print find_gcd(int(values[0]), int(values[1]))
| [
"jayrav13@gmail.com"
] | jayrav13@gmail.com |
57b68980a39c0fe66c8c6151128ff84838074275 | f7cccb7f103fa37b6125538029a5685fd49aa76f | /nn/tcga_ssv/run_tcga_ssv.py | 57f954bc9c0445861612ca65e15d367c08761a88 | [] | no_license | hag007/dlp | 18edbab5432915d042988fe6546a1a5e2e4628d8 | 64c46ab3039c4cac5410ca9599bb80a5c89b0197 | refs/heads/master | 2022-06-17T12:15:36.408292 | 2020-05-10T08:29:48 | 2020-05-10T08:29:48 | 258,468,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,894 | py | import os
import matplotlib
import matplotlib.pyplot as plt
matplotlib.use('Agg')
import torch
from nn.models import Encoder, Decoder, Classifier
import constants_tcga as constants
from datasets import datasets
import torch.optim as optim
import numpy as np
import copy
from multiprocessing import Pool
from nn.tcga_... | [
"hagai.levi.007@gmail.com"
] | hagai.levi.007@gmail.com |
8745321f0580a3ae4c84005d664ed8ea65fe97f1 | 94f156b362fbce8f89c8e15cd7687f8af267ef08 | /week5/main/migrations/0002_auto_20191106_0159.py | d84e71ecde8cd973004279370f9a79560aa9bc87 | [] | no_license | DastanB/AdvancedDjango | 6eee5477cd5a00423972c9cc3d2b5f1e4a501841 | 2b5d4c22b278c6d0e08ab7e84161163fe42e9a3f | refs/heads/master | 2020-07-17T19:21:16.271964 | 2019-12-03T21:58:51 | 2019-12-03T21:58:51 | 206,081,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # Generated by Django 2.1.2 on 2019-11-05 19:59
from django.db import migrations, models
import utils.upload
import utils.validators
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='taskdocu... | [
"dastan211298@gmail.com"
] | dastan211298@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.