blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
608a35b305264d22101fae93881d6336cfdbead0 | 3fb61cb2da8cad71b214a7faadffc27bcd1a5315 | /transformServices/app/gleanomatic/RSRestClient.py | c9ba11949e70f0f5f7fef4fed1d21da9d7111ea4 | [] | no_license | dhenry314/gleanomatic | 4ed0ed80836e4aa622392ec804e6ca2a95336a7b | 9c9c8ab9a6da83d4a1fc429289c7450bf606005b | refs/heads/master | 2021-07-06T02:55:43.571032 | 2019-04-15T18:21:12 | 2019-04-15T18:21:12 | 148,791,398 | 0 | 1 | null | 2018-10-04T21:35:10 | 2018-09-14T13:19:57 | Python | UTF-8 | Python | false | false | 5,442 | py | # RSRestClient - client to interact with a RSEngine REST endpoint
import urllib.request
import urllib.parse
import json
import gleanomatic.Utils as Utils
from gleanomatic.GleanomaticErrors import BadResourceURL, AddResourceError, AddDumpException
import gleanomatic.gleanomaticLogger as gl
logger = gl.logger
class RS... | [
"dhenry314@gmail.com"
] | dhenry314@gmail.com |
8cb15969e90d1fb204f6d134054b16e7beb7e3b6 | 806132bffbabefa5750154839e276aae8edb5570 | /src/tree.py | a5e127fb1622bbe87c05a5a6de30888c7706f35f | [] | no_license | Tarrasch/ravens-test | f5d30215b206102439f4aeb4cdd020c703b1881c | 951a72a6803745b2e5318a74ab05d56915e7ecd5 | refs/heads/master | 2020-06-01T04:20:25.901271 | 2012-11-20T12:44:46 | 2012-11-20T12:44:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | def map_tree(f, tree):
grid = tree['grid']
alts = [tree[k] for k in range(100) if tree.has_key(k)]
grid = map(lambda xs: map(lambda x: f(x), xs), grid)
alts = map(lambda x: f(x), alts)
return dict([('grid', grid)] + [(i, alts[i-1]) for i in range(1,len(alts)+1)])
def collapse_tree(tree):
grid = tree['grid'... | [
"miffoljud@gmail.com"
] | miffoljud@gmail.com |
6e3f6c3449d7f93848d1116b344a0dcabece60f2 | 6cf86e6122b3c65853231481ff73d40a25374eb1 | /Input().py | 068cf37daec039fb7b1eb52c376b116f2b161ace | [] | no_license | npc203/hackerrank-one-liners | d9480ce71cde342458689250963d1f69f3a38093 | a7eb66c8d1bfa3508cae28ff6160db2728df3b5b | refs/heads/main | 2023-07-17T12:03:03.757519 | 2021-08-20T12:30:18 | 2021-08-20T12:30:48 | 375,340,120 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | (lambda x,b : print(eval(input()) == b))(*map(int,input().split())) | [
"npc203@users.noreply.github.com"
] | npc203@users.noreply.github.com |
0f1fbd0076898caca22bdff66e84b8f1ca8cade5 | d060c02ffd05cca79f469a4cd8d26827b3f3c3e4 | /job/schema.py | c15f7516218d5b5d2d4843e0874976b6f3420dba | [] | no_license | symek/job-cli | 4a2a190cf30348e5b2ca27c6c67c081599da495a | dfe2f629bd0a9956bddedd9b3d5544c3b91769d7 | refs/heads/master | 2021-01-13T04:11:46.571599 | 2020-11-17T16:11:12 | 2020-11-17T16:11:12 | 77,702,058 | 0 | 1 | null | 2017-03-03T12:59:48 | 2016-12-30T18:01:20 | Python | UTF-8 | Python | false | false | 5,852 | py |
from schematics.models import Model
from schematics.types import StringType, URLType, BooleanType, BaseType, IntType
from schematics.types import UUIDType, DateTimeType, TimestampType
from schematics.types import ListType, ModelType, DictType, PolyModelType
from schematics import exceptions
import json
import collec... | [
"szymon.kapeniak@gmail.com"
] | szymon.kapeniak@gmail.com |
42ee0b0d809863a628c4d9a10375863e7328db4a | fb54704d4a6f9475f42b85d8c470e3425b37dcae | /medium/ex46.py | b8f578eefedb0af0bc3a15588f48718e85d76ec0 | [] | no_license | ziyuan-shen/leetcode_algorithm_python_solution | b2784071a94b04e687fd536b57e8d5a9ec1a4c05 | 920b65db80031fad45d495431eda8d3fb4ef06e5 | refs/heads/master | 2021-06-27T05:19:47.774044 | 2021-02-04T09:47:30 | 2021-02-04T09:47:30 | 210,991,299 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | class Solution:
def permute(self, nums: List[int]) -> List[List[int]]:
ans = {(nums[i],): nums[:i] + nums[i+1:] for i in range(len(nums))}
for _ in range(len(nums)-1):
for permute in list(ans):
remaining = ans[permute]
for i in range(len(remaining)):
... | [
"ziyuan.shen@duke.edu"
] | ziyuan.shen@duke.edu |
363145fc67b5fbf0353580112bd509dcb8673d4b | 41e0c435a52fdaa3d698faf17308bec2968d1d39 | /tempest/services/compute/v3/xml/keypairs_client.py | 6efb7fea04767a2d49fb6362a0d057b8f1efd00b | [
"Apache-2.0"
] | permissive | BeenzSyed/tempest | 26092eabaeb3963f1967cdbdf36395cdc5b701c3 | 7a64ee1216d844f6b99928b53f5c665b84cb8719 | refs/heads/master | 2021-01-22T08:06:59.627280 | 2015-03-23T22:36:09 | 2015-03-23T22:36:09 | 19,959,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,508 | py | # Copyright 2012 IBM Corp.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"bozhu@linux.vnet.ibm.com"
] | bozhu@linux.vnet.ibm.com |
9b2fa84da02cc1dc0fefaa6972b0474d32d36b06 | 634425d7a7dbc99c45da4d27924af5a3e6112fca | /Linear_classifiers/(b) linear classifiers.py | 6b9abb4cd105d1c441fbf88837c0b48f0b1847fb | [] | no_license | fahimalamabir/datacamp | dc342645796c37401156bf79d7c5d20f262e4469 | 8224a69801d6a4236cf3e99bebd4f149cc846b4b | refs/heads/main | 2023-06-15T16:26:18.271836 | 2021-07-06T22:09:31 | 2021-07-06T22:09:31 | 318,082,895 | 0 | 0 | null | 2020-12-04T02:06:26 | 2020-12-03T05:15:50 | Jupyter Notebook | UTF-8 | Python | false | false | 5,107 | py | '''
How models make predictions
Which classifiers make predictions based on the sign (positive or negative) of the raw model output?
ANSWER THE QUESTION
50 XP
Possible Answers
Logistic regression only
press 1
Linear SVMs only
press 2
Neither
press 3
Both logistic regression and Linear SVMs
press 4
Submit Answer
Take ... | [
"noreply@github.com"
] | noreply@github.com |
123d9fedfe67be980e7dab0084a0da66acb721fb | 0fb4b731939d1b38e219d3fcecf2990f06f17038 | /visualization/python/visualize_daily.py | eeff3a1d501a9c0fd1f6a78af36e9bbc540aef9e | [
"Apache-2.0"
] | permissive | saitejaleo/coronavirus-dashboard | 218edd7953e7e4385d9dfbd8008431aa53b6200c | f320dbdc785df954b005594b6f0bdf8330122cfb | refs/heads/master | 2022-07-18T13:59:42.728258 | 2020-05-17T18:59:20 | 2020-05-17T18:59:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,575 | py | import json
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
plt.switch_backend('agg')
import matplotlib.ticker as ticker
# fig_width=8
# fig_height=3
# value_text_size=9
rotation_degree=90
data_file_name = '../../data/ohio.json'
num_cases_file_name='../../figure/num_cases.svg'
num_new_cases_fil... | [
"fyu@ysu.edu"
] | fyu@ysu.edu |
27bb8d83d6f836d2e2dc817c8c5c463d2a65544f | d030f5b120dbbb62f95fd964bde379637846de06 | /ROSservice/catkin_ws/devel/lib/python2.7/dist-packages/face1/srv/__init__.py | 3337d4fca6327faac64425e4c087ba544643def5 | [] | no_license | cd74/ROSface | 29a40d16dd75f564cd24d15f01349d8b4a4e491e | 1506120c2bb9c13935849f2e4698ef1add551561 | refs/heads/master | 2022-04-25T01:33:49.269936 | 2020-04-27T06:15:38 | 2020-04-27T06:15:38 | 258,939,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | from ._FaceSrv1 import *
| [
"3050272147@qq.com"
] | 3050272147@qq.com |
114b4c677ac9ad89733f6b700813000b37a0f4b4 | 7f7fc72cf2f2f06ef7eb5d852d0bd2caf3f2daf9 | /sirepo/runner.py | 6b4f1b20aa57674dc9faee958a025c976818c02e | [
"Apache-2.0"
] | permissive | kalebswartz7/sirepo | 4bcd41113ba93a3f7bcfa47df27e79805e1e4f50 | 8d1f2b3914cf9622eaae6b0bf32e23e38e4e5972 | refs/heads/master | 2020-03-19T08:31:41.409642 | 2018-07-20T19:32:48 | 2018-07-20T19:32:48 | 136,211,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,268 | py | # -*- coding: utf-8 -*-
u"""Run jobs
:copyright: Copyright (c) 2016 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
decouple so can start any type of job
add is_background_import to simulation_db
select docker for that if configured and not background
need to have hard ... | [
"github@q33.us"
] | github@q33.us |
a725500a2e349cbf8954f750c637d836326569bd | 6e485ffa2ce9559fdcc05f3650483c49c46b7102 | /db/note_model.py | 75c2f2557a1deed01b6a49192e6fd6930d664882 | [] | no_license | araneta/Tugas-statistik | 23164ec3f096903675be4dcdb76c1f6ad1cb6a81 | 573376a3d174d9b53428d21e221a3338ee392e67 | refs/heads/master | 2021-01-19T18:58:19.678755 | 2017-04-16T04:26:18 | 2017-04-16T04:26:18 | 88,391,000 | 0 | 0 | null | 2017-04-16T04:28:48 | 2017-04-16T04:28:48 | null | UTF-8 | Python | false | false | 2,631 | py | from database import *
import datetime
class NoteModel:
def __init__(self):
self.db = db
self.cursor = cursor
def all_post(self):
sql = "select * from note where id_user = 1 order by tanggal_diperbaharui desc"
try :
self.cursor.execute(sql)
temp_results = self.cursor.fetchall()
results = []
i = 1
... | [
"aldopraherda@gmail.com"
] | aldopraherda@gmail.com |
b1fc4028b00d66db57ef3d4fca7602a0b3de1815 | 8eb0f65096f9a9fe90a88c85dcdcaf12f9a8a512 | /apps/maintenance_mode/middleware.py | cd0e09b3e8aba28e3af198050f46e5958f5de4a4 | [
"MIT"
] | permissive | WhitespaceCrew/django-htk | 57c8cc9ec30b4cd9511b717978758c47144de76f | 6a7b87a3d0a2e4cb51f6b8059708a26fa8e613df | refs/heads/master | 2020-12-31T01:10:14.900413 | 2016-02-03T19:24:27 | 2016-02-03T19:25:02 | 45,211,442 | 0 | 0 | null | 2015-10-29T21:23:54 | 2015-10-29T21:23:54 | null | UTF-8 | Python | false | false | 873 | py | from django.shortcuts import redirect
from django.core.urlresolvers import reverse
from htk.apps.maintenance_mode.utils import is_maintenance_mode
from htk.utils import htk_setting
class MaintenanceModeMiddleware(object):
"""Checks whether HTK_MAINTENANCE_MODE is set
If so, redirects to the HTK_MAINTENANCE_M... | [
"jontsai@jonathantsai.com"
] | jontsai@jonathantsai.com |
71ff48d27a98e522cb1183c1508f3fd16ee598fa | 521a5abf021aff0e5bec6e4723efb2d95bc1c528 | /dva/urls.py | f5d1f059a314c2edc9fa63fd0894759abd496b16 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | CVML/DeepVideoAnalytics | be3ed41968a140328e25c22f2cb2be431a2b172d | d0969b503ed68dc9ee26279c341e1540bfefd4f6 | refs/heads/master | 2021-07-17T22:19:20.787228 | 2017-10-22T07:55:04 | 2017-10-22T07:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | """dva URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
b6b7520917496dbd41f7f57d11d8d68f84434ff7 | ee179dd9e9b24046508b11a60612da3758c7e122 | /lib/python2.7/site-packages/nltk/stem/api.py | c6032423e84a9a5b8a1985afcf341e4084970792 | [] | no_license | buhtigexa/Nerit | fcd6cb08a0935e5b80392ae2acf68ba52ee8a899 | d55629f6289c1fa6efe60802a78b79932ff248a2 | refs/heads/master | 2021-01-21T13:11:51.105930 | 2015-05-01T23:56:02 | 2015-05-01T23:56:02 | 34,728,820 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | # Natural Language Toolkit: Stemmer Interface
#
# Copyright (C) 2001-2014 NLTK Project
# Author: Trevor Cohn <tacohn@cs.mu.oz.au>
# Edward Loper <edloper@gmail.com>
# Steven Bird <stevenbird1@gmail.com>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
class StemmerI(object):
"""... | [
"mrodriguez@alumnos.exa.unicen.edu.ar"
] | mrodriguez@alumnos.exa.unicen.edu.ar |
528b509d132ef0c5142d6ca4858054d9bbee1dec | d12e1825321c6d275ec55f869311d2f3e30cfdab | /libs/deep_models/flow/lite_flow_net/lite_flow_net.py | 66fbad1997c550b7348257c8d40da8a04febe6f2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Huangying-Zhan/DF-VO | b369e6a00ae0745288acf9d61460f633aa116875 | 50e6ffa9b5164a0dfb34d3215e86cc2288df256d | refs/heads/master | 2022-12-11T18:29:42.457460 | 2022-03-14T00:34:29 | 2022-03-14T00:34:29 | 212,502,276 | 494 | 128 | MIT | 2022-11-22T15:29:20 | 2019-10-03T05:18:35 | Python | UTF-8 | Python | false | false | 17,960 | py | import math
import torch
from . import correlation # the custom cost volume layer
Backward_tensorGrid = {}
def Backward(tensorInput, tensorFlow):
"""Backward warping, warp tensorInput according to the grid defined by tensorFlow
Args:
tensorInput (tensor): source data
tensorFlow (tensor): ... | [
"zhanhuangying@gmail.com"
] | zhanhuangying@gmail.com |
4b4238839723416be5a682718dbe7694d6fd4b21 | 91a3a7998a370e1280d01ec722625d2d7afc2226 | /autodiff/context.py | ccf8f58da9ded0cb6dcc2902d42216c07de395af | [
"MIT"
] | permissive | sujason/quantitative | f4cb08614ba5a7276b84fa0694f129ed27319ab8 | 42b7fdea05629934f513a7b15e5b03c7697c5c46 | refs/heads/master | 2021-01-01T05:31:56.613945 | 2016-01-26T03:24:44 | 2016-01-26T03:24:44 | 12,944,434 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 45,855 | py | """
Example of how to use byte-code execution technique to trace accesses to numpy
arrays.
This file demonstrates two applications of this technique:
* optimize numpy computations for repeated calling
* provide automatic differentiation of procedural code
"""
import __builtin__
import ctypes
import inspect
import lo... | [
"sujason@stanford.edu"
] | sujason@stanford.edu |
fcd11702e81bde025971e101d2d70f66f5e8cdb3 | 55e81ceffe94ec087ea9c4e6576093b56a86b852 | /src/modules/convolution.py | 0838e88f436ead2fb4833f31b9288f853b90c574 | [] | no_license | feathernox/neuroml_fmri_deepspd | 43941062e244c4ae9084821a7512a287407be0c3 | 119f968458a92d3ea644f55d1d4fab9527b73c16 | refs/heads/main | 2022-12-30T23:48:28.771036 | 2020-10-25T10:13:23 | 2020-10-25T10:13:23 | 306,640,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import torch
from torch import nn
from torch.nn import init
import math
class SimpleConvolution(nn.Module):
def __init__(self, in_channels, out_channels):
super().__init__()
self.in_channels = in_channels
self.out_channels = out_channels
self.weight = nn.Parameter(torch.Tensor(in_... | [
"remizova.as@phystech.edu"
] | remizova.as@phystech.edu |
79180c09bcb81b56e6d9d1043b6380e55871d2a0 | c7e765a9bed33d3bfb21774e3995bf4a09e04add | /adminmgr/media/code/A3/task1/BD_135_703_2371_KhgNwL4.py | 39a4a494197832cb4b20798bc47cbace9f61a4d5 | [
"Apache-2.0"
] | permissive | IamMayankThakur/test-bigdata | 13dd2ac7fb76c9baed6c3a0aa943057a22e2d237 | 7f507918c7bec31c92eedcd94491a83486623049 | refs/heads/master | 2022-05-03T00:59:44.127494 | 2022-02-10T19:50:16 | 2022-02-10T19:50:16 | 201,585,028 | 10 | 4 | Apache-2.0 | 2022-04-22T23:39:45 | 2019-08-10T05:34:09 | Python | UTF-8 | Python | false | false | 1,134 | py | import findspark
findspark.init()
from pyspark import SparkConf,SparkContext
from pyspark.streaming import StreamingContext
from pyspark.sql import Row,SQLContext
import sys
import requests
def func(rdd):
sorted_rdd1 = rdd.sortBy(lambda x: (-x[1],x[0]))
sorted_rdd=sorted_rdd1.filter(lambda y: y[0] !='')
s_list=... | [
"ubuntu@ip-172-31-18-251.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-18-251.ap-south-1.compute.internal |
37cd36176891ea926eef36e5b677f6b4352ae940 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-as/huaweicloudsdkas/v1/model/pause_scaling_group_request.py | c88cd3d690fe6f2fc4753b1834d1bd3b10a9f9f9 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,079 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class PauseScalingGroupRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is att... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
76bbea84228c618e352dc125b30c93b04c64e117 | 6a420c47a9b8940ed2f437c0a49c7ccccf7473bd | /apps/blog/models/entry.py | 421764412b477c2fd97703ab561da5706ad45e74 | [] | no_license | deadendif/blog | f0198287e07dc95c5a12b44cad5dc58b86c2294e | 2eb48a7f66ae93a8bafcba824461e4c1a430e10a | refs/heads/master | 2021-06-20T23:47:14.189596 | 2017-08-12T06:25:25 | 2017-08-12T06:25:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,380 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.db import models
from django.utils import timezone
from django.utils.html import strip_tags
from django.utils.text import Truncator
from tagging.fields import TagField
from tagging.utils import parse_tag_input
from author import Author
from category import Ca... | [
"deadend.endif@gmail.com"
] | deadend.endif@gmail.com |
37434a2d02bf51c411162c56fe9eda123ad980d9 | bede13ba6e7f8c2750815df29bb2217228e91ca5 | /advance_cash_flow_statements/wizard/account_account.py | 8ab4d6059149ffc32c123a592816f6a73772185a | [] | no_license | CybroOdoo/CybroAddons | f44c1c43df1aad348409924603e538aa3abc7319 | 4b1bcb8f17aad44fe9c80a8180eb0128e6bb2c14 | refs/heads/16.0 | 2023-09-01T17:52:04.418982 | 2023-09-01T11:43:47 | 2023-09-01T11:43:47 | 47,947,919 | 209 | 561 | null | 2023-09-14T01:47:59 | 2015-12-14T02:38:57 | HTML | UTF-8 | Python | false | false | 3,562 | py | # -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under... | [
"ajmal@cybrosys.in"
] | ajmal@cybrosys.in |
c5383493a1f9677eb1111b85946e9ad9e14fe2b8 | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/f3_wrong_hints/scaling_nonlinear_software/10-19_35.py | 6ae8d393dc099f7aac05202aa5a431adcbaf9881 | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,238 | py | from typing import FrozenSet, Tuple
import pysmt.typing as types
from pysmt.environment import Environment as PysmtEnv
from pysmt.fnode import FNode
from utils import symb_to_next
from hint import Hint, Location
def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode,
... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
839fceccecbbd4b46b6c93de655ca6dc94e9bf89 | 3935927379f7f06a3aaeffef3e32c6261e93a4f4 | /CNN_variant2/retrain.py | 40b1a989ed855979d1f07a37d15baf02102621d4 | [] | no_license | Tanmoy-Bipro/BSL-alphabet-recognition | 7be07a45149bb07d0666c7d847720cb50d6cbc33 | 7c7717e1a8f7f274d0db0fead6ef269f8cc017dc | refs/heads/master | 2020-09-27T07:48:37.705809 | 2019-12-27T15:14:20 | 2019-12-27T15:14:20 | 226,467,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,860 | py |
# pylint: disable=line-too-long
r"""Simple transfer learning with image modules
This example shows how to train an image classifier based on any
TensorFlow Hub module that computes image feature vectors. By default,
it uses the feature vectors computed by Inception V3 trained on ImageNet.
See https://github.com/ten... | [
"noreply@github.com"
] | noreply@github.com |
1913f94db48508d534a35b09a05eec732f312e5f | 2be43fdc9f328895b949c92ec4e7602fbbbf2ca3 | /tests/test_feeds.py | 20932f520aba76a42d6876c404625f2a4259e97f | [] | no_license | gjxlu/feedhq | 418a75ef68de759e7f85cf8b14f827b3fd5e5f27 | 3027b192e2c6f35ebb7f821c6d64e8eca49e4c44 | refs/heads/master | 2020-12-25T02:01:24.035251 | 2013-07-16T21:20:01 | 2013-07-16T21:36:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,214 | py | # -*- coding: utf-8 -*-
import feedparser
import json
from datetime import timedelta
from django.core.cache import cache
from django.core.urlresolvers import reverse
from django.utils import timezone
from django_push.subscriber.signals import updated
from django_webtest import WebTest
from httplib2 import Response
fr... | [
"buburno@gmail.com"
] | buburno@gmail.com |
7dc97366d633f77383f6583d6130cf3b33f3367b | 164ae54c1aaf1cf84f339ec672e4426f53ff83ea | /app_pedidos_django/applications/usuarios/managers.py | 16b91163a44b4dadd465f2e79f4b436a4c0f39b4 | [] | no_license | JaviOlaya/Pedidos_Django | 39a28ac0eba96c16e1df54e0678dd195dbf9c96c | 8706f1f9ae114ed32bccf85036c47317eeb0b674 | refs/heads/main | 2023-06-22T04:22:56.907521 | 2021-07-17T11:46:48 | 2021-07-17T11:46:48 | 382,832,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | from django.db import models
#
from django.contrib.auth.models import BaseUserManager
class UserManager(BaseUserManager, models.Manager):
def _create_user(self,username, email, password, is_staff, is_active, is_superuser, **extra_fields):
user = self.model(
username = username,
... | [
"jjosaez@gmail.com"
] | jjosaez@gmail.com |
02594a0628527d5a727933e55884e5da274eb26f | 53832bd168b797827be77bface570a2bea8952f1 | /aidlyapi.py | 7639a37116f1edd0735568b2643646a7a52352be | [] | no_license | Bryan1010/AidlyBackend | 840bbdf290d65577a37b17cc99fc1162177e0f02 | f0fd9215374713a077460876ab3069d5d556c66f | refs/heads/master | 2021-02-09T02:36:37.825383 | 2020-11-08T04:22:38 | 2020-11-08T04:22:38 | 244,229,180 | 2 | 0 | null | 2020-11-08T04:22:40 | 2020-03-01T21:50:21 | Python | UTF-8 | Python | false | false | 274 | py | from mainapp import MAIN_APP
# from models.company import Company
from flask import request, Response
from models import db
@MAIN_APP.route("/")
def hello():
return "<h1 style='color:blue'>Hello There!</h1>"
if __name__ == "__main__":
MAIN_APP.run(host='0.0.0.0')
| [
"7885194+derekstephen@users.noreply.github.com"
] | 7885194+derekstephen@users.noreply.github.com |
c114e9e4c5fbe43f5efbc36d8ddc04c35dd32490 | af82475dc7eb45c478414372c222e7b6016359d4 | /python书籍/Python For Finance Code/Code of Python For Finance/4375OS_08_Code/4375OS_08_12_Series.py | f279f6cc3587504d87af31fda1b21a119cea0200 | [] | no_license | enfangzhong/PythonBaseCode | 8f58c8b817eb9f4b0f0a5be437a52d5b5fab3433 | 9ab4a578b2692fdbb6aeeacb310251d51f72e953 | refs/heads/master | 2020-05-17T16:26:02.598344 | 2019-04-27T20:49:40 | 2019-04-27T20:49:40 | 183,817,172 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | """
Name : 4375OS_08_12_Series.py
Book : Python for Finance
Publisher: Packt Publishing Ltd.
Author : Yuxing Yan
Date : 12/26/2013
email : yany@canisius.edu
paulyxy@hotmail.com
"""
import pandas as pd
x = pd.date_range('1/1/2013', periods=252)
data = pd.Series(randn(len(x)), ... | [
"944727327@qq.com"
] | 944727327@qq.com |
1f0bf5a3dd27a4dd078d0aad47999b7ab0f0ac0c | ec038a8ab77ce2e62316d91ef06cab6c5d02256a | /MPSI/CH02/TP.py | 23dc4c70d57d42e647f884c44eba4939a317f51e | [] | no_license | brahimbakkas/cpge | b4d9a9fe4b54dde2e4b5d40406aa3e6dcac59cc9 | 632f6da5c15806cf6aa48b4787c716bb73481d24 | refs/heads/master | 2020-05-26T01:44:32.468383 | 2019-10-25T23:08:30 | 2019-10-25T23:08:30 | 188,064,895 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | #
#
for i in range (n):
print(i)
| [
"noreply@github.com"
] | noreply@github.com |
016c75557647665c5a3773b8cf354ade5c11502f | 941c912f44beff33a072e086c1f561f6cdd64626 | /LeetCode/codes/22.py | 84f0db4955118accd480b9d684a7ae03a363e1dc | [] | no_license | adreena/MyStudyCorner | 3a13a743769ed144965b767f547c16df4d0fa0dd | 355c0dbd32ad201800901f1bcc110550696bc96d | refs/heads/master | 2023-02-20T07:39:32.391421 | 2021-01-25T01:46:21 | 2021-01-25T01:46:21 | 255,104,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # time catalan numbers (2n n)*1/n
# space: catalan numbers
class Solution:
def generateParenthesis(self, n: int) -> List[str]:
self.outputs = []
def helper(n_left, n_right, output):
if n_left == 0 and n_right == 0:
self.outputs.append(output)
else:
... | [
"kim.hszd@gmail.com"
] | kim.hszd@gmail.com |
2cbf5758e46478db0c2adedb0c1158e442574bfb | 13bed5cd72c63182592297e88e3eb5acc574d5ab | /src/iis.tac | dac670e8c4dbac064e986c93116a12d8922dcb4c | [] | no_license | itsbth/itsinfoscreen | 951ddc5a772adfa27bf5258733ed20e8e3f65a36 | b6921c7734297bd49144e68e6c9ccb67b055cea8 | refs/heads/master | 2016-09-06T12:38:41.490698 | 2010-01-12T19:05:12 | 2010-01-12T19:05:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | tac | import os, sys
sys.path.append(os.getcwd())
from twisted.application import service, internet
from nevow import appserver
from nevow import rend
from nevow import inevow
from nevow.static import File, Data
import json, random
from widget import WidgetManager
man = WidgetManager()
class JSONData(re... | [
"itsbth@itsbth.com"
] | itsbth@itsbth.com |
e921b0a4952a5165f6b62a4404df543360cc2a60 | 4cce9cd38bb82ee0a7bb5099b4d4db4ec4acce78 | /src/util.py | de37b5de4c7057f4adad5f3e5280faffff0db0f6 | [] | no_license | VertexToEdge/othello-server | 08f26748b577eae308517788a4e86296974c0aa0 | 06c59e6b5ac6adb4c53bb2d0eb523c86f9b1e7a5 | refs/heads/master | 2020-04-23T15:17:03.108482 | 2019-02-18T10:16:16 | 2019-02-18T10:16:16 | 171,259,893 | 1 | 0 | null | 2019-02-18T10:05:51 | 2019-02-18T10:05:51 | null | UTF-8 | Python | false | false | 478 | py | import struct
import json
def serialize(msg):
body = json.dumps(msg).encode()
msg_len = struct.pack('>L', len(body))
return msg_len + body
def deserialize(sock):
_msg_len = sock.recv(4)
if len(_msg_len) < 4:
raise ConnectionResetError
msg_len = struct.unpack('>L', _msg_len)[0]
msg... | [
"umbum7601@gmail.com"
] | umbum7601@gmail.com |
087d6cf19f4743bba424fb5759ae4dfc7444dac8 | 72521bf31e438e49e6a26941e44523a9b54ef351 | /f1_robot/build/testbot_description/catkin_generated/pkg.installspace.context.pc.py | 4ac95d36922a9dbd7d67dba34464dfcfde047276 | [] | no_license | rossonet/braccio_ros | 04d8ccc8c70b62fdc28f166a8da58b4289414b5c | bde03a827f92c8c90764bd3ba606fbd2eeded8a2 | refs/heads/master | 2021-07-08T22:30:10.856911 | 2017-10-04T15:52:47 | 2017-10-04T15:52:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "testbot_description"
PROJECT_SPACE_DI... | [
"andrea.ambrosini@rossonet.org"
] | andrea.ambrosini@rossonet.org |
3758f1d2fc628019ffb27cc8d9c833c5cdee2c3f | f0000766ad3a5c47834a59144207e5e411749c19 | /python/get_commands.py | eb239d4f6c7e17d7adafa35df4a949945b44ba53 | [] | no_license | GitBolt/discord-slash-guide | f972f0bccf7dc0829f2934b59628a5e6de6258f4 | 886adac4b210df57af8ed41ccdac94f21a8b0ee7 | refs/heads/master | 2023-07-26T10:44:45.503744 | 2021-09-06T07:50:17 | 2021-09-06T07:50:17 | 403,006,058 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | """
This is to get all commands, not to be confused with `get_command.py`
which returns details of a particular command.
"""
import os
import requests
TOKEN = os.environ["TOKEN"] or os.getenv["TOKEN"]
HEADERS = {"Authorization": f"Bot {TOKEN}"}
def get_global_commands(application_id: int) -> str:
"""
https... | [
"stingbolt1@gmail.com"
] | stingbolt1@gmail.com |
2764e974be54c42119a3c178925548b4bf99e8df | 08e84e6190e7fa25a3948344defd73c602c168cc | /views.py | 722f56acace4cda306b93e446543d881716c2259 | [] | no_license | dimmoon69/django-cdbforms | f053bc19765e4c8ebe512feef2b55d4632bc7c8d | 58c1e3aab4455073176da7c28d23cdfd7badad94 | refs/heads/master | 2021-12-04T11:44:07.989876 | 2011-03-18T14:08:57 | 2011-03-18T14:08:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | from datetime import datetime
from django.http import HttpResponse, HttpResponseRedirect
from django.template.loader import get_template
from django.template import Context, RequestContext
from models import *
from forms import *
def cdbform(request, template):
if request.method == 'POST':
form = CDBForm(templat... | [
"fedor.tyurin@3da375b8-c7c2-11dd-94fd-9de6169c3690"
] | fedor.tyurin@3da375b8-c7c2-11dd-94fd-9de6169c3690 |
a7f65228a1a5c133e9d806213124e862f5e27193 | fab99203d20d8755a055045b5117ea8a77ab9597 | /spanningForest/txn2Phase/tools/run_once.py | f59a2b1c3f648ed2edae85039fe10d7491591f62 | [] | no_license | yuxiamit/LiTM | 2ee787a9d8b433fbfbb1219e9355a9a0512e8dab | d118033ed4dd3b42f45b85f61908015fac8b5293 | refs/heads/master | 2020-04-18T12:08:47.797136 | 2019-08-19T19:57:01 | 2019-08-19T19:57:01 | 167,524,994 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | batchRanges =[
#500, 700, 1000, 2000, 3000, 5000,
10000, 20000, 50000, 75000, 100000, 200000] # [100, 200, 300, 500, 700, 1000, 2000, 3000, 5000, 10000, 20000, 50000, 75000, 100000, 200000]
import os
import sys
import subprocess
trials = 10
executable = "MIS"
inputFile = "randTI"
if len(sys.argv) > 1:
# inputFile ... | [
"yuxia@mit.edu"
] | yuxia@mit.edu |
0ad5c07617722f7b2b34d3993e6f969784a7bcd9 | 80a92f0aab314b590d718e9fa602551d75a3728f | /rules.py | 6cbbc80819bf26074836953c046115143af06c0c | [] | no_license | clauszitzelsberger/Schafkopf_RL | 54b3040a1db6f01b781cd56fd6ef04b423cd0828 | 7be0515472d6b9f488deea8e63c1fc43bf9ff343 | refs/heads/master | 2020-03-20T11:05:40.410251 | 2018-10-21T09:45:26 | 2018-10-21T09:45:26 | 137,392,936 | 7 | 0 | null | 2018-06-16T18:15:58 | 2018-06-14T18:12:18 | Python | UTF-8 | Python | false | false | 4,800 | py | import numpy as np
#from random import shuffle
import random
import copy
class Rules():
def __init__(self):
self.card_number = ['siebener',
'achter',
'neuner',
'zehner',
'unter',
... | [
"noreply@github.com"
] | noreply@github.com |
27cacce4b3a5ddfcd0ac9cd6fe61e916c9aee2a2 | 1210fd2bdad04eb7dfb7c015caf3aaa9a06c73d4 | /meditation/post/models.py | a9d989806902f13e2cf6e04682c7e119bd67da89 | [] | no_license | andyxdman/meditation | c719c8d3a906a29d2ea521fc14d8f093e92dc499 | 612d8c56ed1c658018b8a583d55ce712b4f2cf79 | refs/heads/master | 2020-09-22T17:54:41.528561 | 2019-12-02T15:47:30 | 2019-12-02T15:47:30 | 225,292,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Post(models.Model):
POST_DRAFT = 0
POST_NORMAL = 1
POST_HIDDEN = 2
POST_TYPE = (
(POST_DRAFT, '草稿'),
(POST_NORMAL, '正常'),
(POST_HIDDEN, '隱藏'),
)
owner = models.Fore... | [
"andylee1994@gmail.com"
] | andylee1994@gmail.com |
abf504d987f86ea021d138b7f2ff2b1fa1df0dc8 | 2173a5432ff7d47346cdd4d45811284b117708c6 | /Python/ifstatements.py | 03085abbc1f64a069c21109d7493c2e31357778e | [] | no_license | lucasvdiepen/PythonAchievements | beac4abeac7a46920f641a2f34db9d8a4438ba2a | 25eb9f4518abb69f31c3c979e041319810deb42b | refs/heads/master | 2023-01-10T07:44:45.578549 | 2020-11-11T18:05:13 | 2020-11-11T18:05:13 | 292,278,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | varA = 5
varB = 10
if (varA == 5):
print("varA staat gelijk aan 5")
else:
print("varA staat niet gelijk aan 5")
if(varA == varB):
print("varA staat gelijk aan varB")
elif (varA < varB):
print("varA is kleiner dan varB")
elif (varA == 50):
pass #Doe niks
else:
print("varA is toch groter dan va... | [
"lucascool@ziggo.nl"
] | lucascool@ziggo.nl |
a7833550c3629ae6e2e33022924a2e4d51d2dcc7 | 77653811587e0d9285380ae866952b3fcf09ae80 | /dj4e-samples/views/views/settings.py | 8bb54857eb0d6da3145fd0e858926655dc91be25 | [
"MIT",
"CC-BY-3.0"
] | permissive | natc23/SI_364_Local | 477c82a74f7ac34bcca9db33c11ea6ec1c333cd5 | e72c98bef29ee9d6cdb1b9c120152ffc007293d2 | refs/heads/master | 2020-04-24T00:37:57.639011 | 2019-04-12T01:17:48 | 2019-04-12T01:17:48 | 171,571,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | """
Django settings for views project.
Generated by 'django-admin startproject' using Django 2.0.5.
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/settings/
"""
import os
# B... | [
"nataliecieslak@yahoo.com"
] | nataliecieslak@yahoo.com |
382879de143cc3ef780b3c978f986a11db227dfb | f04e9d6cc8318f3ebd5a613e6eb87a08d1da9f03 | /Lesson35_PIR_LED/code/python/Lesson35_PIR_LED.py | bd8ecd9c95bd94d580d42f45f917e6259648dbc5 | [] | no_license | adeept/Adeept_Ultimate_Starter_Kit_for_RPi | bef331c62aeb9d6bde19b8606380f7cf491979f6 | 2fc3655cd2de187d2388dd78b37e4d8b883d5c68 | refs/heads/master | 2022-11-04T10:12:15.869910 | 2020-06-20T10:01:53 | 2020-06-20T10:01:53 | 258,106,856 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import RPi.GPIO as GPIO
import time
PIR_OUT_PIN = 13 # pin11
def setup():
GPIO.setmode(GPIO.BOARD) # Numbers GPIOs by physical location
GPIO.setup(PIR_OUT_PIN, GPIO.IN) # Set BtnPin's mode is input
def destroy():
GPIO.cleanup() # Release resource
class Led:
def __init__(self, p... | [
"1553491000@qq.com"
] | 1553491000@qq.com |
7dda60f128bc4578497e8aab41bcc3504e0f2038 | 7c0b611f13346e24970ae6d59829cc11f43f7168 | /backend/api/endpoints/lobby.py | 590cc11302dc7c9abf915e1bbd756ea78be94320 | [] | no_license | dl-eric/zhao-peng-you | e7e5823762d366d63e13225b2c361179fbdb898c | 0cc5954fbd33bcd9ba8c0aae1778ce7cee477f45 | refs/heads/main | 2022-12-28T16:24:35.007146 | 2020-10-12T03:14:57 | 2020-10-12T03:14:57 | 302,989,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,780 | py | from fastapi import APIRouter, HTTPException, WebSocket, WebSocketDisconnect
from backend.core.lobby_manager import LobbyManager
from backend.core.exceptions import SessionsFullException, LobbyNotFoundException, LobbyPlayerExistsException
router = APIRouter()
@router.get('/count')
async def get_num_lobbies():
l... | [
"ericdl712@gmail.com"
] | ericdl712@gmail.com |
16929652a578a13f35466e8c785048bd1a45f63a | f9a2ac4593462c669ec2cf996a01d3706c6bb955 | /bookmarks/views.py | be9ec2b1390839acb139afc4935ab43cc2f95b90 | [] | no_license | rogatzkij/readhelper-be | 2287a341780509a0d76ac69b9042da9222230388 | 18fe3e4263a431c29f84d51c9136f1b620568bc3 | refs/heads/master | 2022-04-04T13:39:46.305275 | 2020-01-04T14:30:46 | 2020-01-04T14:30:46 | 225,032,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,672 | py | from django.db import IntegrityError
from django.http import JsonResponse
from django.utils.timezone import now
from rest_framework import permissions
from rest_framework.response import Response
from rest_framework.views import APIView
from bookmarks.models import Bookmark
from bookmarks.serializer import BookmarkSer... | [
"rogatzkij@yandex.ru"
] | rogatzkij@yandex.ru |
7ed539393db275f2f1dd067a9bf2e75a118f4e81 | 6edcb269d4f54ea37f7f12c31169192ab13e882f | /text.py | 3518e7030baf503f62f4b6845e0c3e6f9c65fe59 | [] | no_license | Jovi007/newGit | 63f79befe801865d8132f6211422fa473e452e68 | 7b26570343d95d00b4e1dd4c05383ca8dcb43653 | refs/heads/master | 2021-01-01T04:58:04.412831 | 2016-04-20T10:10:59 | 2016-04-20T10:10:59 | 56,666,477 | 0 | 0 | null | 2016-04-20T10:10:59 | 2016-04-20T07:43:26 | Python | UTF-8 | Python | false | false | 175 | py | print 'new branch'
print 'master branch fix'
print 'fix conflict'
print 'I want master get my code,I am dev1'
print 'I am master,I have new code'
print 'fix bug ing.........'
| [
"zhouwei03@chinatopcredit.com"
] | zhouwei03@chinatopcredit.com |
7bba2b545e38840999f2778d1537f8684c064ee8 | 946ead8406872492ca4763e96b4d6a3fb5c05a81 | /venv/Scripts/easy_install-3.7-script.py | c84b105c51d98b7171cf4562cb748e94afc3d9ac | [] | no_license | Hortmagen21/Flex | 14249ad9d8563af4807f29bce935d991ab582d8f | db8cc5a0f11af3c6678e2e3631cc296efb44f1db | refs/heads/master | 2023-01-24T14:49:59.074381 | 2020-09-21T12:27:44 | 2020-09-21T12:27:44 | 243,205,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | #!C:\Users\Max\Flex\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"max_yudkin@ukr.net"
] | max_yudkin@ukr.net |
e1c5d4e673bec81279d06a0f9df24cc150fee5d6 | c2911877d9e892c0ffa31399af8f326b1fcc14b3 | /flaskPojects/flaskBlog/__init__.py | 97fa28ec0bd4bb636bb877ae02272222dfbc1c2e | [] | no_license | MuneebSheikh/Python-Flask- | d313955aa6fb566cd80b19b3333f45802174531c | a29ac9aedc622597f6efdc45e2bde1bf7d53860a | refs/heads/master | 2020-07-15T08:15:50.398176 | 2019-10-24T11:51:11 | 2019-10-24T11:51:11 | 205,519,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
app = Flask(__name__)
app.config['SECRET_KEY'] = '0e4cc2d780d7f2b9a1be03e1a42e84c9'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db'
db = SQLAlchemy(app)
bcrypt = Bcrypt(app)... | [
"sajjadmuneeb686@gmail.com"
] | sajjadmuneeb686@gmail.com |
f8030a439634075910d8b4cc1c7c7a989af7d51d | c6a624ffc2b6165d8e1f1c85a45ae1fa1c2baee4 | /OJ/CodeWars/Find the odd int.py | fcd97c3bb29e11c390a08aaea3b08331fe73416b | [
"Unlicense"
] | permissive | JuChunChen/Algorithm | 41be8f8b9fd0543ef4d3e2297c3a0be81fc1433d | 8291a7ed498a0a9d763e7e50fffacf78db101a7e | refs/heads/master | 2023-04-02T21:25:08.227053 | 2021-04-10T07:57:55 | 2021-04-10T07:58:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | from functools import reduce
def find_it(seq):
return [
k for k, v in {
v: (lambda val, seq: reduce(lambda r, v: r + (v == val), seq, 0)
)(v, seq)
for v in seq
}.items() if v % 2 != 0
][0]
"""
def find_it(seq):
for i in seq:
if seq.count(i)%2!=0:
retu... | [
"simon@tomotoes.com"
] | simon@tomotoes.com |
045c865fc678eba2750f62646d81f6c24d5e15cb | 7e93b1c33045b4c03054f42b6a2b800279b12a9b | /core/cache/backends/redis/compressors/base.py | 8d9e74deabf56d11d14abf6ab944ca71c3f9526c | [
"MIT"
] | permissive | anthill-arch/framework | 6f8036980667843f2be1414850255cf6a10e2dcd | a6c238a62ae9c3fb319d12e77f7e9047aab75e8d | refs/heads/master | 2020-05-09T06:01:31.186830 | 2019-08-23T13:52:43 | 2019-08-23T13:52:43 | 180,988,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | class BaseCompressor(object):
def __init__(self, options):
self._options = options
def compress(self, value):
raise NotImplementedError
def decompress(self, value):
raise NotImplementedError
| [
"x55aah@gmail.com"
] | x55aah@gmail.com |
b049e56da653b855a8ad4584671e6605341e7f9f | 50c02a07926f706a9de70b6cc2576c3daf3c441e | /Maya/Python/digital37/maya/lighting/test.py | f47a0bc42d69b2354552ea3d07de3bb02055e340 | [] | no_license | kizikay/digital37 | d24204a0ae68ef84c0778333ddaa01137f06731f | 9bcb111c013cbbd51b36f3ba32346a78349755cf | refs/heads/master | 2021-05-29T12:57:36.466534 | 2012-08-05T17:11:25 | 2012-08-05T17:11:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | import maya.cmds as cmds
import re
import os
def getShadingSG(shapesList):
for shape in shapesList :
#def SYH_changeMapDetail(detail):
#
# noTexture = False
# pattern = "."
#
# sel = cmds.ls(sl = True)
# if(len(sel) <= 0):
# print "no object are selected"
# ... | [
"hongloull@gmail.com@e21bde55-81c9-5408-e5b9-2d3a39b4433e"
] | hongloull@gmail.com@e21bde55-81c9-5408-e5b9-2d3a39b4433e |
abc977568852cbb171525797863a63f3f63231a4 | b314b8ccfdb83d84dd54df341a3191ed7aedab08 | /text_categorizer/trainer.py | b36437de54f433634f6c2d4511dc935614a18ec9 | [] | no_license | LuisVilarBarbosa/DISS | 9dc817c18197795277a81c1ab2aa8a00f014fd4d | d276b4f3e98a811031da3971587bf15fb292fb7d | refs/heads/master | 2020-04-22T22:09:19.391734 | 2019-07-26T13:43:29 | 2019-07-26T13:44:22 | 170,697,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,644 | py | #!/usr/bin/python3
# coding=utf-8
import classifiers
import pickle_manager
from os.path import isfile
from pandas import read_excel
#from profilehooks import profile
from FeatureExtractor import FeatureExtractor
from functions import data_frame_to_document_list
from logger import logger
from Parameters import Paramet... | [
"luisfernandobarbosa@live.com.pt"
] | luisfernandobarbosa@live.com.pt |
df6b3cdaa09073a8075e928c7ef9df25a4f7150f | 1f3a2cee3654c11586b30151fd9a3fc6fd705c0a | /deep_learning/pic.py | 5488840c452ac9667371b0542085d8a928c76634 | [] | no_license | 2020668/AI | 24ff42cefacac3f397e7a6f54dda7e9d741f2e03 | 3e1a78a6348e453b0f3e8862a784105620a22bc1 | refs/heads/master | 2020-12-09T02:03:55.311209 | 2020-02-10T15:36:26 | 2020-02-10T15:36:26 | 231,186,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | import tensorflow as tf
print(tf.__version__)
# 输出'2.0.0-alpha0'
print(tf.test.is_gpu_available())
# 会输出True,则证明安装成功
| [
"keen2020@outlook.com"
] | keen2020@outlook.com |
4a699bc62ac3bdeec338f860c09e2a05aefe9edf | 7a6c9a4e38e4c7271bddd3c51ff8fb1bfa714c87 | /4/1.py | 923a108704b6cead829194f7df0776d896c91fc0 | [] | no_license | simonsayscodes/School | bf934e2a32b01e063d5f3fa49e4a4668b566518c | 377de06267ab6744992fd4f241c64cb047ba8c26 | refs/heads/master | 2023-02-23T04:49:39.232936 | 2021-01-24T22:53:03 | 2021-01-24T22:53:03 | 292,821,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | name = "Pog" # Använd inte () när det är name
age = 18,77
print(f"Ajad {age} är riktigt jobbig")
if name is "Simon Jendman": #Du glömde : tänk alltid att om du använder if name is / is not använd :
print ("Och ska åka snart")
elif age == 19: #Samma sak som tidigare med if name is fast elif
print ("snälla di... | [
"70754158+simonsayscodes@users.noreply.github.com"
] | 70754158+simonsayscodes@users.noreply.github.com |
4e515a7ffea62d3d0983fe8800071ecacb2849a2 | 14c712219774aef5a620cde4cd3150ac31cca512 | /jjwxc/parse_user.py | a4155212fddb99dd41ceb2e3ad23c0996cf401c5 | [
"MIT"
] | permissive | jeffmxh/spider | 8d9a6e41852c84967bb44c170927a9e6a6aa96af | bec2376a05a64185d956760d9b143424c639c33f | refs/heads/master | 2021-05-11T23:57:38.861728 | 2019-01-06T07:55:47 | 2019-01-06T07:55:47 | 117,522,604 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,527 | py | import pandas as pd
import threading
import requests
from bs4 import BeautifulSoup
from selenium import webdriver
import argparse
import re
import os
import time
import random
import logging
'''
获取html原网页文本
参数:url,即要打开的网页链接
返回值:为html网页文本
'''
class Spider:
def __init__(self):
self.headers = {'user-agent': ... | [
"jeffmxh3946@gmail.com"
] | jeffmxh3946@gmail.com |
c74e724a225f8334412b1593428a285b7c2f0acd | 69eca466d7f184e9cb100572ba1dee4264d2e0c8 | /organization/migrations/0001_initial.py | bdd91ae95d41f35a0106038179b5451172ed4734 | [] | no_license | bbkchdhry/django-crud | 1247dafe55d522994ae0d070e669a67b7be1d553 | a2724b0a6c611ae3759ae7b4fd63315a66a921c4 | refs/heads/master | 2021-08-29T23:26:33.299576 | 2017-12-15T08:37:02 | 2017-12-15T08:37:02 | 114,346,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | # Generated by Django 2.0 on 2017-12-15 07:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Department',
fields=[
... | [
"bbkchdhry@gmail.com"
] | bbkchdhry@gmail.com |
5de0f9c4b170ee96a23070ab179376033873edf0 | 3436a1502b344e92351c03a03a2e97e9dc0b3e00 | /chapter4/code/classifier-fast.py | 3283e6a907145eb9ea64e8a5797152456d44f9b9 | [] | no_license | Rajiv-Nayan/Machine-Learning | 0c47321c59938600f6f77ab9a6f7de5637598b9e | 3850eb7c4ce1018c92ccf6a228174599613cfba7 | refs/heads/master | 2022-11-30T04:26:21.882330 | 2020-08-11T16:09:59 | 2020-08-11T16:09:59 | 284,464,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,188 | py | import os
import numpy as np
from collections import Counter
from sklearn.metrics import accuracy_score
def make_Dictionary(root_dir):
all_words = []
emails = [os.path.join(root_dir,f) for f in os.listdir(root_dir)]
for mail in emails:
with open(mail) as m:
for line in m:
... | [
"rajivnayanu23@gmail.com"
] | rajivnayanu23@gmail.com |
b70b66f6096c21bc356db17ef7a9da3c02eaf719 | f8bb2d5287f73944d0ae4a8ddb85a18b420ce288 | /python/basic/for/format_obj.py | df47968c9dd34f209133f19983ab9c23ed9b0fe2 | [] | no_license | nishizumi-lab/sample | 1a2eb3baf0139e9db99b0c515ac618eb2ed65ad2 | fcdf07eb6d5c9ad9c6f5ea539046c334afffe8d2 | refs/heads/master | 2023-08-22T15:52:04.998574 | 2023-08-20T04:09:08 | 2023-08-20T04:09:08 | 248,222,555 | 8 | 20 | null | 2023-02-02T09:03:50 | 2020-03-18T12:14:34 | C | UTF-8 | Python | false | false | 46 | py | for 変数 in オブジェクト:
処理
| [
"yusuke059@gmail.com"
] | yusuke059@gmail.com |
7543cdf445cb135d685ea0c8aadce2b1123acf5d | b07208301e07076da04fde86402fbaf826a90d73 | /chapter2/Chapter_2.1.1.4 KNN.py | 40bbeb0dd79e24167282d812dcdcc51916cb6fb9 | [] | no_license | TaoStarlit/python_ML | b5baf7c90c207a215db2b311bea1f6068b30d881 | 278524509503613b71c0d66c3b533e5b0c79d8d1 | refs/heads/master | 2021-08-29T01:43:40.746184 | 2017-12-13T10:01:51 | 2017-12-13T10:01:51 | 103,505,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py |
# coding: utf-8
# In[1]:
# 从sklearn.datasets 导入 iris数据加载器。
from sklearn.datasets import load_iris
# 使用加载器读取数据并且存入变量iris。
iris = load_iris()
# 查验数据规模。
iris.data.shape
# In[2]:
# 查看数据说明。对于一名机器学习的实践者来讲,这是一个好习惯。
print iris.DESCR
# In[3]:
# 从sklearn.cross_validation里选择导入train_test_split用于数据分割。
... | [
"zhengt2016@gmail.com"
] | zhengt2016@gmail.com |
be136d34d8b79c6aa596f970cf3d0bd28b394505 | 965da23a89791f445334fd7e23f032435bf993c4 | /dturm.py | 10ce1d10771f2bee7232bbf9443070455fc39296 | [
"MIT"
] | permissive | aktech/dturmscrap | b669c9d461fa89a6d4b9ff146796025d6df2e242 | b6046daa4deec5782f98069f57c4c96262443563 | refs/heads/master | 2021-01-01T16:19:00.902853 | 2015-11-16T19:21:33 | 2015-11-16T19:21:33 | 40,501,549 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,728 | py | # DTU RM Scrapper
# Author: AMiT Kumar <dtu.amit@gmail.com>
# Version: 0.1
import sys
sys.path.insert(0, 'libs')
import webapp2
from google.appengine.api import mail
from google.appengine.ext import db
import pickle
import logging
import cookielib
import urllib2
import mechanize
from bs4 import BeautifulSoup
# Glo... | [
"dtu.amit@gmail.com"
] | dtu.amit@gmail.com |
b1a48b404cef952e203b19b3d0a78243594f0388 | 97ccf3f73e371afd4037b664ba0c71b0b6af1db3 | /guessing_number.py | aa6edf2ce024ad5db431f145fa4fdc80d98c9d35 | [] | no_license | jaesmanalang/number-guessing | 97f33e61d0c44d3e385965c4c671ab377bb5f7b4 | 919255390e1aef6b43c748c0d0e2551ed08561f2 | refs/heads/master | 2022-08-13T15:51:05.519634 | 2020-05-17T14:51:21 | 2020-05-17T14:51:21 | 264,690,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | import random
import os
attempts = 0
game_playing = True
def play_game():
reset()
global game_playing, attempts
max_range = get_max_range()
the_number = number_to_guess(max_range)
while game_playing:
guess = player_guess(max_range)
if check_guess(guess, the_number):
ga... | [
"jaesmanalang@gmail.com"
] | jaesmanalang@gmail.com |
6524ea94820092e4a5ac123ed4c71fb81f6f7c7e | 764001a417797e484d20b90e902dce6e0cc41c97 | /code/models_single_xgb_tree.py | ce587d370ff8141143498bc47cc5fd029f25860f | [] | no_license | apex51/kaggle-home-depot-search-relevance | 39145f8e6d2f944e5e8f50e9b149bd2041d74a92 | 44b439e5ef462dcdde2cd19ff879ca9086639536 | refs/heads/master | 2021-01-19T12:22:03.853816 | 2017-03-09T14:14:11 | 2017-03-09T14:14:11 | 84,448,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,040 | py | import numpy as np
import pandas as pd
import pickle
import xgboost as xgb
# from sklearn.cross_validation import train_test_split
from sklearn.cross_validation import KFold
from sklearn.metrics import mean_squared_error
from datetime import datetime
from hyperopt import fmin, tpe, hp, STATUS_OK, Trials
PROJECT_PATH ... | [
"jiangh@dxy.cn"
] | jiangh@dxy.cn |
f3409674f6082e19e2cdbb91ddc6cc1956ae779f | 9aea1b19a8681b4c6b15d628a080982fb2d98b39 | /mianJing111111/Google/Implement Queue using Stacks.py | 2e144185623f255bcbf62dc1b0ca3271002fcff4 | [] | no_license | yzl232/code_training | ee7612efc6f166742fcf48e1af715f57a624d3aa | fc165027c3d7b1fec58ebfad2f9ada275a6b8c03 | refs/heads/master | 2021-01-21T04:32:02.522931 | 2016-07-01T21:35:29 | 2016-07-01T21:35:29 | 26,989,266 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # encoding=utf-8
'''
In this method, in en-queue operation, the new element is entered at the top of stack1. In de-queue operation, if stack2 is empty then all the elements are moved to stack2 and finally top of stack2 is returned.
enQueue(q, x)
1) Push x to stack1 (assuming size of stacks is unlimited).
deQueue(... | [
"buptyuzhenglin@gmail.com"
] | buptyuzhenglin@gmail.com |
f933c954e217766db493055dde446e4bbc81de4e | 189e580f1525a4f15a279daacb1e62155c65542b | /metrilyx/metrilyxconfig.py | cf2fba1498ac1c594f3be18db0a7ddacc50de9b8 | [
"Apache-2.0"
] | permissive | hvyas/metrilyx-2.0 | 33c009a0c925d84e31580960d8424c4ab9a7f1be | ca3aac416298fb6ba2550dd040cdc50379ab894a | refs/heads/master | 2020-12-26T04:37:38.725817 | 2014-09-28T22:56:22 | 2014-09-28T22:56:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | import os
from datastores import jsonFromFile
_abspath = os.path.abspath(__file__)
_apphome = os.path.dirname(os.path.dirname(_abspath))
CONFIG_FILE = os.path.join(_apphome, "etc/metrilyx/metrilyx.conf")
config = jsonFromFile(CONFIG_FILE)
config["static_path"] = os.path.join(os.path.dirname(_abspath), "static")
con... | [
"abs.pathak@ticketmaster.com"
] | abs.pathak@ticketmaster.com |
4a0902dc27453f1c3c75f66b24e4029df02fe5ed | 4f205fc9316eff48092f573b072b644e8f02d8bd | /src/training/mytransforms.py | a8bdbb915bba86ea0d73dbf24e6f4d62a1ae0203 | [
"Apache-2.0",
"MIT"
] | permissive | hip-satomi/microbeSEG | 017d5a0af616b4ee4652c315dea21eb4fc62b754 | 7e5455f1a27bc42ad765ec06e62c36012be71c11 | refs/heads/main | 2023-04-14T10:29:08.178419 | 2023-01-26T10:09:59 | 2023-01-26T10:09:59 | 483,291,328 | 6 | 1 | MIT | 2022-10-21T15:11:37 | 2022-04-19T14:55:12 | Python | UTF-8 | Python | false | false | 15,396 | py | import numpy as np
import random
import scipy
import torch
from imgaug import augmenters as iaa
from skimage.exposure import equalize_adapthist, rescale_intensity
from torchvision import transforms
from src.utils.utils import min_max_normalization
def augmentors(label_type, min_value, max_value):
""" Get augment... | [
"tim.scherr@kit.edu"
] | tim.scherr@kit.edu |
ea876ca3108b51995f148ecb425ba1ea887579b0 | e5718bfa592ca171fd4100116ce566ecb0883e10 | /lib/to_delete/ConvDeconvClassesMnist_mods.py | 25cd606c3926001bf43fd87215e721ac80405fbe | [
"MIT"
] | permissive | joaquimlyrio/feature-visualization | e0d4eba7d9f5d3e99c917d00a6780e59fbf77ef5 | 47ead5044d1239dba1133b7ea812b2ed7f2564dc | refs/heads/master | 2021-08-30T13:03:09.928336 | 2017-12-18T03:27:05 | 2017-12-18T03:27:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,528 | py |
###
### maybe try to use tf.nn.conv2d?
###
# Imports
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
import random
import math
from scipy.misc import imsave
###
### Convolutional Neural Network (CNN) for MNIST
###
class CnnMnist:
def __init__( self, session, n_in, n_out, mode... | [
"31713176+joaquimlyrio@users.noreply.github.com"
] | 31713176+joaquimlyrio@users.noreply.github.com |
9004f791a1dcd8b9174c7e98612c338f9f24f0b8 | 1bfab43b76b084e428e8d0ff1809afd6d20acc35 | /on luyen python/django/render_templates/render_templates/settings.py | 02ecb7968a902fe613e0f578cd8570a56debf306 | [] | no_license | namdh1985/python | 807a292c24e225b7d671fe2138b1d3d63865d191 | 35c2760326b04e264ed35342a73262e816be8798 | refs/heads/master | 2022-12-05T10:20:48.910118 | 2020-08-26T14:28:57 | 2020-08-26T14:28:57 | 287,443,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,129 | py | """
Django settings for render_templates project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
imp... | [
"namdh1985@gmail.com"
] | namdh1985@gmail.com |
e0912c5ac778e21ca948703da25cf176eec9062e | 415a2bcd0350270956e94a8e1adb90216b1293e8 | /venv/Scripts/pip-script.py | 1f44689ada4571fcbbab8ad5ec3c9978f3602acd | [] | no_license | unclet1999/Sort | 1205d0c19b7603d8960a9701e27e0c1c60ecb6ab | b620dd714d1d0b86e6fd0fecfec19de03f5a9c48 | refs/heads/master | 2020-08-23T11:29:37.636864 | 2019-10-28T18:03:01 | 2019-10-28T18:03:01 | 216,606,298 | 0 | 1 | null | 2019-10-28T19:16:43 | 2019-10-21T15:48:07 | Python | UTF-8 | Python | false | false | 408 | py | #!C:\Users\Uncle\Desktop\Sort_Project\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__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)?$', '', sys.argv[0])
... | [
"real.friend2013@outlook.com"
] | real.friend2013@outlook.com |
003ffc8b931687487cf729b77a66c0d3d2b33116 | af41debd568a7e2701f6be440b2a60d3afb3afef | /py_tests/t_queue.py | 7cf04f164bead3a0ce1390479b5b403e501f57fd | [] | no_license | rimelis/BBB-Alarm | f948b208df2e5529445689b3bf2f21bc3df381a0 | cd3539746ec118d5556bc096f0816ad2ceb29ed4 | refs/heads/master | 2021-01-01T17:54:25.204728 | 2019-03-19T15:37:40 | 2019-03-19T15:37:40 | 98,190,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | import threading
import time
import logging
import random
import queue
logging.basicConfig(level=logging.DEBUG,
format='(%(threadName)-9s) %(message)s',)
BUF_SIZE = 10
q = queue.Queue(BUF_SIZE)
class ProducerThread(threading.Thread):
def __init__(self, group=None, target=None, name=None,
... | [
"debian@arm.localdomain"
] | debian@arm.localdomain |
b4b48833b14eeae1819479c4994e066e45300d1c | d0dccd8b1c31c0256dca3472719acab561661aa9 | /events/views.py | 8f52985d56e7d9d48486c2516ac1ab2f8b850635 | [] | no_license | cjredmond/GrouperApp | 5fe97271bc275e570d2e3565c2bb5233ce34a79d | aba431c7def9173150e24686dbbb87685d25ed24 | refs/heads/master | 2020-03-19T21:43:12.609648 | 2018-06-29T16:17:10 | 2018-06-29T16:17:10 | 136,947,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from django.shortcuts import render
from django.views.generic import *
from django.views.generic.edit import *
from django.contrib.auth import get_user_model
from django.urls import reverse
from .models import Event
from .forms import EventCreateForm
from group.models import Entity
class EventCreateView(CreateView):... | [
"connor.redmond@gmail.com"
] | connor.redmond@gmail.com |
ee0c4d0093eb8fb6ee16511f21e8fcbcd1f15975 | d0b6e0994331a27e4828a42256cf2a4960e6fc77 | /src/visualization/visualize.py | fad8beca4b6d54169a1b7d0eec11dbfd9f7f9ab5 | [] | no_license | MikkelMathiasen23/mlops_cookiecutter | 08593f1475a164def363d7bf9ca231000f29efd9 | 9ec63e756257abaa793658db7d8671213cead17e | refs/heads/master | 2023-06-02T07:48:28.159788 | 2021-06-17T08:28:27 | 2021-06-17T08:28:27 | 374,989,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,705 | py | import argparse
import sys
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
import torch
import torch.nn as nn
from sklearn.manifold import TSNE
from src.data.make_dataset import mnist
from src.models.model import MNIST_NET
parser = argparse.ArgumentParser(description='Training arguments')
p... | [
"s174344@student.dtu.dk"
] | s174344@student.dtu.dk |
e0d2036b5459a0bba69f3c1b91adeb65c9e1cccb | f1d850a59052deb004b8742a468d3f03e5d849cc | /youtap.py | e94858323194787eee1ba093a236114c4f4ccc5e | [
"Apache-2.0"
] | permissive | hubert10/youtap | 00c5bf168d6967b17400a913932e2d6e7cec45ef | 232134389336afd316f79d09689e127630d087ae | refs/heads/master | 2020-12-28T12:18:22.928153 | 2011-07-26T21:52:11 | 2011-07-26T21:52:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | #!/usr/bin/python
#
# Copyright [2011] Sundar Srinivasan
#
# 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 ... | [
"krishna.sun@gmail.com"
] | krishna.sun@gmail.com |
a3dcc90e068ad557401a75428293332468a08fb3 | ebff4045910369fafd56ad369f2de0da992dd221 | /button.py | 4d8510cc5a5355da8a451c9d60a87dfe6a408fa8 | [] | no_license | galaxy-dust/alien_invasion | 0d654e33af3fc4cd49cddcf7dc3faf2d959bf8fb | 206141b0fde7ee30bed41cc6850ec2b2962137b0 | refs/heads/master | 2020-04-10T00:29:37.037805 | 2018-12-06T14:32:04 | 2018-12-06T14:32:04 | 160,686,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | import pygame.font
import pygame
class Button():
def __init__(self,ai_settings, screen, msg):
self.ai_settings = ai_settings
self.screen = screen
self.screen_rect = self.screen.get_rect()
self.width, self.height = 200, 50
self.button_color = (0,255,0)
self.text_color =(255,255,255)
self.font = p... | [
"zhangxuyu_ts@he.chinamobile.com"
] | zhangxuyu_ts@he.chinamobile.com |
16a366d7fe0e7f788721b4bb5f0dad1de7ce646f | 77929020bd02471b46e5627de621e13870876216 | /weather/urls.py | 8dbbf64b32fbd85072cbfb07c8e9ca9d83869b31 | [] | no_license | Hiwa2719/weather | 0c8b593ce8935b938e72616d41867bd75fd0acab | b16b9c7cf90dda43d8d6e34c8f7d8200b7454c37 | refs/heads/main | 2023-04-14T23:01:16.794996 | 2021-04-23T21:36:30 | 2021-04-23T21:36:30 | 348,776,625 | 0 | 0 | null | 2021-04-23T18:23:10 | 2021-03-17T16:23:58 | SCSS | UTF-8 | Python | false | false | 366 | py | from django.urls import path
from . import views
app_name = 'weather'
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
path('new-list/', views.NewList.as_view(), name='new_list'),
path('remove-city/', views.RemoveCity.as_view(), name='remove_city'),
path('model-detail/', views.Get... | [
"hiahmadyan@gmail.com"
] | hiahmadyan@gmail.com |
e94a700f968a82baaa9b58e135e2d927dc8dca63 | 43e79af67945b3bf580d294d09da63d0379b4ae0 | /script/relative_kinect_publisher.py | 58d7290d3d026b3ed5f6e8d0de08c01edd44fa41 | [] | no_license | payamn/following-ahead | 3ef0caf0a50cdbec877c98051969661a42a98a90 | 25743f8683df3e96d79355422bd202a935b61c28 | refs/heads/master | 2021-09-05T17:24:30.442715 | 2017-09-20T03:28:47 | 2017-09-20T03:28:47 | 104,242,088 | 0 | 0 | null | 2017-09-20T16:44:00 | 2017-09-20T16:44:00 | null | UTF-8 | Python | false | false | 2,396 | py | #!/usr/bin/env python
import rospy
from geometry_msgs.msg import TransformStamped
import message_filters
import tf as transform
import numpy as np
tfObj = transform.TransformerROS(True, rospy.Duration(10.0))
relativePosePub = rospy.Publisher('/person_follower/groundtruth_pose', TransformStamped, queue_size=1)
def cal... | [
"payam222@gmail.com"
] | payam222@gmail.com |
187962dd8c17294e9070e38afbd203c6d97037a2 | 1258e001beb0c5aabb866a170625698e9385d3e9 | /Alura/diff21.py | 1295c6d8cd97d286c3f377611f0ca9d13ae814b9 | [] | no_license | mgarcia86/python | 7b3d450d7a0cb5623af446074784f247eb113497 | 66dd2e0dd6000a6d500dca594b23b54acae88169 | refs/heads/master | 2020-03-16T19:46:28.420744 | 2018-05-10T19:32:28 | 2018-05-10T19:32:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | def diff21():
if n > 21:
return 2 * (abs(21 - n))
elif n <= 21:
return abs(21 - n)
def sleep():
if not week:
return True
elif week and not holiday:
return False
else:
return True
def nao_string(str):
if len(str) >= 3 and str[:3] == 'not':
ret... | [
"marcos.note@gmail.com"
] | marcos.note@gmail.com |
15a4d561dfb7b03334bf6343e7c40bcd382ae8a9 | a7893ea023f4839fa0447845b88fbf2536966ba0 | /FASRGAN_and_Fs-SRGAN/codes/models/__init__.py | 035089f9d36bccbf24381558a598506920d7475d | [] | no_license | Rainyfish/FASRGAN-and-Fs-SRGAN | c84f6e0220d48271799b521237b937c9383e6471 | 2d85fc0bb5cb65d4ef4101c1953f0322fd3effbf | refs/heads/master | 2021-06-21T23:53:35.992689 | 2021-03-14T10:22:56 | 2021-03-14T10:22:56 | 201,067,476 | 24 | 6 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | import logging
logger = logging.getLogger('base')
def create_model(opt):
model = opt['model']
if model == 'sr':
from .SR_model import SRModel as M
elif model == 'FsSRModel':
from .FsSR_model import FsSRModel as M
elif model == 'srgan':
from .SRGAN_model import SRGANModel as M... | [
"1040999427@qq.com"
] | 1040999427@qq.com |
0b04dcafbb7bafeed73250d6bc7254c906731ccc | 7486b3af4d4413a96b3e0bf76f776cd8605d7c05 | /koalakid1/Divide Conquer/bj-2630.py | bdd6711efba8a0bed6260a699fb4fb5d2babdeb5 | [] | no_license | WonyJeong/algorithm-study | 7146e18ec9a3d7f46910e31890768b2e37f8b9b4 | dd659bf75c902800bed226d392d144b691d8e059 | refs/heads/main | 2023-03-31T14:38:47.365622 | 2021-04-02T01:35:36 | 2021-04-02T01:35:36 | 334,309,434 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | import sys
def quadtree(n, x, y):
global graph, blue, white
point = graph[x][y]
for i in range(x, x + n):
for j in range(y, y + n):
if point != graph[i][j]:
quadtree(n//2, x, y)
quadtree(n//2, x, y+n//2)
quadtree(n//2, x+n//2, y)
... | [
"koalakid154@gmail.com"
] | koalakid154@gmail.com |
cbf79af35fb2759d0e7ec9a19ca7f7380778de56 | 02d003627dc39487c43827de23f8a26faa616574 | /ds/array/contains_dup.py | b279e96b09329f845a71fa8705cba64e06c63801 | [] | no_license | amitt001/cs-review | 63d31739d70c24eb1204537d2e37b4bbfb195e36 | f04987b32f2598e6f058edd44c2e586894dab704 | refs/heads/master | 2020-05-24T23:32:50.234181 | 2019-09-03T14:26:18 | 2019-09-03T14:26:18 | 187,516,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | """Given an array of integers, find if the array contains any duplicates.
Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct.
Input: [1,2,3,1]
Output: true
Input: [1,2,3,4]
Output: false
"""
def containsDuplicate(nums) -> bool:... | [
"mail2amit19@gmail.com"
] | mail2amit19@gmail.com |
8b4a671e8f15ec14fb5e1bf7b5b95915b9486d2a | c10d080c40161633a922b1274b92d3048555ea5b | /src/interaction.py | 5d3b9721a9476bcf679456078f04c14a32d3b311 | [
"MIT"
] | permissive | leolani/leolani-datarepresentation | 3c784bb8401c3b67efe2b80ac4a34498f0f9e827 | bc2975310fe623f7548db54bf5d691c7bbcf0c1e | refs/heads/main | 2023-01-06T07:52:45.733312 | 2020-10-23T09:10:29 | 2020-10-23T09:10:29 | 306,548,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,604 | py | import os
import re
import platform
import requests
import pycountry
import subprocess
from time import time
from datetime import datetime
from random import getrandbits
from typing import List, Iterable, Dict, Tuple, Optional
from vision import Object, Face, Observations
from language import Chat
class Context(obje... | [
"s.baezsantamaria@vu.nl"
] | s.baezsantamaria@vu.nl |
31a0c3c321b124e25d22c7584aa8ccbc4ed0ae04 | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/PyQt4/QtNetwork/__init__.py | 499f277c4fd5601ad24160f4fb960e5e5fc2f65f | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | # encoding: utf-8
# module PyQt4.QtNetwork
# from /usr/lib64/python2.6/site-packages/PyQt4/QtNetwork.so
# by generator 1.136
# no doc
# imports
import PyQt4.QtCore as __PyQt4_QtCore
# no functions
# classes
from QAbstractNetworkCache import QAbstractNetworkCache
from QAbstractSocket import QAbstractSocket
from QAut... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
fc7d7b27a526a43db9c9b511ae29a4442acf81d4 | 0fb2e09c0629cf47045881d7eecc125f674230e5 | /pps_webapp/main/views.py | bf6d96c2869c358792ae6771da7c09201b547904 | [] | no_license | satwik77/phenopacket-scraper-webapp | ea24ad2cc2fbd988e12df1178be5ba940c8a9859 | 4382c2a4e501448e7bfd68c7826a3c4c5ab39a26 | refs/heads/master | 2021-01-17T09:33:07.188192 | 2016-08-23T17:24:20 | 2016-08-23T17:24:20 | 61,695,575 | 0 | 0 | null | 2016-06-22T06:45:50 | 2016-06-22T06:45:50 | null | UTF-8 | Python | false | false | 1,984 | py | from django.shortcuts import get_object_or_404, render_to_response, redirect
from django.shortcuts import render
from django.contrib import auth
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
import requests
import pprint
api_url= 'http://localhost:8001/api/'
@csrf_exempt
de... | [
"satwik55@gmail.com"
] | satwik55@gmail.com |
d6722ce189fbb5948c8db922d888a2d1878b4e68 | 6fa437f198e74ebac1446999303bd34a04378e3f | /wat/wat.py | 3cffd9f75ebfc222306612cb35ee58220fed0d5e | [] | no_license | 0f11/Python | 27f718e38cf40d2a8a348a9134660b619f4f6f20 | 7ba7941343560604539c2ad61b94afd660f8279d | refs/heads/master | 2020-07-11T01:43:04.402080 | 2019-08-26T07:32:50 | 2019-08-26T07:32:50 | 204,421,162 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | """Wat."""
def first(n: int):
"""
First.
:param n:
:return:
"""
if n == 1:
return 0
if n == 2:
return 2
if n == 4:
return 4
if n == 3:
return 6
if n == 713:
return 8
if n == -145:
return 11
if n == -789:
return 12... | [
"Welcomettu13"
] | Welcomettu13 |
c245e365442238e1f481ff741ef8a55ec08242bd | af5184f69ef76b40a27a220cd6b9085978e6ade4 | /handlers/ui_ibon.py | 3824f5dd68ef1c2f1d6f421d3dfb44a822863395 | [] | no_license | igoiko-ii40project/web_remoht | f0a71a2954083367956edcad3e58c08420ab19f2 | 4e63c897d357e71686d449796b224c33ea5dec54 | refs/heads/master | 2020-09-15T23:16:06.365373 | 2016-09-13T08:09:12 | 2016-09-13T08:09:12 | 67,804,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,735 | py | __author__ = '105031691'
import os
import logging
import webapp2
import jinja2
from google.appengine.api import xmpp, taskqueue, users
from google.appengine.ext import ndb
import datetime
import json
import model
from . import BaseHandler
COUNTER_PAGE_HTML = """\
<!DOCTYPE html>
<html>
<body>
<form action="#" method=... | [
"ibon.ii40project@gmail.com"
] | ibon.ii40project@gmail.com |
3bae786e9e40c36b6f97504686557294fa9bf5c6 | 695a2237c52485a01086e690a633f4fd43e3c128 | /COVID-away_one-class_classification_models/Acc+Gyro+Mbar+RVect/Local_Outlier_Factor.py | 5608c38c7b291f332df1ef6940f08aed4ae2db11 | [] | no_license | wbing520/COVID-away | db3c3dc10d4b56036a30985a02e93d3b7f0338e3 | fea67b4d1e7232e0f16b5bbd886788fe7a676771 | refs/heads/master | 2022-12-23T14:43:57.455443 | 2020-10-07T01:53:19 | 2020-10-07T01:53:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # local outlier factor for imbalanced classification
import pandas as pd
from sklearn.metrics import precision_recall_fscore_support, classification_report,confusion_matrix, precision_recall_curve
import pickle
test = pd.read_csv('./Test.csv')
testX = test.drop(['label','Pattern'], axis = 1)
testy = test.label
f... | [
"bhasud@ie.deri.local"
] | bhasud@ie.deri.local |
f819a33c29a02bdfd3bd03dc17a1abc83f6968ad | 67c8fbadf97cad08d5dc03100863a7e4cfb67bd4 | /api/serializers.py | 5907ce214f03dba88de81b96f3d340c91d23dac6 | [] | no_license | SavenkovAlx/public-chat-API | 4fb3c388992f57991e52da936086a4323b162f6f | 3c9b33f447f40ee43e6b833638c83b603789585f | refs/heads/main | 2023-03-31T05:27:56.899064 | 2021-03-28T13:53:24 | 2021-03-28T13:53:24 | 352,340,422 | 0 | 0 | null | 2021-03-28T13:53:24 | 2021-03-28T13:44:20 | Python | UTF-8 | Python | false | false | 797 | py | import re
from rest_framework import serializers
from .models import Message
class MessageSerializer(serializers.ModelSerializer):
class Meta:
model = Message
fields = ['id', 'email', 'text', 'created_date', 'update_date']
def validate_email(self, email):
norm_email = email.lower()
... | [
"savenkovalx@gmail.com"
] | savenkovalx@gmail.com |
ddb174f793b28d3d67bd47fc709bbd1e25118f3d | a671a684173ba8128f43d075d6b070c04689a0f7 | /myS2SVAE/Vocabulary.py | a4c5c515eec4cff42bb9365bff21e71cf52983f6 | [] | no_license | yeyeye529/my-vae | 160a983a8f6249fa989b13b3ed6ae9f493a11051 | 8809ebd603f6dc8dc26759fa2cb457313ac5ab10 | refs/heads/master | 2020-03-29T22:05:01.785176 | 2018-10-23T07:41:33 | 2018-10-23T07:41:33 | 150,402,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,362 | py | from collections import defaultdict
class vocabulary(object):
def __init__(self, max_vocab_size = 1000000):
self._vocab = None
self._word2idx = None
self.bos_id = 0
self.eos_id = 1
self.unk_id = 2
self.pad_id = 3
self._max_vocab_size = max_vocab_siz... | [
"shiwenxian@bytedance.com"
] | shiwenxian@bytedance.com |
406ba475df4e4247276045d3a8377eed80d0612b | 116763c900b41ff793c6621edeb196ccfafda403 | /scripts/analyses/archive/penalized_regression/penal_regresFC_Age_TMDif_Gaus.py | 6a7081400f43036e2ac33d7f730a639cb93d57fe | [] | no_license | weiwei-wch/multiscale | b29d1ef24013c4756c019b6f5d884bfe0c7708ec | 9f7cbc021a47c4acb87afa85b3654093b7ef984a | refs/heads/master | 2023-04-26T04:38:33.998724 | 2021-05-17T21:25:56 | 2021-05-17T21:25:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,317 | py | ## imports ##
import scipy
import scipy.io as sio
from os.path import dirname, join as pjoin
import numpy as np
import sklearn
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn.linear_model import RidgeCV
from sklearn.linear_model import Ridge
from skle... | [
"pinesa@pennmedicine.upenn.edu"
] | pinesa@pennmedicine.upenn.edu |
924ad60f641a250c2dc45b133d9e54b951e6657d | 3d42221bf6adffb35000a0cf2dd115de6ffa5796 | /clades_adapted - Kopie/Delphineae/input/01_make-revscript.py | e14988122ea32c4fa154d548b7aface5ea9816f7 | [
"MIT"
] | permissive | envima/AlpineFloraLJ | 0e021f47d0457fc018b0dad0e52b6735e2d45a90 | d3d7bbd188fbe1792382756237776cf317eabf71 | refs/heads/main | 2023-04-07T13:34:06.290176 | 2021-04-12T10:12:53 | 2021-04-12T10:12:53 | 304,222,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,623 | py | import operator
from functools import reduce
import model
pd = model.pd
areas = model.areas
ranges = model.ranges
biomes = model.biomes
states = model.states
nstates = model.nstates
# read the data csv files - the first column (taxa) is identical in each,
# so we can concatenate them
csvdata = pd.concat([pd.read_csv(... | [
"nauss@staff.uni-marburg.de"
] | nauss@staff.uni-marburg.de |
acb8cafa74645f1560e286301b9c4b31274498d0 | b72e42f7f15ea8d359512cc0fe524f5407f358e5 | /CS50_web_dev/src/src8/airline1/airline/urls.py | f9e85ea4cf69f88b0dfd879f4bc3a158aa887856 | [
"MIT"
] | permissive | ChuaCheowHuan/web_app_DPTH | ec9f96d66c69ebd7e04df8d4b92578a3aaa7e392 | dd901e6359fe76f15b69701c53f76666c3219173 | refs/heads/master | 2021-06-18T11:31:10.959634 | 2020-07-23T04:04:52 | 2020-07-23T04:04:52 | 205,556,446 | 0 | 0 | MIT | 2021-06-10T21:55:14 | 2019-08-31T14:42:35 | HTML | UTF-8 | Python | false | false | 797 | py | """airline URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-based... | [
"17569306+ChuaCheowHuan@users.noreply.github.com"
] | 17569306+ChuaCheowHuan@users.noreply.github.com |
6dad64a78b096b80c43759b584af08e34c1f1b78 | 8eeae0008711f6c62e63a599d2d7e67ba43b32ad | /tradesimpy/engines/backtest_engine_import.py | 77bfd0a3d79150cb0d5a189b1e2bc0e2cc5994e3 | [
"BSD-2-Clause"
] | permissive | shaoshoutianheyu/tradesimpy | d0db391fef0cc3471dc159da318c2de3b8bb6d31 | 5b58676e8d9ae2ce2d714413beddbc14e6154fc7 | refs/heads/master | 2020-12-13T19:13:29.582731 | 2016-08-10T19:35:27 | 2016-08-10T19:35:27 | 66,049,690 | 5 | 5 | null | 2016-08-19T03:29:06 | 2016-08-19T03:29:05 | null | UTF-8 | Python | false | false | 315 | py | import os
import sys
# Provide directory paths for necessary imports
lib_paths =\
[
os.path.abspath('../data/'),
os.path.abspath('../backtester/'),
os.path.abspath('../trading_algorithm/'),
]
for lib_path in lib_paths:
sys.path.append(lib_path)
sys.path = list(set(sys.path))
| [
"grant.bartel@gmail.com"
] | grant.bartel@gmail.com |
700e79e4d279bb312926b55257ce6be156b4ee69 | 6bc8a3ea831b544514160f61131c5d2b6c8b4234 | /side-experiments/two_worker_classes/gen_class_condition_test.py | 08737f317c88e5a2d5e90aaf043d36dcb2771795 | [] | no_license | populace-org/optimal-filtering-rating | 31d243c06d003584d566e6e9c35b78447b4ebe63 | 84d9d57a746e0a6df7f7626d68c1136d593bf5f8 | refs/heads/master | 2020-12-24T07:26:46.844180 | 2016-07-02T19:35:55 | 2016-07-02T19:35:55 | 62,466,846 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | import math
import matplotlib.pyplot as plt
def LHS(P, m, k):
return (math.pow(1.0 - P, k) / math.pow(P, m-k-1))
def RHS(p, m, k):
return (math.pow(1.0 - p, k+1) / math.pow(p, m-k))
m = 10
P_range = [float(i) / 100.0 for i in xrange(80, 100)]
p_range = [float(i) / 100.0 for i in xrange(60, 80)]
for k in r... | [
"akash@troo.ly"
] | akash@troo.ly |
697626c30cf184c516e232318ae7b05ae01d178c | bdd3bb5ac2abce8bc16fd7a28826b4a2db17079a | /obs_mapper/obs_plot.py | dc4f9f4b82186e356d0f15303658178b2e6d7747 | [] | no_license | MIT-STARLab/circinus_tools | 9537269c38dc89de51aba0ac250f910ff621e9ea | e18d40766acb26f7074aff317ea96ea54301a788 | refs/heads/master | 2023-07-21T13:24:52.611318 | 2022-01-22T15:05:44 | 2022-01-22T15:05:44 | 249,547,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,585 | py | # Tools for plotting observation targets
#
# @author Kit Kennedy
import json
from collections import namedtuple
import matplotlib.pyplot as plt
from matplotlib.pyplot import savefig
from matplotlib.patches import Rectangle
# need to "pip install pillow" for this import to work
from scipy.misc import imread
GeoPoin... | [
"akennedy@mit.edu"
] | akennedy@mit.edu |
913cd021c12d554ac4af6619ce5decfb7ce970c3 | ee89a6682a01f67b753ab9a7d4ddf588e90c5a59 | /src/table_titles.py | 0714f430783075fae91b5bf9d523c4bd8b430ba6 | [] | no_license | wbkd/bpa-wochenberichte-htw | 7ba39429e979580a4b4e2ffee584957fa7e6de25 | 43608de6986c0b846a3d359d0282a4ae1ef5ac8d | refs/heads/master | 2023-06-01T22:31:52.802453 | 2021-06-26T12:26:13 | 2021-06-26T12:26:13 | 379,924,894 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,350 | py | from operator import itemgetter
"""Script to extract all table headers of one pdf, using font styles and sizes to identify headers.
Most parts of the code gratefully taken from https://ichi.pro/de/extrahieren-von-uberschriften-und-absatzen-aus-pdf
-mit-pymupdf-113724360868967
Headers that don't belong to tables ca... | [
"pustet@posteo.de"
] | pustet@posteo.de |
b5f5180f9a11d57ae823a912a59eb65def369fcd | 95f0d18cfabeb3806d6a54f80a47aa3b7f996dfb | /newsletter.py | a65ebc63f2e8e0bb01be6a573817946c43907fd5 | [
"MIT"
] | permissive | thedeadwoods/Comradery-API | 14eade52bc41b4b5e2fdbf5746bff468c62c75d0 | 0d30df376f5542d01a04b96c5fdf9363d3103679 | refs/heads/master | 2023-03-23T07:52:27.476182 | 2021-03-06T20:01:36 | 2021-03-06T20:01:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,104 | py | from lionhearted import settings
import os
import django
import sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lionhearted.settings")
django.setup()
from django.utils.html import strip_tags
from forum.models import Comment, Post, partial_update_objs, Community
from datetime import datetime, timedelta
from djan... | [
"rishabhegde@Rishabs-MacBook-Pro.local"
] | rishabhegde@Rishabs-MacBook-Pro.local |
5d396f8a619172ddd3f61c1c285aedc696426ca7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03001/s613586641.py | 5dadc4795c529eb1e7ffe05c54da04dc2de9168e | [] | 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 | 162 | py | import sys
sys.setrecursionlimit(10**6)
w, h, x, y = map(int, input().split())
ans1 = w*h/2
ans2 = 0
if x == w/2 and y == h/2:
ans2 = 1
print(ans1, ans2)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fa05da510debee69a4af4485d50232ca7c5fa3c1 | a42e38bc94858d2ea0b751b0717b076407bd75ef | /example/example/documents/models.py | d5cd8b0f3c739532f0e66ebd430b9e5cfcc842b3 | [
"MIT"
] | permissive | wolfhechel/django-azurite | 90aca7274649e99e1f3595be422e75ce541644d9 | 48107d1979b480f72d6dad18b4dd2e60c3c19748 | refs/heads/master | 2021-01-22T04:10:09.436420 | 2017-05-17T11:05:43 | 2017-05-17T11:05:43 | 37,257,138 | 0 | 0 | null | 2015-06-11T11:28:29 | 2015-06-11T11:28:28 | null | UTF-8 | Python | false | false | 217 | py | from django.db import models
class Document(models.Model):
name = models.CharField(max_length=50)
file_field = models.FileField(upload_to='files')
def __unicode__(self):
return u'%s' % self.name
| [
"drewtemp@gmail.com"
] | drewtemp@gmail.com |
e5b0b1f4b9f206b62340e849ea16c8f2270dc880 | 3fdf00da8c02d8498aa594b763d455ff11bc65e1 | /generate.py | be9a80aea94240c6608bab6d6ba09c99d010c989 | [] | no_license | prabormukherjee/BERT-keyphrase-extraction | e3e2c1db05660a4383f9953f2c81bb68f49607dc | c45115447d91179a99e4ce6e2f1c426841a3fdbe | refs/heads/master | 2023-01-28T13:08:23.045704 | 2020-12-13T13:05:45 | 2020-12-13T13:05:45 | 315,028,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,019 | py | """Generate Key Phrase of the model"""
import argparse
import random
import logging
import os
import numpy as np
import torch
#from pytorch_pretrained_bert import BertForTokenClassification, BertConfig
from transformers import BertForTokenClassification, BertConfig, BertTokenizer
from evaluate import evaluate
import... | [
"prabor1@gmail.com"
] | prabor1@gmail.com |
76dfebb655f45b53d778e40b6ae290fc76785090 | 09f0505f3ac1dccaf301c1e363423f38768cc3cc | /r_DailyProgrammer/Intermediate/C239/__init__.py | cf2036a70032f331ee1707580700ecc8e93ea54f | [] | no_license | Awesome-Austin/PythonPractice | 02212292b92814016d062f0fec1c990ebde21fe7 | 9a717f91d41122be6393f9fcd1a648c5e62314b3 | refs/heads/master | 2023-06-21T11:43:59.366064 | 2021-07-29T23:33:00 | 2021-07-29T23:33:00 | 270,854,302 | 0 | 0 | null | 2020-08-11T20:47:10 | 2020-06-08T23:24:09 | Python | UTF-8 | Python | false | false | 71 | py | #! python3
from r_DailyProgrammer.Intermediate.C239.main import main
| [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
054d4ae02061323bc123c1d0faad5aec890d1a87 | b9503e86921041609763c65f148c08ecff69cc4b | /dojo_ninjas_app/models.py | 9da7e8535bda9583ef770e1a7765cb4f707b8e21 | [] | no_license | cristian-nav/Dojo-y-ninjas | c1371e7b4c74b4ee127f3734e68f30fdcc80c623 | d06016bf2e6f5adc7d20806f0031c04a978c769c | refs/heads/main | 2023-02-25T06:11:44.707956 | 2021-02-11T18:44:58 | 2021-02-11T18:44:58 | 338,104,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | from django.db import models
class Dojo(models.Model):
name = models.CharField(max_length=255)
city = models.CharField(max_length=255)
state = models.CharField(max_length=2)
desc = models.CharField(("dojo antiguo"), max_length=50)
class Ninja(models.Model):
dojo = models.ForeignKey(Dojo, related_n... | [
"cris.project03@gmail.com"
] | cris.project03@gmail.com |
2aedeb2b23073928b3f8b67e3cc1d7b1e29ec108 | b237ba12ed0b825490c5616eb4726a22792f34bd | /package/scripts/turtlesim_go_to_2.py | 056519625430a6d429a70c000a18973ce3d956ee | [] | no_license | JoelsonMiller/trabalhos | 76b45279bd02abc86337c0015dd87c90ae4d8cd1 | d30e4664576c05382c9b779e38884d0cc22e05c5 | refs/heads/master | 2021-07-12T19:26:27.099620 | 2020-08-05T13:19:53 | 2020-08-05T13:19:53 | 191,399,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | #!/usr/bin/env python
import rospy
from turtlesim.msg import Pose
from geometry_msgs.msg import Twist
import math
pub = rospy.Publisher("/turtle1/cmd_vel", Twist, queue_size=10)
goal_x = 3.0
def callback(data):
#print("A pose em x = " + str(data.x) + " y = " + str(data.y) + " theta = " + str(data.theta))
twist = T... | [
"noreply@github.com"
] | noreply@github.com |
410dcad216373dd96905200a44c6f6e4a4a9826e | e1da5e8320113ce0affee1daa9f6ad94c26e9441 | /lab3/3.2.py | 2166b23b2fcfe74b51be1609214fe728243e4f3a | [] | no_license | cheretka/Fundamentals-of-Artificial-Intelligence | 5f5efc119609ca4b131fbb217eefe1ce84aa7e16 | d2949d9ab76e33651b24a696b2543101d540a9ce | refs/heads/master | 2023-05-14T03:32:11.485401 | 2021-05-25T16:58:58 | 2021-05-25T17:13:11 | 370,770,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | import numpy as np
def relu(x):
return (x > 0) * x
def relu2deriv(output):
return output>0
input = np.array([[8.5, 0.65, 1.2],
[9.5, 0.8, 1.3],
[9.9, 0.8, 0.5],
[9.0, 0.9, 1.0]])
layer_1_weights = np.array([[0.1, 0.2, -0.1],
[-... | [
"ocheretianfws@gmail.com"
] | ocheretianfws@gmail.com |
9236eff7dea85e348b76f3d349db72fe24ee20c1 | 52bbc07d59b003342a0920da47b20cb4a52385c4 | /node.py | 515f5e395046f4bbf7bf1799140358081ad58036 | [] | no_license | juliemyhu/HB-DS | 281aeefdf57a0ffe6ec680cacbf49716a88403a4 | a13846647eb6c266ccf7bca2d71cf1da59b36e05 | refs/heads/master | 2023-03-23T08:54:52.852559 | 2021-03-08T23:59:59 | 2021-03-08T23:59:59 | 292,702,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | class Node():
def __init__(self,data):
self.data = data
self.next = None
class DLinkedNode():
def __init__(self,data)
self.data = data
self.next = None
self.prev = None | [
"jhu21495@gmail.com"
] | jhu21495@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.