hexsha
stringlengths
40
40
size
int64
2
991k
ext
stringclasses
2 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
208
max_stars_repo_name
stringlengths
6
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
208
max_issues_repo_name
stringlengths
6
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
16.3k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
208
max_forks_repo_name
stringlengths
6
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
6.91k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
991k
avg_line_length
float64
1
36k
max_line_length
int64
1
977k
alphanum_fraction
float64
0
1
18e0a2fedbc86d56707a7f5ddb060d2f2622dab1
24,818
ex
Elixir
lib/mix/lib/mix.ex
MikeOwino/elixir
79cd891eb86ecb7654a7acdb63769cfdd950a5c0
[ "Apache-2.0" ]
1
2020-12-18T19:20:33.000Z
2020-12-18T19:20:33.000Z
lib/mix/lib/mix.ex
MikeOwino/elixir
79cd891eb86ecb7654a7acdb63769cfdd950a5c0
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix.ex
MikeOwino/elixir
79cd891eb86ecb7654a7acdb63769cfdd950a5c0
[ "Apache-2.0" ]
1
2020-12-18T19:20:35.000Z
2020-12-18T19:20:35.000Z
defmodule Mix do @moduledoc ~S""" Mix is a build tool that provides tasks for creating, compiling, and testing Elixir projects, managing its dependencies, and more. ## Mix.Project The foundation of Mix is a project. A project can be defined by using `Mix.Project` in a module, usually placed in a file name...
31.494924
148
0.664276
18e0e2a0173b0979a8fd0bc428e0f8d76a06909a
1,740
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/sizes_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/sizes_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/sizes_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.8
180
0.734483
18e1028a7cb98dad91f5f09a557abfb1a63daaea
448
ex
Elixir
lib/example/application.ex
brucepom/distillery-aws-example
de885e2b17a4f1429614ad9156bb9e34cc0113b5
[ "Apache-2.0" ]
1
2018-09-26T15:28:28.000Z
2018-09-26T15:28:28.000Z
lib/example/application.ex
brucepom/distillery-aws-example
de885e2b17a4f1429614ad9156bb9e34cc0113b5
[ "Apache-2.0" ]
null
null
null
lib/example/application.ex
brucepom/distillery-aws-example
de885e2b17a4f1429614ad9156bb9e34cc0113b5
[ "Apache-2.0" ]
null
null
null
defmodule Example.Application do use Application def start(_type, _args) do import Supervisor.Spec children = [ supervisor(Example.Database, []), supervisor(ExampleWeb.Endpoint, []), ] opts = [strategy: :one_for_one, name: Example.Supervisor] Supervisor.start_link(children, opts) ...
21.333333
61
0.696429
18e123c11b33954998576aa4719a05f742104a8a
4,104
ex
Elixir
lib/aoc2019_day14.ex
hvnsweeting/adventofcode2018
8e5a85ebb7b102361b844b0f92522c18148a672a
[ "BSD-3-Clause" ]
1
2022-01-10T02:34:18.000Z
2022-01-10T02:34:18.000Z
lib/aoc2019_day14.ex
hvnsweeting/adventofcode2018
8e5a85ebb7b102361b844b0f92522c18148a672a
[ "BSD-3-Clause" ]
null
null
null
lib/aoc2019_day14.ex
hvnsweeting/adventofcode2018
8e5a85ebb7b102361b844b0f92522c18148a672a
[ "BSD-3-Clause" ]
1
2019-12-02T09:42:17.000Z
2019-12-02T09:42:17.000Z
defmodule Aoc2019Day14 do def build_map(reactions) do rs = reactions |> String.trim() |> String.split("\n", trim: true) |> Enum.map(fn line -> [source, target] = String.split(line, "=>", trim: true) sources = source |> String.split(",", trim: true) ...
22.674033
98
0.504386
18e12e17c08e4d9631b2b1ff36910ca13fa194b2
288
ex
Elixir
lib/phoenix/live_admin/application.ex
semagraph/phoenix_live_admin
048d2eb575df4a900f8aadf62c6f795e155787ba
[ "MIT" ]
null
null
null
lib/phoenix/live_admin/application.ex
semagraph/phoenix_live_admin
048d2eb575df4a900f8aadf62c6f795e155787ba
[ "MIT" ]
null
null
null
lib/phoenix/live_admin/application.ex
semagraph/phoenix_live_admin
048d2eb575df4a900f8aadf62c6f795e155787ba
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveAdmin.Application do @moduledoc false use Application def start(_, _) do children = [ DynamicSupervisor, name: Phoenix.LiveAdmin.DynamicSupervisor, strategy: :one_for_one} ] Supervisor.start_link(children, strategy: :one_for_one) end end
22.153846
91
0.736111
18e13c3b67c0ddaa5cd5e22dc6c7947cf76012e4
120
exs
Elixir
elixir/example1/test/test_helper.exs
otaviojava/horusec-examples-vulnerabilities
b41bc3111b3040e75e796fd33c663caf6c409f6d
[ "ECL-2.0", "Apache-2.0" ]
8
2018-04-15T19:01:14.000Z
2018-11-19T16:13:56.000Z
elixir/example1/test/test_helper.exs
otaviojava/horusec-examples-vulnerabilities
b41bc3111b3040e75e796fd33c663caf6c409f6d
[ "ECL-2.0", "Apache-2.0" ]
8
2018-04-14T03:32:12.000Z
2018-05-15T04:28:27.000Z
elixir/example1/test/test_helper.exs
otaviojava/horusec-examples-vulnerabilities
b41bc3111b3040e75e796fd33c663caf6c409f6d
[ "ECL-2.0", "Apache-2.0" ]
2
2021-09-22T13:44:09.000Z
2021-12-21T14:26:03.000Z
Code.load_file("test/stubs/cloudini.ex") ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(BuiltWithElixir.Repo, :manual)
20
61
0.783333
18e141503c6b2277779807819b2911cb72e9a8a7
1,035
exs
Elixir
apps/photog/config/config.exs
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
4
2019-10-04T16:11:15.000Z
2021-08-18T21:00:13.000Z
apps/photog/config/config.exs
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
5
2020-03-16T23:52:25.000Z
2021-09-03T16:52:17.000Z
apps/photog/config/config.exs
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config Code.require_file("config.ex", "#{__DIR__}/../../../lib/common/") # General applica...
31.363636
69
0.754589
18e1531670043ca6570b33de6bfe8915a02239b8
4,618
ex
Elixir
lib/gorpo.ex
dgvncsz0f/exul
ce989851d8237f38a422c16122ca0affa17f9a3b
[ "BSD-2-Clause" ]
3
2017-01-06T03:28:00.000Z
2022-01-04T01:10:13.000Z
lib/gorpo.ex
dgvncsz0f/exul
ce989851d8237f38a422c16122ca0affa17f9a3b
[ "BSD-2-Clause" ]
2
2017-11-28T17:13:33.000Z
2017-11-28T19:54:28.000Z
lib/gorpo.ex
dgvncsz0f/exul
ce989851d8237f38a422c16122ca0affa17f9a3b
[ "BSD-2-Clause" ]
1
2017-11-28T14:20:33.000Z
2017-11-28T14:20:33.000Z
# Copyright (c) 2016, Diego Vinicius e Souza All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions...
34.462687
109
0.709615
18e1e0cc864da263c93187f6c8e6c3e92d10f1b8
226
exs
Elixir
apps/alb_monitor/config/config.exs
mbta/automatic-fiesta
de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5
[ "MIT" ]
null
null
null
apps/alb_monitor/config/config.exs
mbta/automatic-fiesta
de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5
[ "MIT" ]
null
null
null
apps/alb_monitor/config/config.exs
mbta/automatic-fiesta
de9eb43e4fc7c47aa069f5ded8497ddd39ff74c5
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. import Config config :alb_monitor, ex_aws: ExAws, http: HTTPoison import_config "#{config_env()}.exs"
28.25
61
0.783186
18e1e49a280f44649dbc8c1d92da86d1cbac3438
686
exs
Elixir
mix.exs
adrielradicchi/app_twitter
b2af84f39ee7b9d4910343b677b03a39ee93b06b
[ "MIT" ]
1
2019-03-23T21:36:39.000Z
2019-03-23T21:36:39.000Z
mix.exs
adrielradicchi/app_twitter
b2af84f39ee7b9d4910343b677b03a39ee93b06b
[ "MIT" ]
null
null
null
mix.exs
adrielradicchi/app_twitter
b2af84f39ee7b9d4910343b677b03a39ee93b06b
[ "MIT" ]
null
null
null
defmodule AppTwitter.MixProject do use Mix.Project def project do [ app: :app_twitter, version: "0.1.0", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ ex...
21.4375
87
0.56414
18e1e8080e89197540ea6ffdffed3fd79337473a
327
ex
Elixir
lib/teslamate_web/live/init_assigns.ex
Ma233/teslamate
0ea19c19452623941681ca54ecbdc8f2353566ed
[ "MIT" ]
1
2021-10-09T07:28:27.000Z
2021-10-09T07:28:27.000Z
lib/teslamate_web/live/init_assigns.ex
Ma233/teslamate
0ea19c19452623941681ca54ecbdc8f2353566ed
[ "MIT" ]
20
2021-12-01T11:05:21.000Z
2022-03-01T11:08:34.000Z
lib/teslamate_web/live/init_assigns.ex
Ma233/teslamate
0ea19c19452623941681ca54ecbdc8f2353566ed
[ "MIT" ]
1
2021-07-11T08:11:47.000Z
2021-07-11T08:11:47.000Z
defmodule TeslaMateWeb.InitAssigns do @moduledoc """ Ensures common `assigns` are applied to all LiveViews attaching this hook. """ import Phoenix.LiveView def on_mount(:locale, _params, %{"gettext_locale" => locale}, socket) do Gettext.put_locale(locale) {:cont, assign(socket, :locale, locale)} e...
25.153846
76
0.715596
18e208d7720419d76683c777c06abc40c3f9f25c
1,232
ex
Elixir
web/views/error_helpers.ex
mogetutu/didactic-invention
be25678ba30ca5b9efc1b27e9f7c79350f53ab95
[ "MIT" ]
null
null
null
web/views/error_helpers.ex
mogetutu/didactic-invention
be25678ba30ca5b9efc1b27e9f7c79350f53ab95
[ "MIT" ]
null
null
null
web/views/error_helpers.ex
mogetutu/didactic-invention
be25678ba30ca5b9efc1b27e9f7c79350f53ab95
[ "MIT" ]
null
null
null
defmodule ElixirApp.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do if error = form.errors[field] do content_tag :span, translate_error(error)...
30.04878
75
0.668831
18e20fe91e4c297e20e2d4bc0d2ea9319d3db4c3
825
ex
Elixir
lib/mix/tasks/absinthe.plug.graphiql.assets.download.ex
Adzz/absinthe_plug
6fc54f7afad881e1a4adbce39d4e9efe396e5bff
[ "MIT" ]
null
null
null
lib/mix/tasks/absinthe.plug.graphiql.assets.download.ex
Adzz/absinthe_plug
6fc54f7afad881e1a4adbce39d4e9efe396e5bff
[ "MIT" ]
null
null
null
lib/mix/tasks/absinthe.plug.graphiql.assets.download.ex
Adzz/absinthe_plug
6fc54f7afad881e1a4adbce39d4e9efe396e5bff
[ "MIT" ]
1
2019-04-23T04:22:52.000Z
2019-04-23T04:22:52.000Z
defmodule Mix.Tasks.Absinthe.Plug.Graphiql.Assets.Download do use Mix.Task @shortdoc "Download GraphiQL assets" def run(args) do Mix.Absinthe.Plug.GraphiQL.AssetsTask.run(args) Application.ensure_all_started(:inets) Absinthe.Plug.GraphiQL.Assets.get_remote_asset_mappings() |> Enum.map(&downloa...
27.5
105
0.671515
18e220392c7b98d5878a8232c3acc5e0fbc0198f
5,300
ex
Elixir
lib/griffin/model/validations.ex
craigspaeth/griffin
44a59e08b119b4725369e90dc1398b9ec51173b7
[ "MIT" ]
null
null
null
lib/griffin/model/validations.ex
craigspaeth/griffin
44a59e08b119b4725369e90dc1398b9ec51173b7
[ "MIT" ]
2
2017-12-11T06:40:30.000Z
2018-03-06T06:04:05.000Z
lib/griffin/model/validations.ex
craigspaeth/griffin
44a59e08b119b4725369e90dc1398b9ec51173b7
[ "MIT" ]
null
null
null
defmodule Griffin.Model.Validations do @moduledoc """ Library of validation functions and a `valid?/2` function that will check a map of GraphQL/JSON-like data passes a series of validations. Used in the models to enforce a database dsl that works for the database and exposing to GraphQL. """ @doc """ ...
25.728155
84
0.516415
18e236f7bb0663a31b65b4d9b5597c454851800b
3,160
exs
Elixir
test/ops_munger_test.exs
cyberpunk-ventures/steemex
dca8a33273aeaa3a5f03804fead1af71bd786f29
[ "MIT" ]
20
2016-08-06T22:53:11.000Z
2018-09-16T23:17:02.000Z
test/ops_munger_test.exs
cyberpunk-ventures/steemex
dca8a33273aeaa3a5f03804fead1af71bd786f29
[ "MIT" ]
null
null
null
test/ops_munger_test.exs
cyberpunk-ventures/steemex
dca8a33273aeaa3a5f03804fead1af71bd786f29
[ "MIT" ]
null
null
null
defmodule Steemex.Ops.TransformersTest do use ExUnit.Case, async: true alias Steemex.Ops alias Steemex.MungedOps doctest Steemex test "transfer op cleaned correctly " do op = %Ops.Transfer{to: "bob", from: "alice", amount: "100 SBD", memo: "nice cypher you've got there"} prepared = Ops.Munger.parse(o...
59.622642
258
0.686392
18e246cbfda2a36b789bf30464efa6634cee5179
775
exs
Elixir
mix.exs
RobertDober/scanx
5ce8720d860d049d7c20b7a521bcf2406f3e98c0
[ "Apache-2.0" ]
null
null
null
mix.exs
RobertDober/scanx
5ce8720d860d049d7c20b7a521bcf2406f3e98c0
[ "Apache-2.0" ]
null
null
null
mix.exs
RobertDober/scanx
5ce8720d860d049d7c20b7a521bcf2406f3e98c0
[ "Apache-2.0" ]
null
null
null
defmodule Scanx.MixProject do use Mix.Project @version "0.2.1" def project do [ app: :scanx, version: @version, elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to lear...
21.527778
87
0.579355
18e257b3b077d96ae3f0ffc83e8c2dcda8326c93
1,671
ex
Elixir
lib/ash/filter/predicate/less_than.ex
sobolevn/ash
5eca8379377a633100ca14c13c6994fa61c8f7ea
[ "MIT" ]
null
null
null
lib/ash/filter/predicate/less_than.ex
sobolevn/ash
5eca8379377a633100ca14c13c6994fa61c8f7ea
[ "MIT" ]
null
null
null
lib/ash/filter/predicate/less_than.ex
sobolevn/ash
5eca8379377a633100ca14c13c6994fa61c8f7ea
[ "MIT" ]
null
null
null
defmodule Ash.Filter.Predicate.LessThan do @moduledoc "A predicate for a value being greater than the provided value" defstruct [:field, :value, :type] alias Ash.Filter.Predicate.Eq alias Ash.Error.Query.InvalidFilterValue use Ash.Filter.Predicate def new(_resource, attribute, value) do case Ash.Typ...
25.707692
92
0.666068
18e27afe8cfe11ea54a6e916e19f8786081996a1
5,284
ex
Elixir
lib/credo/code.ex
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
null
null
null
lib/credo/code.ex
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
null
null
null
lib/credo/code.ex
codeclimate-community/credo
b960a25d604b4499a2577321f9d61b39dc4b0437
[ "MIT" ]
null
null
null
defmodule Credo.Code do @moduledoc """ `Credo.Code` contains a lot of utility or helper functions that deal with the analysis of - you guessed it - code. Whenever a function serves a general purpose in this area, e.g. getting the value of a module attribute inside a given module, we want to extract that fu...
27.378238
101
0.663702
18e28051743cdc35b8eee4cc1ebee6951b27ef75
1,669
ex
Elixir
lib/cableclub/cone_link.ex
CableClub/cable-club-core
70c67c7a105dea83f2c1a1e2ee75a1ee97713bfb
[ "Apache-2.0" ]
null
null
null
lib/cableclub/cone_link.ex
CableClub/cable-club-core
70c67c7a105dea83f2c1a1e2ee75a1ee97713bfb
[ "Apache-2.0" ]
null
null
null
lib/cableclub/cone_link.ex
CableClub/cable-club-core
70c67c7a105dea83f2c1a1e2ee75a1ee97713bfb
[ "Apache-2.0" ]
null
null
null
defmodule ConeLink do use GenServer alias Circuits.UART def start_link(parent) do GenServer.start_link(__MODULE__, parent) end def handle_packet(link, packet) do GenServer.cast(link, {:packet, packet}) end def init(parent) do {:ok, uart} = UART.start_link() :ok = UART.open(uart, "/dev/t...
20.8625
71
0.644098
18e2b29dab64b4b756d5310517a40ee9271e7980
1,468
ex
Elixir
lib/sizer_tests/sizer_spacer_window.ex
DwayneDibley/ElixirWxTests
1446a92e6510f31eac2c4d85dfdcf81fdcfd73e4
[ "Apache-2.0" ]
3
2018-10-26T21:12:47.000Z
2020-09-01T02:09:34.000Z
lib/sizer_tests/sizer_spacer_window.ex
DwayneDibley/ElixirWxTests
1446a92e6510f31eac2c4d85dfdcf81fdcfd73e4
[ "Apache-2.0" ]
null
null
null
lib/sizer_tests/sizer_spacer_window.ex
DwayneDibley/ElixirWxTests
1446a92e6510f31eac2c4d85dfdcf81fdcfd73e4
[ "Apache-2.0" ]
null
null
null
defmodule SizerSpacerWindow do use WxDsl import WxDefines def createWindow(show) do mainWindow name: :sizer_spacer_window, show: show do frame id: :wtd_str_sz_frame, title: "Spacer Test", size: {350, 250}, pos: {300, 250} do panel id: :main_panel do ...
27.185185
79
0.525204
18e2d2c2dd0693661a963186539ada96c8dca5f3
1,265
ex
Elixir
phoenix/lib/login_proxy.ex
sap-archive/jam-login-microservice
9f4e9d465c8e3913754fb73d08a68b4e8f13a8d2
[ "Apache-2.0" ]
1
2020-01-03T16:00:09.000Z
2020-01-03T16:00:09.000Z
phoenix/lib/login_proxy.ex
SAP/jam-login-microservice
9f4e9d465c8e3913754fb73d08a68b4e8f13a8d2
[ "Apache-2.0" ]
null
null
null
phoenix/lib/login_proxy.ex
SAP/jam-login-microservice
9f4e9d465c8e3913754fb73d08a68b4e8f13a8d2
[ "Apache-2.0" ]
null
null
null
defmodule LoginProxy do use Application import Supervisor.Spec # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do # Define workers and child supervisors to be supervised children = [ # Start the endpoint when t...
33.289474
103
0.703557
18e2de162a15366d3634c412459374462e651492
876
ex
Elixir
lib/mix/tasks/skeleton.gen.html.ex
diegonogueira/essencial
4de662ada8f559a49d9a389c3f3d0d99ba187dad
[ "MIT" ]
1
2020-04-14T15:29:55.000Z
2020-04-14T15:29:55.000Z
lib/mix/tasks/skeleton.gen.html.ex
diegonogueira/skeleton
6e87a74b9cae14e2c735b532568a2cc41655766a
[ "MIT" ]
null
null
null
lib/mix/tasks/skeleton.gen.html.ex
diegonogueira/skeleton
6e87a74b9cae14e2c735b532568a2cc41655766a
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.SkeletonLegacy.Gen.Html do use Mix.Task def run(args) do {_opts, [lib_name, resource, plural_name | inputs], _} = OptionParser.parse(args, switches: []) # Create model Mix.Tasks.SkeletonLegacy.Gen.Model.run(args) # Create services (CRUD) Mix.Tasks.SkeletonLegacy.Gen.Servic...
33.692308
99
0.722603
18e2e11322340a44464e9705728fca3eefb196a9
2,173
ex
Elixir
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_voice_selection_params.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_voice_selection_params.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_v2_voice_selection_params.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.622951
133
0.734468
18e31874da49a14d7b133ddfa33524a35b84ca46
2,267
ex
Elixir
apps/tai/lib/tai/new_orders/submission_factory.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
apps/tai/lib/tai/new_orders/submission_factory.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
78
2020-10-12T06:21:43.000Z
2022-03-28T09:02:00.000Z
apps/tai/lib/tai/new_orders/submission_factory.ex
yurikoval/tai
94254b45d22fa0307b01577ff7c629c7280c0295
[ "MIT" ]
null
null
null
defmodule Tai.NewOrders.SubmissionFactory do alias Tai.NewOrders.Order alias Tai.NewOrders.Submissions.{ BuyLimitGtc, BuyLimitFok, BuyLimitIoc, SellLimitGtc, SellLimitFok, SellLimitIoc } @type order :: Order.t() @type submission :: BuyLimitGtc.t() | SellLimitGtc.t...
30.226667
68
0.665196
18e33f7bf6be600dc906cac39e3747d8a0cddbd2
1,197
ex
Elixir
packages/engine_umbrella/apps/message_generator/lib/transport_generator.ex
PredictiveMovement/predictivemovement
f5e62d4aed4d2068026aecf3f7f8b6749a0b0563
[ "MIT" ]
2
2021-12-09T16:06:51.000Z
2021-12-09T16:06:55.000Z
packages/engine_umbrella/apps/message_generator/lib/transport_generator.ex
PredictiveMovement/predictivemovement
f5e62d4aed4d2068026aecf3f7f8b6749a0b0563
[ "MIT" ]
18
2021-09-20T08:04:41.000Z
2021-11-08T14:58:47.000Z
packages/engine_umbrella/apps/message_generator/lib/transport_generator.ex
PredictiveMovement/predictivemovement
f5e62d4aed4d2068026aecf3f7f8b6749a0b0563
[ "MIT" ]
null
null
null
defmodule MessageGenerator.TransportGenerator do alias MessageGenerator.Address alias MessageGenerator.Id @stockholm %{lat: 59.3414072, lon: 18.0470482} @gothenburg %{lat: 57.7009147, lon: 11.7537571} @ljusdal %{lat: 61.829182, lon: 16.0896213} defp default_metadata() do %{ profile: "Generated t...
30.692308
72
0.730159
18e3470cecaccda60d7074efc34128d8d88e38c6
312
exs
Elixir
priv/repo/migrations/20180427194813_create_message_tags.exs
kenforthewin/mentat
417ce989e13f2f08990b872027ce8dcb3a1e6e99
[ "MIT" ]
88
2018-06-17T17:36:56.000Z
2021-11-20T20:29:27.000Z
priv/repo/migrations/20180427194813_create_message_tags.exs
kenforthewin/scalar
417ce989e13f2f08990b872027ce8dcb3a1e6e99
[ "MIT" ]
47
2018-05-12T00:12:37.000Z
2018-06-16T19:52:52.000Z
priv/repo/migrations/20180427194813_create_message_tags.exs
kenforthewin/scalar
417ce989e13f2f08990b872027ce8dcb3a1e6e99
[ "MIT" ]
6
2018-06-17T17:37:11.000Z
2020-04-12T04:05:49.000Z
defmodule App.Repo.Migrations.CreateMessageTags do use Ecto.Migration def change do create table(:message_tags) do add :tag_id, :integer add :message_id, :integer timestamps() end create index(:message_tags, [:tag_id]) create index(:message_tags, [:message_id]) end end
20.8
50
0.685897
18e351937bdcc4bebba0d9b21424901ff15c7824
1,715
ex
Elixir
clients/service_management/lib/google_api/service_management/v1/model/test_iam_permissions_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/test_iam_permissions_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/service_management/lib/google_api/service_management/v1/model/test_iam_permissions_request.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.489362
288
0.749271
18e376c0bd22ca73867933acd2df02a22a2d3ae0
783
exs
Elixir
mix.exs
SanketSapkal/twitter_scrapper
09d3cea4af3abae8fbb12c143ed606cd24672e40
[ "MIT" ]
null
null
null
mix.exs
SanketSapkal/twitter_scrapper
09d3cea4af3abae8fbb12c143ed606cd24672e40
[ "MIT" ]
null
null
null
mix.exs
SanketSapkal/twitter_scrapper
09d3cea4af3abae8fbb12c143ed606cd24672e40
[ "MIT" ]
null
null
null
defmodule TwitterScrapper.MixProject do use Mix.Project def project do [ app: :twitter_scrapper, version: "0.1.0", elixir: "~> 1.8", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do ...
23.727273
88
0.587484
18e3891c0416d6f0bb050a1eced59bdd718a180d
896
ex
Elixir
clients/page_speed_online/lib/google_api/page_speed_online/v5/metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/page_speed_online/lib/google_api/page_speed_online/v5/metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/page_speed_online/lib/google_api/page_speed_online/v5/metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.185185
74
0.762277
18e3966d83138a8696c70adaf607886ce709ab83
1,553
exs
Elixir
config/prod.exs
marcaddeo/marc.cx
2c858e640c2e19608495be8bf96e0a89b5e58ac7
[ "MIT" ]
null
null
null
config/prod.exs
marcaddeo/marc.cx
2c858e640c2e19608495be8bf96e0a89b5e58ac7
[ "MIT" ]
null
null
null
config/prod.exs
marcaddeo/marc.cx
2c858e640c2e19608495be8bf96e0a89b5e58ac7
[ "MIT" ]
null
null
null
use Mix.Config # For production, we configure the host to read the PORT # from the system environment. Therefore, you will need # to set PORT=80 before running your server. # # You should also configure the url host to something # meaningful, we use this information when generating URLs. # # Finally, we also include t...
29.301887
64
0.72698
18e3b5e23f879010c45373ac09165809d3430368
6,138
exs
Elixir
test/support/test_cache.exs
polmiro/nebulex
48215f37a81291b53273753c2eac4a223fc62803
[ "MIT" ]
null
null
null
test/support/test_cache.exs
polmiro/nebulex
48215f37a81291b53273753c2eac4a223fc62803
[ "MIT" ]
null
null
null
test/support/test_cache.exs
polmiro/nebulex
48215f37a81291b53273753c2eac4a223fc62803
[ "MIT" ]
null
null
null
defmodule Nebulex.Version.Timestamp do @behaviour Nebulex.Object.Version alias Nebulex.Object @impl true def generate(nil), do: now() def generate(%Object{}), do: now() defp now, do: DateTime.to_unix(DateTime.utc_now(), :nanosecond) end defmodule Nebulex.TestCache do defmodule Hooks do defmacro __...
21.461538
88
0.602965
18e3f979ebb3dd005d6dbda762db53f665004e00
1,716
ex
Elixir
clients/android_publisher/lib/google_api/android_publisher/v3/model/tracks_list_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/android_publisher/lib/google_api/android_publisher/v3/model/tracks_list_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/android_publisher/lib/google_api/android_publisher/v3/model/tracks_list_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.32
120
0.733683
18e438ab1fbf70c3a5fb59d1db7089fc9430ee99
118
exs
Elixir
test/card_game_test.exs
vikassahu29/card_game
97831f9f1ae912e7e16e5c233c7c4a4c3a382494
[ "MIT" ]
null
null
null
test/card_game_test.exs
vikassahu29/card_game
97831f9f1ae912e7e16e5c233c7c4a4c3a382494
[ "MIT" ]
null
null
null
test/card_game_test.exs
vikassahu29/card_game
97831f9f1ae912e7e16e5c233c7c4a4c3a382494
[ "MIT" ]
null
null
null
defmodule CardGameTest do use ExUnit.Case doctest CardGame test "the truth" do assert 1 + 1 == 2 end end
13.111111
25
0.677966
18e49cc61555d3045b4ee1bf01f4c8d62def9b33
2,063
ex
Elixir
clients/content/lib/google_api/content/v21/model/datafeeds_custom_batch_response_entry.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/datafeeds_custom_batch_response_entry.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/content/lib/google_api/content/v21/model/datafeeds_custom_batch_response_entry.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38.924528
163
0.733883
18e4d6f74eba252f74deb3e68d9fec21c9eff8d2
369
exs
Elixir
priv/repo/migrations/20200115065956_create_posts.exs
Conceptx/absinthe-example
369fbeaf2e688767240e2ec961a2029359580afa
[ "MIT" ]
null
null
null
priv/repo/migrations/20200115065956_create_posts.exs
Conceptx/absinthe-example
369fbeaf2e688767240e2ec961a2029359580afa
[ "MIT" ]
null
null
null
priv/repo/migrations/20200115065956_create_posts.exs
Conceptx/absinthe-example
369fbeaf2e688767240e2ec961a2029359580afa
[ "MIT" ]
null
null
null
defmodule Gazol.Repo.Migrations.CreatePosts do use Ecto.Migration def change do create table(:posts) do add(:title, :string) add(:content, :text) add(:published, :boolean, default: false, null: false) add(:user_id, references(:users, on_delete: :delete_all)) timestamps() end ...
21.705882
63
0.650407
18e4da0d9a53eae356e90a919c1c760ac43a73ee
776
exs
Elixir
test/plug/upload_test.exs
tomciopp/plug
af7fba19e8bce208129d858b924c7a49b93beef1
[ "Apache-2.0" ]
1
2020-09-01T12:50:36.000Z
2020-09-01T12:50:36.000Z
test/plug/upload_test.exs
tomciopp/plug
af7fba19e8bce208129d858b924c7a49b93beef1
[ "Apache-2.0" ]
null
null
null
test/plug/upload_test.exs
tomciopp/plug
af7fba19e8bce208129d858b924c7a49b93beef1
[ "Apache-2.0" ]
1
2020-11-16T05:08:58.000Z
2020-11-16T05:08:58.000Z
defmodule Plug.UploadTest do use ExUnit.Case, async: true test "removes the random file on process death" do parent = self() {pid, ref} = spawn_monitor(fn -> {:ok, path} = Plug.Upload.random_file("sample") send(parent, {:path, path}) File.open!(path) end) path = ...
22.823529
55
0.574742
18e508b9a5f4c64958ea3318ef3a12b9d1edc2fe
1,536
ex
Elixir
implementations/elixir/ockam/ockam/lib/ockam/stream/storage/internal.ex
psinghal20/ockam
55c2787eb2392c919156c6dded9f31a5249541e1
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam/lib/ockam/stream/storage/internal.ex
psinghal20/ockam
55c2787eb2392c919156c6dded9f31a5249541e1
[ "Apache-2.0" ]
null
null
null
implementations/elixir/ockam/ockam/lib/ockam/stream/storage/internal.ex
psinghal20/ockam
55c2787eb2392c919156c6dded9f31a5249541e1
[ "Apache-2.0" ]
null
null
null
defmodule Ockam.Stream.Storage.Internal do @moduledoc false @behaviour Ockam.Stream.Storage @type message() :: Ockam.Stream.Storage.message() @type storage() :: map() @spec init_stream(String.t(), integer(), list()) :: {:ok, storage()} | {:error, any()} def init_stream(_stream_name, _partitions, _options...
30.72
98
0.613281
18e53498cdcde3c15f6d288855768c9ca36120c0
153
ex
Elixir
lib/elixir_lokalise_api/models/translation_status.ex
kianmeng/elixir-lokalise-api
fca59438cbd8ee960adbbce8b13cef12ddc68ef6
[ "BSD-3-Clause" ]
3
2021-06-24T14:30:31.000Z
2021-09-06T11:30:17.000Z
lib/elixir_lokalise_api/models/translation_status.ex
kianmeng/elixir-lokalise-api
fca59438cbd8ee960adbbce8b13cef12ddc68ef6
[ "BSD-3-Clause" ]
8
2021-09-15T07:30:59.000Z
2022-02-01T17:40:17.000Z
lib/elixir_lokalise_api/models/translation_status.ex
kianmeng/elixir-lokalise-api
fca59438cbd8ee960adbbce8b13cef12ddc68ef6
[ "BSD-3-Clause" ]
2
2021-09-07T11:10:51.000Z
2021-09-26T07:37:39.000Z
defmodule ElixirLokaliseApi.Model.TranslationStatus do @moduledoc false defstruct status_id: nil, title: nil, color: nil end
21.857143
54
0.679739
18e54491402966cc9b0db5ee8ddb912f69213470
2,055
ex
Elixir
clients/service_control/lib/google_api/service_control/v1/model/exponential_buckets.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_control/lib/google_api/service_control/v1/model/exponential_buckets.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/service_control/lib/google_api/service_control/v1/model/exponential_buckets.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
41.1
246
0.753771
18e5464ee22a85acf62a7f37960c3b3e7c6ffc12
2,965
exs
Elixir
test/wallaby/experimental/selenium/start_session_config_test.exs
baransu/wallaby
410ad3cdc53ce1cbd1ef7167cfd170f370b9db00
[ "MIT" ]
1
2020-05-15T20:41:00.000Z
2020-05-15T20:41:00.000Z
test/wallaby/experimental/selenium/start_session_config_test.exs
aarongraham/wallaby
37a4dc379a83b64540c8763e7205752b43bd811e
[ "MIT" ]
null
null
null
test/wallaby/experimental/selenium/start_session_config_test.exs
aarongraham/wallaby
37a4dc379a83b64540c8763e7205752b43bd811e
[ "MIT" ]
null
null
null
defmodule Wallaby.Experimental.Selenium.StartSessionConfigTest do use Wallaby.HttpClientCase, async: false # These tests modify the application environment so need # to be run with async: false alias Wallaby.Experimental.Selenium alias Wallaby.Session alias Wallaby.SettingsTestHelpers alias Wallaby.Test...
30.56701
99
0.621248
18e5669f1490c08c4db132e7bbb77f81aa9aaa2e
2,423
exs
Elixir
test/influxdb_v2/connection/bucket_org_test.exs
XiaoTeTech/instream
be469d2d8f94c9537a64b052b2dfd583c784d086
[ "Apache-2.0" ]
null
null
null
test/influxdb_v2/connection/bucket_org_test.exs
XiaoTeTech/instream
be469d2d8f94c9537a64b052b2dfd583c784d086
[ "Apache-2.0" ]
null
null
null
test/influxdb_v2/connection/bucket_org_test.exs
XiaoTeTech/instream
be469d2d8f94c9537a64b052b2dfd583c784d086
[ "Apache-2.0" ]
null
null
null
defmodule Instream.InfluxDBv2.Connection.BucketOrgTest do use ExUnit.Case, async: true @moduletag :"influxdb_include_2.x" import Mox alias Instream.TestHelpers.HTTPClientMock setup :verify_on_exit! defmodule MockConnection do use Instream.Connection, config: [ bucket: "default_bucket"...
29.192771
93
0.642179
18e56763dd83548fd63091c79cf0f985d2be474d
817
ex
Elixir
lib/protobuf.ex
llxff/protobuf-elixir
365b26833fce85f0f46759a7c50c8858bd3cc1c1
[ "MIT" ]
null
null
null
lib/protobuf.ex
llxff/protobuf-elixir
365b26833fce85f0f46759a7c50c8858bd3cc1c1
[ "MIT" ]
null
null
null
lib/protobuf.ex
llxff/protobuf-elixir
365b26833fce85f0f46759a7c50c8858bd3cc1c1
[ "MIT" ]
null
null
null
defmodule Protobuf do defmacro __using__(opts) do quote do import Protobuf.DSL, only: [field: 3, field: 2, oneof: 2] Module.register_attribute(__MODULE__, :fields, accumulate: true) Module.register_attribute(__MODULE__, :oneofs, accumulate: true) @options unquote(opts) unquote(encod...
24.757576
70
0.671971
18e5a1e7ccd15a232ce9400b2755b6992c363517
606
ex
Elixir
lib/islands_engine/application.ex
angelo-moreira/game-of-islands
c13832329bd181023941c2d8e6369f12ee3b6d4b
[ "Apache-2.0" ]
null
null
null
lib/islands_engine/application.ex
angelo-moreira/game-of-islands
c13832329bd181023941c2d8e6369f12ee3b6d4b
[ "Apache-2.0" ]
null
null
null
lib/islands_engine/application.ex
angelo-moreira/game-of-islands
c13832329bd181023941c2d8e6369f12ee3b6d4b
[ "Apache-2.0" ]
null
null
null
defmodule IslandsEngine.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ # Starts a worker by calling: IslandsEngine.Wo...
28.857143
72
0.721122
18e616daabcb3bd7739f4575bab6ded95314ccef
2,232
exs
Elixir
test/mat44/mat44_multiplication_test.exs
crertel/graphmath
798e51d21d509e397a86d9ca855ef18a92243583
[ "Unlicense" ]
70
2015-01-07T10:13:38.000Z
2021-09-29T05:06:14.000Z
test/mat44/mat44_multiplication_test.exs
crertel/graphmath
798e51d21d509e397a86d9ca855ef18a92243583
[ "Unlicense" ]
28
2015-01-22T22:38:24.000Z
2021-06-24T06:15:38.000Z
test/mat44/mat44_multiplication_test.exs
crertel/graphmath
798e51d21d509e397a86d9ca855ef18a92243583
[ "Unlicense" ]
17
2015-01-22T18:35:41.000Z
2020-12-24T22:42:40.000Z
defmodule GraphmathTest.Mat44.MultiplyMat44 do use ExUnit.Case @tag :mat44 @tag :multiply test "multiply( I, 0 ) returns 0" do assert {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} == Graphmath.Mat44.multiply( {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}, {0...
34.875
101
0.450269
18e63624be58ee1f723ee28cb667617f464857f9
3,812
ex
Elixir
lib/gitlab/remote.ex
diskshima/git_web_cli
45bcbfe4b63a37cadd3d948dedf14b36a9e3f9a3
[ "MIT" ]
null
null
null
lib/gitlab/remote.ex
diskshima/git_web_cli
45bcbfe4b63a37cadd3d948dedf14b36a9e3f9a3
[ "MIT" ]
6
2016-06-26T15:27:35.000Z
2016-06-26T15:28:00.000Z
lib/gitlab/remote.ex
diskshima/git_web_cli
45bcbfe4b63a37cadd3d948dedf14b36a9e3f9a3
[ "MIT" ]
null
null
null
defimpl Remote, for: GitLab do def issues(remote, state \\ nil) do state = state || "opened" project_id = remote |> GitLab.project_id base_path = "/projects/#{project_id}/issues" path = if state do query_string = URI.encode_query(%{state: state}) "#{base_path}?#{query_string}" ...
25.583893
121
0.648741
18e6376d30b9f069472c8866bb1254d4f1c437b6
1,425
ex
Elixir
apps/lexibomb_server/lib/lexibomb_server/tile.ex
elasticdog/lexibomb-elixir
e69ebf571b7021af8b03d00e1099b07b3d6b2a42
[ "0BSD" ]
2
2016-03-10T23:41:02.000Z
2021-01-20T04:40:39.000Z
apps/lexibomb_server/lib/lexibomb_server/tile.ex
elasticdog/lexibomb-elixir
e69ebf571b7021af8b03d00e1099b07b3d6b2a42
[ "0BSD" ]
1
2015-07-19T06:27:44.000Z
2015-07-19T06:27:44.000Z
apps/lexibomb_server/lib/lexibomb_server/tile.ex
elasticdog/lexibomb-elixir
e69ebf571b7021af8b03d00e1099b07b3d6b2a42
[ "0BSD" ]
1
2016-09-28T18:09:56.000Z
2016-09-28T18:09:56.000Z
defmodule LexibombServer.Tile do @moduledoc """ Provides functions related to dealing with single tiles. A tile is represented as a single-character string, like `"W"`. A blank tile, while on a player's rack, is represented as the underscore character, `"_"`. Once a blank tile is played on the board, it is u...
22.265625
79
0.544561
18e64a8b5d0b0fe58df909f31b66dea05b7bc7bd
1,028
ex
Elixir
lib/platform_web/controllers/player_auth_controller.ex
LKlemens/platform
837d70503c71e603c2830df9b6c1f8e77cdfe620
[ "MIT" ]
1
2020-02-20T21:57:02.000Z
2020-02-20T21:57:02.000Z
lib/platform_web/controllers/player_auth_controller.ex
LKlemens/platform
837d70503c71e603c2830df9b6c1f8e77cdfe620
[ "MIT" ]
1
2020-03-23T19:22:48.000Z
2020-03-23T19:22:48.000Z
lib/platform_web/controllers/player_auth_controller.ex
LKlemens/platform
837d70503c71e603c2830df9b6c1f8e77cdfe620
[ "MIT" ]
null
null
null
defmodule PlatformWeb.PlayerAuthController do import Plug.Conn alias Platform.Accounts.Player def init(opts) do Keyword.fetch!(opts, :repo) end def call(conn, repo) do player_id = get_session(conn, :player_id) player = player_id && repo.get(Player, player_id) assign(conn, :current_user, play...
23.906977
78
0.669261
18e66feb2534acc03f036515d3f1338d9ab0f3c7
614
ex
Elixir
web/models/user.ex
cjeich/MysteryNightServer
36f37187c67562ceb4d6383b0d22b43cbe504515
[ "Apache-2.0" ]
null
null
null
web/models/user.ex
cjeich/MysteryNightServer
36f37187c67562ceb4d6383b0d22b43cbe504515
[ "Apache-2.0" ]
null
null
null
web/models/user.ex
cjeich/MysteryNightServer
36f37187c67562ceb4d6383b0d22b43cbe504515
[ "Apache-2.0" ]
null
null
null
defmodule MysteryNight.User do use MysteryNight.Web, :model schema "users" do field :first_name, :string field :last_name, :string field :email, :string field :password, :string field :type, :string field :super_admin, :boolean, default: false timestamps() end @doc """ Builds a ...
25.583333
91
0.659609
18e678721896eff34ff15280af6c7d8ac77420dd
1,213
ex
Elixir
lib/phoenix/transports/websocket_serializer.ex
codeangler/phoenix
a5ea7869fb6721633fbb2939a102b188dba54235
[ "MIT" ]
null
null
null
lib/phoenix/transports/websocket_serializer.ex
codeangler/phoenix
a5ea7869fb6721633fbb2939a102b188dba54235
[ "MIT" ]
null
null
null
lib/phoenix/transports/websocket_serializer.ex
codeangler/phoenix
a5ea7869fb6721633fbb2939a102b188dba54235
[ "MIT" ]
null
null
null
defmodule Phoenix.Transports.WebSocketSerializer do @moduledoc false @behaviour Phoenix.Transports.Serializer alias Phoenix.Socket.Reply alias Phoenix.Socket.Message alias Phoenix.Socket.Broadcast @doc """ Translates a `Phoenix.Socket.Broadcast` into a `Phoenix.Socket.Message`. """ def fastlane!(%B...
24.26
74
0.649629
18e678f95af0e566d703a43549fcafc32c019425
268
exs
Elixir
priv/repo/migrations/20170403180148_create_user.exs
kerlak/phoenix-elm-test
4f999504069cc6f96e83ce7c918ada5947c96eb7
[ "MIT" ]
1
2019-03-06T16:02:16.000Z
2019-03-06T16:02:16.000Z
priv/repo/migrations/20170403180148_create_user.exs
kerlak/phoenix-elm-test
4f999504069cc6f96e83ce7c918ada5947c96eb7
[ "MIT" ]
null
null
null
priv/repo/migrations/20170403180148_create_user.exs
kerlak/phoenix-elm-test
4f999504069cc6f96e83ce7c918ada5947c96eb7
[ "MIT" ]
null
null
null
defmodule Pet.Repo.Migrations.CreateUser do use Ecto.Migration def change do create table(:users) do add :team, :string add :name, :string add :email, :string timestamps() end # create unique_index(:users, [:email]) end end
17.866667
43
0.634328
18e68d6bd6568fe182141741bab53b598980e3f8
15,531
ex
Elixir
lib/decoding/instruction_parser.ex
ElixiumNetwork/WaspVM
7a313825ed50720256dda6e61e83356621357963
[ "MIT" ]
112
2018-12-14T23:43:38.000Z
2019-03-22T22:02:27.000Z
lib/decoding/instruction_parser.ex
ElixiumNetwork/Elixium-Wasm
7a313825ed50720256dda6e61e83356621357963
[ "MIT" ]
21
2018-12-22T23:53:14.000Z
2019-02-21T00:18:05.000Z
lib/decoding/instruction_parser.ex
ElixiumNetwork/Elixium-Wasm
7a313825ed50720256dda6e61e83356621357963
[ "MIT" ]
4
2019-05-11T16:37:19.000Z
2021-05-18T13:45:06.000Z
defmodule AlchemyVM.Decoder.InstructionParser do alias AlchemyVM.LEB128 alias AlchemyVM.OpCodes require IEx @moduledoc false # Needs revisiting def parse_instruction(:call_indirect, bytecode) do {type_index, rest} = LEB128.decode_unsigned(bytecode) {{:call, type_index}, rest} end def parse_i...
61.630952
104
0.756938
18e6cbbafddbc9a59177d1920a094eb5b5d7291a
375
ex
Elixir
lib/ido_keido_web/router.ex
isabella232/ido_keido
871fd5c8b294fdc89e31e8dba173f2a5464de399
[ "Apache-2.0" ]
6
2019-11-15T20:34:47.000Z
2021-04-05T03:15:23.000Z
lib/ido_keido_web/router.ex
FindHotel/ido_keido
871fd5c8b294fdc89e31e8dba173f2a5464de399
[ "Apache-2.0" ]
1
2022-03-20T09:34:42.000Z
2022-03-20T09:34:42.000Z
lib/ido_keido_web/router.ex
isabella232/ido_keido
871fd5c8b294fdc89e31e8dba173f2a5464de399
[ "Apache-2.0" ]
3
2021-06-09T05:58:09.000Z
2022-03-20T07:05:13.000Z
defmodule IdoKeidoWeb.Router do @moduledoc false use IdoKeidoWeb, :router pipeline :api do plug(:accepts, ["json"]) end scope "/", IdoKeidoWeb do pipe_through(:api) get("/city/:ip", GeolocationController, :city, as: :city) get("/country/:ip", GeolocationController, :country, as: :country) ...
20.833333
70
0.669333
18e6ce5a6d2476525293e16878339e7ddb4b8a22
1,224
exs
Elixir
mix.exs
itsachen/lob-elixir
b1bacd56fd3a1752cdbda4614354b3120cbc0841
[ "MIT" ]
null
null
null
mix.exs
itsachen/lob-elixir
b1bacd56fd3a1752cdbda4614354b3120cbc0841
[ "MIT" ]
null
null
null
mix.exs
itsachen/lob-elixir
b1bacd56fd3a1752cdbda4614354b3120cbc0841
[ "MIT" ]
null
null
null
defmodule Lob.Mixfile do use Mix.Project def project do [ app: :lob_elixir, version: "1.1.1", elixir: "~> 1.4", preferred_cli_env: ["coveralls.html": :test], start_permanent: Mix.env() == :prod, test_coverage: [tool: ExCoveralls], description: "Lob Elixir Library", ...
22.254545
67
0.490196
18e6daa3eb323a63c363b061cae825a45f924b06
1,540
ex
Elixir
lib/dzen_web/views/error_helpers.ex
d-led/d-zen
25aec2d78e3053df055c0be9cdfac5673dc94f0f
[ "Unlicense" ]
null
null
null
lib/dzen_web/views/error_helpers.ex
d-led/d-zen
25aec2d78e3053df055c0be9cdfac5673dc94f0f
[ "Unlicense" ]
null
null
null
lib/dzen_web/views/error_helpers.ex
d-led/d-zen
25aec2d78e3053df055c0be9cdfac5673dc94f0f
[ "Unlicense" ]
null
null
null
defmodule DzenWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn error -> content_tag(:sp...
32.083333
73
0.663636
18e73ff2efe2c527d7b4f95834dc273fe31c5716
882
ex
Elixir
clients/dataproc/lib/google_api/dataproc/v1/metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dataproc/lib/google_api/dataproc/v1/metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dataproc/lib/google_api/dataproc/v1/metadata.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.666667
74
0.758503
18e752f3c5661cb788b9a8dbbd2a8428b7fb99f0
438
exs
Elixir
priv/repo/migrations/20220603171649_create_site_notifications.exs
mojotech/situation-room
d43b0e35376ec6fe1c2d69810b4eee8cb752f286
[ "MIT" ]
9
2015-10-04T11:47:19.000Z
2019-12-09T16:02:23.000Z
priv/repo/migrations/20220603171649_create_site_notifications.exs
mojotech/situation-room
d43b0e35376ec6fe1c2d69810b4eee8cb752f286
[ "MIT" ]
14
2015-07-28T04:41:57.000Z
2022-03-31T18:12:51.000Z
priv/repo/migrations/20220603171649_create_site_notifications.exs
mojotech/situation-room
d43b0e35376ec6fe1c2d69810b4eee8cb752f286
[ "MIT" ]
1
2017-07-26T03:17:02.000Z
2017-07-26T03:17:02.000Z
defmodule SituationRoom.Repo.Migrations.CreateSiteNotifications do use Ecto.Migration def change do create table(:site_notifications) do add :site_id, references(:sites, on_delete: :delete_all), null: false add :email, :string add :phone, :string add :email_enabled, :boolean, default: f...
27.375
75
0.696347
18e761a1d828c6b038226163342a75e9fce775d8
1,697
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_web_detection_web_image.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_web_detection_web_image.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p4beta1_web_detection_web_image.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
30.303571
93
0.737183
18e787501312d80d55474dd8c3da14239a35144d
2,164
ex
Elixir
lib/remedy/schema/sticker.ex
bdanklin/nostrum
554ebd6cff1d0f68c874aa92f475dabf1aed5512
[ "MIT" ]
3
2021-09-05T09:44:02.000Z
2022-01-26T15:31:50.000Z
lib/remedy/schema/sticker.ex
bdanklin/remedy
554ebd6cff1d0f68c874aa92f475dabf1aed5512
[ "MIT" ]
null
null
null
lib/remedy/schema/sticker.ex
bdanklin/remedy
554ebd6cff1d0f68c874aa92f475dabf1aed5512
[ "MIT" ]
null
null
null
defmodule Remedy.Schema.Sticker do @moduledoc """ Sticker """ use Remedy.Schema @primary_key {:id, Snowflake, autogenerate: false} @type t :: %__MODULE__{ name: String.t(), asset: String.t(), description: String.t(), tags: String.t(), type: StickerType.t(),...
26.390244
59
0.635397
18e7dd6999acc3e6cf2abc0b6e09ee82cc3fc3f8
3,955
exs
Elixir
test/absinthe/schema/rule/input_output_types_correctly_placed_test.exs
pulkit110/absinthe
fa2060307a401d0943bde72d08267602e4027889
[ "MIT" ]
null
null
null
test/absinthe/schema/rule/input_output_types_correctly_placed_test.exs
pulkit110/absinthe
fa2060307a401d0943bde72d08267602e4027889
[ "MIT" ]
null
null
null
test/absinthe/schema/rule/input_output_types_correctly_placed_test.exs
pulkit110/absinthe
fa2060307a401d0943bde72d08267602e4027889
[ "MIT" ]
null
null
null
defmodule Absinthe.Schema.Rule.InputOutputTypesCorrectlyPlacedTest do use Absinthe.Case, async: true describe "macro schema" do test "is enforced with output types on arguments" do assert_schema_error("invalid_output_types", [ %{ extra: %{ field: :blah, parent: A...
30.423077
81
0.544627
18e7f550dc28c97a094f16220d6b4d22d4e1a656
703
ex
Elixir
web/gettext.ex
marcsugiyama/pinafore
a9ceae09118d07c56757340c4be6690aa6235ace
[ "Apache-2.0" ]
2
2016-02-15T13:19:28.000Z
2016-02-15T18:10:12.000Z
web/gettext.ex
marcsugiyama/pinafore
a9ceae09118d07c56757340c4be6690aa6235ace
[ "Apache-2.0" ]
2
2016-02-14T22:01:49.000Z
2016-02-14T22:02:46.000Z
web/gettext.ex
marcsugiyama/pinafore
a9ceae09118d07c56757340c4be6690aa6235ace
[ "Apache-2.0" ]
null
null
null
defmodule Pinafore.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](http://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import Pinafore.Gettext # Simple translation gettext "Here is the st...
28.12
71
0.678521
18e7fad80c1e49ae23e149a7d6c6be7026a96385
743
exs
Elixir
template/$PROJECT_NAME$/mix.exs
alex-knowles/gen_template_escript
00dc74ce4862638342eeb124ae16c8b0c6c5815c
[ "Apache-2.0" ]
null
null
null
template/$PROJECT_NAME$/mix.exs
alex-knowles/gen_template_escript
00dc74ce4862638342eeb124ae16c8b0c6c5815c
[ "Apache-2.0" ]
null
null
null
template/$PROJECT_NAME$/mix.exs
alex-knowles/gen_template_escript
00dc74ce4862638342eeb124ae16c8b0c6c5815c
[ "Apache-2.0" ]
1
2020-02-26T22:19:54.000Z
2020-02-26T22:19:54.000Z
defmodule <%= @project_name_camel_case %>.Mixfile do use Mix.Project @name :<%= @project_name %> @version "0.1.0" @deps [ # { :earmark, ">0.1.5" }, # { :ex_doc, "1.2.3", only: [ :dev, :test ] } # { :my_app: path: "../my_app" }, ] # -------------------------------------...
21.228571
64
0.479139
18e8136a82c06f9731b89bd772055073eb518fcc
1,069
ex
Elixir
example_app/test/support/conn_case.ex
moxley/addict
9271c60d9a862edcefc31e8a764b3eb5a5905171
[ "MIT" ]
750
2015-01-18T23:00:36.000Z
2021-03-24T22:11:09.000Z
example_app/test/support/conn_case.ex
moxley/addict
9271c60d9a862edcefc31e8a764b3eb5a5905171
[ "MIT" ]
130
2015-01-19T12:39:42.000Z
2021-09-28T22:40:52.000Z
example_app/test/support/conn_case.ex
moxley/addict
9271c60d9a862edcefc31e8a764b3eb5a5905171
[ "MIT" ]
151
2015-01-19T09:24:44.000Z
2020-09-21T13:52:46.000Z
defmodule ExampleApp.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also imports other functionality to make it easier to build and query models. Finally, if the test case interacts with the...
24.860465
69
0.707203
18e822d2e64f08d6d3b091bcac672492b5287aba
5,023
exs
Elixir
test/cachex/services/informant_test.exs
botwerk/cachex
d37996d3be35b0d8281e347d44c024ecf2735131
[ "MIT" ]
946
2017-06-26T00:36:58.000Z
2022-03-29T19:52:31.000Z
test/cachex/services/informant_test.exs
botwerk/cachex
d37996d3be35b0d8281e347d44c024ecf2735131
[ "MIT" ]
152
2017-06-28T10:01:24.000Z
2022-03-24T18:46:13.000Z
test/cachex/services/informant_test.exs
botwerk/cachex
d37996d3be35b0d8281e347d44c024ecf2735131
[ "MIT" ]
84
2017-06-30T05:30:31.000Z
2022-03-01T20:23:16.000Z
defmodule Cachex.Services.InformantTest do use CachexCase # Bind any required hooks for test execution setup_all do # bind the required forward hooks for testing ForwardHook.bind([ informant_forward_hook_pre: [ type: :pre ], informant_forward_hook_post: [ type: :post ], informant_forwar...
35.878571
84
0.682859
18e83c0d15478da3055ed8917ed3657dab046279
131
ex
Elixir
lib/algae/id/setoid.ex
doma-engineering/algae
da85c5a9e78591c707859f07f9d485ed68019349
[ "MIT" ]
191
2016-08-22T17:34:45.000Z
2019-05-28T19:02:39.000Z
lib/algae/id/setoid.ex
doma-engineering/algae
da85c5a9e78591c707859f07f9d485ed68019349
[ "MIT" ]
35
2016-08-30T20:56:22.000Z
2019-05-02T17:32:31.000Z
lib/algae/id/setoid.ex
doma-engineering/algae
da85c5a9e78591c707859f07f9d485ed68019349
[ "MIT" ]
10
2016-08-30T18:41:54.000Z
2019-02-14T14:14:55.000Z
import TypeClass use Witchcraft definst Witchcraft.Setoid, for: Algae.Id do def equivalent?(%{id: a}, %{id: b}), do: a == b end
18.714286
49
0.679389
18e847abf1dc17fbe07bef432606fa4918dd34f6
1,134
exs
Elixir
clients/proximity_beacon/mix.exs
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/proximity_beacon/mix.exs
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/proximity_beacon/mix.exs
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
defmodule GoogleApi.ProximityBeacon.V1beta1.Mixfile do use Mix.Project @version "0.4.0" def project do [app: :google_api_proximity_beacon, version: @version, elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), packa...
23.625
116
0.609347
18e89149918dd9481825d45825631433642f4b63
19,780
ex
Elixir
lib/phoenix_live_view/test/live_view_test.ex
jmbejar/phoenix_live_view
14b70a3327a6c2cc24c9fab8ab56e13b2b68e131
[ "MIT" ]
null
null
null
lib/phoenix_live_view/test/live_view_test.ex
jmbejar/phoenix_live_view
14b70a3327a6c2cc24c9fab8ab56e13b2b68e131
[ "MIT" ]
null
null
null
lib/phoenix_live_view/test/live_view_test.ex
jmbejar/phoenix_live_view
14b70a3327a6c2cc24c9fab8ab56e13b2b68e131
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveViewTest do @moduledoc """ Conveniences for testing Phoenix live views. In LiveView tests, we interact with views via process communication in substitution of a browser. Like a browser, our test process receives messages about the rendered updates from the view which can be asserted a...
31.698718
99
0.64454
18e8b36800a411452d353c10b8336db51e721bb3
2,968
ex
Elixir
web/views/admin/search_view.ex
soleo/changelog.com
621c7471b23379e1cdd4a0c960b66ed98d8d1a53
[ "MIT" ]
null
null
null
web/views/admin/search_view.ex
soleo/changelog.com
621c7471b23379e1cdd4a0c960b66ed98d8d1a53
[ "MIT" ]
null
null
null
web/views/admin/search_view.ex
soleo/changelog.com
621c7471b23379e1cdd4a0c960b66ed98d8d1a53
[ "MIT" ]
null
null
null
defmodule Changelog.Admin.SearchView do use Changelog.Web, :view alias Changelog.Endpoint @limit 3 def render("all.json", _params = %{results: results, query: query}) do response = %{results: %{ channels: %{name: "Channels", results: process_results(results.channels, &channel_result/1)}, epis...
31.574468
107
0.66341
18e8ebc67df64abd4afdfc758cfca9c85ed455f6
2,618
ex
Elixir
clients/private_ca/lib/google_api/private_ca/v1/model/subject.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/private_ca/lib/google_api/private_ca/v1/model/subject.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/private_ca/lib/google_api/private_ca/v1/model/subject.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38.5
116
0.676471
18e9037d4bf44295c8e6358ced2eb8f0b6fa686e
1,056
ex
Elixir
lib/atecc508a.ex
bcdevices/atecc508a
934652947ac1de2022f1da556adffa3e8cba31e3
[ "Apache-2.0" ]
6
2018-12-13T16:33:09.000Z
2022-03-02T08:57:20.000Z
lib/atecc508a.ex
bcdevices/atecc508a
934652947ac1de2022f1da556adffa3e8cba31e3
[ "Apache-2.0" ]
10
2019-01-30T19:33:48.000Z
2022-03-03T21:07:37.000Z
lib/atecc508a.ex
bcdevices/atecc508a
934652947ac1de2022f1da556adffa3e8cba31e3
[ "Apache-2.0" ]
9
2019-08-22T06:26:45.000Z
2022-03-01T18:05:01.000Z
defmodule ATECC508A do @moduledoc """ The ATECC508A is an authentication device used for storing private keys and other data securely. """ @typedoc """ This represents the ATECC508A 9-byte device serial number """ @type serial_number() :: <<_::72>> @typedoc """ ATECC508A compressed certificates ha...
21.55102
86
0.641098
18e928d11090735c8934b6035dee776f73333c7b
152
ex
Elixir
lib/powit_web/views/pow_reset_password/mailer_view.ex
tenzil-rpx/powit
0feebbfc11c7bd2a45ef0664632deb9b0537fb5c
[ "MIT" ]
null
null
null
lib/powit_web/views/pow_reset_password/mailer_view.ex
tenzil-rpx/powit
0feebbfc11c7bd2a45ef0664632deb9b0537fb5c
[ "MIT" ]
null
null
null
lib/powit_web/views/pow_reset_password/mailer_view.ex
tenzil-rpx/powit
0feebbfc11c7bd2a45ef0664632deb9b0537fb5c
[ "MIT" ]
null
null
null
defmodule PowitWeb.PowResetPassword.MailerView do use PowitWeb, :mailer_view def subject(:reset_password, _assigns), do: "Reset password link" end
25.333333
67
0.796053
18e93765297b340d644615c62abd230784e2b436
2,093
ex
Elixir
clients/admin/lib/google_api/admin/reports_v1/model/activity_id.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/admin/lib/google_api/admin/reports_v1/model/activity_id.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/admin/lib/google_api/admin/reports_v1/model/activity_id.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.375
186
0.712375
18e942a2199e3cbde7218ca1efef727342320ddc
1,162
ex
Elixir
server/lib/events_app_web/channels/user_socket.ex
kylesmith-1/blazeneu
83cb68b8112bac8d51c9f92e709720d7e7ba1472
[ "MIT" ]
null
null
null
server/lib/events_app_web/channels/user_socket.ex
kylesmith-1/blazeneu
83cb68b8112bac8d51c9f92e709720d7e7ba1472
[ "MIT" ]
null
null
null
server/lib/events_app_web/channels/user_socket.ex
kylesmith-1/blazeneu
83cb68b8112bac8d51c9f92e709720d7e7ba1472
[ "MIT" ]
1
2021-04-10T18:37:30.000Z
2021-04-10T18:37:30.000Z
defmodule CompanyTestWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", CompanyTestWeb.RoomChannel channel "num_entries", CompanyTestWeb.NumEntriesChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put ...
31.405405
86
0.704819
18e955ab0a50324c836a87d6b095d1428389f7f5
2,811
exs
Elixir
test/controllers/session_controller.exs
olsv/phoenix_app_template
f55b1faddd32b09ce7c11e667bbc9e73e2c80fbf
[ "MIT" ]
null
null
null
test/controllers/session_controller.exs
olsv/phoenix_app_template
f55b1faddd32b09ce7c11e667bbc9e73e2c80fbf
[ "MIT" ]
null
null
null
test/controllers/session_controller.exs
olsv/phoenix_app_template
f55b1faddd32b09ce7c11e667bbc9e73e2c80fbf
[ "MIT" ]
null
null
null
defmodule PhoenixAppTemplate.SessionControllerTest do use PhoenixAppTemplate.ConnCase alias PhoenixAppTemplate.User @valid_attrs %{name: "username", email: "some@domain.com", password: "somepass", password_confirmation: "somepass"} setup do User.changeset...
40.73913
80
0.684454
18e9860b1f3f42d78232c24411becd0250b8f4b1
1,167
ex
Elixir
test/app/user_search.ex
gVirtu/skeleton_elasticsearch
b86d0329c28a06fa7aa736c233ac19d828c72b71
[ "MIT" ]
null
null
null
test/app/user_search.ex
gVirtu/skeleton_elasticsearch
b86d0329c28a06fa7aa736c233ac19d828c72b71
[ "MIT" ]
4
2021-02-19T00:21:14.000Z
2021-02-26T13:05:38.000Z
test/app/user_search.ex
gVirtu/skeleton_elasticsearch
b86d0329c28a06fa7aa736c233ac19d828c72b71
[ "MIT" ]
1
2021-08-04T17:22:06.000Z
2021-08-04T17:22:06.000Z
defmodule Skeleton.App.UserSearch do use Skeleton.App.Search, index: "users" # Filters def filter_by(query, {"id", id}, _params) do add_query(query, %{ query: %{ bool: %{ must: [ %{ term: %{_id: id} } ] } } }) end ...
16.671429
59
0.413882
18e9a6c671f36ccdef661630a169d536883002f3
221
exs
Elixir
priv/repo/migrations/20220330165910_add_disable_pull_data_config.exs
helium/roaming-console
0157d0f1666f50259d2887ed23f6bc5138ce67b6
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20220330165910_add_disable_pull_data_config.exs
helium/roaming-console
0157d0f1666f50259d2887ed23f6bc5138ce67b6
[ "Apache-2.0" ]
14
2022-03-02T17:01:59.000Z
2022-03-30T17:45:47.000Z
priv/repo/migrations/20220330165910_add_disable_pull_data_config.exs
helium/roaming-console
0157d0f1666f50259d2887ed23f6bc5138ce67b6
[ "Apache-2.0" ]
null
null
null
defmodule Console.Repo.Migrations.AddDisablePullDataConfig do use Ecto.Migration def change do alter table(:organizations) do add :disable_pull_data, :boolean, null: false, default: false end end end
22.1
67
0.746606
18e9f531fc06fc9e961c27777a2f9434d0b6bb72
2,012
ex
Elixir
clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/list_releases_response.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/list_releases_response.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/cloud_deploy/lib/google_api/cloud_deploy/v1/model/list_releases_response.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.962264
189
0.72167
18ea1d88f2ad6c7b6934659431bca927683e98aa
4,087
exs
Elixir
test/absinthe/execution/list_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
4,101
2016-03-02T03:49:20.000Z
2022-03-31T05:46:01.000Z
test/absinthe/execution/list_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
889
2016-03-02T16:06:59.000Z
2022-03-31T20:24:12.000Z
test/absinthe/execution/list_test.exs
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
564
2016-03-02T07:49:59.000Z
2022-03-06T14:40:59.000Z
defmodule Absinthe.Execution.ListTest.Schema do use Absinthe.Schema object :item do field :categories, list_of(:string) end object :book do field :name, :string end query do field :numbers, list_of(:integer), resolve: fn _, _ -> {:ok, [1, 2, 3]} end field :categories, list_of(:string) do...
19.369668
97
0.445314
18ea23422f42eb28cf2fd11e84bd05684437fd22
994
ex
Elixir
lib/superwatch/cli/actions/agent.ex
andyl/superwatch
9a9dfc1fedb743279e2aaa259809e040fa29f00b
[ "MIT" ]
null
null
null
lib/superwatch/cli/actions/agent.ex
andyl/superwatch
9a9dfc1fedb743279e2aaa259809e040fa29f00b
[ "MIT" ]
null
null
null
lib/superwatch/cli/actions/agent.ex
andyl/superwatch
9a9dfc1fedb743279e2aaa259809e040fa29f00b
[ "MIT" ]
null
null
null
defmodule Superwatch.Cli.Actions.Agent do alias Superwatch.Cli.Repl alias Superwatch.Svc.Store @moduledoc """ Cli.Actions.Agent - list, edit, select """ def handle(["agent", "edit"]) do Store.api_root_file() |> Path.expand() |> Util.Editor.launch() Repl.do_prompt() end def handle(["a...
20.708333
48
0.632797
18ea7f86f0a2ab9305c71fac09124cad0ed301f1
988
ex
Elixir
packages/rlack/api/test/support/channel_case.ex
ragmha/projects
673f7bbad8e27868a4cfa81480556bbc3f4d5bea
[ "MIT" ]
1
2017-04-08T20:08:05.000Z
2017-04-08T20:08:05.000Z
packages/rlack/api/test/support/channel_case.ex
ragmha/projects
673f7bbad8e27868a4cfa81480556bbc3f4d5bea
[ "MIT" ]
null
null
null
packages/rlack/api/test/support/channel_case.ex
ragmha/projects
673f7bbad8e27868a4cfa81480556bbc3f4d5bea
[ "MIT" ]
null
null
null
defmodule Rlack.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build and query models. Finally, if the test case interacts with the database, it cannot be asy...
22.454545
67
0.697368
18eaa811efd4e0153f67c6a114972a85c4c83cb2
2,468
ex
Elixir
clients/slides/lib/google_api/slides/v1/model/insert_table_columns_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/slides/lib/google_api/slides/v1/model/insert_table_columns_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/slides/lib/google_api/slides/v1/model/insert_table_columns_request.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
43.298246
339
0.737034
18eaeb45c284c9508ded142124cea4fb47ab9608
980
exs
Elixir
config/config.exs
cogini/elixir-deploy-template
eebe9e335ebbc54ef9388faf50c6fd64936a85aa
[ "MIT" ]
82
2018-01-08T16:57:13.000Z
2021-12-25T07:34:21.000Z
config/config.exs
cogini/elixir-deploy-template
eebe9e335ebbc54ef9388faf50c6fd64936a85aa
[ "MIT" ]
8
2018-05-21T10:31:27.000Z
2018-11-25T07:17:56.000Z
config/config.exs
cogini/elixir-deploy-template
eebe9e335ebbc54ef9388faf50c6fd64936a85aa
[ "MIT" ]
15
2018-05-21T10:18:16.000Z
2021-03-30T17:14:40.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # General application configuration config :deploy_template, ecto_repos: [DeployTem...
35
86
0.77449
18eaf223917b60b91d691feafc4c5f2b91b45e9f
1,166
exs
Elixir
script/slave.exs
vpsinc/modbus
e1b04916dc12c104e032122738815a1e3910394b
[ "Apache-2.0" ]
null
null
null
script/slave.exs
vpsinc/modbus
e1b04916dc12c104e032122738815a1e3910394b
[ "Apache-2.0" ]
null
null
null
script/slave.exs
vpsinc/modbus
e1b04916dc12c104e032122738815a1e3910394b
[ "Apache-2.0" ]
null
null
null
# run with: mix slave alias Modbus.Slave alias Modbus.Master # start your slave with a shared model model = %{ 0x50 => %{ {:c, 0x5152} => 0, {:i, 0x5354} => 0, {:i, 0x5355} => 1, {:hr, 0x5657} => 0x6162, {:ir, 0x5859} => 0x6364, {:ir, 0x585A} => 0x6566 } } {:ok, slave} = Slave.start_link(m...
27.761905
70
0.613208
18eafbc84aea330578e2237a66e8bf5224f57923
9,394
exs
Elixir
apps/astarte_appengine_api/test/astarte_appengine_api_web/controllers/groups_controller_test.exs
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
191
2018-03-30T13:23:08.000Z
2022-03-02T12:05:32.000Z
apps/astarte_appengine_api/test/astarte_appengine_api_web/controllers/groups_controller_test.exs
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
402
2018-03-30T13:37:00.000Z
2022-03-31T16:47:10.000Z
apps/astarte_appengine_api/test/astarte_appengine_api_web/controllers/groups_controller_test.exs
matt-mazzucato/astarte
34d84941a5019efc42321052f7f34b7d907a38f2
[ "Apache-2.0" ]
24
2018-03-30T13:29:48.000Z
2022-02-28T11:10:26.000Z
# # This file is part of Astarte. # # Copyright 2019 Ispirata Srl # # 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 appl...
29.083591
97
0.634235
18eb1f0697df3d4ed2c378ddbb362f3976fa0f0a
18,032
exs
Elixir
apps/ewallet/test/ewallet/validators/transaction_consumption_validator_test.exs
enyan94/ewallet
e938e686319867d133b21cd0eb5496e213ae7620
[ "Apache-2.0" ]
null
null
null
apps/ewallet/test/ewallet/validators/transaction_consumption_validator_test.exs
enyan94/ewallet
e938e686319867d133b21cd0eb5496e213ae7620
[ "Apache-2.0" ]
null
null
null
apps/ewallet/test/ewallet/validators/transaction_consumption_validator_test.exs
enyan94/ewallet
e938e686319867d133b21cd0eb5496e213ae7620
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
30.929674
98
0.661435
18eb36e38a629b79c35c5fab788df861bd308377
209
exs
Elixir
.formatter.exs
goneri/ex_swift
293358bafc260b493d31640e8fb829c21409d8fb
[ "MIT" ]
3
2019-08-06T02:51:18.000Z
2021-12-28T02:54:47.000Z
.formatter.exs
goneri/ex_swift
293358bafc260b493d31640e8fb829c21409d8fb
[ "MIT" ]
null
null
null
.formatter.exs
goneri/ex_swift
293358bafc260b493d31640e8fb829c21409d8fb
[ "MIT" ]
1
2021-12-25T23:20:43.000Z
2021-12-25T23:20:43.000Z
# Used by "mix format" [ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], imported_deps: [:typed_struct], locals_without_parens: [ # typed_struct field: 2, field: 3 ] ]
19
70
0.593301
18eb36f1fa02fa5666606c53897b069429540472
1,412
ex
Elixir
test/support/data_case.ex
dnsbty/sir_alex
ab569dc7692826411877728444eaa00ec05767c2
[ "MIT" ]
3
2019-05-19T05:27:37.000Z
2020-04-21T06:23:08.000Z
test/support/data_case.ex
dnsbty/sir_alex
ab569dc7692826411877728444eaa00ec05767c2
[ "MIT" ]
3
2017-10-28T20:52:07.000Z
2017-11-24T08:15:27.000Z
test/support/data_case.ex
dnsbty/sir_alex
ab569dc7692826411877728444eaa00ec05767c2
[ "MIT" ]
1
2020-04-15T16:31:28.000Z
2020-04-15T16:31:28.000Z
defmodule SirAlex.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, every test...
25.672727
77
0.679887
18eb514ceed149df12a46ddb359e5efd54a5c653
2,512
exs
Elixir
test/curator_timeoutable/plug_test.exs
curator-ex/curator_timeoutable
6d3fe59a78d6df50efb0ffe512b2975988d041e1
[ "MIT" ]
null
null
null
test/curator_timeoutable/plug_test.exs
curator-ex/curator_timeoutable
6d3fe59a78d6df50efb0ffe512b2975988d041e1
[ "MIT" ]
null
null
null
test/curator_timeoutable/plug_test.exs
curator-ex/curator_timeoutable
6d3fe59a78d6df50efb0ffe512b2975988d041e1
[ "MIT" ]
null
null
null
defmodule CuratorTimeoutable.PlugTest do use ExUnit.Case, async: true doctest CuratorTimeoutable.Plug use Plug.Test import CuratorTimeoutable.PlugHelper import CuratorTimeoutable.Keys setup do conn = conn_with_fetched_session(conn(:get, "/")) {:ok, %{conn: conn}} end test "with no timeoutabl...
33.493333
97
0.690287
18eb6a4f2a2bf45b1b2b85a74aa6b20a5907c1ba
1,509
ex
Elixir
clients/content/lib/google_api/content/v21/model/weight.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/content/lib/google_api/content/v21/model/weight.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v21/model/weight.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
30.18
122
0.701127
18eb7a1e926b4d53c65bedf316ec5441e56c4ebd
140
ex
Elixir
lib/home_web/controllers/rss_router_controller.ex
marktermaat/home_bot
b6d0bd5e1e97b2b0c95e201618e27de4259378d3
[ "MIT" ]
null
null
null
lib/home_web/controllers/rss_router_controller.ex
marktermaat/home_bot
b6d0bd5e1e97b2b0c95e201618e27de4259378d3
[ "MIT" ]
null
null
null
lib/home_web/controllers/rss_router_controller.ex
marktermaat/home_bot
b6d0bd5e1e97b2b0c95e201618e27de4259378d3
[ "MIT" ]
null
null
null
defmodule HomeWeb.RssRouterController do use HomeWeb, :controller def index(conn, _params) do render(conn, "index.html") end end
17.5
40
0.735714
18eb844d3e25863827dfe92c9f2719571158c6d1
338
ex
Elixir
postgis-ecto/gis_demo/lib/gis_demo/place.ex
wisq/slides
e0a1b9dd8187b82c8772b4e6ab20f8b069e1feb1
[ "MIT" ]
null
null
null
postgis-ecto/gis_demo/lib/gis_demo/place.ex
wisq/slides
e0a1b9dd8187b82c8772b4e6ab20f8b069e1feb1
[ "MIT" ]
null
null
null
postgis-ecto/gis_demo/lib/gis_demo/place.ex
wisq/slides
e0a1b9dd8187b82c8772b4e6ab20f8b069e1feb1
[ "MIT" ]
null
null
null
defmodule GisDemo.Place do use Ecto.Schema import Ecto.Changeset schema "places" do timestamps() field(:title, :string) field(:location, Geo.PostGIS.Geometry) end @doc false def changeset(place, attrs) do place |> cast(attrs, [:title, :location]) |> validate_required([:title, :loc...
17.789474
45
0.662722
18ebaddc4cef97c845f73b0e1f020ca217ef0e18
714
ex
Elixir
lib/skillset_web/gettext.ex
LunarLogic/skillset
fe7eda83506ce45e2a60fd77bd17c3981b2ef254
[ "MIT" ]
null
null
null
lib/skillset_web/gettext.ex
LunarLogic/skillset
fe7eda83506ce45e2a60fd77bd17c3981b2ef254
[ "MIT" ]
null
null
null
lib/skillset_web/gettext.ex
LunarLogic/skillset
fe7eda83506ce45e2a60fd77bd17c3981b2ef254
[ "MIT" ]
null
null
null
defmodule SkillsetWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import SkillsetWeb.Gettext # Simple translation gettext("Here is...
28.56
72
0.679272
18ebb262ea0dc563307fd220f1ee8db298d01a17
6,322
exs
Elixir
test/commands/dispatch_return_test.exs
Cantido/commanded
e8058c4381e16547e6960eaf9f38619c6a43b18f
[ "MIT" ]
null
null
null
test/commands/dispatch_return_test.exs
Cantido/commanded
e8058c4381e16547e6960eaf9f38619c6a43b18f
[ "MIT" ]
1
2019-03-11T09:54:35.000Z
2019-03-11T09:54:35.000Z
test/commands/dispatch_return_test.exs
Cantido/commanded
e8058c4381e16547e6960eaf9f38619c6a43b18f
[ "MIT" ]
null
null
null
defmodule Commanded.Commands.DispatchReturnTest do use ExUnit.Case alias Commanded.Commands.ExecutionResult alias Commanded.ExampleDomain.BankApp alias Commanded.ExampleDomain.BankAccount alias Commanded.ExampleDomain.BankAccount.Commands.DepositMoney alias Commanded.ExampleDomain.BankAccount.Commands.Open...
33.62766
98
0.586365
18ebbc16fcf1c46bd3d353c17da353d0335211c6
462
exs
Elixir
test/real_world_web/views/error_view_test.exs
mihkelal/mihkels-elixir-phoenix-realworld-example-app
f241093522b394c816e7bab8ccf5f18fdd854ac6
[ "MIT" ]
null
null
null
test/real_world_web/views/error_view_test.exs
mihkelal/mihkels-elixir-phoenix-realworld-example-app
f241093522b394c816e7bab8ccf5f18fdd854ac6
[ "MIT" ]
4
2021-03-23T19:01:21.000Z
2021-03-30T18:27:24.000Z
test/real_world_web/views/error_view_test.exs
mihkelal/mihkels-elixir-phoenix-realworld-example-app
f241093522b394c816e7bab8ccf5f18fdd854ac6
[ "MIT" ]
null
null
null
defmodule RealWorldWeb.ErrorViewTest do use RealWorldWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.json" do assert render(RealWorldWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}} end test "renders 5...
28.875
94
0.688312
18ebce8f698a7bc45d8f3e265a0cc840886fb33a
314
exs
Elixir
test/lib/scratcher/http_client_test.exs
ritou/elixir-scratcher
8cab9192113b6f1f7d73b387df88ba79717c5a34
[ "MIT" ]
null
null
null
test/lib/scratcher/http_client_test.exs
ritou/elixir-scratcher
8cab9192113b6f1f7d73b387df88ba79717c5a34
[ "MIT" ]
1
2020-09-12T21:46:25.000Z
2020-09-13T01:28:03.000Z
test/lib/scratcher/http_client_test.exs
ritou/eliixir-scratcher
8cab9192113b6f1f7d73b387df88ba79717c5a34
[ "MIT" ]
null
null
null
defmodule Scratcher.HttpClientTest do use ExUnit.Case doctest Scratcher.HttpClient alias Scratcher.DummyHttpClient test "behaviour" do assert {:ok, %{status_code: 200, body: "dummy_resp", headers: [a: :b]}} == DummyHttpClient.request(:get, "https://example.com/", nil, [], []) end end
26.166667
79
0.671975
18ebd1d6b668b69ee2c7b84d9f25b9078f7c77ba
1,094
ex
Elixir
test/support/conn_case.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
test/support/conn_case.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
34
2019-11-10T11:31:37.000Z
2019-11-27T21:26:48.000Z
test/support/conn_case.ex
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
defmodule ClubWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the t...
26.047619
59
0.712066
18ec4ba92e3a8cc95fc705115e2c008b0932714b
6,755
ex
Elixir
lib/TwitterEngine.ex
harshitagrawal91/TwitterClone
0ef58e531c1f306c11b6b09c3a4bcdf3f96da6e1
[ "MIT" ]
1
2019-12-25T06:15:56.000Z
2019-12-25T06:15:56.000Z
lib/TwitterEngine.ex
harshitagrawal91/TwitterClone
0ef58e531c1f306c11b6b09c3a4bcdf3f96da6e1
[ "MIT" ]
null
null
null
lib/TwitterEngine.ex
harshitagrawal91/TwitterClone
0ef58e531c1f306c11b6b09c3a4bcdf3f96da6e1
[ "MIT" ]
1
2020-02-02T00:04:00.000Z
2020-02-02T00:04:00.000Z
defmodule TwitterEngine do use GenServer require Logger def start_link() do GenServer.start_link(__MODULE__, :ok) end def query_to_storage(userId) do if :ets.lookup(:clientsregistry, userId) == [] do nil else [tup] = :ets.lookup(:clientsregistry, use...
34.116162
119
0.567876
18ec7cad1b01cba63d4dcc1eef5a5ed3eafe550a
177
ex
Elixir
test/support/random.ex
YgorCastor/ravix
ad3d191e2682b87d533a2d41899ed10e00b4dc55
[ "Apache-2.0" ]
9
2022-01-11T10:01:54.000Z
2022-03-31T06:50:59.000Z
test/support/random.ex
YgorCastor/ravix
ad3d191e2682b87d533a2d41899ed10e00b4dc55
[ "Apache-2.0" ]
2
2022-03-21T20:13:13.000Z
2022-03-28T21:07:47.000Z
test/support/random.ex
YgorCastor/ravix
ad3d191e2682b87d533a2d41899ed10e00b4dc55
[ "Apache-2.0" ]
null
null
null
defmodule Ravix.Test.Random do @moduledoc false def safe_random_string(size) do :crypto.strong_rand_bytes(size) |> Base.url_encode64() |> binary_part(0, size) end end
25.285714
82
0.745763
18ec895e575ef58472d84cd3ca4b2f0a48a29e37
319
exs
Elixir
priv/repo/migrations/20211006185132_create_organizations.exs
patrotom/adaptable-costs-evaluator
c97e65af1e021d7c6acf6564f4671c60321346e3
[ "MIT" ]
null
null
null
priv/repo/migrations/20211006185132_create_organizations.exs
patrotom/adaptable-costs-evaluator
c97e65af1e021d7c6acf6564f4671c60321346e3
[ "MIT" ]
4
2021-12-07T12:26:50.000Z
2021-12-30T14:17:25.000Z
priv/repo/migrations/20211006185132_create_organizations.exs
patrotom/adaptable-costs-evaluator
c97e65af1e021d7c6acf6564f4671c60321346e3
[ "MIT" ]
null
null
null
defmodule AdaptableCostsEvaluator.Repo.Migrations.CreateOrganizations do use Ecto.Migration def change do create table(:organizations) do add :name, :string, null: false add :username, :string, null: false timestamps() end create unique_index(:organizations, [:username]) end end
21.266667
72
0.708464
18ec92c3b38032accb1b727c0c0c8359b0c3eddb
838
ex
Elixir
lib/banking_web/controllers/account_controller.ex
murilosrg/banking-api
731a150d06d605958b53bfd27c4a1f6033527847
[ "MIT" ]
null
null
null
lib/banking_web/controllers/account_controller.ex
murilosrg/banking-api
731a150d06d605958b53bfd27c4a1f6033527847
[ "MIT" ]
null
null
null
lib/banking_web/controllers/account_controller.ex
murilosrg/banking-api
731a150d06d605958b53bfd27c4a1f6033527847
[ "MIT" ]
null
null
null
defmodule BankingWeb.AccountController do use BankingWeb, :controller alias Banking.{CreateAccount, SignIn} alias BankingWeb.Guardian action_fallback BankingWeb.FallbackController def create(conn, params) do with {:ok, %{account: account, user: user}} <- CreateAccount.run(params) do con...
27.032258
93
0.618138
18ecab9858f2b3c4e17c30f6d2db6498488dd7a7
580
exs
Elixir
test/absinthe/integration/validation/missing_selection_set_test.exs
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
null
null
null
test/absinthe/integration/validation/missing_selection_set_test.exs
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
null
null
null
test/absinthe/integration/validation/missing_selection_set_test.exs
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
1
2018-11-16T02:34:40.000Z
2018-11-16T02:34:40.000Z
defmodule Elixir.Absinthe.Integration.Validation.MissingSelectionSetTest do use ExUnit.Case, async: true @query """ query { things } """ test "scenario #1" do assert {:ok, %{ errors: [ %{ message: "Field \"things\" of ...
25.217391
128
0.484483