blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
372a51ab5a1ba04386d600954a4b8dfd5297b211 | e61e725d9a962837e2b56f84e3934b0fb52dd0b1 | /eoxserver/backends/middleware.py | fcd2756c0adad6b32c04637ceb2a4f2e2ccd6006 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | ESA-VirES/eoxserver | 719731172c2e5778186a4b144a201f602c07ce7e | d7b65adf9317538b267d5cbb1281acb72bc0de2c | refs/heads/master | 2021-01-21T20:06:22.164030 | 2014-10-14T12:21:13 | 2014-10-14T12:21:13 | 25,151,203 | 1 | 0 | null | 2014-12-04T09:46:54 | 2014-10-13T09:00:54 | Python | UTF-8 | Python | false | false | 2,089 | py | #-------------------------------------------------------------------------------
# $Id$
#
# Project: EOxServer <http://eoxserver.org>
# Authors: Fabian Schindler <fabian.schindler@eox.at>
#
#-------------------------------------------------------------------------------
# Copyright (C) 2013 EOX IT Services GmbH
#
# Per... | [
"fabian.schindler@gmx.at"
] | fabian.schindler@gmx.at |
f29ceb238add96af02a1915367376626c0ef15a1 | 39baaddf53bcdf884d85d5e0cf020f161863f250 | /TimeSeriesOO/Transformations.py | dc06cb097c43b9b2785f1b790c9cc89694348cf8 | [] | no_license | glenMoutrie/PyCast | b2668c2e29477016352b694fbcb5b5aa7b807924 | f7f57c4b6546653a8b07dd923c5f453d28a8d90e | refs/heads/master | 2021-09-15T21:23:25.293787 | 2018-06-11T05:07:15 | 2018-06-11T05:07:15 | 108,550,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from scipy.stats import boxcox
def boxCox(x, lam):
return boxcox(x, lam)
def normalize(x):
pass
| [
"glen.moutrie@gmail.com"
] | glen.moutrie@gmail.com |
3dbb8995c77843b3e2101696d3dbbaa1f1128dc1 | da957b113a9249fa9f2c49d0705143e8944a233d | /cookiez/migrations/0005_auto_20170503_0338.py | ef5b6b7190c69c0bfd6510aca5a9d9e9abe7d0f5 | [] | no_license | JustinG721/cookiez | 45c06493c75302a52e043f8ef7c20ead5a42dc04 | 70d27afca7ebb6c6f17be84205f3cd2f0c6f444d | refs/heads/master | 2021-01-20T14:15:19.251789 | 2017-05-08T05:52:33 | 2017-05-08T05:52:33 | 90,574,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-05-03 03:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cookiez', '0004_cookie_imagepath'),
]
operations = [
migrations.AlterField(
... | [
"loganhdgsn@gmail.com"
] | loganhdgsn@gmail.com |
c12a56417f42a17ab56338c14bdc9b659b35fa30 | 6f313bc5dcd6c48973e6355f111633ae94b256c4 | /codeblue/asgi.py | 99a98139ac0d4853d9c5bcd2bc819fb10c5c2ee5 | [] | no_license | abhishektyagi1263/codeblue | 5b363b7aaf23b84d13437f3dbc30481ee7564472 | 0719f3aded4bc0ee42a4b9e3daa37b6c9f604543 | refs/heads/main | 2023-03-07T03:32:29.229667 | 2021-02-15T05:45:31 | 2021-02-15T05:45:31 | 338,580,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for codeblue 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"abhishektyagi1263@gmail.com"
] | abhishektyagi1263@gmail.com |
ed02d24865a5e379984359a5af0aeb12913d0429 | a7da58ad91b007b3650003708eb91928f1e3684a | /product/ERP5Type/ConnectionPlugin/SQLConnection.py | 98b1ff925bd2f6d0a93510675ad10a5ec38841db | [] | no_license | jgpjuniorj/j | 042d1bd7710fa2830355d4312a6b76103e29639d | dc02bfa887ffab9841abebc3f5c16d874388cef5 | refs/heads/master | 2021-01-01T09:26:36.121339 | 2020-01-31T10:34:17 | 2020-02-07T04:39:18 | 239,214,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | ##############################################################################
#
# Copyright (c) 2010 Nexedi SARL and Contributors. All Rights Reserved.
# Aurelien Calonne <aurel@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole resp... | [
"aurel@nexedi.com"
] | aurel@nexedi.com |
36e25d40975cb3f2bbb9ca251092b2dcf81d78b0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/298/68638/submittedfiles/testes.py | 7bb6c9f0c7507804399fccf4e2c1e9aca7ac8f50 | [] | 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 | 1,370 | py | print('Sejam a, b e c os coeficientes de uma equação do segundo grau')
a = float(input('Digite a: '))
b = float(input('Digite b: '))
c = float(input('Digite c: '))
delta = (b**2 - 4*a*c)
if (delta>=0):
raizdelta = float((delta)**(1/2))
else:
raizdelta = float((-(delta)**(1/2))*float(j))
x1 = float(-b/2 + raizde... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0731e89d54a04280c1b45374174b8194fbf92637 | 692607ee6effcf47a74b3e29f5263383ad0be6ff | /src/mesh/weights.py | 706ec6ae607caa2bbe69c01aa3618e7732bd060b | [] | no_license | kissinger31/arapsfm | cbb6837dc04d3b3d25e6a383ad5e320e6ea58427 | aa5779c052f9f74286b692a1b3759b6eaf32eb2c | refs/heads/master | 2022-01-10T16:07:21.882204 | 2019-05-07T12:38:32 | 2019-05-07T12:38:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,730 | py | # weights.py
# Imports
import numpy as np
from scipy import sparse
from itertools import groupby
# weights
def weights(V, cells, weights_type='cotan'):
"""
weights(V, cells, weights_type='cotan')
Calculate the mesh weights and adjacency matrix for a triangular mesh.
Parameters
----------
V :... | [
"t-richs@.europe.corp.microsoft.com"
] | t-richs@.europe.corp.microsoft.com |
1098a789c29b45f0d9d74b610f2bd525c611d6ba | e70b678712a355a0b51632728c7781b0bdcf29f4 | /Algorithms/Python/House-Robber-III.py | a74ac277aba3199f40ac9f6b7b313a6b34906408 | [] | no_license | keyi/Leetcode_Solutions | b3e3c6835ed335d7d4ad53a1b37e59ac15fcf3af | 69e4e969b435ff2796bd7c4b5dad9284a853ab54 | refs/heads/master | 2020-05-21T23:36:20.450053 | 2018-11-11T03:45:28 | 2018-11-11T03:45:28 | 33,714,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def rob(self, root):
"""
:type root: TreeNode
:rtype: int
"""
def dfs(node):
... | [
"yike921012@gmail.com"
] | yike921012@gmail.com |
fa53c052da5cff9c633875e73317587c8a20af54 | bb81909bf39563696e277159beb2178832639c8d | /nested+if+else.py | 3e171c4015bd0fac23674b91a1625ad29d7342d8 | [] | no_license | khanshoab/programinpython | dbbd9af53f9b690948693a0f5e2d9cd1e6119341 | 37e4827c7d493654f60445f7f6154089435acf28 | refs/heads/master | 2023-07-04T23:35:28.358659 | 2021-08-17T11:13:00 | 2021-08-17T11:13:00 | 397,221,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | a=5
b=2
c=6
d=3
if (a>b):
print("a is greater then b")
if (c>b):
print("c is greater than d")
else:
print("d is greater than c")
else:
print("b is greater than a")
print(" remaning code of program") | [
"khanshoab19co33@gmail.com"
] | khanshoab19co33@gmail.com |
ff33b0745544823f2ef412e0af480151dc88739a | 8ef477149fdd8cd8c0ad88f160e2b8a445550a1e | /ebay_message_mgnt_v13/models/sale.py | 640d56cdf61c3f2595d74646f9d71dd5e8ca8e3f | [] | no_license | cokotracy/ebay_connector_v13 | 97f3e23ba951f14457514b71b408b389a7c16dc7 | 3c08603875d464e5bee818091fa704f5f7192499 | refs/heads/master | 2022-07-19T21:15:23.065880 | 2020-05-20T15:20:23 | 2020-05-20T15:20:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,814 | py | from odoo import api, fields, models, _
import time
import datetime
# from odoo import SUPERUSER_ID, api
import logging
logger = logging.getLogger('sale')
class sale_shop(models.Model):
_inherit = "sale.shop"
last_ebay_messages_import = fields.Datetime('Last Ebay Messages Import')
def i... | [
"https://Anjeel@bitbucket.org"
] | https://Anjeel@bitbucket.org |
8231022b260cc49ceca99cdc566df4b0860f21eb | fb468eee3a5a6467d299373c9632802f903c2ea8 | /CIL/rastersystem.py | 852c637a35a6a47c79a18a505dbba2b8e199b57a | [] | no_license | fish2000/cython-imaging | ebcd51789692de756fd8cd1030636364d1c248ba | a3f0d1784275a3d4e3ad509b77c7563856be96d4 | refs/heads/master | 2021-01-20T11:23:00.414850 | 2012-07-14T20:17:29 | 2012-07-14T20:17:29 | 4,513,759 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,504 | py | #!/usr/bin/env python
#
# NB: see warning regarding matrix row/column ordering in raytracer.cpp file header
#
# The matrix is stored in sparse format.
# For each row we have an (index,value) pair.
import numpy as np
from os.path import isdir, join, basename, dirname, abspath, splitext
from os import getcwd, chdir
fr... | [
"fish2000@gmail.com"
] | fish2000@gmail.com |
451fca20992f85b6ab2bdff565ff25314a62df06 | 5a72f4ad3dee9c93e907e5db6ae073a0f6173557 | /web/actions/log_handler.py | 8eb2c9e92525a051d778d3ec66e77de9aa6b3fba | [
"Apache-2.0"
] | permissive | avikowy/machinaris | 170117fa8857942d90b33b15a727674924da1d66 | 23eead3c30e5d4a75b13c142638c61bcd0af4bfe | refs/heads/main | 2023-06-17T15:54:08.795622 | 2021-07-16T04:19:37 | 2021-07-16T04:19:37 | 386,497,979 | 0 | 0 | Apache-2.0 | 2021-07-16T03:35:17 | 2021-07-16T03:35:17 | null | UTF-8 | Python | false | false | 822 | py | #
# Actions around access to logs on distributed workers.
#
import datetime
import os
import psutil
import re
import signal
import shutil
import socket
import time
import traceback
import yaml
from flask import Flask, jsonify, abort, request, flash
from web import app, db, utils
def get_log_lines(worker, log_type, ... | [
"guydavis.ca@gmail.com"
] | guydavis.ca@gmail.com |
dccb4759b5eaef25cc285ce8aafd3d1cce6d24b1 | 7daedcd2764970cc10249f229cd279eb1049aa17 | /politicalexperimentpollproject/urls.py | 3a45b839d8ec6bb9ad49c440f30ddc917c7d7e23 | [] | no_license | jj2288/politicalexperiment | 091dba74f339146c62b4591c76b8033d0d33258a | 47d62e3bf7e7a116b11a6b44c305cb108e6c6b9b | refs/heads/master | 2023-04-27T12:30:06.099093 | 2019-10-22T22:13:57 | 2019-10-22T22:13:57 | 216,892,990 | 0 | 0 | null | 2023-04-21T20:38:50 | 2019-10-22T19:24:41 | Python | UTF-8 | Python | false | false | 834 | py | """politicalexperimentproject 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=... | [
"jamielynn.murtha@gmail.com"
] | jamielynn.murtha@gmail.com |
d591231d33ecea9aaaf9c0e66609c392370249a6 | 69a9ffc06b16ba9cf760d4317b0340b6d1c307bf | /commerce/auctions/migrations/0005_listing_starting_bid.py | c5395d4f05c3c22702733efefdd70a030ca7911e | [] | no_license | nitinimage/cs50web | f05d6e6b5ccc9a127e1a0a5543f306256123f380 | 376176d87201975f390828dd7d4bf511ec99df10 | refs/heads/main | 2023-01-08T07:27:28.328617 | 2020-11-05T21:37:58 | 2020-11-05T21:37:58 | 302,704,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # Generated by Django 3.1.1 on 2020-10-28 03:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auctions', '0004_auto_20201028_0315'),
]
operations = [
migrations.AddField(
model_name='listing',
name='starting_bi... | [
"image@Nitins-MacBook-Pro.local"
] | image@Nitins-MacBook-Pro.local |
03ba32263a38171e7c129e9267cbfb825bb9d91a | 814d4f8a9db81ae7801f3057b76db1c30923672d | /python/examples/chk_dec.py | 7700c49efedf1533d61455bf3f526d888ae497fc | [
"BSD-3-Clause"
] | permissive | jadeblaquiere/fspke | 61bd85d01a041c40f84dcfb87bcc4ef3b8eb096c | abb5c3577dfef6c35c6ec9f8c402a211d339cb1b | refs/heads/master | 2018-10-09T04:20:46.521273 | 2018-09-19T15:33:04 | 2018-09-19T15:33:04 | 111,965,000 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,084 | py | #BSD 3-Clause License
#
# Copyright (c) 2018, Joseph deBlaquiere <jadeblaquiere@yahoo.com>
# All rights reserved
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above... | [
"jadeblaquiere@yahoo.com"
] | jadeblaquiere@yahoo.com |
b21dd11a0c3d27b65f38ed7e0e18318d7a767026 | 0c141972d779ec44c1f252194514ad9c464aef2e | /third_party/json-c/moz.build | fafdbd39f309942e66b3d0dfa908970188ee34cd | [
"MIT"
] | permissive | mozilla/releases-comm-central | 6a47ae14f6e24b4ff22998ca957078b7956b04e2 | d4838a15a8dbad6d5d9b7e6f486e43bf1511f87a | refs/heads/master | 2022-02-12T03:24:52.518381 | 2022-02-12T00:34:15 | 2022-02-12T00:34:15 | 4,578,344 | 137 | 101 | null | 2023-07-25T20:56:40 | 2012-06-06T21:42:18 | JavaScript | UTF-8 | Python | false | false | 1,087 | build | # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
Library("json-c")
FINAL_LIBRARY... | [
"rob@thunderbird.net"
] | rob@thunderbird.net |
2006e652b0345b1af7b694a035fb9f5ae15d37b6 | d1431944e2a87914e9f3fb42ac7810fe7b5f04c9 | /PythonProject/Textures/Font/genegate.py | 6a8d8f9259a9fc758c729e6e853bc704d841b95b | [] | no_license | alexander-veselov/BattleCity | 12eb36a8b85b41b8510c9a40a237ce6a8d328b29 | e2cbd2f2278530aa873d523cf2fc0eebfdc4feb9 | refs/heads/master | 2021-09-28T05:34:53.790432 | 2018-11-14T21:57:09 | 2018-11-14T21:57:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | letter = list()
alph = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
i = 0
with open("Textures/alphabet", encoding='utf-8') as file:
for line in file:
if line != "\n":
letter.append(line)
else:
letter[-1] = letter[-1][:-1]
with open("Font/" + alph[i], "w+", encoding='u... | [
"32273263+paniker228@users.noreply.github.com"
] | 32273263+paniker228@users.noreply.github.com |
6e3dfb3631b760423c667b2beb46878bf90acc3d | 79d9637df98bc89387963fc0173f375a690f8922 | /coffee-time-challenges/01-two-bases/main.py | edbf0a927a8c53a494d1f2bc839ea9be5f6798ff | [] | no_license | schickling/challenges | 979248b916a24d232dd8adce89355b9eaf767b34 | 1af54711f0530a46395ccb18eb51fc25bf385f22 | refs/heads/master | 2020-04-06T04:00:37.007054 | 2014-11-06T22:50:33 | 2014-11-06T22:50:33 | 21,869,648 | 2 | 3 | null | 2014-08-06T21:44:20 | 2014-07-15T17:46:46 | Python | UTF-8 | Python | false | false | 369 | py | #!/usr/bin/env python3
from itertools import combinations_with_replacement
def check(x, y, z):
return x*100+y*10+z == x+y*9+z*9**2
def main():
retults = []
for x, y, z in combinations_with_replacement(list(range(10)), 3):
if check(x, y, z):
retults.append((x, y, z))
return retul... | [
"info@martin-thoma.de"
] | info@martin-thoma.de |
420468f056fa056adf8f127eee61892abff5b6b3 | 069919a0df590952371ee99b6c85991a96df448f | /Lesson 12/Q12.py | 665b8fe5c809f4088d017f7e9719c75cfb4508f5 | [] | no_license | yhwen142/Intro-to-Statistic | 97e6d32d9d091334bb4754e6a3676479e5d1b2c0 | f3887321e61e85797229120ddb72e2f60bfa2e38 | refs/heads/master | 2020-09-24T13:40:24.461403 | 2019-12-06T02:46:23 | 2019-12-06T02:46:23 | 225,770,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | #Return the probability of A conditioned on B given that
#P(A)=p0, P(B|A)=p1, and P(Not B|Not A)=p2
def f(p0,p1,p2):
#Insert your code here
return p0*p1/(p0*p1 + (1-p0)*(1-p2))
| [
"noreply@github.com"
] | noreply@github.com |
05dfe07de9ba0591de1500ea636fa068095f821c | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ZAYqnMhmqT5K3JWu8_23.py | c5aa2fd02e9faf3824d7d3e58878054a3bc3506e | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py |
def calculate_fuel(n):
if n * 10 <100:
return 100
else:
return n * 10
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a3530cc27bef25fe066d339c219521205e15f6a5 | 2628eb16e22d13e86edb868770b603e42d5e0714 | /p2ch10/dsets.py | 03c04d21fc11d4d4f1b869c736bf7bad5cb0a133 | [] | no_license | GeHongpeng/bookcode | 689bb8222eb88c3898985e53738fedcc1f6d9ab4 | 0bd75027dc7f74b32afe885ab7f638bde2d6e90e | refs/heads/master | 2020-04-18T05:49:19.238853 | 2019-01-23T20:48:07 | 2019-01-23T20:48:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,158 | py | import copy
import csv
import functools
import glob
import itertools
import math
import os
import random
from collections import namedtuple
import SimpleITK as sitk
import scipy.ndimage.morphology
import numpy as np
import torch
import torch.cuda
from torch.utils.data import Dataset, DataLoader
from torch.utils.dat... | [
"wickedgrey@gmail.com"
] | wickedgrey@gmail.com |
8c475f1e44e2c48ce766a5e3e2fdc0acbf79ef4b | 50b9e93fb40e368c73d8d22680171f22e0200c65 | /tuesday-api/first-meet-jwt.py | a45f78edc5bc526f05c65977e80d5700d79089cc | [] | no_license | bopopescu/python-cgi-monitor | cd87a2a07a41547a19222dd7bef7190eec221ed1 | c79e81e129a5f1da3bffae6d69ec8ba2c0e2a8a6 | refs/heads/master | 2022-11-19T23:44:39.484833 | 2019-01-22T11:36:55 | 2019-01-22T11:36:55 | 281,807,428 | 0 | 0 | null | 2020-07-22T23:55:00 | 2020-07-22T23:54:59 | null | UTF-8 | Python | false | false | 2,432 | py | from datetime import datetime, timedelta
import jwt
JWT_SECRET = 'secret'
JWT_ALGORITHM = 'HS256'
JWT_ISS = 'http://192.168.254.31'
JWT_AUD = 'http://192.168.254.31'
JWT_EXP_DELTA_SECONDS = 60
def encode_jwt(user):
JWT_IAT=JWT_NBF = datetime.utcnow()
playload = {
'user_iid': user,
'iss': JWT_... | [
"31108772+pdeesawat4887@users.noreply.github.com"
] | 31108772+pdeesawat4887@users.noreply.github.com |
97ee66ff1a3f90a62d9c62d68d7867612770f666 | eee6dd18897d3118f41cb5e6f93f830e06fbfe2f | /venv/lib/python3.6/site-packages/sklearn/gaussian_process/tests/test_kernels.py | 291458c12d1df9af9acbc79e933cb0ac4a84c03a | [] | no_license | georgeosodo/ml | 2148ecd192ce3d9750951715c9f2bfe041df056a | 48fba92263e9295e9e14697ec00dca35c94d0af0 | refs/heads/master | 2020-03-14T11:39:58.475364 | 2018-04-30T13:13:01 | 2018-04-30T13:13:01 | 131,595,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,539 | py | """Testing for kernels for Gaussian processes."""
# Author: Jan Hendrik Metzen <jhm@informatik.uni-bremen.de>
# License: BSD 3 clause
from sklearn.externals.funcsigs import signature
import numpy as np
from sklearn.gaussian_process.kernels import _approx_fprime
from sklearn.metrics.pairwise \
import PAIRWISE_K... | [
"georgeosodo2010@gmail.com"
] | georgeosodo2010@gmail.com |
e1f1d9668f028f51a15cf5bf3312637524ec3636 | af72322f5ebb03af6ef3d01a8f8b25bdbd6f846f | /profileapp/migrations/0012_auto_20170705_2120.py | 7b14fb7b6ebeeb624cb6167041f9bf59f2d03504 | [] | no_license | MikeButenko/profileapp | e98cff03a07ab786cdbf61827671bcd80e7f2b08 | 0c6fa6454175d59466fe9b8d78f87f56b97003ed | refs/heads/master | 2020-12-02T19:48:41.913039 | 2017-11-20T16:31:20 | 2017-11-20T16:31:20 | 96,393,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-05 18:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profileapp', '0011_auto_20170705_2118'),
]
operations = [
migrations.AlterF... | [
"mihabutenko1996@gmail.com"
] | mihabutenko1996@gmail.com |
d0aa58c2d041a1ec71a2bb5ea30c3efaf9527227 | d6702e82973d07ec4bf9974e1f6cd28b596a0539 | /blog/migrations/0002_post_content.py | 3b2c97174560fedc85b2c654243975428b9e534a | [] | no_license | 2zcory/DRF1 | 3ca9101dbd6cebfdeb6ae438b513a5b104a50444 | 4b9af0357ec52812438b6d3a59d1b03c81f7a7ed | refs/heads/master | 2023-02-04T03:36:21.502619 | 2020-12-19T08:48:32 | 2020-12-19T08:48:32 | 321,190,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # Generated by Django 3.1.4 on 2020-12-13 17:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='post',
name='content',
field=m... | [
"khanhtri009@gmail.com"
] | khanhtri009@gmail.com |
d25e259fa3c39b3322b42fdfbe1dd20aab222755 | 5a7494b17c33afc94a1efdbf2d4ee70dc9d45451 | /quality/common.py | e41cf0d870fad552caa7aa5b638e909d55b33bb6 | [] | no_license | guardiaum/extraction-analytics | 545ac10ae0fdc5e94a7012669f7fd84af0c01bc1 | 66b847618db4ba3d5deb22f1b1836283bd63ddd1 | refs/heads/master | 2021-01-01T16:37:25.623227 | 2018-12-23T18:59:20 | 2018-12-23T18:59:20 | 97,874,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,921 | py | import numpy as np
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
def getSimilarityWithTemplate(templatesParameters, template_name, article, infobox):
cosine = 0;
# iterates over templates parameters from category
for temp in range(0, tem... | [
"jms5@cin.ufpe.br"
] | jms5@cin.ufpe.br |
1a604200841cdb5e426f73eaa13a5b46d175c696 | e85e846960750dd498431ac8412d9967646ff98d | /cms/urls/admin.py | a20ef9f30b42d704db803611f070617109c8e0d0 | [] | no_license | onosaburo/clublink_django | 19368b4a59b3aed3632883ceffe3326bfc7a61a6 | d2f6024b6224ea7f47595481b3382b8d0670584f | refs/heads/master | 2022-03-30T05:30:12.288354 | 2020-01-27T18:09:11 | 2020-01-27T18:09:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | from django.conf.urls import include, url
urlpatterns = [
url(r'^club-sites/', include('clublink.cms.modules.club_sites.urls')),
url(r'^corp-site/', include('clublink.cms.modules.corp_site.urls')),
url(r'^assets/', include('clublink.cms.modules.assets.urls')),
url(r'^users/', include('clublink.cms.mod... | [
"bestwork888@outlook.com"
] | bestwork888@outlook.com |
ad894d4f56aba4cac738231d9e972e40bc62b0a9 | 3d7e1a506d65c23c84b7430fa46623cb98de8c64 | /moreifelse.py | d00d9e4937067bacab561253371fcb13cdce1fc3 | [] | no_license | crakama/UdacityIntrotoComputerScience | cb6ac8a9084f078eaf245a52adc43541c35dc3f4 | 416b82b85ff70c48eabae6bb9d7b43354a158d9a | refs/heads/master | 2021-01-09T20:39:15.974791 | 2016-07-18T20:59:09 | 2016-07-18T20:59:09 | 60,571,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # Define a procedure, is_friend, that takes
# a string as its input, and returns a
# Boolean indicating if the input string
# is the name of a friend. Assume
# I am friends with everyone whose name
# starts with either 'D' or 'N', but no one
# else. You do not need to check for
# lower case 'd' or 'n
def is_friend(str... | [
"crakama89@gmail.com"
] | crakama89@gmail.com |
d6c542d371fab9943c6f4fc9185f22c5c707a9b8 | 11028310f6b86c17b5be63abb5d67fc85b5653c6 | /apis/proceso_api/viewsets/forms/formulario_view.py | a0028937b3fcfaeb2320fef3fffd2b34cec42c5e | [] | no_license | javatarx/TesisDgiService | 8363bfa97ee9a84dff4ccde636d52f769707c6dc | 97bfa93f34b5348994f3a6a4c0a7096219c2cb57 | refs/heads/master | 2021-05-12T16:01:47.764561 | 2018-01-05T23:41:24 | 2018-01-05T23:41:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | """
@copyright Copyright (c) 2017 DevOtion Team
@author Vitmar Aliaga (@cruzjhonson)
@package viewsets.forms
Description: ViewSet del recurso formulario.
"""
import logging
from rest_framework import viewsets, mixins, serializers, generics
from apps.proceso.models.forms.formulario import Formulario
# from .campo_vi... | [
"cruzjhonson@gmail.com"
] | cruzjhonson@gmail.com |
66a0a82d1e782d3a31e77f48c0a13afac00dd437 | e209fe9a5509656e526e0dc8ed65ac39b1ada0e2 | /repl-its/1.6.py | 63f8258a27edaf7ce5f5cb1d095cc561398e0ff7 | [] | no_license | joshchwang/ICS4U-Classwork | 3d0d4e1460f52d23efb2954a4cc769c912000d51 | 1276f0fc106d8ebd111c86d35aef98be4b20b79d | refs/heads/master | 2020-07-20T08:27:38.311680 | 2019-12-16T17:02:09 | 2019-12-16T17:02:09 | 206,608,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # Given the integer N - the number of seconds that is
# passed since midnight - how many full hours and
# full minutes are passed since midnight? The program
# should print two numbers: the number of hours
# (between 0 and 23) and the number of minutes
# (between 0 and 1339). For examples, if N = 3900,
# then 3900 seco... | [
"joshua.chuang21@ycdsbk12.ca"
] | joshua.chuang21@ycdsbk12.ca |
ece46492b31fb46f106f1115a52f482853cf4f21 | b167407960a3b69b16752590def1a62b297a4b0c | /tools/project-creator/Python2.6.6/Lib/bsddb/test/test_get_none.py | 9c08a61b1e86fd2f0f11cfd0919ea35f308fe7de | [
"MIT"
] | permissive | xcode1986/nineck.ca | 543d1be2066e88a7db3745b483f61daedf5f378a | 637dfec24407d220bb745beacebea4a375bfd78f | refs/heads/master | 2020-04-15T14:48:08.551821 | 2019-01-15T07:36:06 | 2019-01-15T07:36:06 | 164,768,581 | 1 | 1 | MIT | 2019-01-15T08:30:27 | 2019-01-09T02:09:21 | C++ | UTF-8 | Python | false | false | 2,330 | py | """
TestCases for checking set_get_returns_none.
"""
import os, string
import unittest
from test_all import db, verbose, get_new_database_path
#----------------------------------------------------------------------
class GetReturnsNoneTestCase(unittest.TestCase):
def setUp(self):
self.fil... | [
"278688386@qq.com"
] | 278688386@qq.com |
18c66b99005958f9e125e8f3f66e215d9ae7a8d4 | fb7a5c68bb6338f97bb2bdbd82a1e34a38f1033f | /4/2_py/sol.py | 3b9d6bb56c5113d3682c7c9594016b71319b7d3d | [] | no_license | Vliseev/made_algo2 | 8cf9c6bf9903c22e4a2b9d218f2b11beb70be810 | 2f26bc46e5ddc492b098aafb44bde64617f55de2 | refs/heads/master | 2022-11-17T04:18:27.776549 | 2020-06-24T13:40:57 | 2020-06-25T14:16:05 | 245,667,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | import math
def solution():
a, b, n = map(int, input().split())
q = n - 1
k = int(math.sqrt(n) + 1) % q
r = q - k
a1 = pow(a, r, n)
key = b
table_lu = {key: 0}
for i in range(1, k):
key = (key * a1) % n
table_lu[key] = i
key = 1
for i in range(k + 1):
... | [
"Vliseev.92@mail.ru"
] | Vliseev.92@mail.ru |
ceff8575ef774881941b1e943767449206c1ddb5 | c6ede7c97cb7a8ba028671bdf23ce73dc2f83308 | /P1/problem_1.py | e9b8e1581196f8745c6addd3660497cfeaddd3c8 | [] | no_license | eishk/Udacity-Data-Structures-and-Algorithms-Course | ef18364bc8f803ecfdd4300efa542c14f876bc9b | f429bda72e418a90eb9c41d578d815d4348c7610 | refs/heads/main | 2023-08-11T08:38:49.836267 | 2021-10-03T01:30:07 | 2021-10-03T01:30:07 | 412,949,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | class LRU_Cache(object):
def __init__(self, capacity):
# Initialize class variables
self.capacity = capacity
self.size = 0
self.main_dict = {}
self.key_dict = {}
pass
def get(self, key):
# Retrieve item from provided key. Return -1 if nonexistent.
... | [
"noreply@github.com"
] | noreply@github.com |
2090d13db2c206218556a5ebdfd8c9f99b604499 | d0ddcccea697ddcb3aad37c51e11f57a5fc6573c | /tests/test_data/recursive_hello.py | a492ccaec19505a36f3f0177320bd88dd6a487c6 | [
"MIT"
] | permissive | kiok46/webkivy | 0c0d8fcd1b1e596ec45833501e92d659159f5b1c | 8f3522e61cd5951f825f5f1eef5482aa1bc436a5 | refs/heads/master | 2021-01-22T01:38:04.007487 | 2016-03-13T06:46:11 | 2016-03-13T06:46:11 | 53,776,897 | 1 | 0 | null | 2016-03-13T09:23:20 | 2016-03-13T09:23:19 | null | UTF-8 | Python | false | false | 74 | py | from subfolder.subtest import subhello
def hello():
return subhello() | [
"mikko@opensourcehacker.com"
] | mikko@opensourcehacker.com |
4a015da959c7458fddafaf62da6a47b987193f59 | daf04976c841482993a198cf9e084d4cd00b8f0f | /huffman.py | ddee07d9ff34a669a19b9a80e856fb7b40140101 | [] | no_license | heyrrr/huffman-compression | b8a6cdbf57342e922434ed7cd961152b40878c41 | 964e06e96deeac606967c03f9e3c664ab3c330a7 | refs/heads/master | 2020-03-20T21:07:19.461770 | 2018-06-18T08:10:04 | 2018-06-18T08:10:04 | 137,724,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,015 | py | """
Code for compressing and decompressing using Huffman compression.
"""
from nodes import HuffmanNode, ReadNode
# ====================
# Helper functions for manipulating bytes
def get_bit(byte, bit_num):
""" Return bit number bit_num from right in byte.
@param int byte: a given byte
... | [
"jaron.he@outlook.com"
] | jaron.he@outlook.com |
3effc29166723a048756a4a499fd6f88ece2cb63 | aba00d6272765b71397cd3eba105fc79b3a346e0 | /Digisig/digsigvenv/lib/python3.6/site-packages/ufl/algorithms/formtransformations.py | 1d4fe6041eeb9b87781c111e6617b423b24ab219 | [] | no_license | JosteinGj/School | a2c7cc090571b867637003fe6c647898ba9d8d24 | 3b5f29846e443b97f042241237dbda3208b20831 | refs/heads/master | 2023-05-02T11:07:29.517669 | 2021-04-26T09:04:57 | 2021-04-26T09:04:57 | 295,340,194 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,674 | py | # -*- coding: utf-8 -*-
"""This module defines utilities for transforming
complete Forms into new related Forms."""
# Copyright (C) 2008-2016 Martin Sandve Alnæs
#
# This file is part of UFL.
#
# UFL is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License a... | [
"jostein.gj@gmail.com"
] | jostein.gj@gmail.com |
e5d685b0b44cd993d56eccf3381554d2c4af71ae | a66e17234c202eb9ae085f39228c78899b1bab3a | /Palindrome or not.py | acb26730129167fb54a868b344bef06ec0953f72 | [] | no_license | indu118/python-programming | e7aab486caa522e5d03dcb602fdfa7992c97027e | 26455cf439b69741b6243408ea84f54fc5d28250 | refs/heads/master | 2021-04-06T05:34:49.773655 | 2018-04-27T07:04:23 | 2018-04-27T07:04:23 | 125,332,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | a=raw_input()
b=a[::-1]
if(a==b):
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | noreply@github.com |
21d98f1695e699d7074e82ab2d467eb8990db7a5 | 3a28424caa8ab61663a99c65c59de6249ee3c214 | /python/main-onnx-edit.py | 7b4451aea71a64758a5505025ec47f3573ed68c1 | [] | no_license | lincolnhard/NN-inference-edge | 3a660437b643d771dff03dbd8bf62040153348a2 | f767ecf7a03c4b44bf8db9b423b75fc34aeabc76 | refs/heads/master | 2022-12-27T00:56:53.065640 | 2020-10-12T08:50:45 | 2020-10-12T08:50:45 | 245,061,173 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | import onnx
from onnx import optimizer
# Preprocessing: load the model to be optimized.
model_path = 'espnetv2fusion.onnx'
original_model = onnx.load(model_path)
all_passes = optimizer.get_available_passes()
# print("Available optimization passes:")
# for p in all_passes:
# print(p)
# print()
passes = ['fuse_con... | [
"lincoln.lee@gallopwave.com"
] | lincoln.lee@gallopwave.com |
4fe1b250ebb0dc6c870d1826cf4f8500a3df1490 | 5afae615690ae672150a7dcdff1f80a6e2f3a718 | /django-apps/extensions/form_extensions.py | b619c2ea8920c15231545e332e07acf3db0cfb36 | [] | no_license | kabirh/riotvine | ae2f2e324b8604786b4d35d535d211933ba216fe | 0992126edf1469f6d348f5064e42d38229a35637 | refs/heads/master | 2016-09-06T08:03:20.735337 | 2011-05-06T19:58:17 | 2011-05-06T19:58:17 | 1,713,008 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | """
Extend various django.contrib and third-party forms.
"""
from django.utils.translation import ugettext as _
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm, PasswordResetForm, SetPasswordForm, PasswordChangeForm
from messages.forms import ComposeForm
AuthenticationForm.base_fields['use... | [
"git@parapagus.org"
] | git@parapagus.org |
d52c94cca0b3de9681b5b345b45606a67bb54bd9 | 329664fce59d25d6e88c125c1105bc6b4989a3b8 | /_exercice_version_prof.py | 6fa3252521c4ec7bf995ba41442cfd66c1597a72 | [] | no_license | INF1007-2021A/2021a-c01-ch6-supp-3-exercices-LucasBouchard1 | a8e7d13d8c582ebc44fe10f4be5e98ab65609bcb | f46ea10010a823cad46bbc93dba8d7691568d330 | refs/heads/master | 2023-08-13T20:49:54.742681 | 2021-09-30T18:05:38 | 2021-09-30T18:05:38 | 410,077,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,700 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def check_brackets(text, brackets):
# TODO: Associer les ouvrantes et fermantes (à l'aide d'un dict)
opening_brackets = dict(zip(brackets[0::2], brackets[1::2])) # Ouvrants à fermants
closing_brackets = dict(zip(brackets[1::2], brackets[0::2])) # Fermants à ouvrants
... | [
"66690702+github-classroom[bot]@users.noreply.github.com"
] | 66690702+github-classroom[bot]@users.noreply.github.com |
43a5ce35d2cd6f8fa86953334980d6c3c2e1f6c8 | e95d1d848a1e6b10342e1698338e3b63e3e2c4c9 | /RequestHandlerMPAsync.py | 6a79958223d64edf24a07178cf0a9a6b0c973675 | [] | no_license | rajeevmc77/pythonasyncio | 08f3aee7a2492027c4632bbdac159be753f2bc5e | 8595a9e64fcc83bddaca87eacae5e02a6987079e | refs/heads/master | 2021-01-14T00:06:12.272424 | 2020-02-23T14:59:19 | 2020-02-23T14:59:19 | 242,536,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | #!/usr/bin/env python3
import asyncio as asy
import multiprocessing
import aiohttp
import time
import os
loop = None
apiUrl = None
maxConnectionLimit = None
async def fetch(session, url):
async with session.get(url) as response:
return await response.text()
async def getAPIDetails():
global apiUrl
... | [
"rajeevmc@kite.kerala.gov.in"
] | rajeevmc@kite.kerala.gov.in |
fa05312f812195757982cc24920fbe291711ff90 | 7a277a4cc0bf70b0296ff0c8664ebad45523d076 | /8.crawling/dao.py | f7681df1d57dc9e0262b8b4ac69ea96fd39e1597 | [] | no_license | Playdata-Team404/HenrysHouse | 7209781c4d5bda4bb140b80e388162f16ae0ba56 | c679a35768757bea9b1ee428ed376c683db751df | refs/heads/main | 2023-06-29T14:31:30.980666 | 2021-07-16T00:15:48 | 2021-07-16T00:15:48 | 386,326,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | from datetime import datetime
from elasticsearch import Elasticsearch
class es_dao():
def save_news(news_data):
es = Elasticsearch()
if es.indices.exists(index="news_anal"):
es.delete_by_query(index="news_anal", doc_type="_doc", body='{"query":{"match_all":{}}}')
... | [
"noreply@github.com"
] | noreply@github.com |
b62c2124b3745f705af3028c3d40ff02d6de01eb | a6f8aae8f552a06b82fe018246e8dcd65c27e632 | /pr064/pr064.py | 118db0003bd02932d1a6e1bd3e0df29b4e8e386a | [] | no_license | P4SSER8Y/ProjectEuler | 2339ee7676f15866ceb38cad35e21ead0dad57e9 | 15d1b681e22133fc562a08b4e8e41e582ca8e625 | refs/heads/master | 2021-06-01T09:22:11.165235 | 2016-05-06T14:02:40 | 2016-05-06T14:02:40 | 46,722,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | from math import sqrt, floor
from itertools import count
def get(n):
def gcd(a, b):
if b == 0:
return a
return gcd(b, a%b)
if n == (int(sqrt(n)))**2:
return 0
an = lambda k, c, d: int(floor(((k*sqrt(n)-c)/d)))
pn = lambda k, c, d: [d*k,
-d*(... | [
"beobachter70@163.com"
] | beobachter70@163.com |
486699dcb8ae5a26f8fdca3b9e1c1315a031ef3b | 49553e0deea448c52f0b99eb938be62192878ded | /src/imgur_url.py | 168a0adea43cab99397f9c04d7f0ac48987e177a | [] | no_license | plasmaofthedawn/amadeus2 | 30113be3c57f518f8af7f4683c0cdbf6d07f020c | 8dcfb666c07c9b7b02b56142ead3c18fcb3a5c93 | refs/heads/master | 2023-05-25T18:13:06.915054 | 2020-07-26T20:22:13 | 2020-07-26T20:22:13 | 225,787,275 | 0 | 0 | null | 2023-05-22T22:34:40 | 2019-12-04T05:33:42 | Python | UTF-8 | Python | false | false | 1,438 | py | import re
import requests
def get_imgur_urls(starturl):
'''
Scans which kind of imgur url the link is and used the correct
function for returning it.
'''
albumRegEx = r"imgur.com\/a\/([\w\d]*)"
galleryRegEx = r"imgur.com\/gallery\/([\w\d]*)"
singleImageRegEx = r"imgur.com\/([\w\d]{7})"
... | [
"iamawesomeuknow99@gmail.com"
] | iamawesomeuknow99@gmail.com |
9fef97b3ccedfde19f706028b4918997827dbb55 | 6a227aa418bc96351f37f43bb27cfc2d3fba9b02 | /webservice/views/sock_client.py | eac27140fd1fe6060b6588797a2d5f9f08cef406 | [] | no_license | giusedroid/mychines | ce85b331f82f4140bee02cc88bc7b92c1a6d56f8 | ed82229568b9a7cae823a9fc9b63e088dc317388 | refs/heads/master | 2021-01-10T11:21:25.401671 | 2016-03-30T17:58:49 | 2016-03-30T17:58:49 | 50,567,768 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14 | py | sock_client.py | [
"giuseppe.battista@teoresigroup.com"
] | giuseppe.battista@teoresigroup.com |
7372e914f94e3c5b6b61b4cd9d53682397e2b2a7 | 35628d79bd8c31e820a2f80665cbee8f3bf6a4f4 | /debug_package.py | 7847f93aac232baec9cb8bc4a066c3a60a5c7b28 | [] | no_license | MC-program/estimators_demo | 52c946386af81f949a738611eb0ccfb098fdca7c | 1bac274d8f6a137c4f1a61b1a4353d17db881a7e | refs/heads/master | 2023-02-28T06:34:48.573771 | 2021-02-03T16:36:52 | 2021-02-03T16:36:52 | 335,422,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,402 | py | #!/usr/bin/env python
# coding: utf-8
import logging
logging.basicConfig(level=logging.DEBUG)
g_debugLevel = logging.DEBUG
### SET logging.basicConfig() BEFORE
def setDebugLevel(level):
"""
Set debug level: logging.DEBUG ... logging.CRITICAL
We use a the global logging module, so this is not only th... | [
"rvamosi@protonmail.com"
] | rvamosi@protonmail.com |
09d43575f32418b00a8433b13e40794e1b245199 | c9c406fa8edbec2755d54abf506122630e3fb88d | /python/eight_queens/eightqueens.py | 0181eece43d0b0cc5cba814440ec5aaf45c6ceb4 | [] | no_license | J0/Kattis | ac0269e74c49bd34e022e75dc16833bd17f4847a | a3c208766f5a35c4be5b0958c0e5e30957ebf99c | refs/heads/master | 2021-10-25T03:23:07.285506 | 2019-03-31T05:56:04 | 2019-03-31T05:56:04 | 120,853,942 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | _list = [[x for x in range(8)] for y in range(8)]
flag = 0
def check_attacking(row, column):
for counter in range(8):
if _list[row][counter] == "*" and counter != column :
return True
elif _list[counter][column] == "*" and row != counter:
return True
# Now check the d... | [
"lee.yi.jie.joel@gmail.com"
] | lee.yi.jie.joel@gmail.com |
c35bf5e45b94a37bf211fbbf9e00cd4718e026c5 | f3c8cc1e83782c8764c904bdfac24f2c6ba0591e | /wangtao/leetcode-easy/0198.py | 5bdeb0b66dd24f5948fba378989407ac002aed7e | [] | no_license | wangtao090620/LeetCode | 18054aa2fa52cf36f0486ac20d50d80a328400f4 | dd6b9a07479d7a8c04672024595cf04a3ed0d067 | refs/heads/master | 2020-09-09T10:57:51.559497 | 2020-07-30T03:17:38 | 2020-07-30T03:17:38 | 221,428,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# @Author : wangtao
# @Contact : wangtao090620@gmail.com
# @Time : 2020-07-18 10:54
from typing import List
"""
奇数和偶数和的最大值
"""
class Solution:
def rob(self, nums: List[int]) -> int:
a = b = 0
for i in range(len(nums)):
if ... | [
"wangtao090620@gmail.com"
] | wangtao090620@gmail.com |
59d056538621fac227eb382e34ac693ad942fe9a | 5189a2e2e1fbf04edb2e212652b268361bc54de6 | /dephell/commands/jail_show.py | 0dea75396705ef81137ac8537f6baff5868bde42 | [
"MIT"
] | permissive | Brishen/dephell | 50f74a4d9c94fc81c3ae5bc3b8472b4d89e23fd7 | 1a09de4b9204466b4c9b833fd880542fb6b73d52 | refs/heads/master | 2021-03-30T09:19:05.518468 | 2020-03-17T17:54:22 | 2020-03-17T17:54:22 | 248,037,267 | 0 | 0 | MIT | 2020-03-17T17:53:53 | 2020-03-17T17:53:52 | null | UTF-8 | Python | false | false | 2,249 | py | # built-in
from argparse import ArgumentParser
from pathlib import Path
# external
from dephell_venvs import VEnvs
from packaging.utils import canonicalize_name
# app
from ..actions import format_size, get_path_size, make_json
from ..config import builders
from ..converters import InstalledConverter
from .base import... | [
"master_fess@mail.ru"
] | master_fess@mail.ru |
c39a88ffb26b22c4c64de921e919084ed6428282 | 563d16c0d2c648583c2249bdb37ea38abbc2b11e | /models/iscnet/modules/skip_propagation.py | f8cb3cf558490d2a98b5a8ddb3564ae55d5dd5d3 | [
"MIT"
] | permissive | zeta1999/RfDNet | 43aa842f83267ecb2c448ce6acbc24e03c3484f2 | b169de5b0652f5a8ac124841b81244f26869c778 | refs/heads/main | 2023-04-08T01:48:28.939627 | 2021-04-09T13:01:49 | 2021-04-09T13:01:49 | 357,214,649 | 0 | 1 | MIT | 2021-04-12T13:58:57 | 2021-04-12T13:58:56 | null | UTF-8 | Python | false | false | 5,862 | py | # Back propogate box features to input points.
# author: ynie
# date: March, 2020
# cite: PointNet++
from models.registers import MODULES
import torch
from torch import nn
from external.pointnet2_ops_lib.pointnet2_ops.pointnet2_modules import STN_Group
from models.iscnet.modules.layers import ResnetPointnet
from model... | [
"nieyinyu0731@gmail.com"
] | nieyinyu0731@gmail.com |
751478a95c3542713d69302bb04e829266b80014 | 67b62f49ff89982ef62ce5d5c68bc7655ededcee | /chap6/basic_evaluator.py | 7fd1b1bcb0e15607838e88ad314e8711d2e2c8e8 | [] | no_license | planset/stone-py | 0614737e59a14745019754c453f9b49e44f125cf | 467617e201a3f4028f2fb23b2bc6ce3aaa371125 | refs/heads/master | 2016-09-06T18:36:49.564450 | 2012-12-31T12:57:06 | 2012-12-31T12:57:06 | 6,389,161 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,955 | py | # -*- coding: utf-8 -*-
from stone.util import reviser, super
from stone.myast import ast, literal, expression, statement
from stone import exception
#class BasicEvaluator(object):
# def __init__(self):
# pass
TRUE = 1
FALSE = 0
@reviser
class ASTreeEx(ast.ASTree):
def eval(self, env):
raise N... | [
"planset@gmail.com"
] | planset@gmail.com |
a0b17b1c77d359a42483bac77b1ea239d38ca040 | 342fff5dfbf09521d64e69a0720590585b400d0e | /Python/wowproxy/dev_files/win32apitest.py | 2e3a74621add83298e43d94e8a0f0b733b553c73 | [] | no_license | vipuldivyanshu92/Projects | 071d4223b96f310042475afce0ada0c5f4885996 | b39abbee89405e466534191c422a2e01bb220012 | refs/heads/master | 2021-01-10T01:26:10.036872 | 2011-07-02T10:42:17 | 2011-07-02T10:42:17 | 8,507,984 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py | from win32con import TOKEN_ADJUST_PRIVILEGES, TOKEN_QUERY, SE_PRIVILEGE_ENABLED, PROCESS_VM_READ
from win32api import GetCurrentProcess, CloseHandle, OpenProcess
from win32gui import FindWindow
from win32security import OpenProcessToken, LookupPrivilegeValue, AdjustTokenPrivileges, SE_DEBUG_NAME
from win32process impor... | [
"simon.jouet@gmail.com"
] | simon.jouet@gmail.com |
ebfa6a2757242489eb56466ce62b6074c721545b | e0f50fd652331a6055a3c8c5655728bb833a673d | /dist/DOS2.app/Contents/Resources/__boot__.py | c34beaa0f4c4de4a742cdf9226a4cbe004c26de9 | [] | no_license | iBerezkin/DOS_app | bb5db12075e3f302b747c56a4b803d1bc2e88919 | 109f49260799832909919dd146167a28b190ae1e | refs/heads/master | 2021-09-08T22:45:54.303268 | 2018-03-12T15:47:40 | 2018-03-12T15:47:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,973 | py | def _reset_sys_path():
# Clear generic sys.path[0]
import sys, os
resources = os.environ['RESOURCEPATH']
while sys.path[0] == resources:
del sys.path[0]
_reset_sys_path()
def _chdir_resource():
import os
os.chdir(os.environ['RESOURCEPATH'])
_chdir_resource()
def _disable_linecache():... | [
"@ivan.berezkin"
] | @ivan.berezkin |
de37a17924e0d2f4fa987ea5c62de576f9307a1a | eeabdf9176a12de724990271e589c865704525be | /study/2021_02_03/클래스.py | c463b29a1e41d19aad3caf48760d9f1f24ccc6fc | [] | no_license | ghkd7214/PYTHON | 9456523700024745e40d3d91fdba18dd594d42cd | fb6435b438cf12a627329ae330ca9cc68ee4adc5 | refs/heads/master | 2023-04-30T08:20:07.074533 | 2021-05-10T08:43:01 | 2021-05-10T08:43:01 | 353,939,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,882 | py | # def calc_func(a, b):
# x = a
# y = b
#
# def plus():
# p = x + y
# return p
#
# def minus():
# m = x - y
# return m
#
# return plus, minus
#
#
# p, m = calc_func(10, 20)
# print("plus :", p())
# print("minus :", m())
#
#
# class calc_class:
# x = y = 0
#
# d... | [
"ghkd7214@gmail.com"
] | ghkd7214@gmail.com |
a8901755cb7ede448082075b8b279b8a3f519c73 | 0714923a4ea8d16ce72587f056362b157cafc416 | /finssl.py | 9fc264cbde96a2995d2c7667b72298fb193dd240 | [
"MIT"
] | permissive | ameyamanagi/PostPrefix | f68d41c6c307f74e0fd5e47d565fb3426bd32bff | 2e495b392969e1566768a1562bbdcaf963278472 | refs/heads/master | 2022-04-15T17:21:13.513464 | 2020-04-15T08:28:30 | 2020-04-15T08:28:30 | 255,836,401 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,385 | py | OPERATORS = set(['+', '-', '*', '/', '(', ')','$','^'])
PRI = {'+':1, '-':1, '*':2, '/':2, '$':3, '^':3}
### INFIX ===> POSTFIX ###
def infix_to_postfix(formula):
stack = [] # only pop when the coming op has priority
output = ''
count = 0
for ch in formula:
count+=1
print(f'-----------... | [
"noreply@github.com"
] | noreply@github.com |
1efd0e1ab57d157ac33dd92a643f8b08b59f2f68 | 1e7a1fe5c575f126b41e2ad29ad9ef5a700580c2 | /ros/TestCases/NoGazeboPlacesOneToken/PlaceFiles/P76_no_gazebo_p_1_t.py | bf6ea15b2263dabde99871de9db0e1afbcbc367f | [
"MIT"
] | permissive | PedroACaldeira/gspn_framework_package | fe269ebb9a63ef4cc44ca10dbfb5df5b03466438 | b154fe461e12abc32833d01581bbf47de742bf3c | refs/heads/master | 2022-12-31T00:41:33.565166 | 2020-10-27T20:32:54 | 2020-10-27T20:32:54 | 267,572,706 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | #! /usr/bin/env python3
import roslib
import rospy
import actionlib
import time
import gspn_framework_package.msg
'''
import rclpy
from rclpy.action import ActionServer, CancelResponse, GoalResponse
from rclpy.callback_groups import ReentrantCallbackGroup
from rclpy.executors import MultiThreadedExecutor
from rclpy.no... | [
"caldeira.a.pedro@gmail.com"
] | caldeira.a.pedro@gmail.com |
5f761522ce7ca247bfbcbff7daf927ba4f28a87b | bf902add6952d7f7decdb2296bb136eea55bf441 | /YOLO/.history/pytorch-yolo-v3/video_demo_v1_20201106013212.py | 68f68f8e2ac4d0205b1ba8899014a62bf1fab713 | [
"MIT"
] | permissive | jphacks/D_2003 | c78fb2b4d05739dbd60eb9224845eb78579afa6f | 60a5684d549862e85bdf758069518702d9925a48 | refs/heads/master | 2023-01-08T16:17:54.977088 | 2020-11-07T06:41:33 | 2020-11-07T06:41:33 | 304,576,949 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 16,516 | py | from __future__ import division
import time
import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
import cv2
from util import *
from darknet import Darknet
from preprocess import prep_image, inp_to_image
import pandas as pd
import random
import argparse
import pickle as pkl
import r... | [
"73480314+ryo-jpg@users.noreply.github.com"
] | 73480314+ryo-jpg@users.noreply.github.com |
fdd061f8a99079ead367a77fe9b16c9efeae9d2a | 64bea669730792b3b37fcbaf08eaa17cf20ac5a5 | /src/python/cb/mole/c_encode.py | c5120508195846864de2f428e4160d98631874f8 | [
"Apache-2.0"
] | permissive | lapd-c/curveball | f23756c3bdc249be56aac19d518c73b6448aeee1 | aef75fa97136967c96e087fd02963662ae3f6707 | refs/heads/master | 2021-07-25T16:17:26.710627 | 2017-11-07T01:32:08 | 2017-11-07T01:32:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,782 | py | #!/usr/bin/env python
#
# This material is based upon work supported by the Defense Advanced
# Research Projects Agency under Contract No. N66001-11-C-4017.
#
# Copyright 2014 - Raytheon BBN Technologies Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in comp... | [
"ellard@gmail.com"
] | ellard@gmail.com |
80533012a5aefe3598314d2bc6660f12a6c71f42 | 16b5e5f8ab1ece9daa2d1227c776cdadaeac349f | /data_creation/annotate_syn_Tless.py | b219591bcfc98efeb0dd37d10f54f3c432eaddce | [
"Apache-2.0"
] | permissive | JM-SNU/SyDPose | 68d632b3ac5bec7b903a8046ba57e0d1683a5209 | a5221fce1cf600b382999903db769024ded53256 | refs/heads/master | 2023-03-21T03:16:37.068343 | 2020-06-02T19:07:19 | 2020-06-02T19:07:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,687 | py | import sys
import os
import subprocess
import yaml
import cv2
import numpy as np
import json
from scipy import ndimage, signal
import math
import datetime
import copy
import transforms3d as tf3d
import time
import random
import pyfastnoisesimd as fns
import OpenEXR, Imath
from pathlib import Path
dataset = 'tless'
se... | [
"stefan.thalhammer136@gmail.com"
] | stefan.thalhammer136@gmail.com |
13f7cd7f96372ea7c8016837ea49871e1559b6d2 | 11558dfe50bc28aff2f25a5117784cfdd7a92214 | /cogs/dreadbarrage.py | a5623cbb6fc4c74cac541096ef532064c51e78f4 | [
"MIT"
] | permissive | MizaGBF/MizaBOT | f299c67446f9f92c2c3fa64f4d03dbcd3048c9cd | 2b30889d811b5b3631f24c32c45964be1ada040a | refs/heads/master | 2022-12-24T14:47:17.382892 | 2022-12-12T15:52:02 | 2022-12-12T15:52:02 | 183,764,027 | 31 | 16 | MIT | 2022-12-12T15:51:18 | 2019-04-27T11:26:07 | Python | UTF-8 | Python | false | false | 10,660 | py | import disnake
from disnake.ext import commands
import math
# ----------------------------------------------------------------------------------------------------------------
# DreadBarrage Cog
# ----------------------------------------------------------------------------------------------------------------
# ... | [
"noreply@github.com"
] | noreply@github.com |
e792d3461fa0043f258f3988bdf6a9563d24e16c | 33a8b37a453be716eef187fa7797739f5425db09 | /read_statistics/models.py | e265c6c50d337fc0db08b6143f75beadad0f1b8d | [] | no_license | zf0912/django2.0-blogsite | 6f5f23be586539c6552dd273a84ece2f56fd7a97 | 8430bc457721acf13a1f380e22c8bad2de7bcc95 | refs/heads/main | 2023-02-05T13:38:59.284001 | 2020-12-25T07:56:48 | 2020-12-25T07:56:48 | 305,967,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py | # # C:\Users\12482\Desktop\py_learn\Django2.0_chapter46\mysite_env\mysite\read_statistics\models.py
from django.db import models
from django.db.models.fields import exceptions
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType # 引用进来ContentTyp... | [
"1248285187@qq.com"
] | 1248285187@qq.com |
7151eacc02e7268941d808551b82a302f388b83a | a24d889cc6fd5cd3fc180bcf5cf7dcd688eb691a | /yggdrasil/metaschema/properties/__init__.py | e26481182221d47dd0902bcc594398be467a91c2 | [
"BSD-3-Clause"
] | permissive | ghanashyamchalla/yggdrasil | f5346bad5d1f4ed8a53e7b570c19eefb58a8a921 | 7b59439276eacb66f1f6ea4177d3a85cc061eed5 | refs/heads/master | 2022-04-20T06:08:49.110242 | 2020-04-15T02:44:51 | 2020-04-15T02:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,579 | py | import os
import glob
import importlib
from collections import OrderedDict
_metaschema_properties = OrderedDict()
def register_metaschema_property(prop_class):
r"""Register a schema property.
Args:
prop_class (class): Class to be registered.
Raises:
ValueError: If a property class has ... | [
"langmm.astro@gmail.com"
] | langmm.astro@gmail.com |
725ea2b60b623e58379f7f2a7f072e9e6904a6b0 | 24aaa1e30ade6d86756ee015d3c1edece9b7388a | /open-data/recommendation-project-code/rdflib-jsonld-master/rdflib_jsonld/serializer.py | 45d0705c12b6f3203193c2f6d4906ece0a650995 | [] | no_license | diegoolano/masters-courses | 209a26c905bdcb1b16e845ceb531ad430f4e4c13 | 4467a53d1c10862a7515577f9c02f303d7d63828 | refs/heads/master | 2021-01-01T18:11:46.750422 | 2015-03-19T11:22:55 | 2015-03-19T11:22:55 | 18,726,338 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,644 | py | # -*- coding: utf-8 -*-
"""
This serialiser will output an RDF Graph as a JSON-LD formatted document. See:
http://json-ld.org/
Example usage::
>>> from rdflib.plugin import register, Serializer
>>> register('json-ld', Serializer, 'rdflib_jsonld.serializer', 'JsonLDSerializer')
>>> from rdflib import... | [
"diegoolano@gmail.com"
] | diegoolano@gmail.com |
fe3631817acb3862547583768edd95ebaf5dc124 | e3510d0cb6b5a0e723fc25d62d0d4e5dcddadbd4 | /graphic_animal_item_class.py | 50ddae6d19a3d07dd73f69a5e2a438f5bfd86afc | [] | no_license | SamuelHeavens/FieldSimulation | 1e40dc03454190ae003c7fb7a37574141ab9c5b5 | 7f6e1397bde5c0819b3eb1503fb3d0a90acba745 | refs/heads/master | 2020-05-21T12:06:32.742541 | 2014-07-08T13:31:52 | 2014-07-08T13:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | from graphic_field_item_class import *
class AnimalGraphicsPixmapItem(FieldItemGraphicsPixmapItem):
"""This class provides a pixmap wth a preset image for the animal"""
#consructor
def __init__(self,graphics_list):
super().__init__(graphics_list)
self.animal = None
def update_status(... | [
"samuel.heavens@ntlworld.com"
] | samuel.heavens@ntlworld.com |
0a0f92b271b0860a112f318ed4f311f790558894 | 7e39f9014eb640ae5ecaa5ed7225fcc4ad5ae4e1 | /recursion/gcd_with_and_without_recursion.py | f52bd7ac271947fcfdf39d47e4dd7c2322cb376c | [] | no_license | tradertanmay/algorithms-in-python | 5c623a4f0a92b1b57d78744d8f02491d0f3ebd1a | ab7fb106e6113fa96a140ddfed63729d5741a731 | refs/heads/master | 2020-07-30T09:38:30.517299 | 2019-09-22T16:18:36 | 2019-09-22T16:18:36 | 210,177,097 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | # -*- coding: utf-8 -*-
"""GCD with and without recursion.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1l5uxOhn5YZopdFZgj8v7wazdj2LQ9jc2
"""
# GCD
def gcd(x,y):
z = [i for i in range(1,min(x,y)+1) if x%i ==0 and y%i==0]
return(z[-1])
gc... | [
"noreply@github.com"
] | noreply@github.com |
ecac4bdb1c8034948e2a47fc06bb722bf9c7a990 | c1960138a37d9b87bbc6ebd225ec54e09ede4a33 | /adafruit-circuitpython-bundle-py-20210402/lib/adafruit_mcp230xx/digital_inout.py | 877d588cc07250f952b5661bf7a59f8ccf8b843d | [] | no_license | apalileo/ACCD_PHCR_SP21 | 76d0e27c4203a2e90270cb2d84a75169f5db5240 | 37923f70f4c5536b18f0353470bedab200c67bad | refs/heads/main | 2023-04-07T00:01:35.922061 | 2021-04-15T18:02:22 | 2021-04-15T18:02:22 | 332,101,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,166 | py | # SPDX-FileCopyrightText: 2017 Tony DiCola for Adafruit Industries
# SPDX-FileCopyrightText: 2019 Carter Nelson
#
# SPDX-License-Identifier: MIT
"""
`digital_inout`
====================================================
Digital input/output of the MCP230xx.
* Author(s): Tony DiCola
"""
import digitalio
__version__ =... | [
"55570902+apalileo@users.noreply.github.com"
] | 55570902+apalileo@users.noreply.github.com |
d8263e73a475526bf1e265cb8fa6a400a8694500 | 33b7a63d0866f9aabfdfdc342236191bebd1c1e6 | /django_learning/django_03_url介绍/path_converter_demo/path_converter_demo/settings.py | cb32c9dcd3e6eb052f719db998531d3478ac4df0 | [] | no_license | leolvcl/leo_python | 21f61bb898f8c755d1ff405f90864887e18a317e | 5be0d897eeee34d50d835707112fb610de69b4c8 | refs/heads/master | 2020-08-02T21:00:01.808704 | 2019-12-06T17:04:59 | 2019-12-06T17:04:59 | 211,505,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,292 | py | """
Django settings for path_converter_demo project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settin... | [
"lvclleo@gmail.com"
] | lvclleo@gmail.com |
f871cb804836e1732c5ccb6ac5804e5a11670af4 | 64a1a418c6e0794dcf7be5605f1e254f2beaa65d | /tutorial/ch1/qt5_2.py | fc15b92cc431579a59972a827e95fbdeb97dd546 | [] | no_license | notmikeb/python_desk | 792c93f68b69dcd8c24384883421166771d40c15 | 1685d6e9e0c8b4d8201625ce58fa2420bc1b930e | refs/heads/master | 2021-01-20T09:36:46.832716 | 2016-02-03T13:51:20 | 2016-02-03T13:51:20 | 40,387,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | """
ZetCode pyQT5 tutorial
"""
import sys
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtGui import QIcon
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
self.setGeometry(300,300, 300, 220)
self.setWindowTitle('Icon')
self.setWindo... | [
"notmikeb@gmail.com"
] | notmikeb@gmail.com |
6c172418f01b17b7fe7f22f0e49c591ad7298b7d | 869f4b684b82c50d82cfa259959a923c47083113 | /src/topic_modeling/visualizing_topic_models.py | 1e4f7559cc714eca718bcf6c1cf54369200f6e88 | [] | no_license | jennkey/nlp-gender-news | f883114b3049c7fef34bbab35dd2f9ea04cf7a61 | 210bb6c1cf808d409b7fa41bb95e8ada1f849a6c | refs/heads/master | 2021-01-21T11:30:37.708463 | 2017-06-28T20:25:47 | 2017-06-28T20:25:47 | 91,744,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,871 | py | import json
import urlparse
from itertools import chain
flatten = chain.from_iterable
from nltk import word_tokenize
from gensim.corpora import Dictionary
from gensim.models.ldamodel import LdaModel
from gensim.models.tfidfmodel import TfidfModel
# from gensim_btm.models import BTGibbsModel
## get bartstrike data
... | [
"jennkey827@gmail.com"
] | jennkey827@gmail.com |
c9984aa70696fd6f1548a35f09d72dc55e9aba66 | e4a47aab64ec4edc392af956c8761564e9213f3a | /alien.py | dc41720bf883768a2dcd7c186ad16607ca0eb1bd | [] | no_license | zhaotingzhi/ArmedSpaceships | 99740591700b925d5048b9b3ae58903301822ca8 | 239da2d256954e3f8c3b8e0cd373491b65f0d7c7 | refs/heads/master | 2021-08-26T08:09:47.360679 | 2017-11-22T10:02:48 | 2017-11-22T10:02:48 | 110,655,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | import pygame
from pygame.sprite import Sprite
class Alien(Sprite):
"""外星飞船"""
def __init__(self, ai_settings, screen):
"""初始化并设置外星人的起始位置"""
super(Alien, self).__init__()
self.ai_settings = ai_settings
self.screen = screen
# 加载外型飞船的图像并获取其rect
self.image = pyga... | [
"ztz100596@126.com"
] | ztz100596@126.com |
8de737368f805d8d9c748a04dc6b26df83141c3e | f55623e3aea5b8ae3d2c37bcfa8a853150a0b376 | /a10_horizon/_enabled_hooks/_91000_a10admin_panel.py | bbfda541cbf0467babfe76f4b091824b63db24dd | [
"Apache-2.0"
] | permissive | isaaczurn/a10-horizon | 0fab288d321516de72ea276d54b415a1c2e4d7d6 | a96f9e95dfcda619f08a19a9057b061bdba12487 | refs/heads/development | 2020-12-26T04:49:33.131115 | 2016-08-11T16:47:09 | 2016-08-11T16:47:09 | 64,965,205 | 1 | 0 | null | 2016-08-04T20:31:28 | 2016-08-04T20:31:28 | null | UTF-8 | Python | false | false | 846 | py | # Copyright (C) 2016, A10 Networks 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... | [
"mdurrant@a10networks.com"
] | mdurrant@a10networks.com |
8850b0732f0bbdd642caadc12a7ca4c30a60afcd | e4fdd690d7642e2f01b0e287be0c45c4984f6b0b | /create_db.py | 682621c2b569997cd10665d5cd596de90a6b4247 | [] | no_license | researcher2/stackoverflow_56885380 | d95b158029e9b8917cc96b5f28fdc1d312ff3e29 | 8de62e8a45f9ce592ade9c90de809cc7f9eaab5d | refs/heads/master | 2020-06-15T17:11:28.062687 | 2019-07-05T06:22:30 | 2019-07-05T06:22:30 | 195,350,182 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | from sqlalchemy import Column, String, Integer
from webapp import db, create_app
import os
class MyTable(db.Model):
__bind_key__ = 'sample_bind'
__tablename__ = "my_table"
id = Column(Integer, primary_key=True)
versions = Column(String(255))
name = Column(String(255))
try:
os.remove("webapp... | [
"32028883+researcher2@users.noreply.github.com"
] | 32028883+researcher2@users.noreply.github.com |
8d529b92f8ffab3e3cea802a5deab3f840561d8b | 0ce1b38256f65ccc5cd093549adaaabc255b748a | /begin project/backend/application/routes.py | 25615e8aaad6fb1681b8bad14997276489e4e5af | [] | no_license | Dovydas21/Dynamic-Table-Angular | 6f0ba54d60bf9f74f4afaae643c41c6f47dfb988 | 6053d0603adcf18a8470528dd5f8969e29b97c00 | refs/heads/main | 2023-03-09T06:24:32.154011 | 2021-02-25T09:26:33 | 2021-02-25T09:26:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from flask import Flask
app = Flask(__name__, )
@app.route('/')
def main():
return './dist/index.html'
@app.route('/about')
def about():
return './dist/index.html'
@app.route('/contact')
def contact():
return './dist/index.html'
if __name__ == "__main__":
app.run(debug=True) | [
"65668099+DaveWillRave@users.noreply.github.com"
] | 65668099+DaveWillRave@users.noreply.github.com |
7086895d28351f8bb7520ebd3e5e03e4ad75c7de | 3ae2bc07e0331d648dc58602129516a90693f945 | /resources/player/WangCY/WangCY.py | f0b720c24fc4a4f19d5e968295de1d3eb36fe317 | [] | no_license | MrWhite429/HuaShanKill | 654a17b14ccdcdc3a28a7939294a2be2a17d6c6a | f54663601fc75d76392ec9086d9860af2c7e736b | refs/heads/master | 2022-12-12T21:23:54.647774 | 2022-11-21T05:53:03 | 2022-11-21T05:53:03 | 219,294,470 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | import random
import player as pl
import cards as cd
import output as op
import pygame
from pygame.locals import *
class Model(pl.Player):
#【尊上】:当你受到一名角色的伤害时,伤害来源需弃置一张基本牌,否则你可以防止此伤害。
img_path = "WangCY"
default_situation = ["王重阳", 3, 0, "魏"]
def lost_hp(self, num, user,type= 0):
print("%s发动技能【尊上】" ... | [
"noreply@github.com"
] | noreply@github.com |
9c58cbe9020ecc616d77f84bd53c62468dfaa429 | c9a1eb2cb6bb1067cac1eb0b321ee87727db6508 | /cashcog/migrations/0002_auto_20200101_2130.py | 7f0977127dd872e7931925871c4ef565c682175c | [] | no_license | prachi8s26/XCNT | b7a66fc6589e85adf9987649c4dcf935dc78cad6 | 62f78d5473cefa22da9fbdc5f5ff92993a5f991c | refs/heads/master | 2023-06-22T04:07:54.115478 | 2020-01-14T18:06:29 | 2020-01-14T18:06:29 | 231,409,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | # Generated by Django 3.0 on 2020-01-01 21:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cashcog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='expense',
name='employee_first_name',
... | [
"prachis@chegg.com"
] | prachis@chegg.com |
e99a6cd94845610e54407e4cd435907ff9efacc5 | cb25407fc1480f771391bb09e36dad123ec9fca2 | /zeta/ccore.py | ae1284a066b89b51957c83e4cab38fb7716f9b45 | [] | no_license | prataprc/zeta | f68925c9dfbf70331eae59ff5cf173956d249696 | 9c3bc88c56c67d0fff5c0790d768ad6cac79642f | refs/heads/master | 2021-01-20T01:51:20.194893 | 2017-04-25T08:07:41 | 2017-04-25T08:07:41 | 89,334,343 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,435 | py | # -*- coding: utf-8 -*-
"""Everything can be a component.
Component :
* The ComponentMeta acts as the metaclass for all the Component derived
classes.
* Components with 'abstract' attribute set to True will not be registered
for interface.
* Components can only have no-argument initializers,... | [
"prataprc@gmail.com"
] | prataprc@gmail.com |
613a2718f0118f9986d5afa3a415b2d5616b9b29 | f1fa94bf321959fa5cb805f003e39369dfa00937 | /src/cerealize.py | b1747414c037a9a00d94988409035c443382eea6 | [] | no_license | raideus/cerealize | 028bf906749aede1c305046b5b52aaf452839158 | 5af00ddfd75922478ef8263f26ee0c0810c6500d | refs/heads/master | 2021-06-24T07:22:45.842320 | 2017-09-08T20:45:54 | 2017-09-08T20:45:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,084 | py | """
cerealize.py
"""
import attr
from typing import Tuple, Any
from enum import Enum
from abc import ABC, abstractmethod
from struct import pack, unpack
from functools import reduce
from struct import error as StructError
serializable = attr.s
validators = attr.validators
instance_of = validators.instance_of
... | [
"sbutze@kayak.com"
] | sbutze@kayak.com |
2c13fce7728325b072666a68eb21ac40753aaefc | e303da8eeb26f9d84c97ff651ff88892e6cbb046 | /src/plugins/setu/getPic.py | 043b64ba19e41737e1a3ea0d4005cb4dff0c0457 | [] | no_license | damicnagisa/PaimonBot | 354689b1f534bb3bcaf89760e0ce3df65ef45c17 | c33340a172344f74d7218579eb55430c2dc98fcf | refs/heads/main | 2023-04-30T22:29:42.701108 | 2021-04-11T09:05:24 | 2021-04-11T09:05:24 | 357,066,310 | 1 | 0 | null | 2021-04-12T05:15:21 | 2021-04-12T05:15:20 | null | UTF-8 | Python | false | false | 2,164 | py | from httpx import AsyncClient
import base64
import nonebot
from re import findall
apikey = nonebot.get_driver().config.apikey
if nonebot.get_driver().config.setuproxy == 'True':
proxy = 'i.pixiv.cat'
else:
proxy = 'disable'
async def ghs_pic3(keyword='') -> str:
async with AsyncClient() as client:
... | [
"1561900932@qq.com"
] | 1561900932@qq.com |
11783965c99a7fec6aa8653159a599e25ce3ebfa | 491d2fd36f2ca26975b3eb302a3d5600415bf7c4 | /central/multi_node_utils.py | 8fbeb6444b67d9aab6cdff45669e13032d27f208 | [] | no_license | kmanchella-habana/Model-References | 9fa42654d57a867d82f417e9fff668946f9105f6 | 460d3b23ce75f30561e8f725ebcb21298897d163 | refs/heads/master | 2023-08-28T17:42:48.866251 | 2021-09-18T21:38:04 | 2021-09-18T21:38:04 | 411,371,667 | 0 | 0 | null | 2021-09-28T17:08:13 | 2021-09-28T17:08:13 | null | UTF-8 | Python | false | false | 6,092 | py | ###############################################################################
# Copyright (C) 2020-2021 Habana Labs, Ltd. an Intel Company
###############################################################################
"""Utilities for multi-card and scaleout training"""
import os
import socket
import subprocess
im... | [
"mpandit@habana.ai"
] | mpandit@habana.ai |
b2901bbd4d747fd377059a0c73378aacf3c7b245 | a04c3c356f3eb74771c8bce2f3dbaea5fd5e2d06 | /venv/Scripts/pip3-script.py | dfa48cf8478470d720c7e588d0e7917ad0d270ff | [
"MIT"
] | permissive | rexliu3/Sudoku-Solver | dd3bd9c1522d65bfb21982a08816148c0dafb777 | 86aed07b23445d3a739ad941474aee379e6a6cb3 | refs/heads/master | 2023-05-02T07:57:26.009294 | 2021-05-28T07:17:49 | 2021-05-28T07:17:49 | 263,766,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | #!"C:\Users\rexli\Desktop\Commonly Used\Sudoku Solver\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$',... | [
"40341857+rexliu3@users.noreply.github.com"
] | 40341857+rexliu3@users.noreply.github.com |
12d2b319e45161b64b8c5e2a24a13222bf797dc1 | 43e900f11e2b230cdc0b2e48007d40294fefd87a | /Facebook/1763.longest-nice-substring.py | 6c10cfdaef09b7133bf7adcc369d6f99c980d0c9 | [] | no_license | DarkAlexWang/leetcode | 02f2ed993688c34d3ce8f95d81b3e36a53ca002f | 89142297559af20cf990a8e40975811b4be36955 | refs/heads/master | 2023-01-07T13:01:19.598427 | 2022-12-28T19:00:19 | 2022-12-28T19:00:19 | 232,729,581 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #
# @lc app=leetcode id=1763 lang=python3
#
# [1763] Longest Nice Substring
#
# @lc code=start
class Solution:
def longestNiceSubstring(self, s: str) -> str:
if len(s) < 2:
return ""
chars = set(list(s))
for i in range(len(s)):
if not (s[i].lower() in chars and s[i]... | [
"wangzhihuan0815@gmail.com"
] | wangzhihuan0815@gmail.com |
e04e779995991d1bf575c90f205dd4b034b6a717 | 00ba198648adf646c21199af30ec2644c3b7e530 | /tests/test_spotifyscraper.py | a3fa52cbad2ec3ed75c77cf79bc6c39150726889 | [
"MIT"
] | permissive | evlim/SpotifyScraper | 17491a00f7f2125dd776398d071fc9b946b9601a | 6af67de1615a6c931c2be789aefb9e658fe2267f | refs/heads/master | 2022-12-28T07:29:21.240172 | 2020-05-03T16:57:41 | 2020-05-03T16:57:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | from SpotifyScraper.scraper import Scraper
from SpotifyScraper.request import Request
if __name__ == "__main__":
temp = Scraper(session=Request().request()).get_playlist_url_info(
url='https://open.spotify.com/playlist/4aT59fj7KajejaEcjYtqPi?si=W9G4j4p7QhamrPdGjm4UXw') | [
"Aliakhtari78@hotmail.com"
] | Aliakhtari78@hotmail.com |
d319032783ab7087825ba232f11db926fa368188 | 76f1987d40f5d2e3f032170ece6491775fbf5697 | /prohmr/datasets/openpose_dataset.py | b6f59a10a6a80151349de227609282b329e766b5 | [
"BSD-3-Clause"
] | permissive | goyallon/ProHMR | 15b7b469c15813fd30ca404157680af59376d8f7 | dac2409c0b451b6dd5d91f03cbe7132aa495792f | refs/heads/master | 2023-07-13T06:03:07.040266 | 2021-08-27T00:38:09 | 2021-08-27T00:38:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,838 | py | """
Create an ImageDataset on the fly from a collections of images with corresponding OpenPose detections.
In order to preserve backwards compatibility with SMPLify-X, parts of the code are adapted from
https://github.com/vchoutas/smplify-x/blob/master/smplifyx/data_parser.py
"""
import os
import json
import numpy as n... | [
"nkolot@seas.upenn.edu"
] | nkolot@seas.upenn.edu |
87d64712d998d3b868640d48f892d7e959c074cc | 87dae6d55c66df1d40d6881272009319a1600cb3 | /PROGRAMACION I SEGUNDO CUATRIMESTE TP1 EJ 1.py | fdb33f593f6082dcfbe9ff1eb7b7f96ae7012bcd | [] | 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 | 679 | py | """
Desarrollar una función que reciba tres números positivos y devuelva el mayor de
los tres, sólo si éste es único (mayor estricto). En caso de no existir el mayor estricto
devolver -1. No utilizar operadores lógicos (and, or, not). Desarrollar también
un programa para ingresar los tres valores, invocar a la función ... | [
"abaldeg@gmail.com"
] | abaldeg@gmail.com |
42827266ae0abe6cf4bb9c8f2a439f58df2b3e9a | 8781d392b65ccf7ebad7332de07eddea3349f55c | /examples/vtk-structured-2d-curved.py | e322305c0b6b03fe6e91706abff7bb1edf09c799 | [
"MIT"
] | permissive | mattwala/pyvisfile | 95006fb7771cb7b51264543344fcbb1da0504432 | 41c908e1530d73a2af83fa9436751cb46c0f922a | refs/heads/master | 2022-11-11T11:19:15.474390 | 2020-06-23T05:14:31 | 2020-06-23T05:14:31 | 276,822,466 | 0 | 0 | MIT | 2020-07-03T06:14:45 | 2020-07-03T06:14:44 | null | UTF-8 | Python | false | false | 482 | py | from __future__ import absolute_import
from pyvisfile.vtk import write_structured_grid
import numpy as np
angle_mesh = np.mgrid[1:2:10j, 0:2*np.pi:20j]
r = angle_mesh[0, np.newaxis]
phi = angle_mesh[1, np.newaxis]
mesh = np.vstack((
r*np.cos(phi),
r*np.sin(phi),
))
from pytools.obj_array import make_obj... | [
"inform@tiker.net"
] | inform@tiker.net |
5573c985cf87f71b6dc605b266b0413315c3457f | 15e818aada2b18047fa895690bc1c2afda6d7273 | /analysis/control/optimize.py | 84bb77fa593651b7c63536c6d78e82f883a5d0b6 | [
"Apache-2.0"
] | permissive | ghomsy/makani | 4ee34c4248fb0ac355f65aaed35718b1f5eabecf | 818ae8b7119b200a28af6b3669a3045f30e0dc64 | refs/heads/master | 2023-01-11T18:46:21.939471 | 2020-11-10T00:23:31 | 2020-11-10T00:23:31 | 301,863,147 | 0 | 0 | Apache-2.0 | 2020-11-10T00:23:32 | 2020-10-06T21:51:21 | null | UTF-8 | Python | false | false | 3,865 | py | # Copyright 2020 Makani Technologies LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"luislarco@google.com"
] | luislarco@google.com |
8e10a71488576fd11c908c3ed8dcc5e6ab0dfff5 | 8c9d5bc245b343d9a36882d6d1c850ce6a86442d | /dbdaora/geospatial/_tests/datastore/conftest.py | 3fa3329a173ddadfe0ab7827399e84af9c563b7e | [
"MIT"
] | permissive | dutradda/dbdaora | 1089fa9c80a93c38357818680327b24d48ac8b64 | 5c87a3818e9d736bbf5e1438edc5929a2f5acd3f | refs/heads/master | 2021-07-04T10:06:59.596720 | 2020-12-05T12:24:45 | 2020-12-05T12:24:45 | 205,046,848 | 23 | 1 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import pytest
from dbdaora import DatastoreGeoSpatialRepository, KindKeyDatastoreDataSource
@pytest.fixture
def fallback_data_source():
return KindKeyDatastoreDataSource()
@pytest.fixture
def fake_repository_cls(fake_entity_cls):
class FakeGeoSpatialRepository(DatastoreGeoSpatialRepository):
name =... | [
"diogo.albuquerque@luizalabs.com"
] | diogo.albuquerque@luizalabs.com |
1cfe778504868434459320484f8eefd49656d4e3 | dcabc50bb549c3a805009932119a81b415a53baa | /CTCI/Moderate/lru cache.py | 1473bcc7d4c8d09dcec3bbf34192345f13287589 | [] | no_license | totemw/algorithm | dacf68ac8890a3dbd18b0bc43a10b9a33c7babe5 | 608157956f13fccb663b3a3d888a585dbde78cde | refs/heads/master | 2020-03-18T12:39:16.086385 | 2019-08-21T17:14:26 | 2019-08-21T17:14:26 | 134,736,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,332 | py | """
Design and build a "least recently used" cache, which evicts the last
recently used item. The cache should map from keys to values with a max size.
When it is full, it should evict the least recently used item.
You can assume the keys are integers and the values are strings
- Insert (key, value) pair
- retr... | [
"wyc980402@icloud.com"
] | wyc980402@icloud.com |
222140e48e19be1bfcc8e232228a239be2222221 | 820161e862f21bf4ae8a78f160836f9f542fa746 | /9_korpus/filter_on_confidence_and_supp_apyoridata.py | 7d477f4ac0fefaf1e27d8a47296245a6230598c0 | [] | no_license | DmitriiOGU/Analyzing_technical_mode_apyori | 631852adff47e38a61943324c0c9f231ee1eca9a | 4fce4acde373e74db6e3aa4c61d101614f7f0691 | refs/heads/master | 2020-12-09T05:27:11.534721 | 2020-01-30T16:19:35 | 2020-01-30T16:19:35 | 233,206,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 12 16:02:27 2019
@author: Dima
"""
import pandas as pd
df=pd.read_pickle('associative_analysis10%.pkl')
s=[]
for i in df.index:
if len(df['items'][i])==1:
s.append(i)
df=df.drop(s)
df=df.reset_index(drop=True)
s=[]
s1=[]
s2=[]
s3=[]
s4=[]
s5=[]
for i in df.i... | [
"dimogu90@ya.ru"
] | dimogu90@ya.ru |
d045c1f2d9bbf9c9ae7d90b60a3d2acae0704637 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/gui/miniclient/tech_tree/pointcuts.py | fb5d3bd3f860d356b28b23a159f21b25c9372f1e | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,103 | py | # 2017.05.04 15:21:52 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/miniclient/tech_tree/pointcuts.py
import aspects
from helpers import aop
class OnTechTreePopulate(aop.Pointcut):
def __init__(self):
aop.Pointcut.__init__(self, 'gui.Scaleform.daapi.view.lobby.techtree.TechTree', 'Te... | [
"info@webium.sk"
] | info@webium.sk |
9de584dc3b0a4e354a76f9b19a508aacad68619d | d79ec3cb3e59778d2b4a17846434ef2d027d5f98 | /polls/migrations/0001_initial.py | d025fcfa894499c76821c28ea2673060914a4cd2 | [] | no_license | Marlysson/PollsApp | df08a9eae257f947f93ffa4130aec26186a087a8 | 57b1477ecc3732444123dbfa996a7287dc5d7052 | refs/heads/master | 2020-12-02T10:13:55.554610 | 2017-11-11T14:50:21 | 2017-11-11T14:50:21 | 96,703,281 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-06 19:29
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"marlysson5@gmail.com"
] | marlysson5@gmail.com |
218f563140adbef3b53895ce27de170ea6b06f30 | c57f390bbdf6b0a58a9ac8c1b0389a6ad8360898 | /test_case/demo/test_hello.py | 9b1f823827f10da24e7f39d19933d999fa9f9a4f | [] | no_license | LudvikWoo/guoya-api-test | 660f25024e6aad7d642f8187483b4eb527f7804d | d4bc91b2ce1499d404add91494e4d82a803de5ca | refs/heads/master | 2020-06-20T00:05:19.648416 | 2019-09-16T04:25:37 | 2019-09-16T04:25:37 | 196,919,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,035 | py | # -*- coding:utf-8 -*-
# Author : 小吴老师
# Data :2019/7/18 19:23 ... | [
"wx_da9ca5d160264260a28c6febefd0c909@git.code.tencent.com"
] | wx_da9ca5d160264260a28c6febefd0c909@git.code.tencent.com |
add665e0f9eea337eb20e0ab5777da9c64f48ce2 | 7449f496093a2a2c942e25d9fc2dde800c1712c3 | /etoroCurrencyConverter.py | c7b52c8407f34942c66ee38e84962cee8c98ea16 | [] | no_license | hecnabae/etoro-currencyconverter | 8099d0c78e090b6eb1710d5ed222f3c9ba608891 | c00da0ca26292a415ae4e358b8dfb00c9854a372 | refs/heads/main | 2023-04-25T10:35:14.914048 | 2021-04-27T08:15:59 | 2021-04-27T08:15:59 | 361,876,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | import datetime
import pandas as pd
import timedelta
from currency_converter import CurrencyConverter
c = CurrencyConverter()
df = pd.read_excel('eToroReport.xlsx', sheet_name='Closed Positions')
print(df)
format_str = '%d/%m/%Y' # The format
dfOut = pd.DataFrame(columns=['Action', 'Dolar Profit', 'Close Date', 'C... | [
"noreply@github.com"
] | noreply@github.com |
1079b63dfc0864393d1753fd4f6f69094c7bbe02 | 04a1b6130150a9e830a83bca93dfda8f19cd637b | /algorithms/shortest_path.py | f9c503e05f46eaa8425f0a3131d09c00d6edb370 | [] | no_license | frank-u/python_snippets | 31fef24d010baa8a0a3c4c8cc9510119d77416ab | 00ea979c169eeb23b86280aa81c3594a7b1fb198 | refs/heads/master | 2022-12-14T04:28:01.539788 | 2019-10-21T20:20:00 | 2019-10-21T20:20:00 | 26,375,521 | 2 | 0 | null | 2022-12-08T00:43:58 | 2014-11-08T21:34:45 | Python | UTF-8 | Python | false | false | 2,758 | py | """
A shortest path:
[['>', 'v', ' ', ' ', ' ', ' '],
[' ', '>', '>', '>', '>', 'v'],
[' ', ' ', ' ', ' ', ' ', 'v'],
[' ', ' ', ' ', ' ', ' ', 'v'],
[' ', ' ', ' ', ' ', ' ', '*']]
"""
# Sample Test case
grid = [[0, 0, 1, 0, 0, 0],
[0, 0, 0, 0, 0, 0],
[0, 0, 1, 0, 1, 0],
[0, 0, ... | [
"poliatykin@gmail.com"
] | poliatykin@gmail.com |
bf0cdb0f62c739289f886720d6b9adf611ffa682 | 23633c012fdac19e30eb1a9614a41b3a79101480 | /app/main.py | 03612abe089261e36bccced6974e6abedabee709 | [] | no_license | kainanpinheiro/flask_api | 0f5c2d561166bb52a8adba77440d165437f3f111 | c9d6cd8e613d56e83fb37a877aec8cfe27efbd27 | refs/heads/master | 2023-01-22T17:07:08.138137 | 2020-11-20T00:41:21 | 2020-11-20T00:41:21 | 292,985,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | from flask import Flask
from flask_cors import CORS
from settings import app_config, app_active
from flask_sqlalchemy import SQLAlchemy
from .routes.livro import bp as bp_livro
from .routes.vendas import bp as bp_venda
config = app_config[app_active]
def create_app(config_name):
app = Flask(__name__)
CORS(... | [
"kainan.silva@aluno.faculdadeimpacta.com.br"
] | kainan.silva@aluno.faculdadeimpacta.com.br |
6d382e32ad86983c157c71ab9707914c24db018b | 903f290e8a1d86dd1a0a2850b082d6954e0de98c | /while.py | dcc499664bcf938de598d7ee9f0099a435322f39 | [] | no_license | Lmurase/Astro-119-hw-2 | bc15f845ee03d1580e4fced0583a4f9120d89fd4 | d9c6e4b2a826c5936f2d5f1b3cb0198680ea0553 | refs/heads/main | 2023-01-30T12:56:06.192291 | 2020-11-28T22:21:33 | 2020-11-28T22:21:33 | 316,831,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | i = 0
while (i<119):
print(i)
i += 10 | [
"noreply@github.com"
] | noreply@github.com |
256da6afa54d1f01675e20ef107c6f7cf7006356 | 0d8d6658156bdf2979452ba4a10277450b4a832e | /api/v1/wallet/admin.py | 2cfb30b346e71a2aa157853960929215d9772fb7 | [] | no_license | vinitraj10/shop | 928578637a490e7bac270670cf2e8444204df2e3 | 3eb8422d8a5269864240ae8954676c2428d0001d | refs/heads/master | 2021-06-23T10:25:01.731180 | 2019-11-09T16:08:38 | 2019-11-09T16:08:38 | 151,718,613 | 4 | 0 | null | 2021-06-10T22:13:06 | 2018-10-05T12:38:47 | JavaScript | UTF-8 | Python | false | false | 258 | py | from django.contrib import admin
from v1.wallet.models import (
Wallet,
LoyalityProgram,
MyLoyality,
Promo
)
admin.site.register(LoyalityProgram)
admin.site.register(MyLoyality)
admin.site.register(Wallet)
admin.site.register(Promo) | [
"vinitraj1012@gmail.com"
] | vinitraj1012@gmail.com |
0a6b55a8fb41e95019aec04abad069f3f58ec636 | 729fd41946fee82db591f1eae142cbfc1a484166 | /image_process/imread.py | d8eca9128c79af9092ea790179a80bc3bb82599e | [] | no_license | qhgz2013/bgo_script | 3c95722c3448a000eedc2bb58b54491b209fd4a9 | 3536e4714a382eaf1523d902f3f7659f6e5a6fec | refs/heads/master | 2023-06-07T05:56:15.481659 | 2020-11-30T15:33:01 | 2020-11-30T15:33:01 | 232,471,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | py | from ._backend_determine import *
import numpy as np
import logging
logger = logging.getLogger('bgo_script.image_process')
_warn_non_ascii_path_opencv = False
@backend_support('imread', 0)
def _imread_opencv(path: str) -> np.ndarray:
global _warn_non_ascii_path_opencv
if not _warn_non_ascii_path_opencv:
... | [
"qhgz2011@hotmail.com"
] | qhgz2011@hotmail.com |
28e13648b54783d8fcea6c41d888e6dc3ebbfe22 | b210d58b724c7199f43ddde031eba40996c82257 | /submissions/sm_114_sudhir/week_13/day_3/session_1/hello_loops.py | 49bdea7332aa640c540758a711ae31734f7ca93e | [] | no_license | Tanmay53/cohort_3 | 0447efd2dc8b3c1284b03da7326b35393fdf5f93 | 351fb6e1d0c29995fb5cb3b6af411dbcf0ced64c | refs/heads/master | 2021-05-23T17:55:36.508185 | 2020-04-05T12:58:07 | 2020-04-05T12:58:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | i = 1
n = 10
while i <= n:
print('Hello Masai')
i += 1 | [
"lion.sud.k@gmail.com"
] | lion.sud.k@gmail.com |
f5c61dfd6024796264c0b50d239d70e492c8e49e | e83e8a3b7ef31b36b2c590b37bf2d1df1487fe5a | /tests/test_docs/test_query.py | a7d055d10b61f98b14ac194e3ebf9d696b3d26ff | [
"MIT"
] | permissive | duilio/django-ninja | 19d66eae1b3b01f9910f3ea0f569ed6d3a561707 | 8dac3c981bcf431322d32acd34c8179564a3698d | refs/heads/master | 2023-01-21T07:17:02.544071 | 2020-11-25T10:48:30 | 2020-11-25T10:48:30 | 316,243,580 | 0 | 0 | MIT | 2020-11-26T13:56:19 | 2020-11-26T13:45:12 | null | UTF-8 | Python | false | false | 3,259 | py | from unittest.mock import patch
from ninja import NinjaAPI
from client import NinjaClient
def test_examples():
api = NinjaAPI()
with patch("builtins.api", api, create=True):
import docs.src.tutorial.query.code01
import docs.src.tutorial.query.code02
import docs.src.tutorial.query.cod... | [
"ppr.vitaly@gmail.com"
] | ppr.vitaly@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.